/* =========================================================
   DR. MATÍAS TOLOZA
   ========================================================= */

:root {
    --background: #f7fbfe;
    --surface: #ffffff;

    --primary: #2875ad;
    --primary-dark: #174f79;
    --primary-light: #eaf5fc;

    --text: #17364d;
    --text-secondary: #547083;
    --text-muted: #8299a8;

    --border: rgba(37, 105, 151, 0.14);

    --radius-small: 10px;
    --radius: 18px;
    --radius-large: 28px;

    --max-width: 1200px;
}


/* BASE */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

::selection {
    background: var(--primary);
    color: white;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background: rgba(250, 253, 255, 0.88);

    border-bottom: 1px solid rgba(40, 117, 173, 0.10);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar {
    width: min(var(--max-width), calc(100% - 4rem));
    height: 78px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;

    gap: 0.8rem;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(40, 117, 173, 0.25);
    border-radius: 50%;

    color: var(--primary);

    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;

    background: rgba(255,255,255,0.65);
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.brand-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 500;

    color: var(--text);
}

.brand-text small {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 2rem;
}

.nav-links a {
    position: relative;

    color: var(--text-secondary);

    font-size: 0.9rem;
    font-weight: 500;

    transition: color 160ms ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -8px;

    height: 1px;

    background: var(--primary);

    transition: right 180ms ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-links a:hover::after {
    right: 0;
}


/* MOBILE MENU BUTTON */

.menu-button {
    width: 42px;
    height: 42px;

    padding: 9px;

    display: none;

    background: rgba(255,255,255,0.7);

    border: 1px solid var(--border);
    border-radius: 10px;

    cursor: pointer;
}

.menu-button span {
    width: 100%;
    height: 2px;

    display: block;

    margin: 4px 0;

    background: var(--primary-dark);

    border-radius: 10px;

    transition: 180ms ease;
}

.mobile-menu {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #eaf4fa;
}

.hero-background {
    position: absolute;
    inset: 0;

    background-image: url("hero.png");

    background-size: cover;
    background-position: center center;

    transform: scale(1.01);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247, 252, 255, 0.98) 0%,
            rgba(247, 252, 255, 0.94) 25%,
            rgba(247, 252, 255, 0.73) 43%,
            rgba(247, 252, 255, 0.20) 65%,
            rgba(247, 252, 255, 0.04) 100%
        );
}

.hero-inner {
    position: relative;
    z-index: 2;

    width: min(var(--max-width), calc(100% - 4rem));

    margin: auto;

    padding-top: 78px;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 1.7rem;

    color: var(--primary);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.23em;
}

.hero h1 {
    margin: 0;

    color: #153d5a;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.2rem, 7vw, 7rem);
    font-weight: 400;

    line-height: 0.92;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
}

.hero-description {
    margin: 2rem 0 2.4rem;

    color: #345f7d;

    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 400;

    line-height: 1.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 1rem;
}

.button {
    min-height: 52px;

    padding: 0 1.7rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;

    border-radius: 100px;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

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

.button-primary {
    background: var(--primary);

    color: white;

    box-shadow: 0 12px 35px rgba(40, 117, 173, 0.18);
}

.button-primary:hover {
    background: var(--primary-dark);

    box-shadow: 0 16px 40px rgba(40, 117, 173, 0.24);
}

.button-secondary {
    background: rgba(255,255,255,0.52);

    border: 1px solid rgba(40, 117, 173, 0.65);

    color: var(--primary-dark);

    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    background: rgba(255,255,255,0.85);
}

.hero-bottom {
    position: absolute;

    z-index: 2;

    left: 50%;
    bottom: 2rem;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 1rem;

    color: rgba(31, 83, 119, 0.62);

    font-size: 0.64rem;
    font-weight: 700;

    letter-spacing: 0.18em;

    white-space: nowrap;
}

.hero-bottom .dot {
    width: 4px;
    height: 4px;

    background: var(--primary);

    border-radius: 50%;
}


/* =========================================================
   TEMPORARY SECTIONS
   ========================================================= */

.placeholder-section {
    min-height: 60vh;

    padding: 8rem max(2rem, calc((100% - var(--max-width)) / 2));

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #ffffff;
}

.placeholder-section.alternate {
    background: #eef7fc;
}

.placeholder-section > span {
    color: var(--primary);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.2em;
}

.placeholder-section h2 {
    max-width: 800px;

    margin: 1rem 0 0;

    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;

    letter-spacing: -0.04em;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .navbar {
        width: calc(100% - 2rem);
        height: 68px;
    }

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu {
        position: absolute;

        top: 68px;
        left: 1rem;
        right: 1rem;

        padding: 0.5rem;

        flex-direction: column;

        background: rgba(250, 253, 255, 0.97);

        border: 1px solid var(--border);
        border-radius: 16px;

        box-shadow: 0 20px 60px rgba(20, 69, 102, 0.12);

        backdrop-filter: blur(20px);
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu a {
        padding: 1rem;

        color: var(--text-secondary);

        border-radius: 10px;

        font-size: 0.95rem;
        font-weight: 500;
    }

    .mobile-menu a:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
    }

    .hero {
        min-height: 820px;

        align-items: flex-end;
    }

    .hero-background {
        background-position: 63% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(247,252,255,1) 0%,
                rgba(247,252,255,0.97) 27%,
                rgba(247,252,255,0.72) 52%,
                rgba(247,252,255,0.12) 78%
            );
    }

    .hero-inner {
        width: calc(100% - 2rem);

        padding: 0 0 6rem;
    }

    .hero-content {
        max-width: 560px;
    }

    .hero h1 {
        font-size: clamp(3.7rem, 17vw, 5.5rem);
    }

    .hero-description {
        margin: 1.5rem 0 2rem;

        font-size: 1.15rem;
    }

    .hero-bottom {
        display: none;
    }

    .placeholder-section {
        min-height: 50vh;

        padding: 6rem 1.5rem;
    }
}


@media (max-width: 480px) {

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 0.95rem;
    }

    .brand-text small {
        font-size: 0.57rem;
    }

    .hero {
        min-height: 760px;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 18vw, 4.7rem);
    }

    .hero-actions {
        align-items: stretch;
    }

    .button {
        min-height: 50px;

        padding: 0 1.35rem;
    }

    .desktop-break {
        display: none;
    }
}


/* SOCIAL */

.social-section {
    padding: 8rem 2rem;
    background: #f7fbfe;
    text-align: center;
}

.social-inner {
    width: min(100%, 1100px);
    margin: auto;
}

.social-eyebrow {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.social-section h2 {
    margin: 0.8rem 0 1rem;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

.social-section > .social-inner > p {
    max-width: 580px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.social-button {
    min-height: 125px;
    padding: 1.7rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-button:hover {
    transform: translateY(-5px);
    border-color: rgba(40,117,173,0.35);
    box-shadow: 0 20px 45px rgba(23,79,121,0.10);
}

.social-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.social-button span:last-child {
    display: flex;
    flex-direction: column;
}

.social-button small {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-button strong {
    margin-top: 0.2rem;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

@media (max-width: 800px) {
    .social-section {
        padding: 6rem 1rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .social-button {
        min-height: 100px;
    }
}

.social-icon svg { width: 26px; height: 26px; fill: currentColor; display: block; }


/* =========================================================
   RESULTADOS / CARRUSEL
   ========================================================= */

.results-section {
    padding: 8rem 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, #eef7fc 0%, #f8fcfe 100%);
}

.results-inner {
    width: min(100%, 1100px);
    margin: auto;
    text-align: center;
}

.results-eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.results-section h2 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.results-intro {
    max-width: 680px;
    margin: 1.5rem auto 3.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.results-carousel {
    position: relative;
    max-width: 850px;
    margin: auto;
}

.carousel-viewport {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(23, 79, 121, 0.12);
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    transition: transform 480ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.result-slide {
    min-width: 100%;
    margin: 0;
    position: relative;
    background: #eaf4fa;
}

.result-slide img {
    width: 100%;
    height: min(62vh, 620px);
    display: block;
    object-fit: contain;
    background: #f4f9fc;
    user-select: none;
    -webkit-user-drag: none;
}

.result-slide figcaption {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    padding: 0.65rem 1.3rem;
    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(40,117,173,0.15);
    border-radius: 100px;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.carousel-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(40,117,173,0.18);
    border-radius: 50%;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(23,79,121,0.13);
    font-family: Arial, sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: white;
    box-shadow: 0 15px 35px rgba(23,79,121,0.20);
}

.carousel-prev {
    left: -27px;
}

.carousel-next {
    right: -27px;
}

.carousel-dots {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(40,117,173,0.22);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease, border-radius 200ms ease;
}

.carousel-dot.active {
    width: 28px;
    background: var(--primary);
    border-radius: 20px;
}

.results-demo-note {
    margin: 1.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

@media (max-width: 900px) {
    .results-carousel {
        max-width: calc(100% - 1.5rem);
    }

    .carousel-prev {
        left: -18px;
    }

    .carousel-next {
        right: -18px;
    }
}

@media (max-width: 600px) {
    .results-section {
        padding: 6rem 1rem;
    }

    .results-intro {
        margin-bottom: 2.5rem;
        font-size: 0.95rem;
    }

    .results-carousel {
        max-width: 100%;
    }

    .carousel-viewport {
        border-radius: 20px;
    }

    .result-slide img {
        height: auto;
        max-height: 68vh;
        object-fit: contain;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .result-slide figcaption {
        bottom: 0.8rem;
        font-size: 0.72rem;
    }
}


/* =========================================================
   SOBRE MI
   ========================================================= */

.about-section {
    position: relative;
    padding: 9rem 2rem;
    overflow: hidden;
    background: #ffffff;
}

.about-section::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    top: -220px;
    right: -150px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.7;
}

.about-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: -180px;
    bottom: -180px;
    background: #eef7fc;
    border-radius: 50%;
}

.about-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1150px);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: clamp(4rem, 8vw, 8rem);
}

.about-content {
    max-width: 720px;
}

.about-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.about-section h2 {
    margin: 0 0 2rem;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.about-lead {
    margin-bottom: 1.5rem !important;
    color: var(--primary-dark) !important;
    font-size: 1.2rem !important;
    line-height: 1.65 !important;
}

.about-content p {
    margin: 0 0 1.2rem;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-details {
    margin-top: 2.5rem;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    border-top: 1px solid var(--border);
}

.about-details div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.about-details span {
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.about-details strong {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.about-photo {
    position: relative;
}

.about-photo::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid rgba(40,117,173,0.18);
    border-radius: 28px;
}

.about-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 560px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 28px;
    box-shadow: 0 25px 65px rgba(23,79,121,0.13);
}

@media (max-width: 800px) {
    .about-section {
        padding: 6rem 1.25rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo {
        width: min(100%, 430px);
        margin: auto;
        order: -1;
    }

    .about-photo img {
        max-height: 560px;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-photo::before {
        inset: 10px -10px -10px 10px;
    }

    .about-photo img {
        border-radius: 20px;
    }
}


/* =========================================================
   EVALUACION INICIAL
   ========================================================= */

.eligibility-section {
    padding: 9rem 2rem;
    background: #f5fafd;
}

.eligibility-inner {
    width: min(100%, 1100px);
    margin: auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(4rem, 8vw, 7rem);
    align-items: center;
}

.eligibility-eyebrow {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.eligibility-copy h2 {
    margin: 0.8rem 0 1.5rem;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.eligibility-copy > p {
    margin: 0 0 2.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.eligibility-note {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
}

.eligibility-note > span {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
}

.eligibility-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-card {
    padding: clamp(2rem, 4vw, 3rem);
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(23,79,121,0.09);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field > span {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 54px;
    padding: 0 1rem;
    outline: none;
    background: #f8fbfd;
    border: 1px solid rgba(40,117,173,0.16);
    border-radius: 12px;
    color: var(--text);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input:focus,
.form-field select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(40,117,173,0.08);
}

.input-unit {
    position: relative;
}

.input-unit input {
    padding-right: 3.5rem;
}

.input-unit > span {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

.privacy-check {
    margin: 1.7rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-check input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.eligibility-submit {
    width: 100%;
    min-height: 56px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--primary);
    border: 0;
    border-radius: 100px;
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(40,117,173,0.18);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.eligibility-submit:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 16px 35px rgba(40,117,173,0.24);
}

.form-disclaimer {
    margin: 1rem 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.5;
}

.form-success {
    margin-top: 1.5rem;
    padding: 1.3rem;
    display: none;
    align-items: flex-start;
    gap: 1rem;
    background: #eff9f5;
    border: 1px solid rgba(52,137,101,0.18);
    border-radius: 16px;
    text-align: left;
}

.form-success.visible {
    display: flex;
}

.success-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #348965;
    border-radius: 50%;
    color: white;
    font-weight: 700;
}

.form-success strong {
    color: #235f47;
}

.form-success p {
    margin: 0.3rem 0 0;
    color: #527466;
    font-size: 0.8rem;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .eligibility-section {
        padding: 6rem 1rem;
    }

    .eligibility-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 520px) {
    .form-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

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

    .form-field-full {
        grid-column: auto;
    }
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
    position: relative;
    padding: 9rem 2rem;
    overflow: hidden;
    background: #eaf5fc;
    text-align: center;
}

.contact-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -280px;
    left: -180px;
    background: rgba(255,255,255,0.75);
    border-radius: 50%;
}

.contact-section::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -180px;
    bottom: -210px;
    background: rgba(255,255,255,0.65);
    border-radius: 50%;
}

.contact-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 800px);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-eyebrow {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.contact-section h2 {
    margin: 0.8rem 0 1.5rem;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.contact-section p {
    max-width: 590px;
    margin: 0 0 2.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-email {
    margin-bottom: 2.2rem;
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    border-bottom: 1px solid rgba(40,117,173,0.25);
    transition: color 160ms ease, border-color 160ms ease;
}

.contact-email:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.contact-button {
    min-height: 56px;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--primary);
    border-radius: 100px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 12px 35px rgba(40,117,173,0.20);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 17px 40px rgba(40,117,173,0.27);
}

.contact-note {
    margin-top: 1.2rem;
    color: var(--text-muted);
    font-size: 0.72rem;
}

@media (max-width: 600px) {
    .contact-section {
        padding: 6rem 1.25rem;
    }

    .contact-email {
        font-size: 1.15rem;
        word-break: break-word;
    }

    .contact-button {
        width: 100%;
        max-width: 320px;
    }
}

/* REDES TOPBAR */
.nav-socials { display:flex; align-items:center; gap:.45rem; margin-left:.25rem; padding-left:1.1rem; border-left:1px solid var(--border); }
.nav-socials a { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--border); border-radius:50%; background:rgba(255,255,255,.55); color:var(--primary); transition:transform 160ms ease,background 160ms ease,color 160ms ease; }
.nav-socials a::after { display:none; }
.nav-socials a:hover { transform:translateY(-2px); background:var(--primary); color:white; }
.nav-socials svg { width:15px; height:15px; display:block; fill:currentColor; }
@media(max-width:800px){.nav-socials{display:none;}}

/* REDES MENU MOVIL */
.mobile-socials { display:none; }
@media(max-width:800px){.mobile-socials{margin-top:.35rem;padding:1rem;display:flex;justify-content:center;gap:.8rem;border-top:1px solid var(--border)}.mobile-socials a{width:44px;height:44px;padding:0;display:grid;place-items:center;background:var(--primary-light);border:1px solid var(--border);border-radius:50%;color:var(--primary);transition:background 160ms ease,color 160ms ease,transform 160ms ease}.mobile-socials a:hover{background:var(--primary);color:white;transform:translateY(-2px)}.mobile-socials svg{width:19px;height:19px;display:block;fill:currentColor}}

/* AJUSTE HERO MOBILE */
@media (max-width: 600px) {
    .hero {
        min-height: 650px;
    }
}
