/* =========================================================================
   CHENO AVENTURAS — hoja de estilos global
   Paleta del diseño de Figma (opción 2).
   Tipografías de marca: Inter Black (titulares) + Poppins (resto).
   ========================================================================= */

/* ---------- Fuentes de marca (self-host) ---------- */
@font-face {
  font-family: "Inter Black";
  src: url("../fonts/Inter-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Black";
  src: url("../fonts/Inter-BlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
/* Poppins 400/500 rectos llegan de Google Fonts (ver <link> en cada página). */

/* ---------- Tokens ---------- */
:root {
  --paper:        #efece7;
  --paper-2:      #e6e1d8;
  --paper-3:      #dcd6ca;
  --ink:          #23231f;
  --ink-soft:     #55564d;
  --ink-mute:     #8a8a7e;
  --olive:        #77854f;
  --olive-dark:   #5f6d3e;
  --olive-bright: #9bab68;
  --gold:         #eab308;
  --gold-bright:  #f6c945;
  --gold-soft:    #f8d878;   /* amarillo más claro (enlaces sobre azul / "¿Sabías que?") */
  --gold-dark:    #b98a10;
  --teal-deep:    #1f3e64;   /* azul noche (hero / cabeceras) */
  --teal:         #3c6aa3;
  --night:        #274c78;   /* azul limpio (pie, newsletter, tarjetas) */
  --white:        #ffffff;
  --line:         rgba(35, 35, 31, .14);
  --line-light:   rgba(255, 255, 255, .18);

  --shadow-sm: 0 2px 10px rgba(20, 25, 20, .10);
  --shadow-md: 0 14px 40px rgba(20, 25, 20, .16);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;

  --font-display: "Inter Black", "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Inter Black", "Poppins", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.05; font-weight: 400; }
p { margin: 0 0 1em; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(24px, 3vw, 42px); }
.section--tight { padding-block: clamp(20px, 2.6vw, 34px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
[hidden] { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 1rem;
}
.eyebrow::before,
.eyebrow--lines::after {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--center { justify-content: center; }

.title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.06;
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
}
.title .accent { color: var(--olive); }
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .98;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
}
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }

/* elementos numéricos que usan Inter Black */
.curioscard__n, .seal, .deal__pct, .stat b { font-weight: 900; letter-spacing: -.01em; }

/* subtítulos y etiquetas en Poppins SemiBold */
.newsletter h2, .ctastrip h3, .curioscard h3, .placecard__body h3, .svc h3,
.post h3, .feature h4, .checklist h4, .contact-card h4, .site-footer h5,
.post__cat, .deal__brand, .stat span, .form label, .seal small,
.eyebrow, .btn { font-weight: 600; }
.nav__links { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--olive);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--btn-bg);
  border-radius: 4px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--olive-dark); border-color: var(--olive-dark); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.6); }
.btn--light:hover { background: var(--gold); --btn-fg: var(--night); border-color: var(--gold); }

/* ---------- Torn-paper divider ---------- */
.torn-bottom { position: relative; }
.torn-bottom::after,
.torn-top::before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 34px;
  background: url("../img/edges/torn-paper.svg") repeat-x bottom center / 1200px 34px;
  pointer-events: none;
  z-index: 2;
}
.torn-bottom::after { bottom: -1px; }
.torn-top::before { top: -1px; transform: scaleY(-1); }
.torn-bottom--dark::after,
.torn-top--dark::before {
  background-image: url("../img/edges/torn-dark.svg");
}

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: absolute; inset: 0 0 auto 0;
  z-index: 40;
  padding-block: 22px;
}
.site-header--solid {
  position: sticky; top: 0;
  background: var(--night);
  padding-block: 14px;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
}
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.brand__tag {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .58rem;
  margin-left: .2em;
  opacity: .85;
}
.site-header--solid .brand { color: #fff; }

.nav__links {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  margin-left: auto;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
}
.nav__links a { color: #fff; padding-block: 6px; position: relative; opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.nav__social { display: flex; gap: 12px; margin-left: 8px; }
.nav__social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; color: #fff; }
.nav__social a:hover { background: #fff; color: var(--ink); }
.nav__social svg { width: 16px; height: 16px; }

.nav__toggle {
  margin-left: auto;
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 6px;
  color: #fff;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav[data-open="true"] .nav__toggle span { background: transparent; }
.nav[data-open="true"] .nav__toggle span::before { transform: rotate(45deg); }
.nav[data-open="true"] .nav__toggle span::after { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 1000px) {
  .nav { position: relative; flex-wrap: wrap; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0;
    background: var(--night);
    padding: 4px var(--gutter) 20px;
    border-top: 1px solid var(--line-light);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__links li { flex: 0 0 auto; }
  .nav__links li:not(.nav__social) a {
    display: block; width: 100%;
    padding: 15px 0; font-size: 1rem;
    border-bottom: 1px solid var(--line-light);
    opacity: 1;
  }
  .nav__links li:not(.nav__social) a[aria-current="page"]::after { display: none; }
  .nav__social { margin: 18px 0 0; }
}

/* =========================================================================
   HERO (portada)
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: center;
  color: #fff;
  padding-top: clamp(120px, 22vw, 160px); padding-bottom: clamp(56px, 12vw, 90px);
  background: var(--teal-deep);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(28,54,86,.8) 0%, rgba(28,54,86,.58) 24%, rgba(28,54,86,.3) 52%, rgba(28,54,86,.05) 78%, rgba(28,54,86,0) 100%),
    linear-gradient(180deg, rgba(28,54,86,.5) 0%, rgba(28,54,86,0) 22%, rgba(28,54,86,0) 62%, rgba(28,54,86,.42) 100%);
}
/* Recorte de Cheno a la derecha (solo pantallas anchas).
   Si assets/img/cheno-recorte.webp no existe, el div queda vacío (no rompe nada). */
.hero__portrait {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 42%; height: 94%; max-width: 620px;
  background: url("../img/cheno-recorte.webp") no-repeat bottom right;
  background-size: contain;
  filter: drop-shadow(-16px 6px 34px rgba(0, 0, 0, .45));
  pointer-events: none; display: none;
}
@keyframes cheno-portrait-in {
  from { opacity: 0; transform: translateY(64px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1100px) {
  .hero__portrait { display: block; }
  .js .hero__portrait { animation: cheno-portrait-in 1s cubic-bezier(.16, 1, .3, 1) .15s both; }
  .hero .hero__inner { max-width: none; padding-inline: clamp(52px, 9vw, 150px); }
}
@media (min-width: 1440px) { .hero__portrait { width: 38%; } }

.hero__inner { position: relative; z-index: 3; max-width: 820px; }
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(1.8rem, 5.6vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -.018em;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}
.hero__title .accent { color: #fff; }
.hero__text { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 34ch; margin-block: 1.1rem 1.8rem; }

/* curiosidad rotativa dentro del hero */
.curiosbar {
  position: relative; z-index: 3;
  margin-top: 2.4rem;
  display: flex; align-items: baseline; gap: .8em; flex-wrap: wrap;
  max-width: 560px;
  border-left: 3px solid var(--gold);
  padding: .35em 0 .35em 1em;
}
.curiosbar__label {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1.12rem; color: var(--gold-soft); white-space: nowrap;
}
.curiosbar__text {
  font-size: 1rem; color: rgba(255,255,255,.9);
  line-height: 1.5; min-height: 3em;   /* reserva siempre 2 líneas: la página no salta al cambiar de dato */
  transition: opacity .4s ease;
}
.curiosbar__text.is-fading { opacity: 0; }

/* =========================================================================
   PAGE HEADER (interiores)
   ========================================================================= */
.pagehead {
  position: relative;
  color: #fff;
  padding: clamp(130px, 26vw, 190px) 0 clamp(64px, 14vw, 120px);
  background: var(--teal-deep);
  overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.pagehead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,58,92,.72), rgba(30,58,92,.46)); }
.pagehead__inner { position: relative; z-index: 3; }
.pagehead h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.1rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.02em; }
.pagehead p { max-width: 40ch; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.pagehead__cta { position: absolute; top: clamp(18px, 4vw, 32px); right: clamp(16px, 4vw, 32px); z-index: 4; white-space: nowrap; }
@media (max-width: 640px) {
  /* position:relative (no static) para que el z-index siga ganando a
     .pagehead__media, que es absolute y si no la tapa. */
  .pagehead__cta { position: relative; display: inline-flex; margin: 0 0 18px; top: 0; right: 0; }
}

/* =========================================================================
   BLOG (índice + artículo). El HTML lo genera scripts/build-blog.mjs
   ========================================================================= */
.pagehead--blog { padding-block: clamp(96px, 18vw, 150px) clamp(40px, 8vw, 72px); }
.pagehead--bloghome { padding-block: clamp(28px, 5vw, 44px) clamp(14px, 2.5vw, 22px); }
.pagehead--bloghome h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.article__meta { font-size: .95rem; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.article__meta a { color: var(--gold-soft); text-decoration: none; }
.article__meta a:hover { text-decoration: underline; }

.article__body {
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.article__body > :first-child { margin-top: 0; }
.article__body h2 {
  font-family: var(--font-head); font-weight: 600; color: var(--night);
  font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2;
  margin: 1.8em 0 .5em;
}
.article__body h3 {
  font-family: var(--font-head); font-weight: 600; color: var(--night);
  font-size: 1.18rem; margin: 1.5em 0 .4em;
}
.article__body p { margin: 0 0 1.1em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article__body li { margin: .3em 0; }
.article__body li::marker { color: var(--olive); }
.article__body a { color: var(--night); text-underline-offset: 2px; }
.article__body a:hover { color: var(--teal); }
.article__body img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; margin: 1.6em auto;
  box-shadow: var(--shadow-sm);
}
/* tamaño opcional escribiendo ![](ruta.webp#small) o "#medium" en el markdown */
.article__body img.article__img--small { max-width: 45%; }
.article__body img.article__img--medium { max-width: 70%; }
.article__body blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.1em;
  border-left: 3px solid var(--gold); color: var(--ink-soft); font-style: italic;
}
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article__body pre {
  background: var(--night); color: #eef; border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: .9rem; margin: 1.4em 0;
}
.article__body code {
  background: rgba(20,25,20,.07); padding: .15em .4em; border-radius: 5px;
  font-size: .92em;
}
.article__body pre code { background: none; padding: 0; }

.blogfilter {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.blogfilter label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.blogfilter select {
  font: inherit; font-size: .92rem; padding: .55em 2em .55em 1em;
  border-radius: 10px; border: 1px solid rgba(20,20,15,.2); background: var(--white);
  color: var(--ink); cursor: pointer;
}
.bloglist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
@media (min-width: 900px) { .bloglist { grid-template-columns: repeat(4, 1fr); } }
.blogcard {
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blogcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blogcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.blogcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blogcard:hover .blogcard__media img { transform: scale(1.05); }
.blogcard__media--empty { background: linear-gradient(120deg, var(--teal-deep), var(--teal)); }
.blogcard__body { padding: 18px 20px 22px; }
.blogcard__body time { font-size: .82rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.blogcard__body h2 {
  font-family: var(--font-head); font-weight: 600; color: var(--night);
  font-size: 1.16rem; line-height: 1.25; margin: 6px 0 8px;
}
.blogcard__body p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* =========================================================================
   CURIOSIDADES (sección propia bajo el hero)
   ========================================================================= */
.curios {
  background: var(--paper);
}
.curios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.curioscard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.curioscard__n {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--paper-3);
  line-height: 1;
}
.curioscard h3 {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: .04em; margin-top: .3em;
}
.curioscard p { margin: 0; font-size: .96rem; color: var(--ink-soft); }
.curioscard--placeholder { color: var(--ink-mute); }

/* Cronómetro: tiempo hasta las nuevas curiosidades (bajo la barra "¿Sabías que…?") */
.curios__timer {
  position: relative; z-index: 3;
  margin: 14px 0 0 calc(1em + 3px);
  display: flex; align-items: baseline; gap: .55em; flex-wrap: wrap;
  max-width: 560px;
}
.curios__timer-label {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .16em; font-size: .68rem; font-weight: 600;
  color: rgba(255, 255, 255, .55);
}
.curios__timer-clock {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.2rem; letter-spacing: .02em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   DESTACADOS / tarjetas de destino
   ========================================================================= */
.destacados__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 40px;
}
.placecard {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.placecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.placecard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
.placecard:hover img { transform: scale(1.05); }
.placecard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; color: #fff; }
.placecard__body h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; margin: 0; }
.placecard__body span { font-size: .86rem; color: rgba(255,255,255,.8); }

/* Feed completo de Instagram (aventuras.html): siempre de 3 en 3 en escritorio. */
.cardgrid--ig { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .cardgrid--ig { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cardgrid--ig { grid-template-columns: 1fr; } }

/* Banner del minijuego (inicio): imagen completa, clicable, lleva a /minijuego. */
.minijuego-banner { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 28px; }
.minijuego-banner img {
  display: block; width: 100%; height: auto;
  transition: transform .5s ease, filter .5s ease;
  /* La ilustración es muy saturada/brillante comparada con el resto de la
     web (fotos reales, paleta tierra): la atenuamos para que no desentone. */
  filter: saturate(.8) brightness(1.03) contrast(.99) sepia(.03);
}
.minijuego-banner:hover img { transform: scale(1.02); filter: saturate(.88) brightness(1.05) contrast(1) sepia(.01); }

/* =========================================================================
   BLOQUE EQUIPO / imagen + texto
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); isolation: isolate; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media--square img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Secreto: foco de la imagen de "Equipo con el que viajo".
   Pulsar cicla normal -> super encendido -> apagado (clases en .split__media, ver main.js). */
.focofx {
  position: absolute; left: 71.5%; top: 39%;
  width: 17%; height: 15%;
  transform: translate(-50%, -50%);
  padding: 0; border: 0; background: transparent;
  border-radius: 14%;
  cursor: pointer; z-index: 4;
  -webkit-tap-highlight-color: transparent;
}
.focofx:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.focofx::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; transition: opacity .4s ease;
  width: 520%; height: 520%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,250,235,.95) 0%,
    rgba(255,234,180,.82) 14%,
    rgba(255,214,132,.45) 30%,
    rgba(255,205,120,.18) 48%,
    rgba(255,205,120,0) 68%);
  mix-blend-mode: screen;
}
.split__media.is-foco-on  .focofx::after {
  opacity: 1;
  animation: focoPulse 2.6s ease-in-out infinite;
}
@keyframes focoPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  46% { opacity: .9; }
  50% { opacity: .72; transform: translate(-50%, -50%) scale(.985); }
  54% { opacity: .96; }
}
@media (prefers-reduced-motion: reduce) {
  .split__media.is-foco-on .focofx::after { animation: none; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* mini-features fila con iconos */
.featurerow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px; margin-top: 46px;
}
.feature { text-align: left; }
.feature svg { width: 30px; height: 30px; color: var(--ink); margin-bottom: 10px; }
.feature h4 { font-family: var(--font-head); text-transform: uppercase; font-size: .92rem; letter-spacing: .1em; margin: 0 0 .2em; }
.feature p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.newsletter {
  position: relative;
  color: #fff;
  padding-block: clamp(32px, 4.5vw, 54px);
  background: var(--night);
  overflow: hidden;
}
.newsletter__media { position: absolute; inset: 0; }
.newsletter__media img { width: 100%; height: 100%; object-fit: cover; }
.newsletter__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,58,92,.94), rgba(30,58,92,.6)); }
.newsletter__inner { position: relative; z-index: 3; max-width: 560px; }
.newsletter h2 { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.newsletter p { color: rgba(255,255,255,.8); }
.subscribe { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 220px;
  background: rgba(255,255,255,.96);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: .9em 1em;
  font: inherit; color: var(--ink);
}
.subscribe input:focus { outline: 2px solid var(--olive-bright); }

/* =========================================================================
   GALERÍA tira
   ========================================================================= */
.striprow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.striprow img { width: 100%; height: 220px; object-fit: cover; }
@media (max-width: 720px) { .striprow { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   SERVICIOS
   ========================================================================= */
.svcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.svc__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--olive); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px;
}
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .04em; }
.svc p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.svc__badge {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; color: var(--gold-dark);
  border: 1px solid var(--gold); border-radius: 3px; padding: .35em .7em;
}

/* Mi equipo — cuadrícula de objetos */
.gearlist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3.5vw, 44px) clamp(14px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vw, 44px);
}
.gearitem { margin: 0; text-align: center; }
.gearitem__pic {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 12%;
}
.gearitem__pic svg { width: 100%; height: 100%; overflow: visible; }
.gearitem__pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.gearitem figcaption,
.gearitem__name {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(.92rem, 1.3vw, 1.08rem);
  line-height: 1.25; color: var(--night);
}
/* iPhone: enlace de afiliado + leve flotación */
.gearitem--link { text-decoration: none; }
.gearitem--link:hover .gearitem__name { text-decoration: underline; }
.gearitem__pic--wide { padding: 3%; }
.gearitem__pic--float img { animation: gear-float 3.8s ease-in-out infinite; will-change: transform; }
.gearitem--link:hover .gearitem__pic--float img { animation-play-state: paused; transform: translateY(-6px) scale(1.03); }
@keyframes gear-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .gearitem__pic--float img { animation: none; }
}
@media (max-width: 720px) {
  .gearlist { grid-template-columns: repeat(2, 1fr); }
}

/* bloque CTA oscuro */
.ctastrip {
  background: var(--night); color: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 48px;
}
.ctastrip h3 { font-family: var(--font-head); text-transform: uppercase; margin: 0; font-size: 1.4rem; }
.ctastrip p { margin: .2em 0 0; color: rgba(255,255,255,.75); }

/* =========================================================================
   DRON / certificación
   ========================================================================= */
.checklist { margin-top: 26px; }
.checklist li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; width: 26px; height: 26px; color: var(--olive-dark); margin-top: 3px; }
.checklist h4 { font-family: var(--font-head); text-transform: uppercase; font-size: .96rem; letter-spacing: .06em; margin: 0 0 .15em; }
.checklist p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.seal {
  display: inline-grid; place-items: center;
  width: 128px; height: 128px; border-radius: 50%;
  border: 2px dashed var(--gold);
  color: var(--gold-dark);
  font-family: var(--font-display); font-size: 1.6rem;
  text-align: center; line-height: 1;
}
.seal small { display: block; font-family: var(--font-head); font-size: .5rem; letter-spacing: .2em; margin-top: 4px; }

/* descuentos — tarjetas con giro 180° (flip) */
.dealgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; align-items: start; }
.deal {
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(20, 25, 20, .09);
  perspective: 1400px;
}
.deal:hover { box-shadow: 0 22px 46px rgba(20, 25, 20, .16); }
.deal__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.deal:hover .deal__inner,
.deal.is-flipped .deal__inner { transform: rotateY(180deg); }
.deal__front,
.deal__back {
  border-radius: 12px; overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--night); color: #fff;
}
.deal__back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 22px; text-align: center;
  pointer-events: none;
}
.deal:hover .deal__back,
.deal.is-flipped .deal__back { pointer-events: auto; }
.deal__media {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover;
}
.deal__more {
  display: block; width: 100%;
  padding: 16px 18px; text-align: center;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em;
  font-size: .95rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .06);
}
.deal__code-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.deal__code {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.2rem; letter-spacing: .04em;
  background: #fff; color: var(--ink);
  padding: .28em .7em; border-radius: 8px;
}
.deal__copy {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  font-size: .7rem; font-weight: 600;
  padding: .55em 1em; border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px; background: transparent; color: #fff; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.deal__copy:hover { background: #fff; color: var(--night); border-color: #fff; }
.deal__copy.is-copied { background: var(--olive-bright); color: var(--night); border-color: var(--olive-bright); }
.deal__benefit { margin: 0; font-size: .9rem; color: rgba(255,255,255,.82); }
.deal__link {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: .92rem; font-weight: 600; color: var(--gold-soft);
}
.deal__link:hover { color: var(--gold-bright); }
.deal__link--btn {
  align-self: center;
  border: 1px solid var(--gold-soft); border-radius: 5px;
  padding: .62em 1.2em;
}
.deal__link--btn:hover { background: var(--gold-soft); color: var(--night); border-color: var(--gold-soft); }

/* mensaje de éxito de los formularios */
.subscribe__ok { color: var(--gold-bright); font-weight: 600; margin-top: 12px; }

/* embeds de Instagram (página Curiosidades) */
.ig-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 34px; align-items: start;
}
.ig-embed-grid .instagram-media { min-width: 0 !important; margin: 0 auto !important; width: 100% !important; }

/* =========================================================================
   BLOG lista
   ========================================================================= */
.postlist { margin-top: 20px; }
.post {
  display: grid; grid-template-columns: 300px 1fr; gap: 30px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.post:last-child { border-bottom: 1px solid var(--line); }
.post__thumb { border-radius: 8px; overflow: hidden; }
.post__thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.post__cat { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--olive-dark); }
.post h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; margin: .2em 0 .3em; }
.post__meta { display: flex; gap: 18px; font-size: .82rem; color: var(--ink-mute); font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 680px) { .post { grid-template-columns: 1fr; gap: 14px; } }

/* =========================================================================
   SOBRE MÍ
   ========================================================================= */
.polaroid {
  background: #fff; padding: 14px 14px 46px; border-radius: 2px;
  box-shadow: var(--shadow-md); rotate: 2deg;
  position: relative;
}
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; translate: -50% 0;
  width: 120px; height: 30px; background: rgba(210,200,180,.6); rotate: -4deg;
}
.polaroid img { aspect-ratio: 1 / 1; object-fit: cover; }

.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 40px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); display: block; color: var(--ink); }
.stat span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--ink-soft); }

/* =========================================================================
   CONTACTO
   ========================================================================= */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  width: 100%; margin-top: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: .85em 1em; font: inherit; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--olive); }
.form textarea { min-height: 140px; resize: vertical; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 34px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.contact-card h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.contact-card p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  position: relative;
  background:
    linear-gradient(rgba(39,76,120,.86), rgba(39,76,120,.86)),
    url("../img/minijuego-fondo.webp") center/cover no-repeat;
  color: rgba(255,255,255,.72);
  padding-block: 64px 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h5 {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; color: #fff; margin: 0 0 14px;
}
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 8px; font-size: .92rem; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--line-light); border-radius: 6px; display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: #fff; color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 46px; padding-top: 20px;
  border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Animaciones al hacer scroll
   ========================================================================= */
/* Sin JS (o si algo falla) el contenido se ve siempre: el efecto solo se
   activa cuando main.js añade la clase .js al <html>. */

/* Bloques de texto / tarjetas: suben y aparecen. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Tarjetas de descuento: entrada de abajo a arriba más marcada */
.js .dealgrid > .reveal { transform: translateY(52px); }
.js .dealgrid > .reveal.is-visible { transform: none; }

/* Imágenes: además, la foto entra con un zoom-out lento al aparecer. */
.js .reveal--media { overflow: hidden; }
.js .reveal--media > img,
.js .reveal--media > picture > img {
  transform: scale(1.14);
  transition: transform 1.5s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.js .reveal--media.is-visible > img,
.js .reveal--media.is-visible > picture > img { transform: scale(1); }
/* tras aparecer, el zoom de hover vuelve a su velocidad normal */
.js .placecard.is-visible > img { transition: transform .5s ease; }

/* Escalonado dentro de las retículas (las fotos van cayendo una tras otra). */
.js .cardgrid > *:nth-child(2),
.js .curios__grid > *:nth-child(2),
.js .dealgrid > *:nth-child(2),
.js .svcgrid > *:nth-child(2) { transition-delay: .08s; }
.js .cardgrid > *:nth-child(3),
.js .curios__grid > *:nth-child(3),
.js .dealgrid > *:nth-child(3),
.js .svcgrid > *:nth-child(3) { transition-delay: .16s; }
.js .cardgrid > *:nth-child(4),
.js .dealgrid > *:nth-child(4),
.js .svcgrid > *:nth-child(4) { transition-delay: .24s; }
.js .svcgrid > *:nth-child(5) { transition-delay: .32s; }
.js .svcgrid > *:nth-child(6) { transition-delay: .40s; }

/* Cabeceras con foto: entrada suave al cargar la página. */
@keyframes cheno-hero-in {
  from { transform: scale(1.09); opacity: .35; }
  to   { transform: scale(1);    opacity: 1; }
}
.js .hero__media img:first-of-type,
.js .pagehead__media img { animation: cheno-hero-in 1.5s cubic-bezier(.16,1,.3,1) both; }

/* Hero: alterna entre varias fotos cada 5 s (ver main.js). */
.hero__media img { position: absolute; inset: 0; }
.hero__media img:first-of-type { opacity: 1; } /* estado por defecto / sin JS */
.hero__media.js-rotate img { opacity: 0; transition: opacity 1.2s ease; }
.hero__media.js-rotate img.is-on { opacity: 1; }

/* Senderista andando sobre el borde dentado del hero (fotogramas en main.js). */
.hiker {
  position: absolute;
  left: 0;
  bottom: 12px;            /* nivel del valle del papel roto; el resto lo ajusta main.js */
  z-index: 3;
  width: clamp(44px, 5.5vw, 68px);
  pointer-events: auto;     /* al pulsarlo cambia de sentido (main.js) */
  cursor: pointer;
  will-change: transform;   /* main.js mueve esto en horizontal */
}
.hiker__inner {
  position: relative;
  width: 100%;
  will-change: transform;   /* main.js: sube/baja para seguir el corte y voltea al girar */
}
.hiker__inner img {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: auto;
  opacity: 0;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3));
}
.hiker__inner img.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .dealgrid > .reveal,
  .js .reveal--media > img,
  .js .reveal--media > picture > img { opacity: 1; transform: none; transition: none; }
  .deal__inner { transition: none; }
  .js .hero__media img,
  .js .pagehead__media img,
  .js .hero__portrait { animation: none; }
  .hero__media.js-rotate img { transition: none; }
  .hiker { display: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Ajustes móvil / pantallas pequeñas
   ========================================================================= */
@media (max-width: 900px) {
  .split { gap: 32px; }
  .featurerow { gap: 20px; margin-top: 34px; }
  .ctastrip { flex-direction: column; align-items: flex-start; }
  .pagehead .split { gap: 32px; }
  .polaroid { rotate: 0deg; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 38px; }
  .section--tight { padding-block: 28px; }
  .hero { padding-top: 92px; min-height: min(82vh, 660px); }
  .hero__text, .pagehead p, .lead, .curiosbar__label { font-size: 1rem; }
  .curiosbar { max-width: 100%; gap: .4em; }
  .curiosbar__text { font-size: .95rem; min-height: 4.5em; }
  .cardgrid, .curios__grid, .svcgrid, .dealgrid { grid-template-columns: 1fr; }
  .placecard { aspect-ratio: 4 / 3; }
  .btn { width: 100%; justify-content: center; }
  .destacados__head .btn { width: auto; }
  .subscribe .btn, .form .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .post__meta { flex-wrap: wrap; gap: 6px 16px; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .seal { width: 108px; height: 108px; }
}

@media (max-width: 360px) {
  .cardgrid, .curios__grid { gap: 14px; }
  .placecard__body h3 { font-size: 1.02rem; }
}
