/* ============================================================
   Tema base — secciones y componentes añadidos en FASE 4.
   Se mantiene aparte de styles.css (CSS heredado del tema original)
   para que la maquetación original quede intacta y localizable.
   ============================================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 2rem;
    z-index: 200;
    padding: 1.2rem 2rem;
    color: white;
    background-color: var(--color-primary);
    border-radius: 0.6rem;
}

.skip-link:focus {
    top: 2rem;
}

.section-head {
    margin-bottom: 5rem;
    text-align: center;
}

.section-head__subtitle {
    font-weight: 600;
    color: var(--color-orange3);
}

.section-head__title {
    position: relative;
    display: inline-block;
    font-family: "castoro";
    font-size: 4rem;
    font-weight: 500;
}

.section-head__text {
    max-width: 68rem;
    margin: 1.5rem auto 0;
    line-height: 1.9;
    color: var(--color-gray5);
}

.section-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--color-gray5);
    border: 1px dashed var(--color-gray);
    border-radius: 0.8rem;
}

/* ---------- Contenedores fluidos ---------- */
/* El tema original fijaba estos 3 contenedores reales a un `width` de
   1200px (no un `max-width`), así que nunca se encogían por debajo de esa
   medida: en Contacto esto desbordaba horizontalmente cualquier pantalla
   más estrecha de 1200px (prácticamente todos los móviles y tablets). */
.services__container,
.footer__container,
.contact__container {
    width: 100%;
}

/* Margen de seguridad: en un dispositivo más estrecho que sus 320px fijos,
   el panel no debe desbordar la pantalla. */
.layout__nav-mobile {
    max-width: 100%;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5rem;
    transition: all 300ms linear;
}

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

.btn-primary:hover {
    background-color: var(--color-black);
}

.btn-ghost {
    color: var(--color-black);
    border-color: var(--color-gray);
}

.btn-ghost:hover {
    color: white;
    background-color: var(--color-black);
}

/* El menú móvil tiene fondo oscuro: el logotipo va sobre una placa clara
   para que no parezca recortado sobre negro. */
.header-mobile__container-img {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: white;
    border-radius: 0.8rem;
}

/* ---------- Selector de idioma ---------- */

.lang-switcher {
    position: relative;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid var(--color-gray);
    border-radius: 3rem;
    transition: all 300ms linear;
}

.lang-switcher__toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.lang-switcher__chevron {
    font-size: 1rem;
    transition: transform 300ms linear;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__chevron {
    transform: rotate(180deg);
}

.lang-switcher__list {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    z-index: 50;
    min-width: 18rem;
    padding: 0.6rem;
    background-color: white;
    border: 1px solid var(--color-gray6);
    border-radius: 0.8rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms linear, visibility 200ms linear;
}

.lang-switcher__list.is-open {
    opacity: 1;
    visibility: visible;
}

.lang-switcher__link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    font-size: 1.4rem;
    border-radius: 0.6rem;
    transition: background-color 200ms linear;
}

.lang-switcher__link:hover {
    background-color: var(--color-white4);
}

.lang-switcher__link.is-active {
    font-weight: 700;
    color: var(--color-primary);
    background-color: var(--color-white3);
}

.lang-switcher__code {
    font-weight: 700;
}

.lang-switcher__name {
    color: var(--color-gray2);
}

/* ---------- Portada: animación de fibra + texto ---------- */

.layout__banner {
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 0 7rem;
    overflow: hidden;
}

/* Caja autocontenida (fondo, colores y brillos propios) con la escena de
   fibra óptica: no depende de la paleta del tema, igual que la referencia.
   Ocupa todo el ancho de la página, sin margen ni recuadro. */
.hero-banner {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

/* Alto propio (no "auto"): con preserveAspectRatio="xMidYMid slice" la
   escena se recorta sin deformarse para caber, junto con el texto de
   debajo, en la ventana visible al cargar la página. */
.hero-banner__svg {
    display: block;
    width: 100%;
    height: clamp(30rem, 46vh, 56rem);
}

/* Fibras tenues de fondo, con el brillo (glint) recorriéndolas por encima */
.hero-banner__fiber {
    stroke-dasharray: 10 8;
    animation: hero-flow 3.2s linear infinite;
}

.hero-banner__fiber--1 { animation-duration: 4s; animation-direction: reverse; }
.hero-banner__fiber--2 { animation-duration: 5s; }
.hero-banner__fiber--3 { animation-duration: 3.6s; animation-direction: reverse; }

@keyframes hero-flow {
    to {
        stroke-dashoffset: -180;
    }
}

.hero-banner__glint {
    stroke-dasharray: 0.04 0.5;
    animation: hero-glint 2.6s linear infinite;
}

.hero-banner__glint--1 { animation-duration: 3.2s; animation-direction: reverse; }
.hero-banner__glint--2 { animation-duration: 3.8s; }
.hero-banner__glint--3 { animation-duration: 2.9s; animation-direction: reverse; }

@keyframes hero-glint {
    to {
        stroke-dashoffset: -1;
    }
}

/* Nodos de conexión que laten a ritmos ligeramente distintos */
.hero-banner__node {
    transform-box: fill-box;
    transform-origin: center;
    animation: hero-node-pulse 2.4s ease-in-out infinite;
}

.hero-banner__node--0 { animation-delay: -0.4s; }
.hero-banner__node--1 { animation-delay: -1s; }
.hero-banner__node--2 { animation-delay: -1.6s; }
.hero-banner__node--3 { animation-delay: -2.1s; }
.hero-banner__node--4 { animation-delay: -1.3s; }

@keyframes hero-node-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Puntos de luz que recorren cada fibra de punta a punta */
.hero-banner__pulse {
    animation: hero-travel 2.6s linear infinite;
}

.hero-banner__pulse--1 { animation-duration: 3.4s; animation-delay: -1.1s; }
.hero-banner__pulse--2 { animation-duration: 3.9s; animation-delay: -2s; }
.hero-banner__pulse--3 { animation-duration: 3s; animation-delay: -0.6s; }

@keyframes hero-travel {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    94% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

.hero-banner__particle {
    animation: hero-twinkle 3.2s ease-in-out infinite;
}

@keyframes hero-twinkle {
    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.8;
    }
}

/* Anillos de conectividad que convergen sobre el logotipo */
.hero-banner__ring {
    transform-box: fill-box;
    transform-origin: center;
    fill: none;
    stroke: #bfeeff;
    opacity: 0;
    animation: hero-ring 8s ease-out infinite;
}

.hero-banner__ring--2 { animation-delay: 0.5s; }
.hero-banner__ring--3 { animation-delay: 1s; }

@keyframes hero-ring {
    0%,
    7% {
        opacity: 0;
        transform: scale(0.3);
    }

    20% {
        opacity: 0.9;
        transform: scale(0.55);
    }

    42%,
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

.hero-banner__halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: hero-halo 8s ease-in-out infinite;
}

@keyframes hero-halo {
    0%,
    8% {
        opacity: 0;
        transform: scale(0.65);
    }

    22% {
        opacity: 1;
        transform: scale(1.1);
    }

    72% {
        opacity: 0.95;
        transform: scale(1.16);
    }

    86%,
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* El logotipo emerge del fondo de la red de fibra, en bucle */
.hero-banner__brand {
    transform-box: fill-box;
    transform-origin: center;
    animation: hero-reveal 8s ease-in-out infinite;
}

@keyframes hero-reveal {
    0%,
    8% {
        opacity: 0;
        transform: scale(0.82);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    72% {
        opacity: 1;
        transform: scale(1);
    }

    86%,
    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

.hero-banner__wordmark {
    font-family: "castoro";
    font-size: 6rem;
    fill: #eaf6ff;
}

.hero-intro {
    position: relative;
    z-index: 2;
    max-width: 84rem;
    margin: 0 auto;
    padding-inline: 2rem;
    text-align: center;
}

.hero-intro__eyebrow {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.6rem 1.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
    border-radius: 5rem;
}

.hero-intro__title {
    font-family: "castoro";
    font-size: 4.4rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-black);
}

.hero-intro__text {
    margin-top: 2.4rem;
    font-size: 1.7rem;
    line-height: 1.9;
    color: var(--color-gray2);
}

.hero-intro__actions {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3.4rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner__fiber,
    .hero-banner__glint,
    .hero-banner__node,
    .hero-banner__particle,
    .hero-banner__ring,
    .hero-banner__halo,
    .hero-banner__brand {
        animation: none;
    }

    .hero-banner__pulse {
        display: none;
    }

    .hero-banner__ring {
        opacity: 0;
    }

    .hero-banner__halo,
    .hero-banner__brand {
        opacity: 1;
        transform: none;
    }
}

.layout[data-animations="off"] .hero-banner__fiber,
.layout[data-animations="off"] .hero-banner__glint,
.layout[data-animations="off"] .hero-banner__node,
.layout[data-animations="off"] .hero-banner__particle,
.layout[data-animations="off"] .hero-banner__ring,
.layout[data-animations="off"] .hero-banner__halo,
.layout[data-animations="off"] .hero-banner__brand {
    animation: none;
}

.layout[data-animations="off"] .hero-banner__pulse {
    display: none;
}

.layout[data-animations="off"] .hero-banner__ring {
    opacity: 0;
}

.layout[data-animations="off"] .hero-banner__halo,
.layout[data-animations="off"] .hero-banner__brand {
    opacity: 1;
    transform: none;
}

/* ---------- Sectores ---------- */

.therapies__container {
    flex-direction: column;
}

.therapies__grid {
    display: flex;
    gap: 2%;
    justify-content: space-between;
}

.therapies__therapy,
.therapy-2,
.therapy-3 {
    background-image: var(--sector-img);
}

.therapy__description {
    font-size: 1.4rem;
    line-height: 1.8;
}

/* ---------- Servicios ---------- */

.layout__services {
    height: auto;
    padding-bottom: 8rem;
}

/* Imagen decorativa justo debajo de «Our services», acotada para no
   sobrepasar el alto del texto de la derecha. */
.services__header-img {
    display: block;
    width: 100%;
    max-width: 32rem;
    height: auto;
    max-height: 24rem;
    margin-top: 2.4rem;
    object-fit: cover;
    border-radius: 1.2rem;
}

.services__description {
    text-align: justify;
}

.services__container-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* ---------- Tarjeta de servicio ---------- */

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-white2);
    border: 1px solid var(--color-gray6);
    border-radius: 1.2rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.08);
}

.service-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__ico {
    position: absolute;
    right: 2rem;
    bottom: -2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    font-size: 2rem;
    color: white;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 1rem 2rem color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 3.4rem 2.6rem 2.6rem;
}

.service-card__title {
    font-family: "castoro";
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-black);
}

.service-card__text {
    margin-top: 1.4rem;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-gray2);
}

.service-card__more {
    margin-top: auto;
    padding-top: 2rem;
}

.service-card__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
}

.service-card__summary::-webkit-details-marker {
    display: none;
}

.service-card__summary i {
    font-size: 1.2rem;
    transition: transform 250ms ease;
}

.service-card__more[open] .service-card__summary i {
    transform: rotate(180deg);
}

.service-card__detail {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray6);
}

.service-card__detail-title {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.service-card__detail-title:first-child {
    margin-top: 0;
}

.service-card__detail-text {
    margin-top: 0.8rem;
    font-size: 1.45rem;
    line-height: 1.8;
    color: var(--color-gray2);
}

.services__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray6);
}

/* ---------- Especialidades ---------- */

.couple-issues__container {
    flex-direction: column;
}

.couple-issues__list-issues {
    gap: 2%;
    row-gap: 8rem;
}

.c-issue__head {
    width: 100%;
}

.c-issue__text {
    margin-top: 1rem;
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--color-orange4);
}

/* ---------- Por qué Polixel ---------- */

.characteristics__container-video {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    background-image: none;
}

.characteristics__container-video img {
    width: 100%;
    height: auto;
    border-radius: 0.4rem;
}

/* ---------- Proceso ---------- */

.step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
    font-family: "lexend";
    font-size: 1.4rem;
    color: white;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* ---------- Sobre nosotros: texto a la izquierda, imagen a la derecha ---------- */

.experience__container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 5rem;
    max-width: 128rem;
    margin: 0 auto;
    padding: 6rem 3rem;
}

.experience__data {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.experience__partner-logo {
    display: block;
    width: auto;
    max-width: 12rem;
    max-height: 8rem;
    margin-bottom: 2.4rem;
}

.experience__description {
    text-align: justify;
}

.experience__body {
    line-height: 1.8;
    font-weight: 500;
    color: var(--color-gray11);
    text-align: justify;
}

/* La flecha cierra la sección: va después del ribbon de cifras, no
   dentro de la columna de texto. */
.experience__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.8rem;
    border-radius: 50%;
}

/* ---------- Sobre nosotros: ribbon de cifras (con contador) ---------- */
/* Un poco más grande que un dato suelto, pero sin competir con el
   título (5rem) ni con la foto de la columna de arriba. */

.experience__stats-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6rem;
    max-width: 100rem;
    margin: 2rem auto 5rem;
    padding: 0 3rem;
}

.stats-ribbon__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    min-width: 17rem;
    text-align: center;
}

.stats-ribbon__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.6rem;
    height: 6.6rem;
    border-radius: 1.2rem;
    background-color: var(--color-primary);
    color: white;
    font-size: 2.6rem;
}

.stats-ribbon__value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-black);
}

.stats-ribbon__unit {
    font-size: 1.8rem;
    font-weight: 600;
}

.stats-ribbon__caption {
    font-size: 1.4rem;
    color: var(--color-gray5);
}

.experience__container-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 1.2rem;
    overflow: hidden;
}

.experience__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- FAQ ---------- */

.layout__questions-section {
    display: flex;
    justify-content: center;
}

.questions-section__container {
    width: 1200px;
    max-width: 1200px;
    padding: 7rem 1rem;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq__item {
    padding: 2rem 2.4rem;
    background-color: var(--color-white4);
    border-radius: 0.8rem;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    font-size: 1.7rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__chevron {
    font-size: 1.3rem;
    color: var(--color-primary);
    transition: transform 300ms linear;
}

.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    margin-top: 1.5rem;
    line-height: 1.9;
    color: var(--color-gray2);
}

/* ---------- Llamada a la acción ---------- */

.layout__appointment::before {
    background-image: var(--cta-bg);
}

.appointment__container {
    flex-wrap: wrap;
}

.appointment__actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.appointment__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4rem;
    transition: all 300ms linear;
}

.appointment__btn-secondary:hover {
    color: var(--color-primary);
    background-color: white;
}

/* ---------- Contacto ---------- */

.layout__contact {
    display: flex;
    justify-content: center;
}

.contact__container {
    width: 1200px;
    max-width: 1200px;
    padding: 7rem 1rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.contact__where-title {
    margin-bottom: 2.5rem;
    font-family: "castoro";
    font-size: 2.6rem;
    font-weight: 500;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
}

.contact__detail-ico {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    color: var(--color-primary);
    background-color: var(--color-white4);
    border-radius: 50%;
}

.contact__detail-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray5);
}

.contact__detail-value {
    display: block;
    font-size: 1.6rem;
}

/* El mapa se carga siempre al entrar en la página, sin gesto previo. */
.contact__map {
    width: 100%;
    min-height: 30rem;
    border-radius: 0.8rem;
    overflow: hidden;
}

.contact__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 30rem;
    border: 0;
}

.contact__actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* El mapa ocupa el lugar que antes tenía la foto de contacto */
.contact__aside .contact__map {
    min-height: 34rem;
    margin-bottom: 2.4rem;
}

.contact__aside .contact__map iframe {
    min-height: 34rem;
}

.contact__aside .contact__map iframe {
    min-height: 34rem;
}

/* ---------- Páginas legales (Impressum / Datenschutz) ---------- */

.legal__container {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 7rem 2rem;
}

.legal__body {
    max-width: 70rem;
    margin: 0 auto;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-black2);
}

/* ---------- Formulario de contacto ---------- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-form__field label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-black);
}

.contact-form__field input,
.contact-form__field textarea {
    padding: 1.2rem 1.5rem;
    font-family: inherit;
    font-size: 1.5rem;
    color: var(--color-black);
    background-color: white;
    border: 1px solid var(--color-gray);
    border-radius: 0.6rem;
    transition: border-color 200ms linear;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: var(--color-gray2);
    cursor: pointer;
}

.contact-form__consent input {
    margin-top: 0.3rem;
}

.contact-form__submit {
    align-self: flex-start;
}

.form-feedback {
    display: none;
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    border-radius: 0.6rem;
}

.form-feedback:empty {
    display: none;
}

.form-feedback--success {
    display: block;
    color: #1f6d3f;
    background-color: #e6f6ec;
}

.form-feedback--error {
    display: block;
    color: #a13636;
    background-color: #fbeaea;
}

/* ---------- Aviso de cookies ---------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.6rem 2.4rem;
    background-color: var(--color-black);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Fallo real corregido: sin este selector, el atributo `hidden` (que
   pone el servidor y alterna el botón «Aceptar») no tenía ningún
   efecto, porque la regla de arriba ya fijaba su propio `display`. */
.cookie-banner[hidden] {
    display: none;
}

/* Pie: el valor queda en su propia línea (como .list-contact__label,
   ya en bloque), así todos los valores arrancan al mismo margen sin
   depender de lo larga que sea la etiqueta de encima. */
.list-contact__value {
    display: block;
    font-size: 1.4rem;
}

.cookie-banner__text {
    max-width: 70rem;
    font-size: 1.4rem;
    color: var(--color-white2);
}

.cookie-banner__text a {
    color: var(--color-white2);
    text-decoration: underline;
}

.cookie-banner__accept {
    flex: 0 0 auto;
}

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
    position: fixed;
    right: 4rem;
    bottom: 13rem;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.4rem;
    height: 5.4rem;
    font-size: 2.6rem;
    color: white;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: transform 300ms linear;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* ---------- Pie: marca y enlaces legales ---------- */

.footer-middle__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-brand__logo {
    display: block;
    width: auto;
    max-width: 20rem;
    max-height: 7.2rem;
}

.footer-brand__name {
    font-family: "castoro";
    font-size: 2rem;
}

.footer-bottom__legal {
    display: inline-flex;
    gap: 1rem;
    margin-left: 1rem;
}

.footer-bottom__legal a:hover {
    color: white;
}

/* ---------- Barra de previsualización ---------- */

.preview-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.2rem 2.4rem;
    color: #e8edf5;
    background-color: #0f1621;
}

.preview-bar__info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    font-size: 1.4rem;
}

.preview-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e8edf5;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.6rem;
}

.preview-bar__btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.preview-bar__btn--primary {
    color: white;
    background-color: var(--color-primary);
}

/* ---------- Responsive de lo anterior ---------- */

@media (max-width: 960px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }

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

    .therapies__grid {
        flex-direction: column;
        gap: 2.4rem;
    }

    .services__container-services {
        grid-template-columns: 1fr;
    }

    .hero-intro__title {
        font-size: 3.4rem;
    }

    .hero-banner__svg {
        height: clamp(24rem, 40vh, 44rem);
    }

}

@media (max-width: 767px) {
    .section-head__title {
        font-size: 3rem;
    }

    .hero-intro__title {
        font-size: 2.8rem;
    }

    .layout__banner {
        padding: 2rem 0 5rem;
    }

    .hero-banner__svg {
        height: clamp(20rem, 34vh, 32rem);
    }

    .experience__stats-ribbon {
        gap: 3.6rem;
    }

    .services__foot {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .whatsapp-float {
        right: 2rem;
        bottom: 10rem;
        width: 4.8rem;
        height: 4.8rem;
        font-size: 2.2rem;
    }

}
