/* ==========================================================================
   Cabalgredos · estilos
   Sin estilos inline: todo aquí para cumplir la CSP (style-src 'self').
   ========================================================================== */

/* ---------- Fuentes autoalojadas ---------- */
@font-face { font-family: "Bebas Neue"; src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --suave: cubic-bezier(.22, .61, .36, 1);
  --azul: #1F4E79;
  --azul-claro: #DCE9F5;
  --tinta: #14202A;
  --fondo: #F3F5F2;
  --blanco: #FFFFFF;
  --pino: #24402F;
  --pino-texto: #D6E3D9;
  --cuero: #9A4E1F;       /* sobre beige: solo texto grande (4.46:1) */
  --cuero-oscuro: #7E3F18;
  --beige: #E9DCC8;
  --arena: #F2C894;
  --gris: #46535D;
  --gris-suave: #56626B;
  --linea: #DCE1DC;
  --pie-texto: #C7D3DD;

  --f-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --f-texto: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mano: "Permanent Marker", cursive;

  --radio: 22px;
  --radio-s: 14px;
  --ancho: 1280px;
  --sombra: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(20, 32, 42, .07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fondo);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--azul); }
a:hover { color: var(--cuero); }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--arena); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 28px; }
@media (max-width: 600px) { .container { padding-inline: 20px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Datos pendientes de rellenar: se ven en amarillo para no olvidarlos */
.pendiente { background: #FFF2A8; color: #3B3200; padding: 0 4px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .5px; line-height: .9; }
.display--xl { font-size: clamp(3.8rem, 10vw, 9.4rem); line-height: .86; }
.display--l { font-size: clamp(3.4rem, 8vw, 8rem); line-height: .88; }
.display--m { font-size: clamp(2.8rem, 5vw, 4.75rem); line-height: .95; }
.display--s { font-size: clamp(2.2rem, 3.6vw, 3.5rem); line-height: 1; }
.eyebrow { font-family: var(--f-mano); font-size: 1.375rem; color: var(--cuero); line-height: 1.3; }
.eyebrow--sand { color: var(--arena); }
/* Espacio entre el antetítulo y el título: en "em" del título, para que sus tildes (Á, É…) no toquen el texto de arriba */
.eyebrow + :is(h1, h2, h3, .display) { margin-top: .2em; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--gris); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cuero); color: #fff; }
.btn--primary:hover { background: var(--cuero-oscuro); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn--light { background: #fff; color: var(--azul); }
.btn--light:hover { color: var(--tinta); }
.btn--outline-light { border-color: var(--pie-texto); color: #fff; }
.btn--outline-light:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--tinta); color: #fff; }
.btn--dark:hover { color: #fff; background: #000; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Marcadores de foto (hasta tener las fotos reales) ---------- */
.ph {
  position: relative; overflow: hidden;
  background-color: #D5DBD3;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 10px, transparent 10px 20px);
}
.ph-label {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .92); color: var(--gris); font-size: .75rem; padding: 4px 10px; border-radius: 999px;
}
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cabecera y menú ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 245, 242, .96); border-bottom: 1px solid var(--linea); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { text-decoration: none; color: var(--tinta); display: flex; flex-direction: column; line-height: 1; }
.logo__cabal { font-weight: 700; font-size: 1.7rem; letter-spacing: -.5px; }
.logo__gredos { font-family: var(--f-mano); font-size: 1.7rem; color: var(--azul); }
.logo__hp { font-family: var(--f-mano); font-size: 1.7rem; color: var(--cuero); }
.logo__place { font-size: .7rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gris-suave); margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 10px; }
.main-nav__list { list-style: none; display: flex; gap: 2px; }
.main-nav__list a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--tinta); font-weight: 500; }
.main-nav__list a:hover { color: var(--cuero); }
.main-nav__list a[aria-current="page"] { color: var(--cuero); font-weight: 700; box-shadow: inset 0 -2px 0 var(--cuero); }
.main-nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid var(--linea); border-radius: 999px; background: #fff; color: var(--tinta); cursor: pointer;
}
/* Hamburguesa → X cuando el menú está abierto */
.nav-toggle__line { transition: transform .3s var(--suave), opacity .2s ease; }
.nav-toggle__line--top { transform-origin: 12px 7px; }
.nav-toggle__line--bot { transform-origin: 12px 17px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line--top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line--mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line--bot { transform: translateY(-5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle__line { transition: none; } }

@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; row-gap: 0; min-height: 84px; padding-block: 12px; }
  .main-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 0 28px; }
  .main-nav__list { flex-direction: column; gap: 4px; }
  .main-nav__list a { padding: 15px 6px; font-size: 1.06rem; border-bottom: 1px solid var(--linea); border-radius: 0; }
  .main-nav__list a[aria-current="page"] { box-shadow: none; }
  .main-nav__cta { margin: 22px 0 6px; }
  /* Con JS el menú es un panel bajo la cabecera (por encima del contenido, así no
     empuja la página) que se despliega deslizando hacia abajo y apareciendo.
     visibility: hidden evita que los enlaces plegados reciban el foco. */
  .js .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--fondo); border-bottom: 1px solid var(--linea); box-shadow: 0 18px 30px rgba(20, 32, 42, .12);
    padding-inline: 28px;
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; translate: 0 -10px; padding-block: 0;
    transition: max-height .35s var(--suave), padding .35s var(--suave), opacity .2s ease, translate .35s var(--suave), visibility 0s linear .35s;
  }
  .js .main-nav.is-open {
    max-height: min(680px, calc(100dvh - 84px)); overflow-y: auto;
    visibility: visible; opacity: 1; translate: 0 0; padding-block: 20px 28px;
    transition: max-height .45s var(--suave), padding .35s var(--suave), opacity .35s ease .05s, translate .4s var(--suave), visibility 0s;
  }
}
@media (max-width: 600px) { .js .main-nav { padding-inline: 20px; } }

/* ---------- Secciones genéricas ---------- */
.section { padding-block: 96px; }
.section--tight { padding-block: 72px; }
.section--white { background: #fff; border-block: 1px solid var(--linea); }
.section--pino { background: var(--pino); color: #fff; }
.section--azul { background: var(--azul); color: #fff; }
.section--tinta { background: var(--tinta); color: #fff; }
.section--beige { background: var(--beige); }
@media (max-width: 700px) { .section { padding-block: 64px; } .section--tight { padding-block: 52px; } }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 40px; }
.section-head p { max-width: 420px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { flex: 1 1 340px; min-width: 0; }
.split > .split__wide { flex: 1.6 1 460px; }
.note { font-size: .82rem; color: var(--gris); background: var(--fondo); padding: 10px 14px; border-radius: 10px; }
.section--azul .note, .section--tinta .note { background: rgba(255, 255, 255, .1); color: var(--azul-claro); }

/* ---------- Portada (hero) ---------- */
.hero { position: relative; min-height: min(780px, 92vh); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero__img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 32, .1) 25%, rgba(10, 22, 32, .86) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 72px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__text { flex: 1 1 600px; }
.hero__text .eyebrow { font-size: 1.6rem; margin-bottom: 6px; }
.hero__text .lead { margin-top: 20px; max-width: 560px; }

/* Cabecera de páginas interiores */
.page-hero { position: relative; overflow: hidden; }
.page-hero__inner { position: relative; padding-block: 72px 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.page-hero__inner > div:first-child { flex: 1 1 560px; }
/* Cabeceras con foto al lado (Doma, Clases): el texto centrado en vertical junto a la foto, sin hueco arriba */
.page-hero__inner--media { align-items: center; }
.page-hero .lead { margin-top: 18px; max-width: 580px; }
.page-hero--azul { background: var(--azul); color: #fff; }
.page-hero--azul .lead { color: #E3EEF7; }
.page-hero--pino { background: var(--pino); color: #fff; }
.page-hero--pino .lead { color: #E3ECE5; }
.page-hero--beige { background: var(--beige); }
.page-hero--beige .lead { color: #3F3428; }
.page-hero--tinta { background: var(--tinta); color: #fff; text-align: center; }
.page-hero--tinta .page-hero__inner { justify-content: center; padding-block: 96px; }
.page-hero--tinta .page-hero__inner > div:first-child { flex-basis: 100%; }
.page-hero--tinta .lead { margin-inline: auto; color: #DDE6EC; }
.page-hero--tinta .btn-row { justify-content: center; margin-top: 28px; }
.page-hero__topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.page-hero__media { position: relative; overflow: hidden; flex: 1 1 420px; min-height: 420px; border-radius: var(--radio); }
.page-hero__media > img, .page-hero__media > video, .story__media > img, .tile__img > img { position: absolute; inset: 0; }
.page-hero__media--bottom { border-radius: var(--radio); align-self: center; margin-bottom: 0; min-height: 460px; }
.page-hero--beige .page-hero__inner { padding-bottom: 80px; }
.highlight { color: var(--cuero); }

/* ---------- Inicio: servicios en mosaico ---------- */
.bento { display: flex; flex-wrap: wrap; gap: 18px; }
.bento__big { flex: 1 1 420px; min-height: 618px; }
.bento__side { flex: 1.4 1 520px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bento__row { display: flex; flex-wrap: wrap; gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 300px; padding: 28px; border-radius: var(--radio); text-decoration: none; overflow: hidden;
  transition: transform .2s ease;
}
.tile:hover { transform: translateY(-3px); }
.bento__row .tile { flex: 1 1 250px; }
.tile__num { font-family: var(--f-display); font-size: 1.375rem; }
.tile__title { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; }
.tile__text { display: block; margin-top: 8px; line-height: 1.5; }
.tile__more { font-weight: 700; }
.tile--photo { color: #fff; justify-content: flex-end; }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20, 32, 42, .88)); }
.tile--photo > * { position: relative; z-index: 1; }
.tile--photo .ph-label { position: absolute; top: 18px; bottom: auto; left: 18px; }
.tile--photo .tile__num { color: var(--arena); }
.tile--photo > .tile__bg { position: absolute; inset: 0; z-index: 0; }
.tile--photo:hover { color: #fff; }
.tile--pino { background: var(--pino); color: #fff; }
.tile--pino .tile__num { color: var(--arena); }
.tile--pino .tile__text { color: var(--pino-texto); }
.tile--pino:hover { color: #fff; }
.tile--white { background: #fff; border: 1px solid var(--linea); color: var(--tinta); }
.tile--white .tile__num, .tile--white .tile__more { color: var(--cuero); }
.tile--white .tile__text { color: var(--gris); }
.tile--beige { background: var(--beige); color: var(--tinta); flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.tile--beige .tile__num, .tile--beige .tile__more { color: var(--cuero-oscuro); }
.tile--beige .tile__text { color: #3F3428; }
.tile__col { flex: 1 1 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile__img { position: relative; overflow: hidden; flex: 1 1 240px; min-height: 200px; border-radius: var(--radio-s); }

/* ---------- Diario de la cuadra ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 18px; }
.cards > * { flex: 1 1 280px; min-width: 0; }
.diario-card { background: var(--fondo); border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); }
.diario-card__img { aspect-ratio: 16 / 10; }
.diario-card__body { padding: 20px 22px 24px; }
.diario-card__meta { font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--azul); }
.diario-card h3 { font-size: 1.3rem; margin: 8px 0 6px; line-height: 1.25; }

/* ---------- Pasos numerados ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li { border-top: 3px solid var(--tinta); padding-top: 18px; }
.steps__num { font-family: var(--f-display); font-size: 3.4rem; color: var(--cuero); line-height: 1; }
.steps h3 { font-size: 1.25rem; margin: 6px 0; }

.process { list-style: none; }
.process li { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid #CDD4CC; }
.process__num { flex: 0 0 110px; font-family: var(--f-display); font-size: 4rem; line-height: 1; color: var(--cuero); }
.process h3 { flex: 1 1 260px; font-family: var(--f-display); font-weight: 400; font-size: 2.5rem; }
.process p { flex: 2 1 380px; color: var(--gris); }

/* ---------- Vídeo ---------- */
.video-block { position: relative; overflow: hidden; min-height: 520px; border-radius: 26px; display: flex; align-items: center; justify-content: center; }
.video-block::after { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 42, .55); }
.video-block > * { position: relative; z-index: 1; }
.video-block > .video-block__media { position: absolute; inset: 0; z-index: 0; }

/* Botón de pausa/reproducir de los vídeos (solo con JS: sin JS no haría nada) */
.video-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 32, 42, .72); color: #fff; cursor: pointer; }
.js .video-toggle { display: inline-flex; }
.video-toggle:hover { background: rgba(20, 32, 42, .9); }
.video-toggle__play { display: none; }
.video-toggle[data-estado="pausado"] .video-toggle__play { display: block; }
.video-toggle[data-estado="pausado"] .video-toggle__pausa { display: none; }
/* En la portada, arriba a la derecha para no tapar los botones */
.hero > .video-toggle { top: 20px; bottom: auto; }
/* En el bloque de vídeo de Inicio, arriba a la derecha (abajo va el texto) */
.video-block > .video-toggle { position: absolute; top: 16px; bottom: auto; }
.video-block__play { width: 96px; height: 96px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-block__caption { position: absolute; left: 32px; bottom: 28px; color: #fff; }
.video-block__caption strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.75rem; line-height: 1; }

/* ---------- Rutas ---------- */
.legend { color: var(--gris); margin-bottom: 28px; }
.ruta-list { display: flex; flex-direction: column; gap: 28px; }
.ruta { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--linea); border-radius: 24px; overflow: hidden; }
.ruta__media { position: relative; overflow: hidden; flex: 1 1 420px; min-width: 0; min-height: 300px; }
.ruta__media img { position: absolute; inset: 0; }
.ruta__body { flex: 1.2 1 440px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 600px) { .ruta__body { padding: 24px; } }
.ruta__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ruta__num { font-family: var(--f-display); font-size: 1.75rem; color: var(--cuero); line-height: 1; }
.chip { font-size: .75rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--azul); background: var(--azul-claro); padding: 5px 11px; border-radius: 999px; }
.ruta__desc { color: var(--gris); font-size: 1.06rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #E3E7E2; padding-top: 18px; margin: 6px 0 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gris-suave); }
.facts dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr 1fr; } }
.shoes { display: flex; gap: 3px; }
.shoe--on { color: var(--cuero); }
.shoe--off { color: #CFD5CE; }
.link-strong { font-weight: 700; color: var(--cuero); }

.info-card { background: #fff; border: 1px solid var(--linea); border-radius: 24px; padding: 36px; }

/* Preguntas frecuentes con <details> (funciona sin JavaScript) */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border-radius: var(--radio-s); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; font-weight: 700; font-size: 1.06rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--cuero); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--gris); }

/* ---------- Clases ---------- */
.level { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.level__bars { display: flex; gap: 4px; }
.level__bars span { width: 28px; height: 8px; border-radius: 4px; background: var(--linea); }
.level__bars .on { background: var(--cuero); }
.level h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; }
.level__who { font-size: .9rem; font-weight: 700; color: var(--cuero); }

.table-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.table-card__head { padding: 28px 28px 8px; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 28px; text-align: left; }
.price-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gris-suave); }
.price-table tbody tr { border-top: 1px solid #E3E7E2; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; }
.checklist--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; }

.result { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px 20px; }
.result__place { font-family: var(--f-display); font-size: 2.5rem; color: var(--arena); line-height: 1; min-width: 70px; }
.result__info { flex: 1 1 220px; }
.result__info span { color: var(--pie-texto); }
.result__info .pendiente { color: var(--tinta); }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Pupilajes ---------- */
.plan { border-radius: var(--radio); padding: 22px; background: #fff; border: 1px solid var(--linea); }
.plan--dark { background: var(--azul); border-color: var(--azul); color: #fff; }
.plan__img { position: relative; overflow: hidden; height: 180px; border-radius: var(--radio-s); margin-bottom: 20px; }
.plan h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; }
.plan p { margin: 8px 0 18px; opacity: .9; }
.plan__price { padding-top: 16px; border-top: 1px solid #E3E7E2; margin: 0 !important; }
.plan--dark .plan__price { border-top-color: rgba(255, 255, 255, .25); }
.plan__price strong { font-family: var(--f-display); font-weight: 400; font-size: 2.1rem; }

/* Galería de instalaciones: la primera foto grande y el resto al lado y debajo.
   gallery--1: una sola foto a todo el ancho · gallery--2: dos fotos del mismo alto · gallery--n: 3 o más */
.gallery { display: grid; grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: 18px; }
.gallery__item img { position: absolute; inset: 0; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: 2fr 1fr; grid-auto-rows: 180px; }
  .gallery > .gallery__item:first-child { grid-row: span 2; }
  .gallery--1 { grid-template-columns: 1fr; }
  .gallery--1 > .gallery__item:first-child { grid-row: span 3; }
  .gallery--2 > .gallery__item { grid-row: span 2; }
}

/* ---------- Nosotros y manada (en Rutas) ---------- */
.story { font-size: 1.12rem; line-height: 1.7; color: #2C3A44; display: flex; flex-direction: column; gap: 18px; }
.story__media { position: relative; overflow: hidden; min-height: 520px; border-radius: 26px; }
.manada { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.horse__img { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; }
.horse h3 { font-family: var(--f-mano); font-weight: 400; font-size: 1.6rem; margin: 14px 0 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; text-align: center; }
.stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 5rem; line-height: 1; }
.stats span { color: #CFE0EE; }

/* ---------- Reservar ---------- */
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.contact-link { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--linea); color: var(--tinta); text-decoration: none; padding: 16px 18px; border-radius: var(--radio-s); font-weight: 700; }
.contact-link:hover { color: var(--cuero); }
.contact-link--info { font-weight: 400; }
.contact-link--info:hover { color: var(--tinta); }
.form-card { background: #fff; border: 1px solid var(--linea); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { .form-card { padding: 22px; } }
.form-card fieldset { border: 0; margin: 0; padding: 0; }
.form-card legend { font-weight: 700; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #C9CFD6; background: #fff; cursor: pointer; }
.choice input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--arena); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; padding: 12px; border: 1.5px solid #C9CFD6; border-radius: 10px; background: #fff; color: var(--tinta); }
.field input:focus, .field textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px var(--azul-claro); }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #2C3A44; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-help { font-size: .85rem; color: var(--gris); }
.form-status { font-size: .9rem; font-weight: 700; color: var(--pino); min-height: 1.4em; }
.como-llegar { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.como-llegar p { max-width: 760px; }

/* ---------- Páginas de texto (legales) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 14px; }
.prose li { margin-bottom: 4px; }

/* ---------- Pie ---------- */
.site-footer { color: var(--pie-texto); }
.site-footer__sierra { width: 100%; height: 170px; }
.site-footer__body { background: var(--tinta); padding-top: 40px; }
.site-footer a { color: var(--pie-texto); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer__cols > div { flex: 1 1 200px; }
.site-footer__intro { flex: 1.4 1 300px !important; }
.site-footer__intro p:not(.eyebrow) { margin: 10px 0 22px; max-width: 380px; }
.site-footer .btn--primary { color: #fff; }
.site-footer__title { margin: 0 0 12px; color: #fff; font-size: .8rem; letter-spacing: 1.6px; text-transform: uppercase; }
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.icon-link { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__strong { display: inline-block; margin-top: 10px; font-weight: 700; }
.site-footer__bottom { margin-top: 48px; border-top: 1px solid #2A3B48; padding: 20px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Animaciones ---------- */
/* Portada: entrada suave del texto al cargar (solo desplazamiento, sin ocultarlo:
   se ve desde el primer momento y no retrasa la carga) */
@keyframes entrada-suave { from { translate: 0 14px; } to { translate: 0 0; } }
.hero__text { animation: entrada-suave .8s var(--suave) both; }
.hero .btn-row { animation: entrada-suave .8s var(--suave) .1s both; }

/* Aparición al hacer scroll: main.js añade .revela solo a los elementos con
   data-reveal (o hijos de data-reveal-group) que están por debajo de lo visible
   al cargar, y .is-visible cuando entran en pantalla (una sola vez). Sin JS, o con
   prefers-reduced-motion, no se añade nada y todo se ve directamente. */
.js .revela { transition: opacity .6s var(--suave), translate .6s var(--suave); }
.js .revela:not(.is-visible) { opacity: 0; translate: 0 20px; }
.js .revela-d1 { transition-delay: 90ms; }
.js .revela-d2 { transition-delay: 180ms; }
.js .revela-d3 { transition-delay: 270ms; }
.js .revela-d4 { transition-delay: 360ms; }
.js .revela-d5 { transition-delay: 450ms; }
.js .revela-d6 { transition-delay: 540ms; }
@media print { .js .revela { opacity: 1 !important; translate: none !important; } }

/* Hover: ligera elevación de las tarjetas y zoom muy leve de la foto en su marco */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile, .ruta, .plan, .level, .diario-card, .horse { transition: transform .35s var(--suave), box-shadow .35s var(--suave); }
  .tile:hover, .ruta:hover, .plan:hover, .level:hover, .diario-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20, 32, 42, .10); }
  .horse:hover { transform: translateY(-4px); }
  .ruta__media img, .horse__img img, .plan__img img, .gallery__item img, .tile__img img, .tile__bg { transition: transform .8s var(--suave); }
  .ruta:hover .ruta__media img, .horse:hover .horse__img img, .plan:hover .plan__img img,
  .gallery__item:hover img, .tile:hover .tile__img img, .tile:hover .tile__bg { transform: scale(1.04); }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.steps--spaced { margin: 48px 0 72px; }

/* ---------- Ajustes ---------- */
.steps--spaced-s { margin-top: 28px; }
.section--flush-top { padding-top: 0; }
.eyebrow-big { font-family: var(--f-mano); font-size: .6em; color: var(--azul); }
.on-dark { color: var(--pie-texto); margin-top: 16px; }
.cta-band { background: var(--tinta); color: #fff; border-radius: 26px; padding: 44px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band > div:first-child { flex: 1 1 420px; }
.cta-band p { color: var(--pie-texto); margin-top: 10px; }
@media (max-width: 600px) { .cta-band { padding: 28px; } }
.horse__img { position: relative; }
.horse__img img { position: absolute; inset: 0; }
