/* =========================================================================
   Osteopatía Enguídanos — hoja de estilos
   Mobile-first · WCAG 2.1 AA · sin dependencias externas
   ========================================================================= */

:root {
    --teal:        #18a4a4;  /* decorativo (líneas, fondos de icono, acentos) */
    --teal-dark:   #0c7a7a;  /* texto e interacción: cumple 4.5:1 con blanco */
    --teal-darker: #095f5f;  /* hover */
    --teal-soft:   #a8e6e6;
    --teal-tint:   #e6f6f6;
    --navy:        #0e3a4f;
    --navy-deep:   #0a2d3d;
    --ink:         #1f2d35;
    --muted:       #5a6b73;
    --line:        #e4ebee;
    --bg:          #ffffff;
    --bg-alt:      #f4f9fa;
    --white:       #ffffff;
    --focus:       #ffb703;

    --container:   1180px;
    --radius:      14px;
    --radius-lg:   22px;
    --shadow:      0 14px 40px rgba(14, 58, 79, .10);
    --shadow-sm:   0 6px 18px rgba(14, 58, 79, .08);

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --h1: clamp(2rem, 1.3rem + 3vw, 3.4rem);
    --h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
    --h3: clamp(1.15rem, 1rem + .6vw, 1.4rem);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 200;
    background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); }
.section { padding: clamp(3rem, 2rem + 5vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 2.5rem; }
.section__head--center { text-align: center; margin-inline: auto; max-width: 760px; }
.section__title { font-size: var(--h2); margin-bottom: .8rem; }
.section__lead { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
    color: var(--teal-dark); margin-bottom: .6rem;
}
.eyebrow::before {
    content: ""; display: inline-block; width: 26px; height: 2px; background: var(--teal);
    vertical-align: middle; margin-right: .6rem; transform: translateY(-2px);
}
.section__head--center .eyebrow::after {
    content: ""; display: inline-block; width: 26px; height: 2px; background: var(--teal);
    vertical-align: middle; margin-left: .6rem; transform: translateY(-2px);
}
/* Antetítulo con icono/emoji (sin rayita decorativa) */
.eyebrow--icon::before, .eyebrow--icon::after { display: none !important; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; border: 2px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
    text-align: center; line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--teal-dark); color: #fff; }
.btn--primary:hover { background: var(--teal-darker); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--teal-tint); }
.btn--outline { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn--outline:hover { background: var(--teal-dark); color: #fff; }
.btn--text { padding: 0; border-radius: 0; color: var(--teal-dark); font-weight: 700; background: none; }
.btn--text:hover { transform: none; text-decoration: underline; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.2rem; font-size: .95rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }
.site-header__logo img { width: auto; height: clamp(54px, 3.5vw, 68px); }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav__list { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav__list a { color: var(--navy); font-weight: 600; padding: .4rem 0; position: relative; }
.primary-nav__list a:hover { color: var(--teal-dark); text-decoration: none; }
.primary-nav__list a[aria-current="page"] { color: var(--teal-dark); }
.primary-nav__list a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--teal);
}
.primary-nav__actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; }
.lang-switch__current { color: var(--teal-dark); }
.lang-switch__link { color: var(--muted); }
.lang-switch__link:hover { color: var(--navy); text-decoration: none; }
.lang-switch::before { content: ""; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; position: relative;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: var(--navy);
    transform: translate(-50%, -50%); transition: .25s;
}
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (inicio) con carrusel ---------- */
.hero {
    position: relative; color: #fff; isolation: isolate; overflow: hidden;
    background: var(--navy);
    display: flex; align-items: flex-start;
    min-height: clamp(460px, 74vh, 700px);
    padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 3rem;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(10,45,61,.82) 0%, rgba(10,45,61,.4) 42%, rgba(10,45,61,.1) 75%, transparent 100%),
        linear-gradient(to left, rgba(10,45,61,.55) 0%, rgba(10,45,61,.12) 55%, transparent 100%);
}
.hero-slideshow { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.02);
    transition: opacity 1.4s ease-in-out;
    will-change: opacity, transform;
}
.hero-slide.is-active {
    opacity: 1;
    animation: heroZoom 7s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.14); }
}
.hero__inner { max-width: 640px; margin-left: auto; margin-right: 0; text-align: left; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--teal-soft); font-size: .85rem; margin-bottom: 1rem; }
.hero__title { color: #fff; font-size: var(--h1); margin-bottom: 1rem; line-height: 1.05; }
.hero__title span { display: block; }
.hero__subtitle { font-size: 1.2rem; margin-bottom: 1.8rem; color: rgba(255,255,255,.92); }

/* ---------- Page hero (interiores) ---------- */
.page-hero {
    position: relative; color: #fff; isolation: isolate; text-align: left;
    background: var(--hero-img) center/cover no-repeat, var(--navy);
    padding: calc(clamp(3rem, 2.5rem + 6vw, 6.5rem) + 10px) 0;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(10,45,61,.78), rgba(10,45,61,.45));
}
.page-hero--compact { padding: calc(clamp(2.5rem, 2rem + 4vw, 4.5rem) + 10px) 0; }
.page-hero__title { color: #fff; font-size: var(--h1); position: relative; padding-left: 1rem; }
.page-hero__title::before {
    content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; background: var(--teal); border-radius: 4px;
}
.page-hero__subtitle { color: var(--teal-soft); font-weight: 600; margin-top: .5rem; padding-left: 1rem; }

/* ---------- Tarjetas con icono ---------- */
.feature-grid {
    display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card--left { text-align: left; }
.feature-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px;
    border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); margin-bottom: 1.1rem;
}
.feature-card--left .feature-card__icon { border-radius: 16px; }
.feature-card__title { font-size: var(--h3); margin-bottom: .6rem; }
.feature-card p { color: var(--muted); }
.feature-card__more { margin-top: 1rem; }

/* ---------- Feature split (imagen + texto) ---------- */
.feature-split__inner { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.feature-split__media { position: relative; }
.feature-split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.feature-split__media::before {
    content: ""; position: absolute; width: 60%; height: 70%; background: var(--teal-soft);
    border-radius: var(--radius-lg); top: -16px; left: -16px; z-index: -1;
}
.feature-split__badge {
    position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
    background: var(--teal-dark); color: #fff; padding: .6rem 1.2rem; border-radius: 999px;
    font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.feature-split__body .section__title { margin-bottom: 1rem; }
.feature-split__body p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Sección tienda (Tus Raíces) ---------- */
.shop__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.shop__intro .section__title, .shop__store .section__title { margin-bottom: .9rem; }
.shop__text { color: var(--muted); margin-bottom: 1rem; }
.shop__link { font-weight: 700; white-space: nowrap; }
.shop__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.shop__product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); }
.shop__product span { display: block; text-align: center; font-size: .85rem; color: var(--muted); margin-top: .55rem; }
.shop__store-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); object-fit: cover; margin-top: .4rem; }
@media (min-width: 900px) {
    .shop__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* ---------- Sección parallax (Alta calidad) ---------- */
.quality-parallax {
    position: relative;
    background: var(--bg) center / cover no-repeat;
    background-attachment: fixed;
    padding: clamp(3.5rem, 3rem + 6vw, 7.5rem) 0;
    display: flex; align-items: center;
}
.quality-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 470px; padding: clamp(1.8rem, 1.3rem + 2vw, 3rem);
}
.quality-card .section__title { margin-bottom: 1rem; }
.quality-card p { color: var(--muted); margin-bottom: 1.6rem; }
/* En móvil/táctil, background fijo da problemas: se desactiva */
@media (max-width: 768px) {
    .quality-parallax { background-attachment: scroll; }
}

/* ---------- Banda destacada ---------- */
.band { background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal-darker) 100%); color: #fff; padding: clamp(2.5rem, 2rem + 4vw, 4rem) 0; text-align: center; }
.band__title { color: #fff; font-size: var(--h2); margin-bottom: .6rem; }
.band__text { color: rgba(255,255,255,.92); max-width: 700px; margin-inline: auto; }

/* ---------- Estadísticas ---------- */
.stats { background: var(--bg-alt); padding: clamp(2.5rem, 2rem + 3vw, 3.5rem) 0; }
.stats__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
.stat__value { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; color: var(--teal-dark); line-height: 1; }
.stat__label { display: block; margin-top: .5rem; color: var(--muted); font-weight: 600; }
.stat { position: relative; padding: .5rem; }

/* ---------- Cita ---------- */
.quote-section { background: var(--navy); color: #fff; padding: clamp(3rem, 2.5rem + 4vw, 5rem) 0; }
.quote-section__inner { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; flex-direction: column; }
.quote-section__avatar { border-radius: 50%; width: 110px; height: 110px; object-fit: cover; border: 4px solid var(--teal); }
.quote-section__figure blockquote p { font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); font-weight: 600; color: #fff; max-width: 760px; }
.quote-section__figure figcaption { margin-top: 1rem; color: var(--teal-soft); font-weight: 700; }

/* ---------- Categorías (servicios) ---------- */
.category-row { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 2rem; }
.category { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 130px; text-align: center; }
.category__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); }
.category__title { font-weight: 700; color: var(--navy); font-size: .95rem; }

/* ---------- Lista de servicios ---------- */
.service-row { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; padding: 2rem 0; scroll-margin-top: 110px; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row__media { position: relative; }
.service-row__media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.service-row__media::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--teal-soft);
    border-radius: var(--radius); z-index: -1;
}
.service-row__title { font-size: var(--h3); margin: .3rem 0 .7rem; }
.service-row__body p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Acordeón / FAQ ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__header { margin: 0; }
.accordion__trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: #fff; border: 0; padding: 1.15rem 1.3rem; text-align: left;
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.accordion__trigger:hover { background: var(--bg-alt); }
.accordion__icon { position: relative; width: 18px; height: 18px; flex: none; }
.accordion__icon::before, .accordion__icon::after {
    content: ""; position: absolute; background: var(--teal); border-radius: 2px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion__icon::before { width: 16px; height: 2px; }
.accordion__icon::after  { width: 2px; height: 16px; transition: transform .2s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion__panel { padding: 0 1.3rem 1.3rem; color: var(--muted); }

/* ---------- Reviews (Google) ---------- */
.reviews__head::before {
    content: ""; display: block; width: 80px; height: 3px; background: var(--teal);
    margin: 0 auto 1.4rem; border-radius: 2px;
}
.reviews__summary { color: var(--muted); font-size: 1.1rem; }
.reviews__summary a { color: var(--teal-dark); font-weight: 600; }
.reviews-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
.review { display: flex; flex-direction: column; align-items: center; text-align: center; }
.review__avatar {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm); flex: none; background: var(--bg-alt);
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__text p { color: var(--ink); margin-bottom: 1rem; max-width: 38ch; }
.review__name { font-weight: 700; color: var(--navy); }
@media (min-width: 768px) {
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Equipo (tarjetas con bio al hover) ---------- */
.team-grid {
    display: grid; gap: 1.5rem; grid-template-columns: 1fr;
    margin-top: 2.5rem; list-style: none; padding: 0;
}
.team-card {
    position: relative; isolation: isolate;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); background: var(--navy);
}
.team-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.team-card__media { position: relative; aspect-ratio: 4 / 5; }
.team-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card__caption { display: none; }
.team-card__name { font-weight: 700; color: #fff; margin: 0; line-height: 1.2; }
.team-card__role { font-size: .92rem; color: var(--teal-soft); font-weight: 600; margin: .2rem 0 0; }
.team-card__details {
    padding: 1.2rem 1.3rem 1.4rem; color: #fff; background: var(--navy);
}
.team-card__details .team-card__name { font-size: 1.2rem; }
.team-card__details .team-card__role { margin-bottom: .8rem; }
.team-card__bio { font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .92); margin: 0; }

@media (hover: hover) {
    .team-card__caption {
        display: block; position: absolute; left: 0; right: 0; bottom: 0;
        padding: 1rem 1rem 1.2rem; text-align: center;
        background: linear-gradient(to top, rgba(10, 45, 61, .85), rgba(10, 45, 61, 0));
        transition: opacity .6s cubic-bezier(.4, 0, .2, 1);
    }
    .team-card__caption .team-card__name { display: block; font-size: 1.1rem; }
    .team-card__caption .team-card__role { display: block; }
    .team-card__details {
        position: absolute; inset: 0;
        padding: 1.6rem 1.4rem;
        display: flex; flex-direction: column; justify-content: center; text-align: center;
        background: rgba(10, 45, 61, .94);
        opacity: 0; transition: opacity .6s cubic-bezier(.4, 0, .2, 1);
    }
    .team-card:hover .team-card__caption,
    .team-card:focus-within .team-card__caption { opacity: 0; }
    .team-card:hover .team-card__details,
    .team-card:focus-within .team-card__details { opacity: 1; }
}

/* ---------- Contacto ---------- */
.contact-intro__logo { margin: 0 auto 1.4rem; }
.contact-cards { padding-top: 0; }
.contact-cards__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.contact-card { text-align: center; padding: 2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.contact-card p { color: var(--muted); margin-bottom: .6rem; }

/* ---------- Formulario ---------- */
.contact-form { display: grid; gap: 1.2rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; color: var(--navy); }
.field input, .field textarea {
    font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-soft); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #d23f3f; background: #fdf3f3; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { width: auto; margin-top: .35rem; }
.field--check label { font-weight: 400; color: var(--muted); }
.field--captcha input { max-width: 8rem; }
.req { color: #d23f3f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600; }
.alert--success { background: #e6f6ec; color: #1c6b3a; border: 1px solid #b7e2c4; }
.alert--error { background: #fdecec; color: #a52424; border: 1px solid #f3c2c2; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(3rem, 2.5rem + 4vw, 4.5rem) 0; text-align: center; }
.cta-banner__title { color: #fff; font-size: var(--h2); margin-bottom: .6rem; }
.cta-banner__text { color: rgba(255,255,255,.9); margin-bottom: 1.6rem; }

/* ---------- Banda de financiación ---------- */
.funding { padding: 2.2rem 0; background: #fff; border-top: 1px solid var(--line); }
.funding__img { margin-inline: auto; max-height: 90px; width: auto; }

/* ---------- Legal ---------- */
.legal__updated { color: var(--muted); font-style: italic; margin-bottom: 2rem; }
.legal__block { margin-bottom: 2rem; }
.legal__block h2 { font-size: var(--h3); margin-bottom: .7rem; }
.legal__block h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; color: var(--navy); }
.legal__block p { color: var(--muted); margin-bottom: .8rem; }
.legal__block ul { color: var(--muted); margin: 0 0 1rem 1.2rem; }
.legal__block li { margin-bottom: .35rem; }
.legal__block code { background: var(--teal-tint); color: var(--teal-darker); padding: .1em .4em; border-radius: 4px; font-size: .88em; }
.legal-table {
    width: 100%; border-collapse: collapse; margin: .5rem 0 1.2rem;
    font-size: .92rem; color: var(--navy);
}
.legal-table th, .legal-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--teal-tint); color: var(--teal-darker); font-weight: 700; }
.legal-table td { color: var(--muted); }

/* ---------- 404 ---------- */
.error-page { padding: clamp(4rem, 3rem + 6vw, 7rem) 0; }
.error-page__code { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; color: var(--teal-soft); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); margin-top: 0; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 2rem; }
.site-footer__logo {
    display: inline-block; height: 92px; width: auto; margin-bottom: 1.3rem;
    background: #fff; padding: 14px 22px; border-radius: 14px;
}
.site-footer__brand p { max-width: 32ch; }
.site-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer__col li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__copy { font-size: .9rem; }
.site-footer__credit { display: block; opacity: .7; }
.social { display: flex; gap: .6rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.social a:hover { background: var(--teal); text-decoration: none; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px;
    border-radius: 50%; border: 0; background: var(--teal-dark); color: #fff; box-shadow: var(--shadow);
    display: inline-flex; align-items: center; justify-content: center; transition: opacity .2s, transform .2s;
}
.back-to-top:hover { background: var(--teal-darker); transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }

/* =========================================================================
   Responsive — tablet
   ========================================================================= */
@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(4, 1fr); }
    .quote-section__inner { flex-direction: row; text-align: left; }
}

/* =========================================================================
   Responsive — escritorio
   ========================================================================= */
@media (min-width: 900px) {
    .feature-split__inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .feature-split--reverse .feature-split__media { order: 2; }
    .service-row { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 0; }
    .service-row--reverse .service-row__media { order: 2; }
    .service-row--reverse .service-row__media::before { inset: 14px 14px -14px -14px; }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-cards__grid { grid-template-columns: repeat(4, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
    .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
}

/* =========================================================================
   Navegación móvil
   ========================================================================= */
@media (max-width: 899px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .primary-nav {
        position: fixed; inset: 92px 0 auto 0; background: #fff; flex-direction: column;
        align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease;
        max-height: calc(100vh - 92px); overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateY(0); }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav__list li { border-bottom: 1px solid var(--line); }
    .primary-nav__list a { display: block; padding: .9rem .2rem; }
    .primary-nav__list a[aria-current="page"]::after { display: none; }
    .primary-nav__actions { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1.2rem; }
    .lang-switch { justify-content: center; }
    .site-header__cta { width: 100%; }
}

/* =========================================================================
   Accesibilidad: movimiento reducido
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    /* Mantener el fundido del carrusel (sin zoom) aunque se reduzca el movimiento */
    .hero-slide { transition: opacity 1.4s ease-in-out !important; }
}
