:root {
    --bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-dark: #0f172a;
    --text: #14213d;
    --muted: #56627a;
    --line: rgba(20, 33, 61, 0.1);
    --primary: #ff7a18;
    --primary-deep: #ef5b0c;
    --secondary: #19376d;
    --secondary-soft: #315796;
    --accent: #13c4a3;
    --shadow-lg: 0 30px 80px rgba(17, 24, 39, 0.14);
    --shadow-md: 0 18px 40px rgba(17, 24, 39, 0.1);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(25, 55, 109, 0.2), transparent 28%),
        linear-gradient(180deg, #eef3fb 0%, #f9fbff 48%, #eef4fa 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 72px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -60px;
    background: rgba(255, 122, 24, 0.18);
}

.hero::after {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: 40px;
    background: rgba(19, 196, 163, 0.12);
}

.topbar,
.hero-grid,
.main-content,
.footer {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    backdrop-filter: blur(18px);
}

.language-switcher {
    position: relative;
}

.language-select {
    min-width: 78px;
    padding: 12px 14px;
    border: 1px solid rgba(25, 55, 109, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--secondary);
    font-weight: 800;
    cursor: pointer;
    appearance: none;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo-image {
    width: 68px;
    height: 68px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 14px 24px rgba(25, 55, 109, 0.2));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-tag {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    box-shadow: 0 16px 30px rgba(239, 91, 12, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 20px 40px rgba(239, 91, 12, 0.32);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-soft) 100%);
    box-shadow: 0 16px 30px rgba(25, 55, 109, 0.2);
}

.btn-ghost {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(25, 55, 109, 0.12);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel {
    animation: riseUp 0.8s ease both;
}

.hero-panel {
    animation-delay: 0.12s;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy {
    padding: 36px 8px 0 6px;
}

.eyebrow,
.section-kicker,
.panel-label,
.plan-badge,
.mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--secondary);
    margin-bottom: 18px;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 22px;
}

.hero-text {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.stat-card,
.hero-panel-card,
.intro-card,
.feature-card,
.pricing-card,
.contact-card,
.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.stat-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.68);
}

.stat-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.94rem;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.hero-panel-card {
    border-radius: var(--radius-xl);
    padding: 28px;
}

.hero-panel-primary {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(20, 33, 61, 0.12), rgba(20, 33, 61, 0.92)),
        linear-gradient(135deg, rgba(49, 87, 150, 0.9), rgba(255, 122, 24, 0.72));
}

.hero-panel-primary h2 {
    font-size: 1.8rem;
    line-height: 1.15;
    margin: 14px 0 14px;
}

.hero-panel-primary p {
    color: rgba(255, 255, 255, 0.85);
}

.hero-panel-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.8);
}

.panel-label {
    color: rgba(255, 255, 255, 0.76);
}

.hero-panel-secondary .panel-label {
    color: var(--secondary-soft);
}

.hero-panel-secondary strong {
    display: block;
    font-size: 1.15rem;
}

.mini-pill {
    color: var(--accent);
    background: rgba(19, 196, 163, 0.12);
    padding: 10px 14px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.main-content {
    flex: 1;
    padding: 0 24px 72px;
}

.section {
    margin-bottom: 28px;
}

.intro-card,
.pricing-section,
.contact-section {
    border-radius: var(--radius-xl);
    padding: 34px;
    background: var(--surface);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.section-heading h2 {
    max-width: 18ch;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading.centered {
    text-align: center;
    align-items: center;
}

.section-heading.centered h2 {
    max-width: 16ch;
}

.section-kicker,
.plan-badge {
    color: var(--secondary-soft);
}

.feature-grid,
.pricing-grid,
.contact-layout {
    display: grid;
    gap: 20px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.74);
}

.feature-index {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p,
.plan-note,
.contact-copy {
    color: var(--muted);
}

.pricing-grid {
    align-items: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    min-height: 100%;
    height: 100%;
}

.featured-plan {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 238, 0.96));
    box-shadow: var(--shadow-lg);
    outline: 2px solid rgba(239, 91, 12, 0.12);
}

.highlighted {
    color: var(--primary-deep);
}

.plan-badge {
    min-height: 28px;
    align-items: center;
}

.pricing-card h3 {
    min-height: 56px;
    display: flex;
    align-items: flex-start;
    font-size: 1.4rem;
}

.price {
    min-height: 88px;
    display: flex;
    align-items: flex-end;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.currency {
    font-size: 1rem;
    margin-left: 8px;
    vertical-align: super;
}

.plan-note {
    min-height: 144px;
    flex-grow: 1;
}

.contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
}

.contact-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    background: rgba(255, 255, 255, 0.82);
}

.contact-highlight {
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.95), rgba(49, 87, 150, 0.92));
    color: #fff;
}

.contact-highlight .contact-copy,
.contact-highlight .contact-title {
    color: rgba(255, 255, 255, 0.88);
}

.contact-title {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: var(--secondary-soft);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.contact-card:not(.contact-highlight) .whatsapp-link {
    background: rgba(25, 55, 109, 0.08);
    color: var(--secondary);
}

.phone-icon {
    font-size: 1.1rem;
}

.footer {
    padding: 0 24px 28px;
    color: var(--muted);
    text-align: center;
}

.footer p {
    padding: 18px 24px 0;
    border-top: 1px solid rgba(20, 33, 61, 0.08);
}

.footer a,
.legal-document a {
    color: var(--secondary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-header {
    padding: 28px 24px 10px;
}

.legal-main {
    width: min(920px, 100%);
    margin: 0 auto;
    flex: 1;
    padding: 24px 24px 72px;
}

.legal-document {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.legal-document h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.legal-document h2 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 1.25rem;
}

.legal-document p {
    color: var(--muted);
}

.legal-document section {
    margin-top: 26px;
}

.legal-updated {
    margin-top: 12px;
    font-weight: 700;
}

.legal-list {
    margin: 12px 0 0 22px;
    color: var(--muted);
}

.legal-list li + li {
    margin-top: 8px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(9, 15, 28, 0.52);
    animation: fadeIn 0.24s ease;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100dvh - 36px);
    margin: auto 0;
    padding: 24px;
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-content h2 {
    padding-right: 48px;
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--secondary);
    background: rgba(25, 55, 109, 0.08);
    font-size: 1.8rem;
    cursor: pointer;
    transition: background-color 0.24s ease, transform 0.24s ease;
}

.close:hover {
    background: rgba(255, 122, 24, 0.14);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 0;
}

#contactForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 12px;
}

#contactForm .form-group-full,
#contactForm .form-submit {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid rgba(20, 33, 61, 0.12);
    border-radius: 12px;
    background: rgba(245, 247, 251, 0.9);
    color: var(--text);
    transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.form-group textarea {
    min-height: 92px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 122, 24, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12);
    background: #fff;
}

.form-submit {
    width: 100%;
    justify-content: center;
    position: sticky;
    bottom: -1px;
    z-index: 2;
    margin-top: 4px;
}

.form-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.form-message.success {
    display: block;
    color: #166534;
    background: rgba(34, 197, 94, 0.14);
}

.form-message.error {
    display: block;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

@media (max-width: 1100px) {
    .hero-grid,
    .contact-layout,
    .pricing-grid,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .section-heading h2 {
        max-width: none;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero,
    .main-content,
    .footer,
    .legal-header,
    .legal-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar {
        align-items: flex-start;
        border-radius: 28px;
        flex-direction: column;
    }

    .hero-stats,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .topbar-actions,
    .hero-actions {
        width: 100%;
    }

    .hero-copy {
        padding-top: 12px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .hero-panel-primary {
        min-height: 260px;
    }

    .hero-panel-secondary {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro-card,
    .pricing-section,
    .contact-section,
    .pricing-card,
    .feature-card,
    .contact-card,
    .modal-content,
    .legal-document {
        padding: 22px;
    }

    .featured-plan {
        transform: none;
    }

    .pricing-card h3,
    .price,
    .plan-note {
        min-height: auto;
    }

    .modal {
        padding: 8px;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100dvh - 16px);
        margin: 0;
        padding: 18px;
        border-radius: 16px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }

    #contactForm {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
}

@media (max-width: 520px) {
    .brand {
        align-items: flex-start;
    }

    .logo-image {
        width: 56px;
        height: 56px;
    }

    .brand-tag {
        font-size: 0.74rem;
        letter-spacing: 0.06em;
    }

    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .topbar-actions,
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
}
