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

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

    --primary: #3894A1;
    --primary-dark: #2F404F;
    --primary-light: #C7DAD3;

    --text: #2F404F;
    --text-secondary: #526875;
    --text-muted: #789096;

    --border: rgba(47, 64, 79, 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;


    color: var(--primary);

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

}

.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: #C7DAD3;
}

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

    background-image: url("images/portadalanding.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: #2F404F;

    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: #2F404F;

    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: #F0F1EE;
}

.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: #F0F1EE;
    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, #F0F1EE 0%, #F0F1EE 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: #C7DAD3;
}

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

.result-slide figcaption {
    position: absolute;
    left: 50%;
    bottom: -0.55rem;
    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.05rem;
        font-size: 0.72rem;
    }
}


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

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

.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: #F0F1EE;
    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: #F0F1EE;
}

.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: #F0F1EE;
    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: #C7DAD3;
    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;
    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 - ALTURA SEGUN PANTALLA */
@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
    }
}


/* HERO DESKTOP - FOTO VERTICAL */
@media (min-width: 801px) {
    .hero-background {
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        background-color: #f0f1ee;
        transform: none;
    }
}

/* CERTIFICACION */
#certificacion-superintendencia { margin-top: 2rem; }

/* =========================================================
   VISOR CERTIFICACIONES
   ========================================================= */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.cert-modal.open { display: flex; }
.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 35, 48, 0.82);
    backdrop-filter: blur(6px);
}
.cert-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 92vw);
    height: min(880px, 90vh);
    padding: 3rem 4.5rem 2rem;
    background: #f0f1ee;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.cert-slides {
    width: 100%;
    height: 100%;
}
.cert-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.cert-slide.active { display: flex; }
.cert-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.cert-slide iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    background: white;
}
.cert-close,
.cert-prev,
.cert-next {
    position: absolute;
    z-index: 3;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: #2f404f;
    color: white;
    border-radius: 50%;
}
.cert-close {
    width: 42px;
    height: 42px;
    top: 12px;
    right: 12px;
    font-size: 1.7rem;
}
.cert-prev,
.cert-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}
.cert-prev { left: 10px; }
.cert-next { right: 10px; }
.cert-counter {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #2f404f;
    font-weight: 700;
    font-size: .9rem;
}
@media (max-width: 700px) {
    .cert-modal { padding: .75rem; }
    .cert-modal-dialog {
        width: 100%;
        height: 92vh;
        padding: 3.5rem .75rem 4rem;
        border-radius: 18px;
    }
    .cert-prev,
    .cert-next {
        top: auto;
        bottom: 10px;
        transform: none;
    }
    .cert-prev { left: calc(50% - 58px); }
    .cert-next { right: calc(50% - 58px); }
}
.phone-input{display:flex;width:100%;align-items:stretch}.phone-prefix{display:flex;align-items:center;padding:0 1rem;background:#c7dad3;color:#2f404f;font-weight:700;border-radius:10px 0 0 10px;white-space:nowrap}.phone-input input{flex:1;min-width:0;border-radius:0 10px 10px 0!important}.phone-input input:focus{position:relative;z-index:1}

.brand-mark img{display:block;width:100%;height:100%;object-fit:contain;}
.professional-footer{background:#f0f1ee;border-top:1px solid rgba(47,64,79,.12);padding:2.8rem 1.5rem}.professional-footer-inner{max-width:1180px;margin:auto}.professional-row{display:grid;grid-template-columns:1.4fr .8fr;gap:4rem;align-items:center}.professional-title{display:block;font-size:.68rem;font-weight:700;letter-spacing:.18em;color:#3894a1;margin-bottom:1rem}.society-logos,.location-logos{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}.society-logos img{width:110px;height:65px;object-fit:contain}.location-logos img{width:145px;height:75px;object-fit:contain}.professional-info{margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(47,64,79,.15);display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:2rem;color:#2f404f}.professional-info>div{display:flex;flex-direction:column;gap:.35rem}.professional-info strong{font-family:Georgia,serif;font-size:1.05rem}.professional-info span:not(.professional-title),.professional-info a{font-size:.82rem;color:#2f404f;text-decoration:none}.professional-info .professional-title{margin-bottom:.25rem}@media(max-width:800px){.professional-footer{padding:2.3rem 1.3rem}.professional-row{grid-template-columns:1fr;gap:2rem}.society-logos{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.society-logos img{width:100%;height:70px}.location-logos{display:grid;grid-template-columns:repeat(2,1fr)}.location-logos img{width:100%;height:80px}.professional-info{grid-template-columns:1fr;gap:1.3rem}}
.professional-footer{padding:1.7rem 1.2rem}.professional-row{gap:2rem}.professional-title{font-size:.6rem;margin-bottom:.65rem}.society-logos,.location-logos{gap:.9rem}.society-logos img{width:85px;height:48px}.location-logos img{width:115px;height:55px}.professional-info{margin-top:1.2rem;padding-top:1rem;gap:1.2rem}.professional-info strong{font-size:.95rem}.professional-info span:not(.professional-title),.professional-info a{font-size:.75rem}@media(max-width:800px){.professional-footer{padding:1.5rem 1rem}.professional-row{gap:1.3rem}.society-logos{gap:.6rem}.society-logos img{height:52px}.location-logos{gap:.6rem}.location-logos img{height:58px}.professional-info{margin-top:1rem;gap:.85rem}}

/* HERO MOBILE - nombre mas compacto */
@media (max-width:480px){.hero h1{font-size:2.65rem;line-height:.98;max-width:390px}}

/* HERO MOBILE v2 - cara despejada */
@media (max-width:600px){.hero-inner{align-items:flex-end;padding-bottom:7rem}.hero-content{width:100%}.hero h1{font-size:2rem!important;line-height:1.02!important;max-width:330px!important;margin-bottom:1rem}.hero-description{font-size:1rem;line-height:1.5}}

/* HERO MOBILE v3 - todo el texto bajo la cara */
@media (max-width:600px){.hero-inner{padding-top:15rem!important;padding-bottom:3rem!important;align-items:flex-start!important}.hero-content{margin-top:0!important}.hero .eyebrow{margin-top:0!important;margin-bottom:.8rem!important;font-size:.62rem!important;line-height:1.4!important;max-width:330px}.hero h1{font-size:2rem!important;line-height:1.02!important}}

/* Centrar redes sociales en desktop */
@media (min-width: 801px) {
    .social-buttons {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ajustes finales desktop */
@media (min-width: 801px) {
    .social-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
    .result-slide figcaption {
        top: 1.25rem;
        bottom: auto;
    }
}

/* Titulo resultados DEFINITIVO arriba */
.result-slide figcaption {
    top: 1rem !important;
    bottom: auto !important;
}

/* HERO MOBILE - PORTADA MAS CERCANA */
@media(max-width:600px){.hero-background{background-size:125% auto!important;background-position:center 35%!important;background-repeat:no-repeat!important;}}

/* HERO MOBILE - ZOOM CORRECTO SIN DESCUBRIR FONDO */
@media(max-width:600px){.hero-background{background-size:cover!important;background-position:center center!important;transform:scale(1.15)!important;transform-origin:center 42%!important;}}

/* HERO MOBILE - ZOOM, POSICION Y OVERLAY FINAL */
@media(max-width:600px){.hero-background{background-size:cover!important;background-position:58% center!important;transform:scale(1.25)!important;transform-origin:center center!important;}.hero-overlay{background:linear-gradient(0deg,rgba(247,252,255,.88) 0%,rgba(247,252,255,.72) 24%,rgba(247,252,255,.38) 48%,rgba(247,252,255,.08) 76%,rgba(247,252,255,0) 100%)!important;}}

/* HERO MOBILE - ZOOM CARA SIN CORTAR CABEZA */
@media(max-width:600px){.hero-background{background-position:58% top!important;transform:scale(1.32)!important;transform-origin:58% top!important;}}

/* HERO MOBILE - TRANSICION SUAVE HACIA SIGUIENTE SECCION */
@media(max-width:600px){.hero-overlay{background:linear-gradient(0deg,rgba(247,252,255,.96) 0%,rgba(247,252,255,.76) 12%,rgba(247,252,255,.38) 30%,rgba(247,252,255,.08) 58%,rgba(247,252,255,0) 78%)!important;}}

/* SOBRE MI MOBILE - FONDO LIMPIO */
@media(max-width:600px){.about-section{background:#fff!important}.about-section::before,.about-section::after{display:none!important}}

/* SOBRE MI - ORDEN DEFINITIVO */
.about-title{
    grid-column:1;
    grid-row:1;
    align-self:end;
    margin-bottom:0;
}

.about-content{
    grid-column:1;
    grid-row:2;
}

.about-photo{
    grid-column:2;
    grid-row:1 / span 2;
}

@media(max-width:800px){
    .about-inner{
        grid-template-columns:1fr;
    }

    .about-title{
        grid-column:1;
        grid-row:1;
        margin-bottom:-1.5rem;
    }

    .about-photo{
        grid-column:1;
        grid-row:2;
        order:initial;
    }

    .about-content{
        grid-column:1;
        grid-row:3;
    }
}


/* ESPACIADO VERTICAL GLOBAL - DEFINITIVO */
@media (min-width:801px){
    .about-section,
    .results-section,
    .eligibility-section,
    .social-section,
    .contact-section{
        padding-top:6rem;
        padding-bottom:6rem;
    }
}

@media (max-width:800px){
    .about-section,
    .results-section,
    .eligibility-section,
    .social-section,
    .contact-section{
        padding-top:3.5rem;
        padding-bottom:3.5rem;
    }
}


/* LOGOS FOOTER - TAMANO UNIFORME */
.society-logos img,
.location-logos img{
    width:90px!important;
    height:55px!important;
    object-fit:contain!important;
    object-position:center!important;
}

@media(max-width:800px){
    .society-logos,
    .location-logos{
        grid-template-columns:repeat(2,90px)!important;
        justify-content:start;
        align-items:center;
        column-gap:3rem!important;
        row-gap:1rem!important;
    }

    .society-logos img,
    .location-logos img{
        width:90px!important;
        height:55px!important;
    }
}


/* LOGOS FOOTER - AJUSTE VISUAL INDIVIDUAL */
.society-logos img,
.location-logos img{
    transform-origin:center;
}

.society-logos img:nth-child(1){transform:scale(1);}
.society-logos img:nth-child(2){transform:scale(1.30);}
.society-logos img:nth-child(3){transform:scale(1.15);}
.society-logos img:nth-child(4){transform:scale(1.15);}
.location-logos img:nth-child(1){transform:scale(1.10);}
.location-logos img:nth-child(2){transform:scale(.82);}


/* FORM DESKTOP - ALINEAR ETIQUETAS */
@media(min-width:801px){
    .form-field > span{
        min-height:2.5em;
        display:flex;
        align-items:flex-end;
    }
}


/* SCROLL REVEAL GLOBAL */
.js-reveal .reveal{
    opacity:0;
    transform:translateY(24px);
    transition:opacity 650ms ease, transform 650ms cubic-bezier(.22,.61,.36,1);
    transition-delay:var(--reveal-delay,0ms);
    will-change:opacity,transform;
}

.js-reveal .reveal.reveal-visible{
    opacity:1;
    transform:translateY(0);
}

@media(prefers-reduced-motion:reduce){
    .js-reveal .reveal{
        opacity:1!important;
        transform:none!important;
        transition:none!important;
    }
}


/* FONDOS CON PROFUNDIDAD - V1 */

/* Sobre mi: luz fria muy suave alrededor del contenido */
.about-section{
    background:
        radial-gradient(circle at 78% 38%, rgba(40,117,173,.09) 0%, rgba(40,117,173,.035) 24%, transparent 48%),
        linear-gradient(135deg, #f7fcff 0%, #ffffff 52%, #f4f9fb 100%);
}

/* Resultados: mantener protagonismo de las fotografias */
.results-section{
    background:
        radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.42) 35%, transparent 68%),
        #F0F1EE;
}

/* Evaluacion: profundidad discreta detras del formulario */
.eligibility-section{
    background:
        radial-gradient(circle at 78% 48%, rgba(40,117,173,.075) 0%, rgba(40,117,173,.025) 27%, transparent 52%),
        linear-gradient(120deg, #F0F1EE 0%, #f6f7f5 52%, #edf3f3 100%);
}

/* Redes: superficie neutra con iluminacion central */
.social-section{
    background:
        radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.9) 0%, rgba(255,255,255,.30) 40%, transparent 72%),
        #F0F1EE;
}

/* Contacto: conservar el verde, pero darle profundidad */
.contact-section{
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.28) 0%, transparent 42%),
        linear-gradient(135deg, #d1e1dc 0%, #C7DAD3 48%, #bcd2ca 100%);
}

@media(max-width:600px){
    .about-section{
        background:#fff!important;
    }

    .results-section{
        background:#F0F1EE;
    }

    .eligibility-section{
        background:linear-gradient(180deg,#F0F1EE 0%,#f4f7f5 100%);
    }

    .social-section{
        background:#F0F1EE;
    }
}


/* SOBRE MI - MICROINTERACCION FOTO */
@media (min-width:801px) and (hover:hover){
    .about-photo img{
        transition:transform 700ms cubic-bezier(.22,.61,.36,1), box-shadow 700ms ease;
        transform-origin:center;
    }

    .about-photo::before{
        transition:transform 700ms cubic-bezier(.22,.61,.36,1), border-color 700ms ease;
    }

    .about-photo:hover img{
        transform:scale(1.018);
        box-shadow:0 30px 75px rgba(23,79,121,.18);
    }

    .about-photo:hover::before{
        transform:translate(3px,3px);
        border-color:rgba(40,117,173,.28);
    }
}

@media (prefers-reduced-motion:reduce){
    .about-photo img,
    .about-photo::before{
        transition:none!important;
        transform:none!important;
    }
}


/* BOTONES - MICROINTERACCIONES PREMIUM */
.button,
.contact-button,
.social-button{
    -webkit-tap-highlight-color:transparent;
}

/* Flechas de botones normales */
.button > span:last-child,
.contact-button > span:last-child{
    display:inline-block;
    transition:transform 240ms cubic-bezier(.22,.61,.36,1);
}

@media (hover:hover){
    .button:hover > span:last-child,
    .contact-button:hover > span:last-child{
        transform:translateX(5px);
    }

    .social-button .social-icon{
        transition:transform 280ms cubic-bezier(.22,.61,.36,1), background 280ms ease, color 280ms ease;
    }

    .social-button:hover .social-icon{
        transform:scale(1.07) translateY(-1px);
    }
}

/* Respuesta tactil al click */
.button:active,
.contact-button:active{
    transform:translateY(0) scale(.985);
}

.social-button:active{
    transform:translateY(-2px) scale(.99);
}

@media (prefers-reduced-motion:reduce){
    .button,
    .contact-button,
    .social-button,
    .button > span:last-child,
    .contact-button > span:last-child,
    .social-button .social-icon{
        transition:none!important;
    }
}


/* CURSOR BOTONES INTERACTIVOS */
.button,
.contact-button,
.social-button{
    cursor:pointer;
}


/* TITULOS DE SECCION - ESCALA REDUCIDA */
.placeholder-section h2,
.social-section h2,
.results-section h2,
.contact-section h2{
    font-size:clamp(2.2rem,4vw,3.8rem);
}

.about-section h2{
    font-size:clamp(2.2rem,3.8vw,3.7rem);
}

.eligibility-copy h2{
    font-size:clamp(2.3rem,4.2vw,4rem);
}

@media(max-width:600px){
    .placeholder-section h2,
    .social-section h2,
    .results-section h2,
    .about-section h2,
    .contact-section h2{
        font-size:clamp(2rem,9vw,2.5rem);
    }

    .eligibility-copy h2{
        font-size:clamp(2.1rem,9vw,2.6rem);
    }
}


/* HERO DESKTOP - TITULO REDUCIDO */
@media (min-width:801px){
    .hero h1{
        font-size:clamp(3.4rem,5.2vw,5rem);
    }
}


/* LOGOS FOOTER - TAMANO MAYOR */
.society-logos img,
.location-logos img{
    width:110px!important;
    height:67px!important;
}

@media(max-width:800px){
    .society-logos,
    .location-logos{
        grid-template-columns:repeat(2,110px)!important;
    }

    .society-logos img,
    .location-logos img{
        width:110px!important;
        height:67px!important;
    }
}



/* PROCEDIMIENTOS - PANELES INTERACTIVOS */
.procedures-section{
    padding:6rem 2rem;
    background:#182733;
    overflow:hidden;
}

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

.procedures-eyebrow{
    display:block;
    margin-bottom:.8rem;
    color:#86c3ca;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.22em;
    text-align:center;
}

.procedures-section h2{
    max-width:760px;
    margin:0 auto;
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(2.2rem,4vw,3.8rem);
    font-weight:400;
    line-height:1.05;
    letter-spacing:-.04em;
    text-align:center;
}

.procedures-intro{
    max-width:650px;
    margin:1.2rem auto 3rem;
    color:rgba(255,255,255,.7);
    font-size:1rem;
    line-height:1.7;
    text-align:center;
}

.procedures-panels{
    display:flex;
    width:100%;
    height:520px;
    gap:3px;
}

.procedure-panel{
    position:relative;
    flex:1 1 0;
    min-width:0;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:0;
    background:#263b49;
    color:#fff;
    cursor:pointer;
    text-align:left;
    transition:flex 600ms cubic-bezier(.22,.61,.36,1);
}

.procedure-bg,
.procedure-shade{
    position:absolute;
    inset:0;
}

.procedure-bg{
    transform:scale(1.01);
    transition:transform 700ms cubic-bezier(.22,.61,.36,1),filter 500ms ease;
}

.procedure-bg-rejuvenecimiento{
    background:linear-gradient(145deg,#526978,#1d303d);
}

.procedure-bg-facial{
    background:linear-gradient(145deg,#75818a,#293b47);
}

.procedure-bg-mamaria{
    background:linear-gradient(145deg,#8b817c,#39464e);
}

.procedure-bg-corporal{
    background:linear-gradient(145deg,#627682,#243844);
}

.procedure-bg-reconstructiva{
    background:linear-gradient(145deg,#77736f,#263943);
}

.procedure-shade{
    background:linear-gradient(180deg,rgba(7,17,24,.05) 20%,rgba(7,17,24,.25) 55%,rgba(7,17,24,.88) 100%);
}

.procedure-panel-content{
    position:absolute;
    z-index:2;
    left:clamp(1rem,2vw,1.6rem);
    right:clamp(1rem,2vw,1.6rem);
    bottom:1.7rem;
}

.procedure-panel strong{
    display:block;
    max-width:210px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(1.15rem,1.6vw,1.65rem);
    font-weight:400;
    line-height:1.08;
}

.procedure-panel small{
    display:block;
    margin-top:.4rem;
    color:rgba(255,255,255,.72);
    font-size:.7rem;
    line-height:1.4;
}

.procedure-more{
    display:block;
    max-height:0;
    margin-top:0;
    overflow:hidden;
    opacity:0;
    color:#a8d7db;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.06em;
    transition:opacity 300ms ease,max-height 300ms ease,margin 300ms ease;
}

.procedure-panel:hover,
.procedure-panel.is-active{
    flex:1.65 1 0;
}

.procedure-panel:hover .procedure-bg,
.procedure-panel.is-active .procedure-bg{
    transform:scale(1.055);
}

.procedure-panel:hover .procedure-more,
.procedure-panel.is-active .procedure-more{
    max-height:40px;
    margin-top:1rem;
    opacity:1;
}

.procedure-details{
    max-width:900px;
    margin:0 auto;
}

.procedure-detail{
    display:none;
    padding:3rem 0 .5rem;
    animation:procedureFade 420ms ease both;
}

.procedure-detail.is-active{
    display:block;
}

.procedure-detail-label{
    color:var(--primary);
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.18em;
}

.procedure-detail h3{
    margin:.7rem 0 1.6rem;
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(2rem,3vw,3rem);
    font-weight:400;
}

.procedure-detail ul{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.85rem 2rem;
    margin:0 0 2rem;
    padding:0;
    list-style:none;
}

.procedure-detail li{
    position:relative;
    padding:.8rem 0 .8rem 1.4rem;
    border-bottom:1px solid rgba(255,255,255,.1);
    color:rgba(255,255,255,.82);
    font-size:.95rem;
}

.procedure-detail li::before{
    content:"";
    position:absolute;
    left:0;
    top:1.2rem;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#86c3ca;
}

.procedure-cta{
    min-height:50px;
    padding:0 1.5rem;
    display:inline-flex;
    align-items:center;
    gap:.9rem;
    border-radius:100px;
    background:var(--primary);
    color:#fff;
    text-decoration:none;
    font-size:.9rem;
    font-weight:600;
    transition:transform 180ms ease,background 180ms ease,box-shadow 180ms ease;
}

.procedure-cta span{
    transition:transform 220ms ease;
}

@media(hover:hover){
    .procedure-cta:hover{
        transform:translateY(-2px);
        background:var(--primary-dark);
        box-shadow:0 14px 35px rgba(0,0,0,.18);
    }

    .procedure-cta:hover span{
        transform:translateX(5px);
    }
}

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

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

    .procedures-intro{
        margin-bottom:2rem;
    }

    .procedures-panels{
        height:auto;
        display:grid;
        grid-template-columns:1fr;
        gap:.7rem;
    }

    .procedure-panel{
        min-height:150px;
        border-radius:18px;
    }

    .procedure-panel:hover,
    .procedure-panel.is-active{
        flex:initial;
    }

    .procedure-panel-content{
        bottom:1.25rem;
    }

    .procedure-panel strong{
        max-width:280px;
        font-size:1.45rem;
    }

    .procedure-more{
        max-height:40px;
        margin-top:.65rem;
        opacity:.85;
    }

    .procedure-detail{
        padding-top:2rem;
    }

    .procedure-detail ul{
        grid-template-columns:1fr;
        gap:0;
    }
}

@media(prefers-reduced-motion:reduce){
    .procedure-panel,
    .procedure-bg,
    .procedure-more,
    .procedure-detail,
    .procedure-cta,
    .procedure-cta span{
        transition:none!important;
        animation:none!important;
    }
}


/* PROCEDIMIENTOS - FOTOS DEFINITIVAS */
.procedure-bg-rejuvenecimiento{
    background-image:url("images/procedimientos/rejuvenecimiento-facial.jpg");
    background-size:cover;
    background-position:center;
}

.procedure-bg-facial{
    background-image:url("images/procedimientos/cirugia-facial.jpg?v=20260922-2");
    background-size:cover;
    background-position:center;
}

.procedure-bg-mamaria{
    background-image:url("images/procedimientos/cirugia-mamaria.jpg");
    background-size:cover;
    background-position:center;
}

.procedure-bg-corporal{
    background-image:url("images/procedimientos/contorno-corporal.jpg");
    background-size:cover;
    background-position:center;
}

.procedure-bg-reconstructiva{
    background-image:url("images/procedimientos/cirugia-reconstructiva.jpg?v=20260922-2");
    background-size:cover;
    background-position:center;
}


/* PROCEDIMIENTOS MOBILE - SIN BORDES FANTASMA */
@media(max-width:800px){
    .procedure-panel,
    .procedure-bg,
    .procedure-shade{
        overflow:hidden;
    }

    .procedure-panel:hover .procedure-bg,
    .procedure-panel.is-active .procedure-bg{
        transform:scale(1.01);
    }

    .procedure-panel{
        isolation:isolate;
    }
}


/* PROCEDIMIENTOS - TEMA CLARO */
.procedures-section{
    background:
        radial-gradient(circle at 50% 25%,rgba(255,255,255,.58) 0%,transparent 45%),
        linear-gradient(135deg,#e4efec 0%,#d8e8e3 48%,#cfdfda 100%);
}

.procedures-eyebrow{
    color:#3894a1;
}

.procedures-section h2{
    color:#2F404F;
}

.procedures-intro{
    color:#587080;
}

.procedure-detail-label{
    color:#3894a1;
}

.procedure-detail h3{
    color:#2F404F;
}

.procedure-detail li{
    color:#526876;
    border-bottom-color:rgba(47,64,79,.13);
}

.procedure-detail li::before{
    background:#3894a1;
}


/* PROCEDIMIENTOS MOBILE - RECORTE LIMPIO DE FOTOS */
@media(max-width:800px){
    .procedure-bg{
        inset:-5%!important;
        transform:none!important;
        background-size:cover!important;
        background-position:center!important;
    }

    .procedure-panel:hover .procedure-bg,
    .procedure-panel.is-active .procedure-bg{
        transform:none!important;
    }
}


/* PROCEDIMIENTOS MOBILE - ESTADO SELECCIONADO */
@media(max-width:800px){
    .procedure-panel{
        border:1px solid transparent;
        transition:border-color 260ms ease,box-shadow 260ms ease;
    }

    .procedure-panel .procedure-shade{
        transition:background 260ms ease;
    }

    .procedure-panel.is-active{
        border-color:rgba(56,148,161,.8);
        box-shadow:0 0 0 2px rgba(56,148,161,.12),0 12px 30px rgba(47,64,79,.14);
    }

    .procedure-panel.is-active .procedure-shade{
        background:linear-gradient(180deg,rgba(7,17,24,.20) 0%,rgba(7,17,24,.42) 55%,rgba(7,17,24,.88) 100%);
    }

    .procedure-panel.is-active .procedure-more{
        color:#bcecf0;
        opacity:1;
    }
}

@media(prefers-reduced-motion:reduce){
    .procedure-panel,
    .procedure-panel .procedure-shade{
        transition:none!important;
    }
}


/* HERO MOBILE - ZOOM Y LEGIBILIDAD */
@media(max-width:800px){
    .hero-background{
        background-size:auto 105%!important;
        background-position:58% center!important;
        transform:none!important;
    }

    .hero-overlay{
        background:
            linear-gradient(180deg,
                rgba(247,252,255,.04) 0%,
                rgba(247,252,255,.08) 32%,
                rgba(247,252,255,.50) 58%,
                rgba(247,252,255,.90) 82%,
                rgba(247,252,255,.98) 100%
            ),
            linear-gradient(90deg,
                rgba(247,252,255,.38) 0%,
                rgba(247,252,255,.12) 65%,
                rgba(247,252,255,0) 100%
            )!important;
    }

    .hero .eyebrow,
    .hero h1,
    .hero-description{
        position:relative;
        z-index:2;
        text-shadow:0 1px 2px rgba(255,255,255,.55);
    }

    .hero-description{
        color:#263946!important;
        font-weight:500!important;
    }
}


/* HERO MOBILE - CONTENIDO MAS ANGOSTO */
@media(max-width:800px){
    .hero-content{
        width:82%!important;
        max-width:340px!important;
    }

    .hero .eyebrow{
        max-width:290px!important;
        line-height:1.65!important;
    }

    .hero-description{
        max-width:320px!important;
    }
}


/* Estado de envío del formulario */
.eligibility-submit:disabled {
    cursor: wait;
}

.submit-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -3px;
    animation: submit-spin 0.7s linear infinite;
}

@keyframes submit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast de confirmación del formulario */
.form-toast {
    position: fixed;
    right: 24px;
    bottom: 60px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 380px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
    pointer-events: none;
}

.form-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-toast-mark {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #399cab;
    color: #ffffff;
    font-weight: 700;
}

.form-toast div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-toast strong {
    color: #304657;
    font-size: 14px;
}

.form-toast div span {
    color: #607482;
    font-size: 13px;
}

@media (max-width: 600px) {
    .form-toast {
        left: 16px;
        right: 16px;
        bottom: 32px;
        max-width: none;
    }
}


/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.28);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .floating-whatsapp {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .floating-whatsapp svg {
        width: 29px;
        height: 29px;
    }
}


/* Ocultar WhatsApp flotante en Contacto y Redes Sociales */
.floating-whatsapp.is-hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}


/* =========================================================
   FOOTER - UBICACIONES Y DIRECCIONES
   ========================================================= */

.location-logos{
    align-items:flex-start!important;
}

.location-item{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    width:190px;
}

.location-item > img{
    display:block;
    margin-bottom:.8rem;
}

.location-address{
    display:flex;
    flex-direction:column;
    gap:.18rem;
    color:#2f404f;
    line-height:1.4;
}

.location-address strong{
    font-family:Georgia, "Times New Roman", serif;
    font-size:.92rem;
    font-weight:600;
    margin-bottom:.15rem;
}

.location-address span{
    font-size:.72rem;
}

/* Los nth-child antiguos apuntaban directamente a img.
   Ahora los logos viven dentro de .location-item. */
.location-item:nth-child(1) > img{
    transform:scale(1.10);
}

.location-item:nth-child(2) > img{
    transform:scale(.82);
}

@media(max-width:800px){
    .location-logos{
        grid-template-columns:repeat(2,minmax(0,190px))!important;
        align-items:start!important;
        column-gap:1.5rem!important;
        row-gap:1.5rem!important;
    }

    .location-item{
        width:100%;
        min-width:0;
    }

    .location-address{
        max-width:180px;
    }
}

@media(max-width:480px){
    .location-logos{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        column-gap:1rem!important;
    }

    .location-item{
        width:100%;
    }

    .location-address strong{
        font-size:.84rem;
    }

    .location-address span{
        font-size:.68rem;
    }
}
