/* =====================================================================
   CH.BIOGAS — hoja de estilo
   ---------------------------------------------------------------------
   Fondo oscuro liso, sin texturas: el color de la web sale del negro del
   logotipo y el acento, del naranja de la "G". Las fotos son las que
   ponen el color; todo lo demás se aparta para dejarlas respirar.

   Tipografía: Inter, servida desde este mismo servidor.
   ===================================================================== */

/* ---------- 1. Tipografía ---------- */
@font-face { font-family:'Inter'; font-weight:400; font-style:normal; font-display:swap;
             src:url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-weight:500; font-style:normal; font-display:swap;
             src:url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-weight:600; font-style:normal; font-display:swap;
             src:url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-weight:700; font-style:normal; font-display:swap;
             src:url('fonts/inter-700.woff2') format('woff2'); }

/* ---------- 2. Variables ----------
   Los cuatro tonos de fondo y los tres de texto salen de aquí: cambiando
   estas líneas cambia toda la web sin tocar nada más.                   */
:root {
  --fondo:    #171614;   /* fondo general */
  --fondo-2:  #1E1D1A;   /* secciones alternas */
  --fondo-3:  #26241F;   /* tarjetas y cajas */
  --fondo-4:  #0F0E0D;   /* pie */

  --texto:    #EDEAE4;
  --texto-2:  #ADA79E;
  --texto-3:  #948E85;
  --linea:    rgba(255,255,255,.13);
  --linea-2:  rgba(255,255,255,.22);

  --naranja:   #FD6F0D;
  --naranja-2: #FF8A33;   /* hover */
  --sobre-nar: #180B01;   /* texto encima del naranja */

  --ancho: 1180px;
  --radio: 3px;
  --t: .25s cubic-bezier(.4,0,.2,1);
  --fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }

.saltar { position:absolute; left:-9999px; top:0; z-index:999; background:var(--naranja); color:var(--sobre-nar); padding:.8rem 1.2rem; }
.saltar:focus { left: 0; }
:focus-visible { outline: 2px solid var(--naranja); outline-offset: 3px; }

/* ---------- 4. Estructura ---------- */
.envoltorio { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 24px; }

.seccion { padding-block: clamp(64px, 8.5vw, 112px); scroll-margin-top: 70px; background: var(--fondo); }
.seccion--alt { background: var(--fondo-2); }
.seccion--plantas { padding-bottom: 0; }

.etiqueta {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--naranja);
}
.etiqueta::before { content:""; width:18px; height:2px; flex:none; background: var(--naranja); }
.intro--centro .etiqueta { justify-content: center; }

.titulo { font-size: clamp(1.8rem, 4vw, 2.85rem); }
.intro { max-width: 40rem; margin-bottom: clamp(38px, 5vw, 60px); }
.intro--centro { max-width: 36rem; margin-inline: auto; text-align: center; }
.intro__p { margin: 18px 0 0; color: var(--texto-2); font-size: 1.02rem; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .92em 1.7em;
  font-family: inherit; font-size: .96rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radio);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn--naranja { background: var(--naranja); color: var(--sobre-nar); border-color: var(--naranja); }
.btn--naranja:hover { background: var(--naranja-2); border-color: var(--naranja-2); }
.btn--linea { background: transparent; color: var(--texto); border-color: rgba(255,255,255,.4); }
.btn--linea:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--ancho { width: 100%; }
.btn--pequeno { padding: .68em 1.3em; font-size: .88rem; }
.btn:active { transform: translateY(1px); }

/* ---------- 6. Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23,22,20,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.cabecera.pegada { border-bottom-color: var(--linea); background: rgba(23,22,20,.97); }
.cabecera__int {
  max-width: var(--ancho); margin-inline: auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cabecera__logo img { width: auto; height: 28px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--texto);
  padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color var(--t);
}
.nav a:hover { border-bottom-color: var(--naranja); }
.nav__cta {
  background: var(--naranja); color: var(--sobre-nar) !important;
  padding: .58em 1.25em !important; border-radius: var(--radio); border-bottom: none !important;
}
.nav__cta:hover { background: var(--naranja-2); }

.menu-btn {
  display: none; width: 42px; height: 38px; padding: 8px;
  background: transparent; border: 1px solid var(--linea-2); border-radius: var(--radio); cursor: pointer;
}
.menu-btn span { display:block; height:2px; background:var(--texto); border-radius:2px; transition: transform var(--t), opacity var(--t); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Portada: foto a toda pantalla ---------- */
.portada { position: relative; display: flex; min-height: min(92vh, 800px); scroll-margin-top: 70px; background: #0F0E0D; }
.portada__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.portada__velo {
  position: relative; flex: 1; display: flex; align-items: center;
  background:
    linear-gradient(to right, rgba(12,11,10,.8) 0%, rgba(12,11,10,.5) 50%, rgba(12,11,10,.12) 100%),
    linear-gradient(to bottom, rgba(12,11,10,.4) 0%, rgba(12,11,10,0) 32%, rgba(12,11,10,.5) 100%);
  padding-block: clamp(80px, 11vw, 130px);
}
.portada__logo { display: block; margin-bottom: clamp(28px, 4vw, 44px); }
.portada__logo img { width: clamp(240px, 30vw, 400px); height: auto; }
.portada__h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -.03em; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.75), 0 1px 4px rgba(0,0,0,.5);
}
.portada__sub { margin: 20px 0 0; max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.16rem); color: #D6D1C9; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

/* ---------- 8. Historia ---------- */
.hist { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: center; }
.hist__foto { margin: 0; border-radius: var(--radio); overflow: hidden; }
.hist__foto img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.hist__txt p { margin: 0 0 15px; color: var(--texto-2); }
.hist__txt .titulo + p { margin-top: 22px; }
.hist__txt p:last-child { margin-bottom: 0; }
.hist__txt strong { color: var(--texto); font-weight: 600; }

.hitos {
  list-style: none; margin: clamp(40px, 5vw, 62px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--linea-2);
}
.hitos li { padding: 18px 18px 4px 0; border-right: 1px solid var(--linea); }
.hitos li:last-child { border-right: none; padding-right: 0; }
.hitos__a { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hitos__t { display: block; margin-top: 4px; font-size: .84rem; color: var(--texto-2); line-height: 1.4; }
.hitos--hoy .hitos__a { color: var(--naranja); }

/* ---------- 9. Cifras a pantalla completa ---------- */
.pantalla { position: relative; min-height: min(100vh, 820px); display: flex; background: #0F0E0D; }
.pantalla__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.pantalla__velo {
  position: relative; flex: 1;
  background: linear-gradient(180deg, rgba(15,14,13,.66), rgba(15,14,13,.44) 45%, rgba(15,14,13,.72));
  display: flex; align-items: center; justify-content: center;
  padding: clamp(56px, 8vw, 90px) 24px;
}
.pantalla__int { width: 100%; max-width: 880px; }

.cifra-mayor {
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(12,11,10,.3);
  padding: clamp(34px, 5vw, 56px) clamp(24px, 5vw, 70px);
  text-align: center; color: #fff;
}
.cifra-mayor__n { display: block; font-size: clamp(3.6rem, 11vw, 7.4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cifra-mayor__t { display: block; margin-top: 14px; font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.cifra-mayor__nota { margin: 8px 0 0; font-size: .82rem; color: rgba(255,255,255,.75); }

.cifras-tres { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.38); border-top: none; background: rgba(12,11,10,.3); }
.cifras-tres__it { padding: clamp(24px, 3.4vw, 34px) 16px; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.3); }
.cifras-tres__it:last-child { border-right: none; }
.cifras-tres__n { display: block; font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cifras-tres__it small { display: block; margin-top: 10px; font-size: .73rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ---------- 10. Fases ---------- */
.fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fase { background: var(--fondo-3); border: 1px solid var(--linea); border-radius: var(--radio); padding: 30px 26px 32px; }
.fase__num { display: block; margin-bottom: 14px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--naranja); font-variant-numeric: tabular-nums; }
.fase__h3 { font-size: 1.22rem; color: #fff; }
.fase__p { margin: 11px 0 20px; font-size: .93rem; color: var(--texto-2); }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { position: relative; padding: 9px 0 9px 22px; font-size: .93rem; color: var(--texto); border-top: 1px solid var(--linea); }
.lista li::before { content:""; position:absolute; left:0; top:18px; width:9px; height:2px; background:var(--naranja); }
.lista li strong { color: #fff; font-weight: 600; }
.lista li em { font-style: normal; color: var(--texto-3); }

/* ---------- 11. Paneles ---------- */
.panel-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px 26px 30px; }
.panel__h3 { font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--naranja); margin-bottom: 18px; }
.fichas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fichas li { padding: 8px 14px; border: 1px solid var(--linea-2); border-radius: 100px; font-size: .87rem; color: var(--texto); }
.fichas li b { color: #fff; font-weight: 600; }
.fichas--tenue li { color: var(--texto-2); }

/* ---------- 12. Escala ---------- */
.escala { margin-top: clamp(40px, 5vw, 62px); }
.escala__h3 { font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--naranja); margin-bottom: 22px; text-align: center; }
.escala__barra { position: relative; height: 8px; background: rgba(255,255,255,.14); border-radius: 100px; overflow: hidden; }
.escala__optimo { position: absolute; top: 0; bottom: 0; left: 31%; right: 44%; background: var(--naranja); }
.escala__marcas { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: 14px; font-size: .83rem; color: var(--texto-2); }
.escala__marcas > span:first-child { text-align: left; }
.escala__marcas > span:last-child { text-align: right; }
.escala__destacado { text-align: center; }
.escala__marcas b { display: block; font-weight: 600; color: var(--texto); font-size: 1rem; }
.escala__destacado b { color: var(--naranja) !important; }
.escala__marcas i { display: block; font-style: normal; font-size: .77rem; }

/* ---------- 13. Frase sobre foto ---------- */
.frase { position: relative; display: flex; min-height: clamp(300px, 42vw, 460px); background: #0F0E0D; }
.frase__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.frase__velo { position: relative; flex: 1; background: rgba(15,14,13,.56); display: flex; align-items: center; justify-content: center; padding: clamp(48px, 7vw, 80px) 24px; }
.frase__txt { margin: 0; max-width: 22ch; text-align: center; font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: #fff; }
.frase__txt b { color: var(--naranja); font-weight: inherit; }

/* ---------- 14. Con quién ---------- */
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bloque { background: var(--fondo-3); border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px 26px 28px; }
.bloque__h3 { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 13px; }
.listado { margin: 0; color: var(--texto-2); font-size: .95rem; line-height: 1.95; }

/* ---------- 15. Galería ---------- */
.galeria { margin-top: clamp(22px, 3.5vw, 38px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.galeria__it { margin: 0; overflow: hidden; background: var(--fondo-3); aspect-ratio: 4/3; }
.galeria__it img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.galeria__it:hover img { transform: scale(1.04); }

/* ---------- 16. Contacto ---------- */
.envoltorio--contacto { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 68px); align-items: start; }

.tarjeta { margin-top: 30px; background: var(--fondo-3); border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px 30px 26px; }
.tarjeta__nombre { margin: 0; font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.tarjeta__cargo { margin: 7px 0 20px; font-size: .93rem; line-height: 1.45; color: var(--naranja); }
.tarjeta__datos { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; align-items: baseline; }
.tarjeta__datos dt { font-size: .71rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--texto-3); }
.tarjeta__datos dd { margin: 0; font-size: .95rem; color: var(--texto); }
.tarjeta__datos dd a { color: #fff; text-decoration: none; border-bottom: 1.5px solid var(--naranja); }
.tarjeta__datos dd a:hover { color: var(--naranja); }

.contacto__form { background: var(--fondo-3); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(24px, 3.5vw, 36px); }
.campo { margin-bottom: 16px; }
.campo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 500; color: var(--texto); }
.req { color: var(--naranja); }
.opc { font-weight: 400; color: var(--texto-3); }

.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"], .campo textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .96rem; color: var(--texto);
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--linea-2); border-radius: var(--radio);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.campo ::placeholder { color: var(--texto-3); opacity: 1; }
.campo textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.campo input:focus, .campo textarea:focus {
  outline: none; background: rgba(255,255,255,.08);
  border-color: var(--naranja); box-shadow: 0 0 0 3px rgba(253,111,13,.22);
}
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color:#E4574A; box-shadow: 0 0 0 3px rgba(228,87,74,.16); }

.campo--check { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 22px; }
.campo--check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--naranja); flex: none; }
.campo--check input[aria-invalid="true"] { outline: 2px solid #E4574A; outline-offset: 2px; border-radius: 2px; }
.campo--check input[aria-invalid="true"] + label { color: #FF8A7A; }
.campo--check label { margin: 0; font-size: .87rem; font-weight: 400; color: var(--texto-2); line-height: 1.55; }
.campo--check a { color: var(--texto); text-decoration: underline; text-underline-offset: 2px; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso-form { margin: 15px 0 0; font-size: .91rem; min-height: 1.2em; }
.aviso-form.ok { color: #6ED08E; font-weight: 600; }
.aviso-form.error { color: #FF8A7A; font-weight: 600; }

/* ---------- 17. Pie ---------- */
.pie { background: var(--fondo-4); color: var(--texto-2); padding-block: 48px 36px; border-top: 1px solid var(--linea); }
.pie__int { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.pie__marca img { width: auto; height: 26px; }
.pie__marca p { margin: 11px 0 0; font-size: .84rem; }
.pie__enlaces { display: flex; gap: 24px; flex-wrap: wrap; }
.pie__enlaces a { font-size: .88rem; text-decoration: none; color: var(--texto); border-bottom: 1px solid transparent; }
.pie__enlaces a:hover { border-bottom-color: var(--naranja); color: var(--naranja); }
.pie__copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--linea); font-size: .81rem; color: var(--texto-3); }

/* ---------- 18. Aviso de cookies ---------- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #0C0B0A;
  border-top: 2px solid var(--naranja);
  box-shadow: 0 -12px 44px rgba(0,0,0,.55);
  animation: sube .35s cubic-bezier(.4,0,.2,1) both;
}
@keyframes sube { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookies[hidden] { display: none; }
.cookies__int {
  max-width: var(--ancho); margin-inline: auto; padding: 22px 24px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 36px; align-items: center;
}
.cookies__h { grid-column: 1; margin: 0 0 4px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--naranja); }
.cookies__txt { grid-column: 1; grid-row: 2; margin: 0; font-size: .89rem; line-height: 1.55; color: var(--texto-2); max-width: 66ch; }
.cookies__btns { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.cookies__mas { font-size: .87rem; font-weight: 500; color: var(--texto); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookies__mas:hover { color: var(--naranja); }

/* ---------- 19. Páginas legales ---------- */
.legal { max-width: 760px; margin-inline: auto; padding: clamp(42px, 6vw, 78px) 24px clamp(54px, 7vw, 90px); }
.legal h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: 8px; }
.legal .actualizado { margin: 0 0 36px; font-size: .85rem; color: var(--texto-3); }
.legal h2 { font-size: 1.15rem; margin: 36px 0 12px; padding-top: 22px; border-top: 1px solid var(--linea); }
.legal h3 { font-size: 1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--texto-2); font-size: .99rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--texto); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--naranja); }
.legal code { background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 2px; font-size: .92em; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; background: var(--fondo-2); }
.legal th, .legal td { text-align: left; padding: 11px 12px; border: 1px solid var(--linea); vertical-align: top; }
.legal th { background: var(--fondo-3); font-weight: 600; color: var(--texto); }
.legal td { color: var(--texto-2); }
.tabla-scroll { overflow-x: auto; }
.volver { display: inline-block; margin-bottom: 30px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--texto-2); }
.volver:hover { color: var(--naranja); }

/* ---------- 20. Responsive ---------- */
@media (max-width: 980px) {
  .hist { grid-template-columns: 1fr; }
  .hist__foto img { aspect-ratio: 16/10; }
  .fases, .panel-doble, .dos-col { grid-template-columns: 1fr; }
  .envoltorio--contacto { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr 1fr; }
  .galeria__it:last-child { grid-column: span 2; aspect-ratio: 16/9; }
  .hitos { grid-template-columns: repeat(2, 1fr); }
  .hitos li { border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding-bottom: 14px; }
  .hitos li:nth-child(2n) { border-right: none; }
  .hitos li:last-child { grid-column: span 2; border-bottom: none; }
  .cookies__int { grid-template-columns: 1fr; gap: 6px; }
  .cookies__btns { grid-column: 1; grid-row: auto; margin-top: 14px; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 58px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0F0E0D;
    border-bottom: 1px solid var(--linea);
    padding: 8px 24px 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.abierto { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .nav__cta { margin-top: 13px; text-align: center; }

  .salto-ancho { display: none; }

  .portada { min-height: min(88vh, 720px); }
  .portada__velo { background:
    linear-gradient(to bottom, rgba(12,11,10,.64) 0%, rgba(12,11,10,.46) 35%, rgba(12,11,10,.8) 100%); }
  .portada__acciones .btn { flex: 1 1 100%; }

  .cifras-tres { grid-template-columns: 1fr; }
  .cifras-tres__it { border-right: none; border-bottom: 1px solid rgba(255,255,255,.3); }
  .cifras-tres__it:last-child { border-bottom: none; }

  .campo-fila { grid-template-columns: 1fr; gap: 0; }
  .escala__marcas { grid-template-columns: 1fr; gap: 12px; }
  .escala__marcas > span { text-align: left !important; }

  .galeria { grid-template-columns: 1fr; }
  .galeria__it:last-child { grid-column: span 1; }

  .pie__int { grid-template-columns: 1fr; }
  .cookies__btns .btn { flex: 1 1 auto; }
  .cookies__mas { width: 100%; margin-bottom: 4px; }
}

/* Con el aviso de cookies abierto, se deja hueco para que no tape el pie */
body.con-aviso { padding-bottom: 190px; }
@media (min-width: 981px) { body.con-aviso { padding-bottom: 130px; } }

/* Un botón dentro de las páginas legales no es un enlace de texto corrido:
   la regla general ".legal a" le ganaba en especificidad y le quitaba su
   color propio (dejaba letra clara sobre naranja, ilegible) además de
   subrayarlo. Aquí se le devuelve lo suyo. */
.legal .btn { text-decoration: none; }
.legal .btn--naranja { color: var(--sobre-nar); }
.legal .btn--linea   { color: var(--texto); }
