/* ==========================================================================
   DOGQUIJOTE · Centro canino (Esquivias, Toledo)
   Paleta derivada del logo (huella negra sobre pincelada roja/amarilla):
   - Rojo teja:   #B3352B   (principal)
   - Ámbar:       #E8A33D   (solo micro-acento: eyebrow, estrellas, hovers)
   - Tinta cálida #26211E · Fondos crema #F8F4EE
   Regla heredada de la base: el ámbar NUNCA en CTAs ni texto sobre blanco.
   ========================================================================== */

/* ---------- Tipografías autoalojadas (sin peticiones a Google, según AEPD) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/nunito-sans-latin.woff2') format('woff2');
}

:root {
  --rojo: #B3352B;
  --rojo-dark: #8E2A22;
  --rojo-light: #C94A3E;
  --ambar: #E8A33D;
  --ambar-dark: #C4831F;
  --ink: #26211E;
  --muted: #6B625C;
  --bg: #ffffff;
  --bg-soft: #F8F4EE;
  --bg-dark: #261C17;
  --border: #EAE2D8;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(48, 28, 20, .06);
  --shadow-md: 0 12px 30px rgba(48, 28, 20, .10);
  --shadow-lg: 0 24px 60px rgba(48, 28, 20, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* el nav off-canvas (translateX 100%) no debe crear scroll lateral */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--sm { padding: 11px 18px; font-size: .85rem; }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--primary { background: var(--rojo); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rojo-dark); box-shadow: var(--shadow-md); }
a, button, input, select, textarea, label { touch-action: manipulation; }
.btn--ghost { background: transparent; border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ghost-oscuro { background: transparent; border-color: var(--rojo); color: var(--rojo); }
.btn--ghost-oscuro:hover { background: rgba(179,53,43,.08); }
.btn--light { background: #fff; color: var(--rojo-dark); }
.btn--light:hover { background: #F5EDE3; }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn--whatsapp:hover { background: #1eb457; }

/* ---------- Eyebrow / títulos ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 12px; position: relative; padding-left: 34px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 3px; border-radius: 3px; background: var(--ambar);
}
.eyebrow--light { color: var(--ambar); }
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
.section__head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section__head .eyebrow { padding-left: 0; }
.section__head .eyebrow::before { display: none; }
.section__head--light .section__title { color: #fff; }
.section__sub { color: var(--muted); margin-top: 14px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section--muted { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #E3D9D0; }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar { background: var(--rojo-dark); color: #F0DFD5; font-size: .85rem; }
.topbar__inner { display: flex; gap: 34px; align-items: center; justify-content: flex-end; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; transition: color .2s; }
.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 17px; height: 17px; fill: none; stroke: var(--ambar); flex: none; }
.topbar__item svg[fill="currentColor"] { fill: var(--ambar); stroke: none; }
.topbar__item strong { color: #fff; font-weight: 600; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 0 var(--border); transition: box-shadow .25s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.header__logo { display: inline-flex; align-items: center; gap: 11px; }
.header__logo img { height: 48px; width: 48px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.header__marca {
  font-family: var(--font-head); font-weight: 800; font-size: 1.18rem;
  letter-spacing: .04em; color: var(--ink);
}
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item > a {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head);
  font-weight: 600; font-size: .93rem; padding: 10px 14px; border-radius: 8px; color: var(--ink);
  transition: color .2s, background .2s;
}
.nav__item > a:hover { color: var(--rojo); background: var(--bg-soft); }
.caret { font-size: .7rem; }

/* submenú */
.nav__item--drop { position: relative; }
.nav__submenu {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
.nav__item--drop:hover .nav__submenu,
.nav__item--drop:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__submenu li a { display: block; padding: 12px 14px; border-radius: 8px; font-size: .9rem; }
.nav__submenu li a:hover { background: var(--bg-soft); color: var(--rojo); }

.header__cta { flex: none; }

/* toggle móvil */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 13px 10px; min-width: 46px; min-height: 46px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 3px; background: var(--rojo); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background: linear-gradient(rgba(30,18,12,.18), rgba(30,18,12,.18)),
    image-set(url('../assets/img/hero-deporte.webp') type('image/webp'),
              url('../assets/img/hero-deporte.jpg') type('image/jpeg')) 62% 55%/cover no-repeat;
  color: #fff;
}
/* En pantallas pequeñas basta la variante -800 (64KB frente a 137KB) */
@media (max-width: 800px) {
  .hero {
    background: linear-gradient(rgba(30,18,12,.18), rgba(30,18,12,.18)),
      image-set(url('../assets/img/hero-deporte-800.webp') type('image/webp'),
                url('../assets/img/hero-deporte-800.jpg') type('image/jpeg')) 62% 55%/cover no-repeat;
  }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,17,13,.96) 0%, rgba(84,26,20,.86) 36%,
                              rgba(120,34,26,.44) 56%, rgba(179,53,43,.16) 78%,
                              rgba(179,53,43,.06) 100%);
}
.hero__content { position: relative; max-width: 620px; padding-block: 70px; }
.hero__eyebrow {
  display: inline-block; background: #fff; color: var(--rojo-dark); font-family: var(--font-head);
  font-weight: 700; font-size: .82rem; letter-spacing: .05em; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.05rem, 4.5vw, 3.15rem); font-weight: 800; color: #fff;
  margin-bottom: 22px; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hero__title span { color: #fff; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.17rem); max-width: 545px; margin-bottom: 34px;
  color: #F0E4DB; line-height: 1.62; }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { background: var(--rojo); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 22px; text-align: center; }
.stat { position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -10px; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.18); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); }
.stat__suffix { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; opacity: .85; }
.stat__label { font-size: .9rem; color: #F3E6DD; margin-top: 4px; }

/* ==========================================================================
   LA ESCUELA
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
/* La foto del equipo es un retrato 3:4 con las caras arriba: se muestra
   completa en su formato natural, sin recorte que corte cabezas. */
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.about__badge {
  position: absolute; right: -14px; bottom: -18px; background: var(--ambar); color: #3A2A10;
  border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow-md); text-align: center; line-height: 1.1;
}
.about__badge strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; display: block; }
.about__badge span { font-size: .8rem; font-weight: 600; }
.about__body p { color: #55493F; margin-bottom: 16px; }
.about__body .btn { margin-top: 10px; }

/* ==========================================================================
   SLIDER DE FOTOS (galería en portada)
   ========================================================================== */
.team-slider { position: relative; max-width: 920px; margin-inline: auto; }
.team-slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.team-slider__track::-webkit-scrollbar { display: none; }
.team-slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: center; }
.team-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.team-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 26px 20px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(transparent, rgba(38, 22, 14, .78));
}
.team-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--rojo); box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.team-slider__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.team-slider__btn svg { width: 22px; height: 22px; }
.team-slider__btn--prev { left: 14px; }
.team-slider__btn--next { right: 14px; }
.team-slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.team-slider__dots button {
  width: 30px; height: 30px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.team-slider__dots button::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #D8CCC0; transition: background .2s, transform .2s;
}
.team-slider__dots button.active::after { background: var(--rojo); transform: scale(1.3); }
.team-slider__pause {
  width: 30px; height: 30px; margin-left: 8px; border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; background: #fff; color: var(--rojo); padding: 0;
  transition: background .2s;
}
.team-slider__pause:hover { background: var(--bg-soft); }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.services--4 { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-inline: auto; }
.service {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--rojo), var(--ambar)); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--bg-soft); border-radius: 16px; margin-bottom: 18px;
  color: var(--rojo); transition: background .25s, color .25s;
}
.service__icon svg { width: 30px; height: 30px; }
.service:hover .service__icon { background: #F6E9E1; color: var(--rojo-dark); }
.service h2, .service h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.service p { color: #5D544E; font-size: .94rem; }

/* ==========================================================================
   CLUB DEPORTIVO / COMPROMISOS (sección oscura)
   ========================================================================== */
.insurers { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 54px; }
.insurers span, .insurers a {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(255,255,255,.04); color: #EFE3D9;
  transition: background .2s, border-color .2s, transform .2s;
}
.insurers a:hover { background: rgba(255,255,255,.1); border-color: var(--ambar); transform: translateY(-2px); }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: start; }
.contact__list { margin: 28px 0 26px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 15px; align-items: flex-start; }
.contact__ic {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: var(--rojo);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__list strong { font-family: var(--font-head); font-weight: 600; }
.contact__list p { color: #5D544E; font-size: .95rem; }
.contact__list a { display: inline-block; padding: 6px 0; }
.contact__list a:hover { color: var(--rojo); }
.contact__botones { display: flex; gap: 12px; flex-wrap: wrap; }

.contact__form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rojo); background: #fff; box-shadow: 0 0 0 3px rgba(179,53,43,.12);
}
/* Grupo de servicios con selección múltiple */
.field--multi { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--multi legend { font-family: var(--font-head); font-weight: 600; font-size: .88rem; padding: 0; margin-bottom: 8px; }
.field__hint { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .8rem; }
.opciones-servicio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.opciones-servicio label { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: #5D544E; cursor: pointer; }
.opciones-servicio input { width: 16px; height: 16px; accent-color: var(--rojo); flex: none; margin-top: 3px; }
@media (max-width: 420px) { .opciones-servicio { grid-template-columns: 1fr; } }

.field--check { flex-direction: row; align-items: flex-start; gap: 9px; }
.field--check label { font-weight: 400; font-size: .85rem; color: #5D544E; }
.field--check input { width: 16px; height: 16px; accent-color: var(--rojo); flex: none; margin-top: 3px; }
.contact__form .btn { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; font-size: .88rem; margin: 0; min-height: 1em; }
.form__note.ok { color: #2e7d32; font-weight: 600; }
.form__note.err { color: #c0392b; font-weight: 600; }

/* ==========================================================================
   RESEÑAS
   ========================================================================== */
.rating { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.rating__score { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); }
.rating__stars { display: inline-flex; gap: 3px; }
.rating__count { color: var(--muted); font-size: .95rem; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial__stars { color: var(--ambar-dark); letter-spacing: 3px; font-size: 1.05rem; }
.testimonial blockquote { margin: 0; color: #55493F; font-size: .97rem; line-height: 1.6; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--rojo); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.testimonial figcaption strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.testimonial figcaption small { color: var(--muted); font-size: .8rem; }

.reviews-cta { text-align: center; margin-top: 44px; }
.reviews-cta p { color: var(--muted); margin-bottom: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #201713; color: #B5A99F; padding-top: 62px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer__logo { height: 56px; width: 56px; border-radius: 50%; margin-bottom: 16px; }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 6px; }
.footer__col a { display: inline-block; padding: 7px 0; }
.footer__col a:hover { color: var(--ambar); }
.footer__col svg { width: 16px; height: 16px; vertical-align: -3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom p { font-size: .85rem; margin: 0; }
.footer__bottom a { display: inline-block; padding: 8px 2px; }
.footer__bottom a:hover { color: var(--ambar); }

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px;
  background: #25D366; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .2s;
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
/* mientras el banner de cookies está visible, el botón sube para no tapar "Aceptar" */
body.cookies-visible .wa-float { bottom: calc(var(--cookies-h, 92px) + 14px); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse { 0%{ box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0);} }

/* ==========================================================================
   COOKIES
   ========================================================================== */
.cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; box-shadow: 0 -6px 30px rgba(0,0,0,.12); border-top: 3px solid var(--rojo); }
.cookies__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; flex-wrap: wrap; }
.cookies p { font-size: .9rem; color: #444; margin: 0; }
.cookies__actions { display: flex; gap: 10px; }
.cookies .btn--ghost { color: var(--rojo); border-color: var(--rojo); }
.cookies .btn--ghost:hover { background: var(--bg-soft); }

/* ==========================================================================
   FRANJA RESIDENCIA (reserva de estancias)
   ========================================================================== */
.urgency { background: linear-gradient(120deg, var(--rojo) 0%, var(--rojo-dark) 100%); color: #fff; padding: clamp(34px, 5vw, 52px) 0; }
.urgency__inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.urgency__icon { width: 66px; height: 66px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.urgency__icon svg { width: 34px; height: 34px; }
.urgency__text { flex: 1 1 340px; }
.urgency__tag { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.urgency__text h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 6px; text-wrap: balance; }
.urgency__text p { color: #F3DFD2; margin: 0; font-size: .96rem; }
.urgency__cta { flex: none; }

/* ==========================================================================
   ANIMACIÓN REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Foco visible accesible: anillo blanco + rojo, legible sobre cualquier fondo */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #fff; outline-offset: 0;
  box-shadow: 0 0 0 6px var(--rojo-dark) !important;
}
/* el anillo respeta la forma propia del elemento; los enlaces sin radio reciben uno suave */
a:not(.btn):focus-visible { border-radius: 6px; }

/* Skip link (oculto hasta recibir foco) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--rojo-dark); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 10px; font-family: var(--font-head); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Campos obligatorios */
.req { color: #B3261E; font-weight: 700; }
.form__required-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 520px; margin-inline: auto; }
  .services, .services--4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff;
    box-shadow: var(--shadow-lg); padding: calc(var(--header-h) + 20px) 22px 30px;
    transform: translateX(100%); margin: 0; overflow-y: auto;
    visibility: hidden; /* cerrado: fuera del orden de tabulación y de los lectores */
    transition: transform .3s ease, visibility .3s;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__item > a { padding: 13px 14px; font-size: 1rem; }
  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 6px 14px; min-width: 0;
  }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 560px) {
  .topbar__inner { justify-content: center; gap: 6px 20px; font-size: .78rem; }
  .services, .services--4 { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__form { grid-template-columns: 1fr; padding: 24px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .header__marca { font-size: 1.02rem; }
  /* Hero móvil: sin altura mínima fija ni aire de más arriba y abajo */
  .hero { min-height: 0; }
  .hero__content { padding-block: 40px 46px; }
}
/* Topbar móvil: las redes quedan solo como icono (el texto ocupa dos líneas) */
@media (max-width: 700px) {
  .topbar__item--social span { display: none; }
  .topbar__item--social svg { width: 19px; height: 19px; }
  .topbar__inner { gap: 4px 18px; }
}

/* Reseñas en móvil: fila deslizable estilo carrusel de Instagram (la tarjeta
   siguiente asoma por el borde para invitar a deslizar). En escritorio se
   mantiene la cuadrícula. Va al final por orden de cascada. */
@media (max-width: 700px) {
  .testimonials {
    display: flex; grid-template-columns: none; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 14px; padding: 4px 4px 14px; margin-inline: -4px;
    scrollbar-width: none;
  }
  .testimonials::-webkit-scrollbar { display: none; }
  .testimonial { flex: 0 0 84%; scroll-snap-align: center; }
}

/* ==========================================================================
   PÁGINAS INTERIORES (servicios, galería, legales)
   ========================================================================== */
.container--estrecho { max-width: 820px; }
.center { text-align: center; }
.center-cta { text-align: center; margin-top: 32px; }

/* ---- Migas de pan ---- */
.migas { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: .87rem; }
.migas .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 12px; color: var(--muted); }
.migas a { color: var(--rojo); }
.migas a:hover { text-decoration: underline; }
.migas__sep { color: #C9BCB0; }

/* ---- Hero de página interior ---- */
.page-hero {
  background: linear-gradient(105deg, var(--bg-dark) 0%, var(--rojo) 100%);
  color: #fff; padding: clamp(48px, 7vw, 76px) 0;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); color: #fff; margin-bottom: 14px; text-wrap: balance; }
.page-hero__lead { color: #F0E0D6; max-width: 660px; font-size: 1.06rem; }
.page-hero__lead a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero .hero__actions { margin-top: 26px; }
.page-hero__icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px;
  background: rgba(255,255,255,.14); border-radius: 16px; color: #fff;
}
.page-hero__icon svg { width: 32px; height: 32px; }

/* ---- Artículo con barra lateral ---- */
.articulo { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 48px; align-items: start; }
.articulo__texto > p { color: #55493F; margin-bottom: 16px; }
.articulo__texto h2 { font-size: 1.5rem; margin: 32px 0 14px; }
.lista-check { display: grid; gap: 12px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; color: #55493F; }
.lista-check svg { width: 21px; height: 21px; flex: none; color: var(--rojo); margin-top: 2px; }

.ficha {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; position: sticky; top: calc(var(--header-h) + 20px);
  border-top: 4px solid var(--rojo);
}
.ficha h2 { font-size: 1.2rem; margin-bottom: 8px; }
.ficha > p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.btn--full { width: 100%; margin-bottom: 10px; }
.ficha__datos { margin-top: 18px; display: grid; gap: 10px; font-size: .89rem; color: #55493F; }
.ficha__datos li { display: flex; gap: 9px; align-items: center; }
.ficha__datos svg { width: 18px; height: 18px; flex: none; color: var(--rojo); }

/* ---- Proceso por pasos ---- */
.pasos { display: grid; gap: 18px; counter-reset: paso; position: relative; }
.paso {
  display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
  position: relative; z-index: 1;
}
.paso__num {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--rojo); color: #fff; font-family: var(--font-head); font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg-soft);
}
.paso strong { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.paso p { color: #5D544E; font-size: .95rem; }

/* ---- FAQ ---- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--rojo); line-height: 1; flex: none;
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 22px 20px; }
.faq__body p { color: #5D544E; font-size: .96rem; }

/* ---- Chips de enlaces ---- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 20px; }
.chip {
  display: inline-block; padding: 9px 17px; border-radius: 999px; font-size: .9rem;
  background: #fff; border: 1px solid var(--border); color: var(--ink); transition: all .2s;
}
.chip:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); transform: translateY(-2px); }
.chip--zona { cursor: default; }
.chip--zona:hover { background: #fff; color: var(--ink); border-color: var(--rojo); transform: none; }

/* ---- Compromisos (Trust & Authority) ---- */
.garantias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.garantia { display: flex; gap: 14px; align-items: flex-start; }
.garantia__icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: #F6E9E1; color: var(--rojo);
}
.section--dark .garantia__icon { background: rgba(255,255,255,.1); color: var(--ambar); }
.garantia__icon svg { width: 23px; height: 23px; }
.garantia strong { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.garantia p { font-size: .9rem; color: #5D544E; }
.section--dark .garantia strong { color: #fff; }
.section--dark .garantia p { color: #C4B7AC; }

/* ---- Tarjeta de servicio como enlace ---- */
a.service { color: inherit; display: block; }
.service__mas {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  color: var(--rojo); font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.service__mas svg { width: 17px; height: 17px; transition: transform .2s ease; }
a.service:hover .service__mas svg { transform: translateX(4px); }

/* ---- Galería ---- */
.galeria-bloque .section__title { text-align: center; margin-bottom: 34px; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galeria__item {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.galeria__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.galeria__item img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; }
/* Retratos: anclar el recorte arriba para no cortar caras (clase del generador) */
.galeria__item img.img--retrato, .team-slide img.img--retrato { object-position: 50% 12%; }
.galeria__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px;
  color: #fff; font-size: .85rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(38, 22, 14, .82));
}
@media (max-width: 900px) { .galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .galeria { grid-template-columns: 1fr; } .galeria__item img { aspect-ratio: 4/3; } }

/* ---- Prosa (legales) ---- */
.prosa { max-width: 68ch; margin-inline: auto; }
.prosa h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 24px; }
.prosa h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.prosa p { color: #55493F; margin-bottom: 16px; }
.prosa ul { margin: 0 0 18px 20px; list-style: disc; }
.prosa li { color: #55493F; margin-bottom: 8px; }
.prosa a { color: var(--rojo); text-decoration: underline; }
.prosa blockquote {
  margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--ambar);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem; color: var(--ink);
}

/* ---- Noticias del club (/club/) ---- */
.noticias { display: grid; gap: 22px; }
.noticia {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.noticia__cuerpo { padding: 26px 28px; }
.noticia__fecha {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rojo); margin-bottom: 8px;
}
.noticia h2 { font-size: 1.3rem; margin-bottom: 10px; }
.noticia__cuerpo p { color: #55493F; font-size: .96rem; }
.noticia--vacia {
  display: flex; gap: 18px; align-items: flex-start; padding: 28px;
}
.noticia--vacia h2 { font-size: 1.2rem; margin-bottom: 8px; }
.noticia--vacia p { color: #55493F; font-size: .96rem; }
.noticia--vacia a { color: var(--rojo); text-decoration: underline; text-underline-offset: 3px; }
.noticia__icono {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  background: var(--bg-soft); border-radius: 14px; color: var(--rojo);
}
.noticia__icono svg { width: 26px; height: 26px; }

/* ---- Mapa con carga bajo demanda (RGPD: sin peticiones a Google hasta pulsar) ---- */
.mapa {
  position: relative; margin-top: 34px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft);
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm);
}
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa__cargar {
  position: absolute; inset: 0; width: 100%; display: grid; place-items: center;
  gap: 6px; align-content: center; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: 20px;
}
.mapa__cargar:hover { background: rgba(179,53,43,.05); }
.mapa__cargar svg { width: 34px; height: 34px; color: var(--rojo); }
.mapa__cargar small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---- CTA final ---- */
.cta-final { background: linear-gradient(120deg, var(--rojo-dark), var(--rojo)); color: #fff; padding: clamp(48px, 6vw, 70px) 0; }
.cta-final__inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-final h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; text-wrap: balance; }
.cta-final p { color: #F3DFD2; }
.cta-final__botones { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   PULIDO GENERAL
   ========================================================================== */
h1, h2, h3 { letter-spacing: -.015em; }
.section__title { text-wrap: balance; }
.hero__lead, .page-hero__lead, .section__sub { text-wrap: pretty; }

/* Franja de confianza bajo el hero de la portada */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-strip__inner {
  display: flex; align-items: center; justify-content: center; gap: 12px 30px;
  flex-wrap: wrap; padding: 18px 22px;
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .87rem; color: #55493F; white-space: nowrap;
}
.trust-strip__item svg { width: 18px; height: 18px; color: var(--rojo); flex: none; }
.trust-strip__item strong { font-family: var(--font-head); color: var(--ink); }
.trust-strip__estrellas { color: var(--ambar-dark); letter-spacing: 1px; }

/* Tarjetas de servicio: acento inferior progresivo */
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--rojo); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.service:hover::after { transform: scaleX(1); }

/* Lista de comprobación en dos columnas cuando hay espacio */
@media (min-width: 700px) {
  .lista-check { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
}

/* Enlaces del contenido con subrayado sutil */
.articulo__texto a:not(.btn) {
  color: var(--rojo); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Transiciones consistentes (150–300 ms, según la guía de UI) */
a, button, .chip, .service, .testimonial, .galeria__item { transition-duration: .22s; }

/* Selección de texto con color de marca */
::selection { background: var(--rojo); color: #fff; }

/* Imágenes responsive: <picture> ocupa el ancho del contenedor */
picture { display: block; }
picture img { width: 100%; height: auto; }

/* ==========================================================================
   HERO DE SERVICIO CON FOTOGRAFÍA
   ========================================================================== */
.page-hero--foto { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 92px) 0; }
.page-hero--foto .page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--foto .page-hero__bg picture,
.page-hero--foto .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--foto::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(26,15,11,.96) 0%, rgba(84,26,20,.90) 42%,
                              rgba(179,53,43,.68) 78%, rgba(179,53,43,.46) 100%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__prueba {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-size: .87rem; color: #EBD9CC;
}
.page-hero__prueba svg { width: 18px; height: 18px; flex: none; color: var(--ambar); }

@media (max-width: 620px) {
  .trust-strip__inner { gap: 12px 24px; font-size: .85rem; }
}

/* ==========================================================================
   RESPONSIVE DE PÁGINAS INTERIORES
   (va al final: .articulo, .ficha y .garantias se definen después de los
   bloques @media generales y los anularían por orden de cascada)
   ========================================================================== */
@media (max-width: 980px) {
  .articulo { grid-template-columns: 1fr; gap: 34px; }
  .ficha { position: static; }
  .garantias { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .garantias { grid-template-columns: 1fr; }
}

/* Menos movimiento si el sistema lo pide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
