/* =====================================================================
   Valinexis — shared agent / platform page styles
   Identical palette, typography and component language as the
   existing site pages. No theme changes.
   ===================================================================== */

:root {
    --primary-dark: #0B5E6D;
    --primary-mid: #0D6779;
    --primary-accent: #16A5B7;
    --primary-light: #E6F7F9;
    --primary-glow: #00EEFF;
    --white: #ffffff;
    --text-dark: #1a2e35;
    --text-body: #4b6770;
    --border-light: #d0edf2;
    --bg-section: #f5fbfc;
    --shadow-sm: 0 4px 20px rgba(11,94,109,0.08);
    --shadow-md: 0 10px 35px rgba(11,94,109,0.12);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: #fff;
}

.container {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
}

a {
    color: var(--primary-dark);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0B5E6D 0%, #0D6779 35%, #16A5B7 100%);
    color: white;
    padding: 142px 0 90px;
    text-align: center;
}

@media (max-width: 991px) {
    .hero {
        padding: 116px 0 70px;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary-glow);
}

.hero p {
    max-width: 780px;
    margin: auto;
    font-size: 1.1rem;
    opacity: .92;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 55px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255,255,255,0.12);
    padding: 22px 28px;
    border-radius: 12px;
    min-width: 180px;
}

.stat-box h3 {
    font-size: 1.7rem;
    color: var(--primary-glow);
}

.stat-box span {
    font-size: .9rem;
    opacity: .9;
}

/* ===== SECTION HEADINGS ===== */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.6rem;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 55px;
    color: var(--text-body);
}

.eyebrow {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-accent);
    margin-bottom: 12px;
}

/* ===== GRIDS & CARDS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-body);
    font-size: .95rem;
}

.card ul {
    margin: 12px 0 0 18px;
    color: var(--text-body);
    font-size: .93rem;
}

.card ul li {
    margin-bottom: 7px;
}

.bg-light {
    background: var(--bg-section);
}

/* ===== WORKFLOW ===== */
.workflow {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: auto;
}

.workflow-step {
    display: flex;
    gap: 24px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    align-items: flex-start;
}

.step-number {
    min-width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.workflow-step p {
    color: var(--text-body);
    font-size: .95rem;
}

/* ===== TABLES ===== */
.rules-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table th {
    background: var(--primary-dark);
    color: white;
    text-align: left;
    padding: 16px 18px;
    font-size: .95rem;
}

table td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf6f8;
    color: var(--text-body);
    font-size: .95rem;
    vertical-align: top;
}

table td strong {
    color: var(--text-dark);
}

table code,
code.inline {
    font-family: 'Courier New', monospace;
    font-size: .87rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 5px;
}

/* ===== CHECK LIST ===== */
.check-group {
    margin-bottom: 40px;
}

.check-group h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.check-group > p {
    color: var(--text-body);
    font-size: .95rem;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary-accent);
    border-radius: 10px;
    padding: 16px 20px;
    color: var(--text-body);
    font-size: .96rem;
}

.check-list li .num {
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    margin-top: 2px;
}

.check-list li strong {
    color: var(--text-dark);
}

/* ===== TIMELINE ===== */
.timeline {
    border-left: 3px solid var(--primary-accent);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 34px;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-accent);
    position: absolute;
    left: -39px;
    top: 6px;
}

.timeline-item h4 {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.timeline-item p {
    color: var(--text-body);
    font-size: .95rem;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
    max-width: 900px;
    margin: 50px auto 0;
    background: white;
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--primary-accent);
    border-radius: var(--radius);
    padding: 34px 38px;
    box-shadow: var(--shadow-sm);
}

.pull-quote p {
    font-family: 'DM Serif Display', serif;
    font-size: 1.32rem;
    line-height: 1.5;
    color: var(--primary-dark);
}

.pull-quote span {
    display: block;
    margin-top: 14px;
    font-size: .92rem;
    color: var(--text-body);
}

/* ===== CALLOUT ===== */
.callout {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 26px 30px;
    color: var(--primary-dark);
    font-size: 1rem;
    max-width: 900px;
    margin: 40px auto 0;
}

.callout strong {
    color: var(--primary-dark);
}

/* ===== FOLDER / CODE BLOCK ===== */
.code-block {
    background: var(--text-dark);
    border-radius: var(--radius);
    padding: 28px 30px;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    max-width: 760px;
    margin: 0 auto;
}

.code-block pre {
    font-family: 'Courier New', monospace;
    font-size: .92rem;
    line-height: 1.85;
    color: #cfe9ee;
    white-space: pre;
}

.code-block .cmt {
    color: var(--primary-glow);
}

/* ===== DIAGRAM ===== */
.diagram-wrapper {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
}

.diagram-wrapper svg {
    width: 100%;
    height: auto;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(11,94,109,0.15);
    padding: 12px;
}

.diagram-caption {
    margin-top: 18px;
    font-size: .92rem;
    color: var(--text-body);
}

.image-wrapper {
    text-align: center;
}

.image-wrapper img {
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(11,94,109,0.15);
    border: 1px solid #d0edf2;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: .3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.price-card--popular {
    border: 2px solid var(--primary-accent);
}

.price-card__flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-accent));
    color: white;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.price-card__note {
    color: var(--text-body);
    font-size: .9rem;
    min-height: 46px;
}

.price-card__amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 18px 0 6px;
    font-family: 'DM Serif Display', serif;
    color: var(--primary-dark);
}

.price-card__amount .cur {
    font-size: 1.3rem;
}

.price-card__amount .num {
    font-size: 2.5rem;
    line-height: 1;
}

.price-card__amount .per {
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--text-body);
}

.price-card ul {
    list-style: none;
    margin: 22px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.price-card ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-body);
    font-size: .93rem;
}

.price-card ul li i {
    color: var(--primary-accent);
    margin-top: 5px;
    font-size: .8rem;
}

.price-card .btn {
    margin-top: auto;
    text-align: center;
}

.pricing-disclaimer {
    text-align: center;
    margin-top: 30px;
    font-size: .88rem;
    color: var(--text-body);
}

/* ===== CTA & BUTTONS ===== */
.cta {
    background: linear-gradient(135deg, #0B5E6D 0%, #16A5B7 100%);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 70px 30px;
}

.cta h2 {
    font-size: 2.7rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: auto auto 35px;
    opacity: .9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: .3s ease;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: #EAFBFD;
}

.btn-outline:hover {
    border-color: var(--primary-glow);
    color: var(--primary-glow);
}

.btn-solid {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-accent));
    color: white;
}

.btn-solid:hover {
    opacity: .9;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.bg-gray {
    background: #f4f8fa;
}

.footer-area {
    padding-top: 80px;
    padding-bottom: 50px;
}

.footer-area .row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-widget {
    margin-bottom: 30px;
    max-width: 520px;
}

.footer-widget__title {
    color: #0B5E6D;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-widget__logo img {
    max-width: 180px;
}

.footer-widget__list {
    list-style: none;
    padding-left: 0;
}

.footer-widget__list li {
    color: #4b6770;
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.8;
}

.footer-widget__list li i {
    color: #16A5B7;
    width: 18px;
}

.footer-widget__list a {
    text-decoration: none;
    color: #4b6770;
    transition: 0.3s ease;
}

.footer-widget__list a:hover {
    color: #16A5B7;
}

.footer-copyright-area {
    border-top: 1px solid #dcecef;
    background: #edf5f7;
    padding: 20px 0;
    text-align: center;
}

.copyright-text {
    font-size: 14px;
    color: #4b6770 !important;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d8e9ed;
    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(11,94,109,0.05);
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11,94,109,0.12);
}

.whatsapp-link span {
    color: #1d3c44;
    font-weight: 600;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-info-list li i {
    margin-top: 6px;
    min-width: 20px;
    color: #16A5B7;
}

.contact-info-list li span,
.contact-info-list li a {
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    section {
        padding: 64px 0;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .footer-area .row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
