/* ============================================================
   Almendras Ráfales — prototipo
   Paleta cálida (tostados de almendra) · Fraunces + Inter
   ============================================================ */

/* ---------- Fuentes autoalojadas (variables) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream:      #FBF7F0;
  --cream-2:    #F3EADD;
  --sand:       #E9DCC8;
  --almond:     #C69B6D;
  --almond-2:   #B4834F;
  --toast:      #6B4429;
  --toast-deep: #4A2E1B;
  --espresso:   #2A1D14;
  --espresso-2: #1B120C;
  --blossom:    #E4B7BC;

  --ink:        #2A1D14;
  --ink-soft:   #6b5847;
  --line:       rgba(42, 29, 20, .14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

/* Los vídeos de fondo van sin controles. En iOS con modo de bajo consumo (o
   ahorro de datos) el autoplay se bloquea y WebKit pinta su propio botón de
   play encima; con el póster basta, así que lo ocultamos. */
video:not([controls])::-webkit-media-controls,
video:not([controls])::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--almond); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--espresso); color: var(--cream); padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--toast);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--almond-2); display: inline-block;
}
.eyebrow--light { color: var(--almond); }
.eyebrow--light::before { background: var(--almond); }
.section-head--center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  color: var(--ink);
}
.section-intro {
  margin-top: 1.4rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.08rem;
}
.lead { font-size: 1.22rem; color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--toast); color: var(--cream); box-shadow: 0 10px 26px -12px rgba(74,46,27,.7); }
.btn--solid:hover { background: var(--toast-deep); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: .55rem 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand__mark { width: 24px; height: 32px; flex: none; }
.brand__mark path { fill: var(--almond); }
.brand__mark .brand__vein { fill: none; stroke: rgba(0,0,0,.25); stroke-width: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; }
.brand__since { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: #fff; font-weight: 500; font-size: .98rem; position: relative; opacity: .92; transition: opacity .25s; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--almond); transition: width .3s var(--ease);
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav a:hover { opacity: 1; }
.nav__cta {
  border: 1.5px solid rgba(255,255,255,.5); padding: .5rem 1.15rem; border-radius: 100px; transition: background .3s, border-color .3s;
}
.nav__cta:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* Estado "scrolled": fondo crema, texto oscuro */
.site-header.scrolled { background: rgba(251,247,240,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .brand,
.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .brand__mark path { fill: var(--toast); }
.site-header.scrolled .nav__cta { border-color: var(--toast); }
.site-header.scrolled .nav__cta:hover { background: var(--toast); color: var(--cream); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* Toggle móvil */
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(27,18,12,.55) 0%, rgba(27,18,12,.15) 35%, rgba(27,18,12,.25) 65%, rgba(27,18,12,.85) 100%),
    linear-gradient(90deg, rgba(27,18,12,.5) 0%, rgba(27,18,12,0) 55%);
}
.hero__content { position: relative; padding-top: 6rem; max-width: 900px; }
.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 6rem); font-weight: 400; line-height: 1.02;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero__title em { color: var(--blossom); font-weight: 400; }
.hero__lead { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.9); }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(27,18,12,0), rgba(27,18,12,.4));
  padding: 1rem 0;
}
.hero__ticker-inner { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero__ticker b { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.05rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: #fff; transform: translateX(-50%); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 12px); } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section.alt { background: var(--cream-2); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Historia ---------- */
.historia__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.historia__lead p + p { margin-top: 1.2rem; color: var(--ink-soft); }
.historia__figure { position: relative; }
.historia__figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 58% 22%; border-radius: var(--radius); }
.historia__figure figcaption { margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); font-style: italic; }

/* Banda: el fundador paseando por el campo */
.founder-walk { max-width: 1360px; margin: 0 auto clamp(3rem, 6vw, 5rem); padding-inline: var(--gutter); }
.founder-walk img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 38%; border-radius: var(--radius); box-shadow: 0 30px 60px -34px rgba(42,29,20,.5); }
.founder-walk figcaption { margin-top: .9rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.9vw, 1.3rem); color: var(--toast); }

.timeline {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.timeline__item { padding: 2rem 1.6rem 0 0; border-left: 1px solid var(--line); padding-left: 1.6rem; position: relative; }
.timeline__item:first-child { border-left: 0; padding-left: 0; }
.timeline__item::before {
  content: ""; position: absolute; top: -5px; left: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--almond-2);
}
.timeline__item:first-child::before { left: 0; }
.timeline__year { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--toast); display: block; }
.timeline__title { font-size: 1.12rem; margin: .5rem 0 .5rem; font-weight: 600; }
.timeline__item p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Proceso: banda aérea ---------- */
.proceso__aerial { max-width: 1360px; margin: clamp(1rem, 3vw, 2.5rem) auto 0; padding-inline: var(--gutter); }
.proceso__aerial img { width: 100%; aspect-ratio: 5/2; object-fit: cover; object-position: center 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -34px rgba(42,29,20,.5); }
.proceso__aerial figcaption { margin-top: .8rem; text-align: center; font-size: .88rem; color: var(--ink-soft); font-style: italic; }
@media (max-width: 700px) {
  /* anclada abajo del todo: se ve la instalación completa, sin cielo */
  .proceso__aerial img { aspect-ratio: 9/4; object-position: center 100%; }
}

/* ---------- Proceso (steps) ---------- */
.step {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--wrap); margin: clamp(3.5rem, 7vw, 6rem) auto 0; padding-inline: var(--gutter);
}
.step--reverse .step__media { order: 2; }
.step__media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(42,29,20,.45); background: var(--sand); }
.step__media img, .step__media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.step__num { font-family: var(--serif); font-size: 3.2rem; font-weight: 400; color: var(--almond); line-height: 1; display: block; }
.step__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .5rem 0 1rem; }
.step__body p { color: var(--ink-soft); max-width: 46ch; }
.step__facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.step__facts li {
  background: var(--cream); border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem 1rem; font-size: .9rem; color: var(--ink);
}
.section.alt .step__facts li { background: #fff; }
.step__facts b { font-family: var(--serif); color: var(--toast); font-weight: 600; }

/* ---------- Banda cita / IA ---------- */
.quoteband { position: relative; overflow: hidden; color: #fff; padding: clamp(5rem, 12vw, 9rem) 0; }
.quoteband__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quoteband__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,13,8,.9) 0%, rgba(20,13,8,.55) 60%, rgba(20,13,8,.35) 100%); }
.quoteband__content { max-width: 900px; }
.quoteband blockquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.25; letter-spacing: -.01em;
}

/* ---------- Cifras ---------- */
.cifras { background: var(--espresso); color: var(--cream); position: relative; overflow: hidden; }
.cifras__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: 0; }
.cifras__overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(26,18,12,.86), rgba(26,18,12,.94)); }
.cifras > .wrap { position: relative; z-index: 1; }
.cifras .section-title { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--espresso); padding: 2.2rem 1.6rem; text-align: center; display: flex; flex-direction: column; gap: .25rem; }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat__unit { font-size: .82rem; letter-spacing: .05em; color: var(--almond); text-transform: uppercase; }
.stat__label { font-size: .9rem; color: rgba(251,247,240,.7); margin-top: .35rem; }

/* ---------- Productos ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.section.alt .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(42,29,20,.4); }
.card__media { position: relative; overflow: hidden; cursor: pointer; background: var(--sand); }
/* pista de "ampliar" al pasar el ratón */
.card__media::after {
  content: ""; position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background-color: rgba(26,18,12,.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px;
  opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.card__media:hover::after, .card__media:focus-visible::after { opacity: 1; transform: scale(1); }
.card__media:focus-visible { outline: 2px solid var(--toast); outline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 5vmin;
  background: rgba(20,13,8,.93);
  opacity: 0; transition: opacity .28s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__video {
  max-width: min(1100px, 92vw); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; background: #000;
  box-shadow: 0 40px 100px -28px rgba(0,0,0,.8);
  transform: scale(.96); transition: transform .28s var(--ease);
}
.lightbox.is-open .lightbox__video { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 3.5vmin; right: 3.5vmin;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
body.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__video { transition: none; }
}
.card__media video { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.card:hover .card__media video { transform: scale(1.05); }
/* imagen "detalle" superpuesta */
.card__inset {
  position: absolute; right: 12px; bottom: 12px; width: 42%;
  aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
  border: 3px solid #fff; box-shadow: 0 10px 24px -8px rgba(42,29,20,.55);
  z-index: 2;
}
.card__body { padding: 1.5rem 1.5rem 1.8rem; }
.card__title { font-size: 1.4rem; margin-bottom: .5rem; }
.card__body p { color: var(--ink-soft); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.tags span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--toast); background: var(--sand); padding: .32rem .7rem; border-radius: 100px; }

/* ---------- Contacto ---------- */
.contacto { position: relative; overflow: hidden; color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; }
.contacto__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contacto__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,13,8,.82), rgba(20,13,8,.92)); }
.contacto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contacto .section-title { color: #fff; }
.contacto__text { margin-top: 1.2rem; max-width: 42ch; color: rgba(255,255,255,.82); }
.contacto__list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contacto__list li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.16); align-items: baseline; }
.contacto__k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--almond); }
.contacto__v { font-size: 1.02rem; }
.contacto__v a { transition: color .2s; }
.contacto__v a:hover { color: var(--almond); }

.contacto__card { display: grid; gap: .9rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); backdrop-filter: blur(6px); }
.contacto__card-title { font-size: 1.6rem; color: #fff; }
.contacto__card-text { color: rgba(255,255,255,.78); margin-bottom: .6rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--espresso-2); color: rgba(251,247,240,.75); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand .brand__mark path { fill: var(--almond); }
.footer__name { font-family: var(--serif); font-size: 1.35rem; color: #fff; font-weight: 600; }
.footer__legal { font-size: .82rem; letter-spacing: .04em; }
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__nav a { font-size: .92rem; transition: color .25s; }
.footer__nav a:hover { color: var(--almond); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .82rem; }

/* ============================================================
   REVEAL (scroll animations)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open { background: var(--espresso); }
  /* con el menú abierto el header es oscuro: marca y X siempre en claro */
  .site-header.menu-open .brand { color: #fff; }
  .site-header.menu-open .brand__mark path { fill: var(--almond); }
  .site-header.menu-open .nav-toggle span { background: #fff; }
  /* menú desplegable justo debajo de la barra (absolute respecto al header fijo) */
  .mobile-nav { display: block; position: absolute; inset: 0 0 auto 0; top: 100%; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav {
    display: flex; flex-direction: column; background: var(--espresso);
    padding: 1rem var(--gutter) 2rem; gap: .3rem;
  }
  .mobile-nav a { color: #fff; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }

  .historia__grid { grid-template-columns: 1fr; }
  .historia__figure img { aspect-ratio: 16/10; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline__item:nth-child(1), .timeline__item:nth-child(2) { border-top: 0; }

  /* móvil: número + título encima de la imagen, texto debajo */
  .step { display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .step__body { display: contents; }
  .step__num { order: 1; margin-bottom: -.5rem; }
  .step__title { order: 1; }
  .step__media, .step--reverse .step__media { order: 2; }
  .step__body p { order: 3; }
  .step__facts { order: 4; margin-top: 0; }

  .stats { grid-template-columns: 1fr 1fr; }

  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .contacto__grid { grid-template-columns: 1fr; }
}

/* En móvil el ticker de cifras deja de flotar y pasa al flujo: en pantallas
   bajas (o con el texto ampliado) se solapaba con los botones del hero. */
@media (max-width: 700px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero__content { margin-block: auto; padding-bottom: 2.5rem; }
  .hero__ticker { position: static; }
  .hero__scroll { display: none; }
}

@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__item { border-left: 0; padding-left: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .timeline__item::before { left: 0; top: 1.6rem; }
  .stats { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero__content { padding-top: 6.5rem; }
  .hero__ticker-inner { gap: .5rem 1.4rem; font-size: .8rem; }
  .contacto__list li { grid-template-columns: 1fr; gap: .2rem; }
  .brand__since { display: none; }
}
