/* ==========================================================================
   CENTRAL FUEL · estilos.css
   Una sola hoja de estilos, escrita a mano, sin frameworks.
   Índice:
     1. Fuentes y variables
     2. Base y tipografía
     3. Piezas comunes (botones, tarjetas, etiquetas, aparición al hacer scroll)
     4. Splash de marca
     5. Encabezado y menú
     6. Portada (hero)
     7. En un vistazo
     8. Galería
     9. Servicios
    10. Banda en movimiento
    11. Empresa y bomba 3D
    12. Productos y contacto
    13. Pie de página
    14. Movimiento reducido y sin JavaScript
   El movimiento ligado al scroll usa animation-timeline (Chrome/Edge 115+, Safari 26).
   En un navegador que no lo soporta todo se ve completo y estático.
   ========================================================================== */

/* ---------- 1. Fuentes y variables ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../assets/fuentes/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../assets/fuentes/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("../assets/fuentes/inter.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url("../assets/fuentes/jetbrains-mono.woff2") format("woff2"); }

:root {
  --noche: #060b18;
  --profundo: #0b1530;
  --acero: #152447;
  --ambar: #ffb800;
  --hueso: #f3f5fa;
  --tinta: #0b1530;            /* texto sobre fondos claros */
  --ambar-texto: #8a5f00;      /* ámbar oscuro: el ámbar puro no se lee sobre fondo claro */
  --ambar-resalte: #c98a00;
  --fuente-titulos: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fuente-texto: "Inter", system-ui, sans-serif;
  --fuente-mono: "JetBrains Mono", ui-monospace, monospace;
  --ancho: 72rem;              /* contenedor máximo */
}

/* ---------- 2. Base y tipografía ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--hueso); font-family: var(--fuente-texto); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Títulos: Barlow Condensed en mayúsculas */
.titulo, .titulo-grande { font-family: var(--fuente-titulos); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.titulo { font-size: 3rem; }
@media (min-width: 640px) { .titulo { font-size: 3.75rem; } }
.titulo--tarjeta { font-size: 2.25rem; margin-top: .75rem; }
.titulo--cifra { font-size: 3rem; margin-top: .25rem; }
@media (min-width: 640px) { .titulo--cifra { font-size: 3rem; } }
.titulo--proximamente { font-size: 2.25rem; color: var(--ambar-resalte); }
.resalte { color: var(--ambar-resalte); }

/* Etiqueta pequeña sobre los títulos */
.etiqueta { font-family: var(--fuente-mono); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ambar); }
.etiqueta--oscura { color: var(--ambar-texto); }

.contenedor { max-width: var(--ancho); margin-inline: auto; }

/* ---------- 3. Piezas comunes ---------- */

/* 3.1 Botones: píldora con círculo y flecha */
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 2rem; border-radius: 999px;
  font-family: var(--fuente-titulos); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; line-height: 1.5;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.boton--ambar { gap: .9rem; padding: 0 .55rem 0 1.6rem; min-height: 48px; background: var(--ambar); color: #0a1020; box-shadow: 0 6px 18px -8px rgb(255 184 0 / .55); }
.boton--ambar::after { content: "→"; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--profundo); color: var(--ambar); font-family: var(--fuente-texto); font-size: 1rem; transition: transform .25s; }
.boton--ambar:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgb(255 184 0 / .7); }
.boton--ambar:hover::after { transform: translateX(3px); }
.boton--linea { border: 2px solid var(--ambar); color: var(--ambar); }
.boton--linea:hover { transform: translateY(-2px); background: rgb(255 184 0 / .12); }
a:focus-visible, .boton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--profundo); }

/* 3.2 Tarjetas */
.tarjeta { height: 100%; padding: 2rem; text-align: center; background: linear-gradient(160deg, rgb(21 36 71 / .85), rgb(11 21 48 / .85)); border: 1px solid rgb(255 184 0 / .18); border-radius: 20px; }
.tarjeta-clara { background: #fff; border: 1px solid rgb(11 21 48 / .08); border-radius: 24px; box-shadow: 0 18px 40px -24px rgb(11 21 48 / .35); transition: transform .35s, box-shadow .35s; }
.tarjeta-clara:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgb(11 21 48 / .45); }
.tarjeta-clara--chica { padding: 1.5rem; }
.dato-cristal { text-align: center; background: rgb(11 21 48 / .92); border: 1px solid rgb(255 184 0 / .35); border-radius: 16px; padding: .7rem 1.1rem; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .8); }
.dato-cristal .etiqueta { font-size: .68rem; margin: 0 0 .15rem; }
.dato-cristal a, .dato-cristal p:last-child { font-family: var(--fuente-mono); font-size: 1rem; white-space: nowrap; color: var(--hueso); }

/* 3.3 Aparición al hacer scroll (sin JavaScript). Sin soporte: el contenido se ve normal. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .aparece { animation: aparece linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes aparece { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* Secciones sobre fondo claro */
.seccion-clara { background: var(--hueso); color: var(--tinta); }

/* ---------- 4. Splash de marca ---------- */
/* Solo CSS: aparece, la barra se llena y se retira solo (fill-mode forwards). No bloquea el scroll. */
#splash { position: fixed; inset: 0; z-index: 200; background: #050b16; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; animation: splash-sale .25s ease .65s forwards; }
.splash__logo { line-height: 0; }
.splash__texto { font-family: var(--fuente-mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgb(243 245 250 / .75); }
.splash__barra { width: min(220px, 60vw); height: 3px; background: rgb(255 255 255 / .12); border-radius: 3px; overflow: hidden; }
.splash__barra i { display: block; height: 100%; background: var(--ambar); transform-origin: 0 50%; transform: scaleX(0); animation: splash-llena .6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes splash-llena { to { transform: scaleX(1); } }
@keyframes splash-sale { to { opacity: 0; visibility: hidden; } }

/* ---------- 5. Encabezado y menú ---------- */
.encabezado { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.navegacion { background: var(--noche); border-bottom: 1px solid rgb(255 255 255 / .1); }
.navegacion__fila { max-width: var(--ancho); margin-inline: auto; padding: .5rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; }
.logo img { height: 52px; width: auto; }
@media (min-width: 640px) { .logo img { height: 65px; } }
.menu { display: none; align-items: center; gap: 1.25rem; }
@media (min-width: 768px) { .menu { display: flex; } }
@media (min-width: 1280px) { .menu { gap: 1.75rem; } }
.menu a, .menu-movil a { font-family: var(--fuente-titulos); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .01em; color: rgb(243 245 250 / .8); }
.menu a { font-size: 1.125rem; }
.menu a:hover { color: var(--ambar); }
.menu-movil { display: flex; justify-content: center; gap: 1.25rem; overflow-x: auto; padding: 0 .75rem .5rem; }
.menu-movil a { font-size: 1rem; }
@media (min-width: 768px) { .menu-movil { display: none; } }
.botones-encabezado { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 640px) { .botones-encabezado { gap: .75rem; } }
.boton--cabecera { min-height: 44px; font-size: .875rem; }
@media (min-width: 640px) { .boton--cabecera { font-size: 1rem; } }
.boton--linea.boton--cabecera:hover { background: var(--ambar); color: #0a1020; }
@media (max-width: 639px) {
  .boton--cabecera { min-height: 40px; padding-left: .9rem; padding-right: .9rem; }
  .boton--ambar.boton--cabecera { padding-right: .35rem; gap: .5rem; }
  .boton--ambar.boton--cabecera::after { width: 28px; height: 28px; }
}

/* ---------- 6. Portada (hero) ---------- */
.portada-envoltura { position: relative; }
.portada { position: relative; overflow: hidden; background: var(--noche); padding: 7rem 1.25rem; }
@media (min-width: 1024px) { .portada { min-height: 100svh; } }
.portada__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada__rejilla { position: relative; max-width: var(--ancho); margin-inline: auto; width: 100%; display: grid; align-items: center; gap: .5rem; }
@media (min-width: 1024px) { .portada__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; min-height: calc(100svh - 14rem); } }
/* columna de texto: es contenedor de tamaño para que BIENVENIDOS quepa siempre en una línea */
.portada__texto { position: relative; z-index: 10; order: 2; width: 100%; container-type: inline-size; }
@media (min-width: 1024px) { .portada__texto { order: 1; } }
.portada__pila { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; }
.portada__titulo { font-family: var(--fuente-titulos); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; white-space: nowrap; text-align: center; color: var(--hueso); font-size: min(20cqw, 8rem); }
.mascara { display: inline-block; overflow: hidden; padding: .04em .06em .08em; }
.letra { display: inline-block; }
.letra--ambar { color: var(--ambar); }
.portada__pildora { width: 100%; padding: .5rem 1rem; border-radius: 999px; background: rgb(0 0 0 / .45); text-align: center; font-family: var(--fuente-mono); font-size: .875rem; line-height: 1.43; letter-spacing: .3em; text-transform: uppercase; color: var(--hueso); }
.portada__botones { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; width: 100%; }
@media (min-width: 640px) { .portada__botones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portada__datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 100%; }
.portada__bomba { position: relative; z-index: 20; order: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: min(48svh, 380px); margin: 0 auto -1.5rem; pointer-events: none; }
@media (min-width: 1024px) { .portada__bomba { order: 2; margin: 0; height: clamp(480px, 76svh, 760px); } }
.portada__bomba-caja { position: relative; height: 100%; aspect-ratio: 4 / 5; }
.portada__bomba-caja img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.portada__ola { position: absolute; bottom: 0; left: -10%; width: 120%; max-width: none; color: var(--hueso); }
.insignia-scroll { display: none; position: absolute; z-index: 20; left: 50%; bottom: -48px; width: 96px; height: 96px; margin-left: -48px; align-items: center; justify-content: center; color: var(--ambar); background: var(--profundo); border-radius: 999px; border: 1px solid rgb(255 184 0 / .3); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
@media (min-width: 640px) { .insignia-scroll { display: flex; } }
.insignia-scroll__giro { animation: gira 18s linear infinite; }
.insignia-scroll__flecha { position: absolute; font-size: 1.25rem; line-height: 1.4; }
@keyframes gira { to { transform: rotate(360deg); } }
.bomba-flota { animation: flota 7s ease-in-out infinite alternate; }
@keyframes flota { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* Entrada de la portada: letras que suben y elementos que aparecen (después del splash) */
@media (prefers-reduced-motion: no-preference) {
  .letra { animation: sube .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.8s + var(--d, 0s)); }
  .entra { animation: entra .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.8s + var(--d, 0s)); }
}
@keyframes sube { from { transform: translateY(110%); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes entra { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 7. En un vistazo ---------- */
.vistazo { padding: 5rem 1.25rem 4rem; }
.vistazo__rejilla { max-width: var(--ancho); margin-inline: auto; display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .vistazo__rejilla { grid-template-columns: repeat(12, minmax(0, 1fr)); } .vistazo__lista { grid-column: span 7; } .vistazo__datos { grid-column: span 5; grid-template-columns: minmax(0, 1fr) !important; } }
.vistazo__lista .etiqueta { margin-bottom: .75rem; }
.vistazo__lista .titulo { margin-bottom: 2rem; }
.lista-numerada { border-block: 1px solid rgb(11 21 48 / .1); }
.lista-numerada li + li { border-top: 1px solid rgb(11 21 48 / .1); }
.lista-numerada a { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; padding-block: .75rem; transition: transform .3s; }
.lista-numerada a:hover { transform: translateX(.5rem); }
.lista-numerada__n { font-family: var(--fuente-mono); font-size: .875rem; color: var(--ambar-texto); }
.lista-numerada__t { flex: 1; font-family: var(--fuente-titulos); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: 1.875rem; }
@media (min-width: 640px) { .lista-numerada__t { font-size: 2.25rem; } }
.lista-numerada__flecha { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--tinta); color: var(--ambar); transition: transform .15s; }
.lista-numerada a:hover .lista-numerada__flecha { transform: scale(1.1); }
.vistazo__datos { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .vistazo__datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vistazo__tel { display: block; margin-top: .5rem; font-family: var(--fuente-mono); font-size: 1.125rem; line-height: 1.55; }
/* Contador del 24 con @property: cuenta de 0 a 24 al entrar en pantalla (sin JavaScript) */
.contador::before { content: "24"; }
@property --n { syntax: "<integer>"; initial-value: 24; inherits: false; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .contador { --n: 24; counter-reset: num var(--n); animation: cuenta linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .contador::before { content: counter(num); }
    @keyframes cuenta { from { --n: 0; } to { --n: 24; } }
  }
}

/* ---------- 8. Galería ---------- */
.galeria { padding: 0 1.25rem 4rem; }
.galeria .etiqueta { margin-bottom: .75rem; }
.galeria__titulo { max-width: 36rem; margin-bottom: 2.5rem; }
.galeria__rejilla { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .galeria__rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); } .galeria__grande { grid-column: span 2; grid-row: span 2; } }
.galeria__rejilla > div { height: 100%; }
.foto { position: relative; height: 100%; min-height: 12rem; overflow: hidden; border-radius: 24px; background: var(--noche); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.foto:hover img { transform: scale(1.05); }
.foto figcaption { position: absolute; left: .75rem; bottom: .75rem; padding: .375rem 1rem; border-radius: 999px; background: rgb(0 0 0 / .6); font-family: var(--fuente-mono); font-size: .75rem; line-height: 1.33; letter-spacing: .1em; text-transform: uppercase; color: var(--hueso); }

/* ---------- 9. Servicios ---------- */
.servicios { padding: 0 1.25rem 6rem; }
.servicios .etiqueta { margin-bottom: .75rem; }
.servicios__titulo { margin-bottom: 2.5rem; }
.servicios__rejilla { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .servicios__rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.servicios__rejilla > div { height: 100%; }
.servicio { display: flex; flex-direction: column; height: 100%; padding: 2rem; }
.servicio__n { font-family: var(--fuente-mono); font-size: .875rem; line-height: 1.43; color: var(--ambar-texto); }
.servicio p { flex: 1; margin: .75rem 0 2rem; color: rgb(11 21 48 / .7); }
.servicio .boton { align-self: flex-start; }

/* ---------- 10. Banda en movimiento ---------- */
.banda { overflow: hidden; border-block: 1px solid rgb(255 184 0 / .3); background: var(--noche); padding-block: 1rem; }
.banda__carril { display: flex; width: max-content; font-size: 2.25rem; color: rgb(243 245 250 / .9); animation: banda 40s linear infinite; }
@media (min-width: 640px) { .banda__carril { font-size: 3rem; } }
.banda__grupo { display: flex; flex: none; gap: 2.5rem; padding-right: 2.5rem; }
.banda__grupo span { display: flex; align-items: center; gap: 2.5rem; }
.banda__grupo i { color: var(--ambar); font-style: normal; }
@keyframes banda { to { transform: translateX(-50%); } }

/* ---------- 11. Empresa y bomba 3D ---------- */
/* La escena queda fija mientras se hace scroll y js/fotogramas.js cambia el cuadro de la bomba.
   Sin JavaScript (o con movimiento reducido) la sección es normal y la bomba muestra su último cuadro. */
.empresa { position: relative; }
.empresa__escena { position: relative; display: flex; align-items: center; overflow: hidden; padding-block: 6rem; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .empresa { height: 320vh; }
  .empresa__escena { position: sticky; top: 0; height: 100vh; padding-block: 0; }
}
.empresa__luz { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgb(255 184 0 / .14), transparent 60%); }
.empresa__rejilla { position: relative; max-width: var(--ancho); margin-inline: auto; width: 100%; padding-inline: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .empresa__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; } }
.empresa__texto { order: 2; text-align: center; }
@media (min-width: 1024px) { .empresa__texto { order: 1; } }
.empresa__texto .etiqueta { margin-bottom: .75rem; }
.empresa__parrafo { max-width: 28rem; margin: 1.5rem auto 0; font-size: 1.125rem; line-height: 1.55; color: rgb(243 245 250 / .75); }
.empresa__bomba { order: 1; display: flex; justify-content: center; }
@media (min-width: 1024px) { .empresa__bomba { order: 2; } }
.halo-bomba { position: relative; }
.halo-bomba::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 55%, rgb(255 184 0 / .2), rgb(255 184 0 / .07) 55%, transparent 100%); }
.mascara-bomba { position: relative; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.bomba-cuadros { display: block; width: auto; height: 40vh; max-width: 100%; aspect-ratio: 4 / 5; }
@media (min-width: 1024px) { .bomba-cuadros { height: 70vh; } }

/* ---------- 12. Productos y contacto ---------- */
.encabezado-seccion { max-width: var(--ancho); margin: 0 auto 2.5rem; }
.encabezado-seccion .etiqueta { margin-bottom: .75rem; }
.productos { padding: 6rem 1.25rem; }
.productos__caja { max-width: var(--ancho); margin-inline: auto; }
.productos__tarjeta { padding: 2.5rem; text-align: center; }
.productos__tarjeta p:last-child { margin-top: 1rem; color: rgb(11 21 48 / .7); }
.contacto { background: var(--profundo); padding: 6rem 1.25rem; }
.contacto__rejilla { max-width: var(--ancho); margin-inline: auto; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .contacto__rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contacto__rejilla > div { height: 100%; min-width: 0; }
.contacto .etiqueta { margin-bottom: .75rem; }
.contacto__dato { font-family: var(--fuente-mono); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--hueso); }
a.contacto__dato:hover { color: var(--ambar); }

/* ---------- 13. Pie de página ---------- */
.pie { border-top: 1px solid rgb(255 255 255 / .1); background: var(--noche); padding: 2.5rem 1.25rem; text-align: center; }
.pie p { font-size: .875rem; line-height: 1.43; color: rgb(243 245 250 / .6); }

/* ---------- 14. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #splash { display: none; }
  .insignia-scroll__giro, .bomba-flota, .banda__carril { animation: none; }
}

/* ---------- 404 ---------- */
.error404 { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 2rem 1.25rem; text-align: center; }
.error404 p { color: rgb(243 245 250 / .75); }
