/* ============================================================
   NEXA FISIOTERAPIA Y SALUD
   Hoja de estilos principal
   ------------------------------------------------------------
   Organizacion:
     1. Variables y tokens
     2. Reset y base
     3. Utilidades y accesibilidad
     4. Tipografia de seccion
     5. Botones
     6. Cabecera y navegacion
     7. Portada
     8. Franja de confianza
     9. Sobre nosotros
    10. Servicios
    11. Por que elegirnos
    12. Reservar cita
    13. Contacto y mapa
    14. Pie de pagina
    15. Botones flotantes
    16. Paginas legales
   ============================================================ */


/* ============================================================
   1. VARIABLES Y TOKENS
   ------------------------------------------------------------
   Se mantiene la identidad azul marino + oro de la clinica.
   Los tonos marcados como "texto" estan calculados para superar
   el contraste minimo 4.5:1 que exige la norma WCAG AA.
   ============================================================ */
:root {
    /* Marca */
    --navy: #0A2E5C;
    --navy-light: #123d78;
    --navy-dark: #071f3f;
    --gold: #D4AF37;
    --gold-dark: #B8960C;
    --gold-text: #7d5f00;          /* oro legible sobre fondos claros */
    --gold-light: #F5EDDA;
    --gold-soft: #FBF6EA;
    --teal: #4CA6A8;
    --teal-text: #2c7a7c;          /* turquesa legible sobre blanco */
    --teal-light: #E0F0F0;

    /* Neutros */
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --text: #333333;
    --text-light: #5b6472;
    --text-dark: #1a1a1a;

    /* Sobre fondo oscuro */
    --on-dark: #A9C4E6;
    --on-dark-dim: #8FAEDA;

    /* Tipografia */
    --font-heading: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(10, 46, 92, 0.06);
    --shadow-sm: 0 2px 6px rgba(10, 46, 92, 0.07);
    --shadow-md: 0 6px 18px rgba(10, 46, 92, 0.09);
    --shadow-lg: 0 14px 34px rgba(10, 46, 92, 0.12);
    --shadow-xl: 0 24px 60px rgba(10, 46, 92, 0.16);

    /* Formas */
    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    --transition: 0.25s ease;
    --header-height: 4.5rem;
}

@media (min-width: 1024px) {
    :root { --header-height: 5.5rem; }
}


/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 0.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img,
svg,
iframe {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

address {
    font-style: normal;
}

main {
    display: block;
}

/* Cualquier elemento con el atributo "hidden" debe ocultarse siempre.
   Sin esta regla, los estilos de display (flex, inline-flex...) de mas
   abajo ganarian al atributo y el elemento seguiria viendose.
   Es lo que permite que los datos de contacto pendientes no aparezcan. */
[hidden] {
    display: none !important;
}


/* ============================================================
   3. UTILIDADES Y ACCESIBILIDAD
   ============================================================ */
.container {
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 1.125rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.75rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* Enlace de salto: solo visible al navegar con el teclado */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
    top: 0;
}

/* Contorno visible al navegar con teclado */
:focus-visible {
    outline: 3px solid var(--gold-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Se preserva el foco visible aunque el enlace se pinte sobre fondo oscuro */
.on-dark :focus-visible {
    outline-color: var(--gold);
}

.check-list {
    display: grid;
    gap: 0.625rem;
    margin: 1.75rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.875rem;
    color: var(--text-light);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c7a7c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   4. TIPOGRAFIA DE SECCION
   ============================================================ */
.section-header {
    max-width: 46rem;
    margin: 0 auto 3rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .section-header { margin-bottom: 3.75rem; }
}

.section-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-tag--gold { color: var(--gold-text); }
.section-tag--teal { color: var(--teal-text); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.section-title--light { color: var(--white); }

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: var(--text-light);
}

.section-subtitle--light { color: var(--on-dark); }


/* ============================================================
   5. BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

/* El texto va en azul marino sobre el oro: 6.4:1 de contraste */
.btn--primary {
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--gold-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}


/* ============================================================
   6. CABECERA Y NAVEGACION
   ============================================================ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header--scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-height);
}

/* El logotipo ya incluye el nombre de la clinica, asi que no se repite
   el texto al lado. Se respeta su proporcion real (568x304). */
.nav__logo {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.nav__logo-img {
    height: 2.5rem;
    width: auto;
}

@media (min-width: 1024px) {
    .nav__logo-img { height: 3.5rem; }
}

.nav__nav {
    display: flex;
    align-items: center;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

/* En pantallas pequenas el menu baja desplegable bajo la cabecera */
@media (max-width: 1023px) {
    .nav__nav {
        position: static;
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem 1.125rem 1.25rem;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav__menu--open { display: flex; }

    .nav__menu li { width: 100%; }

    .nav__link,
    .nav__cta {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.8125rem 1rem;
    }
}

.nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-full);
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--navy);
    background: var(--gold-light);
}

.nav__cta {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.625rem 1.375rem;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.nav__cta:hover,
.nav__cta:focus-visible {
    background: var(--gold-dark);
    box-shadow: var(--shadow-md);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .nav__toggle { display: none; }
}

.nav__toggle:hover { background: var(--gold-light); }

.nav__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   7. PORTADA
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + 3rem) 0 3.5rem;
    background: linear-gradient(165deg, #f7f9fc 0%, #e9eef7 45%, #f8f2e4 100%);
}

@media (min-width: 1024px) {
    .hero {
        display: flex;
        align-items: center;
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(var(--header-height) + 2.5rem) 0 4.5rem;
    }
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.hero__blob--gold {
    top: 6%;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.34) 0%, transparent 70%);
}

.hero__blob--teal {
    bottom: 2%;
    left: -5rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(76, 166, 168, 0.28) 0%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__content {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.5rem;
    }
}

.hero__text { text-align: center; }

@media (min-width: 1024px) {
    .hero__text { text-align: left; }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.4375rem 1rem;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold-text);
}

.hero__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--teal);
    border-radius: 50%;
    animation: latido 2.4s ease-in-out infinite;
}

@keyframes latido {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.125rem, 1.5rem + 3.2vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 1.125rem;
}

.hero__title-accent { color: var(--gold); }

.hero__lead {
    max-width: 34rem;
    margin: 0 auto 2rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-light);
}

@media (min-width: 1024px) {
    .hero__lead {
        margin: 0 0 2rem;
        font-size: 1.125rem;
    }
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .hero__buttons { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
    .hero__buttons { justify-content: flex-start; }
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 34rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Aro decorativo detras de la fotografia */
.hero__ring {
    display: none;
}

@media (min-width: 1024px) {
    .hero__ring {
        display: block;
        position: absolute;
        inset: -1.25rem -1.25rem 1.25rem 1.25rem;
        border: 2px solid rgba(212, 175, 55, 0.5);
        border-radius: var(--radius-lg);
    }
}


/* ============================================================
   8. FRANJA DE CONFIANZA
   ============================================================ */
.trust {
    background: var(--white);
    padding: 2rem 0 0.5rem;
}

.trust__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem 1.25rem;
}

@media (min-width: 768px) {
    .trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.trust__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.trust__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal-text);
}

.trust__icon svg {
    width: 1rem;
    height: 1rem;
}


/* ============================================================
   9. SOBRE NOSOTROS
   ============================================================ */
.about {
    padding: 3.5rem 0 4.5rem;
    background: var(--white);
}

@media (min-width: 1024px) {
    .about { padding: 6rem 0; }
}

.about__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4.5rem;
    }
}

.about__media { position: relative; }

.about__frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about__deco {
    display: none;
}

@media (min-width: 1024px) {
    .about__deco {
        display: block;
        position: absolute;
        inset: 1.5rem -1.5rem -1.5rem 1.5rem;
        border-radius: var(--radius-lg);
        background: var(--gold-light);
    }
}

.about__text p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    color: var(--text-light);
}

.about__text p strong { color: var(--navy); }

.about__text .section-title { margin-bottom: 1.25rem; }

.about__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .about__buttons { flex-direction: row; }
}


/* ============================================================
   10. SERVICIOS
   ============================================================ */
.services {
    padding: 4rem 0;
    background: var(--gray-50);
}

@media (min-width: 1024px) {
    .services { padding: 6rem 0; }
}

.services__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .services__grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}

.service-card__image {
    position: relative;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.06);
}

.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--gold-light);
    color: var(--gold-text);
    transition: var(--transition);
}

.service-card__icon svg {
    width: 2rem;
    height: 2rem;
}

.service-card:hover .service-card__icon {
    background: var(--gold);
    color: var(--navy);
}

.service-card__title {
    margin-bottom: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--navy);
}

.service-card__text {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--teal-text);
}

.service-card__link svg {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition);
}

.service-card__link:hover { color: var(--navy); }
.service-card__link:hover svg { transform: translateX(3px); }


/* ============================================================
   11. POR QUE ELEGIRNOS
   ============================================================ */
.features {
    padding: 4rem 0;
    background: var(--white);
}

@media (min-width: 1024px) {
    .features { padding: 6rem 0; }
}

.features__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.feature {
    padding: 1.75rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    background: var(--white);
    border-color: var(--gold-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.125rem;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-text);
    transition: var(--transition);
}

.feature:hover .feature__icon {
    background: var(--teal);
    color: var(--white);
}

.feature__icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.feature__title {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--navy);
}

.feature__text {
    font-size: 0.9375rem;
    color: var(--text-light);
}


/* ============================================================
   12. RESERVAR CITA
   ============================================================ */
.booking {
    padding: 4rem 0;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-dark) 100%);
    color: var(--white);
}

@media (min-width: 1024px) {
    .booking { padding: 6rem 0; }
}

.booking__grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .booking__grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 3rem;
    }
}

.booking__info {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
}

.booking__info-title {
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.booking__steps {
    display: grid;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    counter-reset: paso;
}

.booking__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--on-dark);
}

.booking__steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 700;
}

.booking__note {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--on-dark);
}

.booking__note a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.booking__hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--on-dark-dim);
}

.booking__embed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.booking__embed iframe {
    width: 100%;
    height: 46rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--white);
}

.booking__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
}

.booking__placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-text);
}

.booking__placeholder-icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.booking__placeholder-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--navy);
}

.booking__placeholder-text {
    max-width: 22rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}


/* ============================================================
   13. CONTACTO Y MAPA
   ============================================================ */
.contact {
    padding: 4rem 0;
    background: var(--white);
}

@media (min-width: 1024px) {
    .contact { padding: 6rem 0; }
}

.contact__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr 1.05fr;
        gap: 3.5rem;
    }
}

.contact__title {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.375rem;
}

.contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius);
    background: var(--gold-light);
    color: var(--gold-text);
}

.contact__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
}

.contact__value {
    margin-top: 0.125rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.contact__value a:hover {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact__socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.contact__socials-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
}

.contact__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-text);
}

.contact__social:hover {
    background: var(--navy);
    color: var(--white);
}

.contact__social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact__panel {
    padding: 1.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
}

.contact__panel-text {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* --- Mapa que solo se carga cuando el visitante lo pide --- */
.map {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 15rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(rgba(10, 46, 92, 0.04), rgba(10, 46, 92, 0.04)),
        repeating-linear-gradient(45deg, var(--gray-50) 0 12px, var(--gray-100) 12px 24px);
}

.map iframe {
    width: 100%;
    height: 20rem;
    border: 0;
    display: block;
}

.map__button {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1.5rem 1.25rem;
    text-align: left;
    border-radius: var(--radius);
    transition: var(--transition);
}

.map__button:hover { background: rgba(255, 255, 255, 0.75); }

.map__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--gold-text);
    box-shadow: var(--shadow-xs);
}

.map__icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.map__text strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
}

.map__text small {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* --- Canales directos --- */
.contact__channels {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.contact__channels-title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--navy);
}

.channel {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 4.25rem;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.channel:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal-text);
}

.channel__icon--mail {
    background: var(--gold-light);
    color: var(--gold-text);
}

.channel--wa .channel__icon {
    background: #e6f7ee;
    color: #0f7a41;
}

.channel__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.channel strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
}

.channel small {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}


/* ============================================================
   14. PIE DE PAGINA
   ============================================================ */
.footer {
    margin-top: auto;
    background: var(--navy);
    color: var(--on-dark);
}

.footer__grid {
    display: grid;
    gap: 2.25rem;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
        gap: 2.5rem;
        padding: 4rem 0;
    }
}

.footer__logo {
    width: 8.5rem;
    height: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.footer__text {
    max-width: 22rem;
    font-size: 0.9375rem;
    color: var(--on-dark);
}

.footer__heading {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer__links {
    display: grid;
    gap: 0.625rem;
}

.footer__links a,
.footer__contact a {
    font-size: 0.9375rem;
    color: var(--on-dark);
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__contact p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* En las paginas legales el pie es lo unico que hay debajo, asi que no
   necesita la linea separadora superior. */
.footer__bottom--legal {
    border-top: 0;
}

.footer__bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--on-dark-dim);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.footer__legal a {
    font-size: 0.8125rem;
    color: var(--on-dark);
}

.footer__legal a:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   15. BOTONES FLOTANTES (movil)
   ============================================================ */
.fab {
    position: fixed;
    right: 0.875rem;
    bottom: 0.875rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

@media (min-width: 1024px) {
    .fab { display: none; }
}

.fab__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 1.125rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-size: 0.9375rem;
    font-weight: 700;
}

.fab__btn svg {
    width: 1.375rem;
    height: 1.375rem;
}

.fab__btn--cita {
    background: var(--gold);
    color: var(--navy);
}

.fab__btn--wa {
    background: #25D366;
    color: #06331a;
}

.fab__btn--tel {
    background: var(--navy);
    color: var(--white);
}


/* ============================================================
   16. PAGINAS LEGALES
   ============================================================ */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.legal-header .nav { height: var(--header-height); }

.legal {
    padding: calc(2rem) 0 4rem;
}

.legal__wrap {
    max-width: 50rem;
    margin: 0 auto;
}

.legal h1 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}

.legal__updated {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.legal h2 {
    margin: 2.25rem 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.legal h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy);
}

.legal p,
.legal li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.legal ul {
    margin: 0 0 1rem 1.25rem;
    list-style: disc;
}

.legal li { margin-bottom: 0.375rem; }

.legal a {
    color: var(--teal-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal a:hover { color: var(--navy); }

.legal__box {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
}

.legal__box p:last-child { margin-bottom: 0; }

/* Aviso de entorno de pruebas. Se elimina al pasar a producción real. */
.legal__box--aviso {
    border-left-color: var(--teal);
    background: var(--teal-light);
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-weight: 700;
    color: var(--navy);
}

.legal__back svg {
    width: 1rem;
    height: 1rem;
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9375rem;
}

.legal__table th,
.legal__table td {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: top;
    color: var(--text-light);
}

.legal__table th {
    background: var(--gray-50);
    color: var(--navy);
    font-weight: 700;
}
