
/* =========================================================
   DANTA 11 ORTHODONTICS
   Diseño responsive inspirado en la referencia original
   ========================================================= */

/* 1. VARIABLES */

:root {
    --blue: #07509f;
    --blue-dark: #063568;
    --blue-deep: #032e61;
    --cyan: #05bdf0;
    --cyan-dark: #00aee5;
    --cyan-light: #eaf9ff;
    --text: #315f9c;
    --text-light: #6585b0;
    --white: #ffffff;
    --background: #f3fbfe;
    --border: #dceff8;
    --shadow: 0 12px 35px rgba(5, 73, 135, 0.08);

    --font-title: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", Arial, sans-serif;
}

/* 2. RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.container {
    width: min(1180px, 90%);
    margin-inline: auto;
}

section[id] {
    scroll-margin-top: 85px;
}


/* 3. ENCABEZADO */

.header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #edf6fb;
}

.nav-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--blue);
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    font-size: 43px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text > span {
    font-size: 18px;
    font-weight: 400;
}

.logo-text small {
    margin-top: 5px;
    font-size: 6.5px;
    font-weight: 600;
    letter-spacing: 0.15px;
}

/* MENÚ */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(13px, 1.8vw, 27px);
}

.nav a {
    position: relative;
    padding: 10px 0;
    color: #3c5d83;
    font-size: 11px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--cyan);
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 28px;
    cursor: pointer;
}


/* 4. BOTONES */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(110deg, #08c6f4, #00b1ed);
    box-shadow: 0 6px 18px rgba(0, 183, 239, 0.12);
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 183, 239, 0.25);
}

.btn-outline {
    min-height: 38px;
    padding: 9px 19px;
    color: var(--cyan-dark);
    border-color: var(--cyan);
    background: transparent;
}

.btn-outline:hover {
    color: var(--white);
    background: var(--cyan);
}

.btn-header {
    min-height: 40px;
    padding: 10px 19px;
    white-space: nowrap;
    font-size: 10px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.text-link:hover {
    color: var(--cyan);
}


/* =========================================================
   5. PORTADA PRINCIPAL
   Corrección del encuadre y del degradado de la fotografía
   Imagen: img/hero.jpg
   ========================================================= */

.hero {
    position: relative;
    min-height: 365px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;

    background-color: #edf8fc;

    background-image:
        linear-gradient(
            90deg,
            rgba(240, 250, 253, 0.99) 0%,
            rgba(240, 250, 253, 0.96) 30%,
            rgba(240, 250, 253, 0.80) 40%,
            rgba(240, 250, 253, 0.25) 54%,
            rgba(240, 250, 253, 0) 68%
        ),
        url("../img/hero.jpg");

    background-size: cover;
    background-position: center, 62% center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 365px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(490px, 51%);
    padding: 38px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--cyan-dark);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    flex-shrink: 0;
    background: var(--cyan);
}

.hero h1 {
    margin-bottom: 13px;
    color: var(--blue);
    font-family: var(--font-title);
    font-size: clamp(35px, 3.45vw, 49px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.1px;
}

.hero h1 span {
    display: block;
    color: var(--cyan);
}

.hero-copy > p {
    max-width: 430px;
    margin-bottom: 19px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.hero-note {
    position: absolute;
    top: 52px;
    right: 12px;
    color: var(--blue);
    font-family: var(--font-title);
    font-size: 21px;
    font-style: italic;
    line-height: 1.25;
    transform: rotate(-7deg);
}

.hero-note span {
    display: block;
    width: 80px;
    height: 3px;
    margin: 9px auto 0;
    background: var(--cyan);
    transform: rotate(-5deg);
}


/* 6. BENEFICIOS */

.benefits {
    padding: 27px 0 30px;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefit {
    position: relative;
    padding: 0 19px;
    border-right: 1px solid var(--border);
}

.benefit:first-child {
    padding-left: 0;
}

.benefit:last-child {
    padding-right: 0;
    border-right: 0;
}

.icon-circle {
    display: inline-grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 8px;
    border-radius: 50%;
    color: var(--cyan);
    background: #e9f9ff;
    font-size: 27px;
    line-height: 1;
}

.benefit h3,
.why-item h3 {
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.benefit p,
.why-item p {
    color: var(--text-light);
    font-size: 10px;
    line-height: 1.65;
}


/* 7. TRATAMIENTOS */

.section-light {
    background:
        radial-gradient(
            ellipse at 5% 50%,
            #e9f8fe 0%,
            transparent 45%
        ),
        #f3fbfe;
}

.treatments {
    padding: 43px 0 35px;
}

.treatments-layout {
    display: grid;
    grid-template-columns: 0.95fr 2.05fr;
    align-items: center;
    gap: 35px;
}

.section-copy h2,
.why-intro h2,
.specialist-copy h2 {
    margin-bottom: 12px;
    color: var(--blue);
    font-family: var(--font-title);
    font-size: clamp(25px, 2.25vw, 33px);
    font-weight: 500;
    line-height: 1.22;
}

.section-copy > p,
.why-intro > p,
.specialist-copy > p {
    margin-bottom: 17px;
    color: var(--text-light);
    font-size: 11px;
    line-height: 1.8;
}

.treatment-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.treatment-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 13px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(5, 73, 135, 0.13);
}

.treatment-card > img {
    width: 100%;
    height: 122px;
    object-fit: cover;
    object-position: center;
    background: #e5f5fb;
}

.treatment-info {
    position: relative;
    min-height: 154px;
    padding: 19px 17px 16px;
}

.treatment-info .icon-circle {
    position: absolute;
    top: -27px;
    left: 15px;
    width: 43px;
    height: 43px;
    border: 4px solid var(--white);
    box-sizing: content-box;
    margin: 0;
}

.treatment-info h3 {
    margin-bottom: 5px;
    color: var(--blue);
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.treatment-info p {
    margin-bottom: 13px;
    color: var(--text-light);
    font-size: 10px;
    line-height: 1.7;
}

.treatment-info > a {
    color: var(--cyan-dark);
    font-size: 10px;
    font-weight: 600;
}

.treatment-info > a:hover {
    color: var(--blue);
}


/* 8. POR QUÉ ELEGIR DANTA 11 */

.why-us {
    padding: 32px 0;
    background: var(--white);
}

.why-layout {
    display: grid;
    grid-template-columns: 1.65fr repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.why-intro {
    padding-right: 12px;
}

.why-intro h2 {
    margin-bottom: 7px;
    font-size: 25px;
}

.why-intro > p {
    margin-bottom: 13px;
}

.why-item {
    min-height: 95px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
}

.why-item .icon-circle {
    width: 37px;
    height: 37px;
    margin-bottom: 6px;
    font-size: 23px;
}

.why-item h3 {
    font-size: 10px;
}


/* 9. ESPECIALISTA */

.specialist {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    min-height: 245px;
    background:
        linear-gradient(90deg, #f0faff 0%, #ffffff 50%, #effaff 100%);
    overflow: hidden;
}

.specialist-photo,
.specialist-portrait {
    min-width: 0;
    min-height: 245px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.specialist-photo {
    background-image: url("../img/clinica.jpg");
}

.specialist-portrait {
    background-image: url("../img/doctora.jpg");
    background-position: center 25%;
}

.specialist-copy {
    align-self: center;
    padding: 28px 30px;
}

.specialist-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
}

.specialist-copy h2 {
    margin-bottom: 9px;
    font-size: 25px;
}

.specialist-copy > p {
    margin-bottom: 12px;
    font-size: 10px;
}

.specialist-copy .btn {
    font-size: 10px;
}


/* 10. CONTACTO Y UBICACIÓN */

.contact {
    position: relative;
    display: grid;
    grid-template-columns: 0.95fr 1.25fr 0.85fr;
    align-items: center;
    gap: 25px;
    min-height: 190px;
    padding: 25px 4%;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(115deg, #0876a7, #00548d 60%, #063d76);
}

.contact-landscape {
    position: absolute;
    inset: 0 auto 0 0;
    width: 32%;
    background:
        linear-gradient(90deg, rgba(0, 69, 111, 0.05), #08699b),
        url("../img/cholula.jpg") center / cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    opacity: 0.9;
}

.contact-content,
.map-box {
    position: relative;
    z-index: 1;
}

.contact-content {
    grid-column: 2;
}

.contact .eyebrow {
    margin-bottom: 3px;
    color: #8cecff;
    font-size: 9px;
}

.contact h2 {
    margin-bottom: 11px;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.3;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-details > div + div {
    padding-left: 17px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-details h3 {
    margin-bottom: 5px;
    color: #9eeeff;
    font-size: 11px;
}

.contact-details p {
    color: #f0faff;
    font-size: 10px;
    line-height: 1.7;
}

.map-box {
    height: 125px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.7);
    border-radius: 13px;
    background: #e5f3f8;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-button {
    position: absolute;
    right: 7px;
    bottom: 7px;
    min-height: 28px;
    padding: 6px 12px;
    font-size: 9px;
}


/* 11. LLAMADA A LA ACCIÓN */

.cta {
    position: relative;
    padding: 22px 0;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 4% 100%, #0879a8 0%, transparent 28%),
        linear-gradient(105deg, #06366e, #005b99);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta h2 {
    margin-bottom: 2px;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 23px;
    font-weight: 500;
}

.cta p {
    color: #e2f4ff;
    font-size: 11px;
}

.cta .btn {
    min-width: 200px;
}


/* 12. PIE DE PÁGINA */

.footer {
    background: var(--white);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 25px;
    padding-bottom: 25px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-nav a,
.social-links {
    font-size: 9px;
}

.footer-nav a {
    color: var(--text);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--cyan);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    white-space: nowrap;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    font-size: 15px;
    font-weight: 700;
}

.social-links a:hover {
    color: var(--white);
    background: var(--cyan);
}

.social-links > span {
    margin-left: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 13px;
    padding-bottom: 16px;
    border-top: 1px solid #e8f1f6;
    color: var(--text-light);
    font-size: 9px;
}

.footer-bottom > div {
    display: flex;
    gap: 10px;
}

.footer-bottom a:hover {
    color: var(--cyan);
}


/* =========================================================
   13. LAPTOPS PEQUEÑAS
   ========================================================= */

@media (max-width: 1100px) {
    .nav-container {
        gap: 15px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .logo-text strong {
        font-size: 21px;
    }

    .logo-text > span {
        font-size: 16px;
    }

    .nav {
        gap: 13px;
    }

    .nav a {
        font-size: 10px;
    }

    .btn-header {
        padding-inline: 13px;
    }

    .treatments-layout {
        gap: 24px;
    }

    .treatment-cards {
        gap: 10px;
    }

    .treatment-info {
        padding-inline: 12px;
    }

    .why-layout {
        gap: 12px;
    }

    .why-item {
        padding-left: 12px;
    }

    .footer-main {
        flex-wrap: wrap;
    }
}


/* =========================================================
   14. TABLETS
   ========================================================= */

@media (max-width: 850px) {
    .nav-container {
        min-height: 76px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .btn-header {
        margin-left: auto;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;

        padding: 10px 5% 18px;
        border-top: 1px solid var(--border);
        background: var(--white);
        box-shadow: 0 14px 22px rgba(0, 52, 105, 0.08);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid #eef5f9;
        font-size: 13px;
    }

    .nav a::after {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 350px;
    }

    .hero {
        background-position: center, 62% center;
    }

    .hero-copy {
        width: 58%;
    }

    .hero-note {
        right: 0;
        font-size: 16px;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 25px;
    }

    .benefit {
        padding: 0 15px;
    }

    .benefit:nth-child(3) {
        border-right: 0;
    }

    .benefit:nth-child(4) {
        padding-left: 0;
    }

    .treatments-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-copy {
        max-width: 550px;
    }

    .treatment-card > img {
        height: 160px;
    }

    .treatment-info {
        min-height: 160px;
        padding-inline: 16px;
    }

    .why-layout {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .why-intro {
        grid-column: 1 / -1;
        max-width: 550px;
    }

    .why-item:first-of-type {
        padding-left: 0;
        border-left: 0;
    }

    .specialist {
        grid-template-columns: 1fr 1fr;
    }

    .specialist-photo {
        min-height: 250px;
    }

    .specialist-copy {
        padding: 28px;
    }

    .specialist-portrait {
        grid-column: 1 / -1;
        min-height: 320px;
        background-position: center 30%;
    }

    .contact {
        grid-template-columns: 1fr 0.85fr;
        gap: 20px;
        padding: 30px 5%;
    }

    .contact-landscape {
        width: 38%;
        opacity: 0.35;
    }

    .contact-content {
        grid-column: 1;
    }

    .map-box {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-main {
        gap: 22px;
    }

    .footer-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}


/* =========================================================
   15. CELULARES
   Portada con fotografía arriba y texto legible abajo
   ========================================================= */

@media (max-width: 560px) {
    body {
        font-size: 13px;
    }

    .container {
        width: 90%;
    }

    .nav-container {
        min-height: 70px;
        gap: 10px;
    }

    .logo {
        gap: 7px;
    }

    .logo-icon {
        width: 37px;
        height: 37px;
        font-size: 29px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text > span {
        font-size: 14px;
    }

    .logo-text small {
        font-size: 5px;
    }

    .btn-header {
        display: none;
    }

    .menu-toggle {
        font-size: 26px;
    }

    /* PORTADA MÓVIL CORREGIDA */

    .hero {
        min-height: 540px;
        display: flex;
        align-items: flex-end;

        background-color: #eff9fc;

        background-image:
            linear-gradient(
                to bottom,
                rgba(239, 249, 252, 0) 0%,
                rgba(239, 249, 252, 0) 29%,
                rgba(239, 249, 252, 0.22) 39%,
                rgba(239, 249, 252, 0.83) 51%,
                rgba(239, 249, 252, 0.98) 62%,
                #eff9fc 73%
            ),
            url("../img/hero.jpg");

        background-size:
            100% 100%,
            auto 340px;

        background-position:
            center,
            62% top;

        background-repeat: no-repeat;
    }

    .hero-content {
        width: 90%;
        min-height: 540px;
        display: flex;
        align-items: flex-end;
    }

    .hero-copy {
        width: 100%;
        padding: 0 0 27px;
    }

    .hero .eyebrow {
        margin-bottom: 11px;
        font-size: 9px;
    }

    .hero h1 {
        margin-bottom: 12px;
        font-size: clamp(30px, 8.3vw, 39px);
        line-height: 1.12;
        letter-spacing: -0.7px;
    }

    .hero-copy > p {
        max-width: 100%;
        margin-bottom: 17px;
        font-size: 11px;
        line-height: 1.7;
    }

    .hero-actions {
        gap: 15px;
    }

    .hero-actions .btn {
        padding: 11px 15px;
        font-size: 10px;
    }

    .text-link {
        gap: 6px;
        font-size: 10px;
    }

    .hero-note {
        top: 18px;
        right: 5px;
        font-size: 15px;
    }

    /* BENEFICIOS */

    .benefits {
        padding: 26px 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }

    .benefit {
        padding: 0 12px;
        border-right: 0;
    }

    .benefit:nth-child(odd) {
        padding-left: 0;
    }

    .benefit:nth-child(even) {
        border-left: 1px solid var(--border);
    }

    .benefit:last-child {
        grid-column: 1 / -1;
        padding-top: 5px;
    }

    .benefit h3 {
        font-size: 11px;
    }

    .benefit p {
        font-size: 10px;
    }

    /* TRATAMIENTOS */

    .treatments {
        padding: 35px 0;
    }

    .treatments-layout {
        gap: 26px;
    }

    .section-copy h2,
    .why-intro h2,
    .specialist-copy h2 {
        font-size: 29px;
    }

    .section-copy > p,
    .why-intro > p,
    .specialist-copy > p {
        font-size: 12px;
    }

    .treatment-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .treatment-card > img {
        height: 190px;
    }

    .treatment-info {
        min-height: auto;
        padding: 21px 20px 20px;
    }

    .treatment-info h3 {
        font-size: 19px;
    }

    .treatment-info p {
        font-size: 11px;
    }

    .treatment-info > a {
        font-size: 11px;
    }

    /* POR QUÉ ELEGIRNOS */

    .why-us {
        padding: 32px 0;
    }

    .why-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 23px 14px;
    }

    .why-intro {
        grid-column: 1 / -1;
    }

    .why-item,
    .why-item:first-of-type {
        min-height: 0;
        padding-left: 12px;
        border-left: 1px solid var(--border);
    }

    .why-item:nth-of-type(2n) {
        padding-left: 0;
        border-left: 0;
    }

    .why-item h3 {
        font-size: 11px;
    }

    .why-item p {
        font-size: 10px;
    }

    /* ESPECIALISTA */

    .specialist {
        grid-template-columns: 1fr;
    }

    .specialist-photo {
        min-height: 230px;
    }

    .specialist-copy {
        padding: 32px 5%;
    }

    .specialist-portrait {
        grid-column: auto;
        min-height: 290px;
        background-position: center 25%;
    }

    /* CONTACTO */

    .contact {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 30px 5%;
    }

    .contact-landscape {
        width: 100%;
        opacity: 0.13;
        clip-path: none;
    }

    .contact-content {
        grid-column: auto;
    }

    .contact h2 {
        font-size: 27px;
    }

    .contact-details {
        gap: 12px;
    }

    .contact-details > div + div {
        padding-left: 12px;
    }

    .contact-details p {
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    .map-box {
        grid-column: auto;
        grid-row: auto;
        height: 210px;
    }

    /* LLAMADA A LA ACCIÓN */

    .cta {
        padding: 27px 0;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .cta h2 {
        font-size: 25px;
    }

    .cta p {
        font-size: 11px;
    }

    .cta .btn {
        min-width: 0;
    }

    /* PIE DE PÁGINA */

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        order: 0;
    }

    .footer-nav a {
        font-size: 11px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        font-size: 9px;
    }

    .footer-bottom > div {
        flex-wrap: wrap;
    }
}


/* 16. REDUCIR ANIMACIONES */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* PRUEBA */

/* ==========================================
   DANTA 11 - TRATAMIENTOS
   Adaptado al HTML actual
========================================== */

.treatments {
    padding: 36px 0 34px;
    background:
        radial-gradient(
            ellipse at 5% 45%,
            rgba(218, 244, 253, 0.75),
            transparent 48%
        ),
        #f1faff;
}

.treatments-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.05fr);
    align-items: center;
    gap: 32px;
}

.treatments .section-copy {
    min-width: 0;
}

.treatments .section-copy .eyebrow {
    margin-bottom: 10px;
}

.treatments .section-copy h2 {
    max-width: 350px;
    margin-bottom: 12px;
    color: #074b98;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(27px, 2.4vw, 33px);
    font-weight: 500;
    line-height: 1.2;
}

.treatments .section-copy > p {
    max-width: 370px;
    margin-bottom: 17px;
    color: #6485b1;
    font-size: 11px;
    line-height: 1.8;
}

/* GRID DE LAS TRES TARJETAS */

.treatment-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 13px;
    min-width: 0;
}

/* TARJETA */

.treatment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(17, 91, 139, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(17, 91, 139, 0.12);
}

/* FOTOGRAFÍAS */

.treatment-card > img {
    display: block;
    width: 100%;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    background: #e7f5fb;
    transition: transform 0.4s ease;
}

.treatment-card:hover > img {
    transform: scale(1.04);
}

/* INFORMACIÓN */

.treatment-info {
    position: relative;
    flex: 1;
    min-height: 150px;
    padding: 21px 16px 16px;
    background: #ffffff;
}

.treatment-info .icon-circle {
    position: absolute;
    top: -25px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 4px solid #ffffff;
    border-radius: 50%;
    color: #00baf0;
    background: #e8f9ff;
    font-size: 23px;
    line-height: 1;
    box-sizing: content-box;
}

.treatment-info h3 {
    margin: 0 0 6px;
    color: #074b98;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.treatment-info p {
    margin: 0 0 12px;
    color: #6485b1;
    font-size: 10px;
    line-height: 1.65;
}

.treatment-info > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00aee8;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.treatment-info > a:hover {
    color: #074b98;
}

/* TABLET */

@media (max-width: 850px) {
    .treatments-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .treatments .section-copy {
        max-width: 540px;
    }

    .treatment-card > img {
        height: 145px;
    }

    .treatment-info {
        min-height: 155px;
    }
}

/* CELULAR */

@media (max-width: 560px) {
    .treatments {
        padding: 32px 0;
    }

    .treatments-layout {
        gap: 23px;
    }

    .treatments .section-copy h2 {
        max-width: 360px;
        font-size: 29px;
    }

    .treatments .section-copy > p {
        font-size: 12px;
    }

    .treatment-cards {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .treatment-card > img {
        height: 190px;
    }

    .treatment-info {
        min-height: 0;
        padding: 23px 18px 19px;
    }

    .treatment-info h3 {
        font-size: 18px;
    }

    .treatment-info p {
        font-size: 11px;
    }

    .treatment-info > a {
        font-size: 11px;
    }
}


/* ==============================
   MODALES DE TRATAMIENTOS
============================== */

.modal-trigger {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    color: #1769aa;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
}

.modal-trigger:hover {
    color: #0b416f;
}

/* Fondo oscuro */
.treatment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(10, 24, 40, 0.72);
    backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease,
                visibility 0.25s ease;
}

/* Modal abierto */
.treatment-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ventana */
.modal-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 38px;
    border-radius: 22px;
    background: #ffffff;
    color: #243447;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.treatment-modal.is-open .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin: 12px 0 18px;
    color: #153c5a;
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.modal-content h3 {
    margin: 24px 0 12px;
    color: #153c5a;
    font-size: 18px;
}

.modal-content p,
.modal-content li {
    font-size: 15px;
    line-height: 1.8;
}

.modal-content ul {
    padding-left: 22px;
}

.modal-content li {
    margin-bottom: 7px;
}

/* Imagen del tratamiento */
.modal-content > img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #eef4f8;
    color: #153c5a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.modal-close:hover {
    background: #dceaf4;
    transform: rotate(90deg);
}

.modal-note {
    padding: 14px 16px;
    border-left: 3px solid #76a9d1;
    background: #f2f7fb;
    border-radius: 0 8px 8px 0;
    color: #526578;
}

.modal-appointment {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
}

/* Evitar scroll de la página detrás del modal */
body.modal-open {
    overflow: hidden;
}

/* Adaptación a celulares */
@media (max-width: 600px) {
    .treatment-modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 92vh;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .modal-content > img {
        max-height: 200px;
    }

    .modal-content p,
    .modal-content li {
        font-size: 14px;
    }

    .modal-appointment {
        width: 100%;
        text-align: center;
    }
}



/* ==============================
   MODAL DE LA DOCTORA
============================== */

.modal-doctora-content {
    max-width: 900px;
}

.doctor-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 30px;
    align-items: start;
    margin-top: 22px;
}

.doctor-modal-photo img {
    display: block;
    width: 100%;
    min-height: 360px;
    max-height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

.doctor-modal-info h2 {
    margin-top: 0;
    font-size: clamp(27px, 3vw, 36px);
}

.doctor-subtitle {
    color: #1769aa;
    font-weight: 600;
}

.doctor-modal-info h3 {
    margin-top: 22px;
}

.doctor-modal-info ul {
    padding-left: 20px;
}

@media (max-width: 650px) {
    .doctor-modal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-modal-photo img {
        min-height: 220px;
        max-height: 300px;
    }
}


/* ==============================
   WHATSAPP FLOTANTE
============================== */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;
    border-radius: 50px;
    background: #1769aa;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(21, 60, 90, 0.25);
    transition: transform 0.25s ease,
                background 0.25s ease,
                box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    background: #12558b;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(21, 60, 90, 0.32);
}

.whatsapp-float svg {
    flex-shrink: 0;
}

/* Adaptación para celular */
@media (max-width: 600px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        padding: 14px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float svg {
        width: 27px;
        height: 27px;
    }
}

/* ==============================
   MODAL SOBRE DANTA 11
============================== */

.modal-about-content {
    width: min(900px, 94%);
    max-width: 900px;
    max-height: 88vh;
    overflow-y: auto;
}

.about-description,
.about-brands > p {
    line-height: 1.8;
    margin: 18px 0 28px;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0 36px;
}

.about-step,
.about-brand-card {
    padding: 20px;
    border: 1px solid rgba(100, 150, 175, 0.22);
    border-radius: 14px;
    background: var(--card-bg, #fff);
}

.about-step > span {
    display: inline-block;
    margin-bottom: 12px;
    color: #4387a8;
    font-size: 24px;
    font-weight: 700;
}

.about-step h4,
.about-brand-card h4 {
    margin: 0 0 12px;
    font-size: 17px;
}

.about-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.about-brands {
    margin-top: 30px;
}

.about-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.about-brand-card ul {
    margin: 0;
    padding-left: 20px;
}

.about-brand-card li {
    padding: 5px 0;
    line-height: 1.5;
}

.about-note {
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .modal-about-content {
        width: 94%;
        max-height: 85vh;
        padding: 24px 18px;
    }

    .about-steps,
    .about-brand-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   CARRUSEL ANIMADO DE MARCAS
============================== */

.brands-carousel-section {
    margin: 38px 0 25px;
    padding: 28px 0;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(100, 150, 175, 0.2);
}

.brands-carousel-section h3 {
    margin: 8px 0 28px;
    font-size: clamp(22px, 3vw, 30px);
}

.brands-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;

    /* Desvanecimiento suave en los bordes */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 7%,
        #000 93%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 7%,
        #000 93%,
        transparent
    );
}

.brands-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: brandsScroll 42s linear infinite;
    will-change: transform;
}

.brand-logo {
    width: 160px;
    height: 100px;
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    padding: 18px;
    border: 1px solid rgba(100, 150, 175, 0.16);
    border-radius: 15px;
    background: #ffffff;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo:hover {
    transform: translateY(-4px);
}

/* Desplazamiento continuo de derecha a izquierda */
@keyframes brandsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pausar al colocar el cursor encima */
.brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

/* Accesibilidad: respetar la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
    }
}

@media (max-width: 600px) {
    .brand-logo {
        width: 125px;
        height: 82px;
        flex-basis: 125px;
        margin-right: 12px;
        padding: 13px;
    }

    .brand-logo img {
        max-height: 50px;
    }

    .brands-track {
        animation-duration: 32s;
    }
}


/* LOGO OFICIAL DANTA 11 */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: 175px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Laptops y tablets */
@media (max-width: 1024px) {
    .logo-image {
        width: 155px;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .logo-image {
        width: 145px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 125px;
    }
}

/* Ajustes de contacto y anclas */
html { scroll-behavior: smooth; }
section[id], #servicios { scroll-margin-top: 90px; }
.contact-details a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 851px) { .contact-details { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .contact-details > div + div { padding-left: 0; border-left: 0; } }
@media (max-width: 850px) {
    .contact-details > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
    .contact-details a { word-break: normal; overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
    .header .btn-primary span { display: none; }
    .header .btn-primary { white-space: nowrap; }
}
.btn-ico { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
@media (max-width: 560px) { .header .btn-primary .btn-ico { display: none; } }
.icon-circle .ico { width: 55%; height: 55%; }
.ico-inline { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.social-links a svg { display: block; }
