/* Tema visual — "Estación de Servicios My Friend SAC". Naranja corporativo,
   el color real del grifo (letreros, surtidores) — no el azul que Carlos usa
   en sus otras herramientas. Mismo sistema de diseño que
   consultorio_odontologico (tarjetas, badges, sidebar), con selector de tema
   en tiempo de ejecución vía body[data-tema]. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --background: #f4f6f8;
  --surface: #ffffff;
  --surface-hover: #f0f3f6;
  --border: #dde3ea;
  --foreground: #1b2530;
  --muted: #5c6b7a;

  /* Naranja RAL 2004 "Naranja Puro" — color principal del logotipo y de los
     balones de gas. RAL 2009 "Naranja Tráfico" (más vivo) se usa para hover
     y detalles. Azul RAL 5002 "Azul Ultramar" — el color de contraste real
     que usan en cuerpos de cilindros, aquí como --calido. */
  --accent: #e25303;
  --accent-oscuro: #b54302;
  --accent-tint: #fce3d2;
  --accent-foreground: #ffffff;
  --accent-vivo: #f44611;

  --calido: #20214f;
  --calido-tint: #dedfec;
  --calido-foreground: #ffffff;

  --danger: #b3261e;
  --danger-fondo: #fbe9e7;

  --ambar: #92600a; --ambar-fondo: #fdf1de;
  --azul: #145da0; --azul-fondo: #e3f1fd;
  --verde: #1e7d3c; --verde-fondo: #e5f6ea;
  --gris: #736c64; --gris-fondo: #ece8e4;
  --rojo: #b3261e; --rojo-fondo: #fbe9e7;

  --sombra-suave: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.05);
  --sombra-media: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Carlos puede elegir otra tonalidad desde Configuración sin tocar código —
   solo redefine los 4 tonos de acento, igual que en el consultorio. */
body[data-tema="azul"] { --accent: #1f4e78; --accent-oscuro: #163a5a; --accent-tint: #dce8f2; --accent-vivo: #2f7dc4; }
body[data-tema="verde"] { --accent: #1e7d3c; --accent-oscuro: #14582a; --accent-tint: #dcf2e3; --accent-vivo: #2fa855; }
body[data-tema="rojo"] { --accent: #a1281f; --accent-oscuro: #741c16; --accent-tint: #fbe1de; --accent-vivo: #d1382c; }
body[data-tema="gris"] { --accent: #495057; --accent-oscuro: #343a40; --accent-tint: #e9ecef; --accent-vivo: #6c757d; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout { display: flex; min-height: 100vh; }

/* --- Barra lateral --- */
.sidebar {
  width: 226px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}
.sidebar .marca {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}
.sidebar .marca-subtitulo { font-size: 0.72rem; color: var(--muted); margin-bottom: 1.25rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 1rem; }
.sidebar nav a {
  color: var(--foreground);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}
.sidebar nav a:hover { background: var(--surface-hover); text-decoration: none; }
.sidebar nav a.activo { background: var(--accent-tint); color: var(--accent-oscuro); }
.sidebar .usuario { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; }
.sidebar .usuario .muted { color: var(--muted); font-size: 0.75rem; }
.sidebar .badge-modo { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.75rem; display: block; }

.contenido { flex: 1; padding: 1.75rem 2rem; max-width: 1200px; }

/* --- Componentes --- */
.tarjeta { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; box-shadow: var(--sombra-suave); margin-bottom: 1.25rem; }
.tarjeta h2, .tarjeta h3 { margin-top: 0; }

.metrica { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; border-top: 3px solid var(--accent); }
.metrica .valor { font-size: 1.6rem; font-weight: 800; }
.metrica .etiqueta { font-size: 0.8rem; color: var(--muted); }
.fila-metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; font-family: inherit;
  background: var(--accent); color: var(--accent-foreground); transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sombra-suave); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secundario { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.btn-peligro { background: var(--danger); }
.btn-chico { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-grande { padding: 0.8rem 1.6rem; font-size: 1rem; }
.btn-bloque { width: 100%; }
.grid-botones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; }

input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; background: var(--surface); color: var(--foreground);
}
label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.3rem; margin-top: 0.75rem; }
.campo { margin-bottom: 0.5rem; }
.fila-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
tr:hover td { background: var(--surface-hover); }

.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-activo, .badge-activa, .badge-cuadrado { background: var(--verde-fondo); color: var(--verde); }
.badge-inactivo, .badge-inactiva, .badge-anulada, .badge-anulado, .badge-faltante { background: var(--rojo-fondo); color: var(--rojo); }
.badge-sobrante, .badge-mantenimiento { background: var(--azul-fondo); color: var(--azul); }
.badge-prueba { background: var(--ambar-fondo); color: var(--ambar); }

.alerta { padding: 0.7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; }
.alerta-exito { background: var(--verde-fondo); color: var(--verde); }
.alerta-error { background: var(--rojo-fondo); color: var(--rojo); }
.alerta-aviso { background: var(--ambar-fondo); color: var(--ambar); }

.banner-prueba {
  background: var(--rojo-fondo); color: var(--rojo); border: 1px solid var(--rojo);
  padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 700; font-size: 0.85rem;
}

.caja-login { max-width: 420px; margin: 3rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; box-shadow: var(--sombra-media); }
.caja-login h1 { text-align: center; color: var(--accent); margin-top: 0; }
.grid-personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 1rem; }

.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a { padding: 0.55rem 1rem; border-radius: 10px 10px 0 0; font-weight: 700; font-size: 0.88rem; color: var(--muted); }
.tabs a.activo { color: var(--accent); background: var(--accent-tint); }

.muted { color: var(--muted); font-size: 0.85rem; }
.derecha { text-align: right; }
.centro { text-align: center; }

/* ======================================================================
   Página pública (/) — landing informativo para clientes, separado del
   sistema interno (que sigue detrás de PIN). Mismo patrón que el portal
   público de consultorio_odontologico, mismo azul corporativo.
   ====================================================================== */

.pagina-publica { background: var(--background); min-height: 100vh; }

.topbar-publica {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.5rem; padding: 0.5rem 2rem; background: var(--calido); color: #fff; font-size: 0.82rem;
}
.topbar-datos { display: flex; gap: 1.25rem; flex-wrap: wrap; opacity: 0.92; }

.navbar-publica {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.75rem; padding: 1rem 2rem; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.navbar-publica .marca { font-weight: 800; font-size: 1.2rem; color: var(--accent); display: flex; align-items: center; gap: 0.55rem; }
.navbar-publica nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.enlace-personal { font-size: 0.8rem; color: var(--muted); margin-left: 0.5rem; }
.enlace-personal:hover { color: var(--accent); }

.hero-publica {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-oscuro) 100%);
  color: #fff; padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.hero-publica::before {
  content: "⛽"; position: absolute; font-size: 14rem; opacity: 0.08; right: -1.5rem; top: -3rem;
  transform: rotate(-12deg); animation: flotar-icono 5s ease-in-out infinite;
}
.hero-publica h1 { position: relative; font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.9rem; color: #fff; }
.hero-publica p { font-size: 1.1rem; opacity: 0.92; max-width: 560px; margin: 0 auto 1.75rem; }
.hero-publica .acciones-hero { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-publica .btn { background: #fff; color: var(--accent-oscuro); border-color: transparent; }
.hero-publica .btn-secundario { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }

@keyframes flotar-icono {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-12deg) translateY(-16px); }
}

/* --- Animaciones al hacer scroll (ver public/js/animaciones_publico.js) --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-grupo .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-grupo .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-grupo .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-grupo .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-publica::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Banda de video institucional (azul RAL 5002 + marco naranja) --- */
.banda-video {
  background: linear-gradient(135deg, var(--calido) 0%, #14153a 100%);
  color: #fff; padding: 4rem 2rem; position: relative; overflow: hidden;
}
.banda-video::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--accent); opacity: 0.16; filter: blur(70px); left: -120px; bottom: -160px;
}
.banda-video-contenido {
  max-width: 1040px; margin: 0 auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.banda-video-texto { flex: 1; min-width: 0; }
.banda-video-etiqueta {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: #fff; margin-bottom: 1rem;
}
.banda-video-texto h2 { font-size: 2.6rem; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; color: #fff; }
.banda-video-texto p { font-size: 1.08rem; line-height: 1.6; opacity: 0.88; max-width: 460px; margin: 0 0 1.75rem; }

.banda-video-marco {
  position: relative; flex-shrink: 0; width: 340px; aspect-ratio: 9 / 16; max-height: 76vh;
  border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: 14px 14px 0 var(--accent), 0 30px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}
.banda-video-marco:hover { transform: translate(-3px, -3px); }
.banda-video-marco.horizontal { width: 520px; aspect-ratio: 16 / 9; }
.banda-video-marco video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-sonido {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.1rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: background 0.2s ease, transform 0.2s ease;
}
.video-sonido:hover { background: var(--accent); transform: scale(1.08); }

@media (max-width: 860px) {
  .banda-video { padding: 3rem 1.25rem; }
  .banda-video-contenido { flex-direction: column-reverse; gap: 2.5rem; text-align: center; }
  .banda-video-texto p { margin-left: auto; margin-right: auto; }
  .banda-video-texto h2 { font-size: 2rem; }
  .banda-video-marco, .banda-video-marco.horizontal { width: min(100%, 320px); }
  .banda-video-marco.horizontal { width: 100%; }
}

.seccion-publica { max-width: 1040px; margin: 0 auto; padding: 2.5rem 2rem; }
.seccion-publica h2 { margin-bottom: 0.3rem; color: var(--foreground); }
.seccion-publica > p.subtitulo { margin-top: 0; color: var(--muted); }

.franja-confianza {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem 2.5rem;
  padding: 1.5rem 2rem; background: var(--surface); border-bottom: 1px solid var(--border);
}
.franja-confianza-item { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.92rem; color: var(--foreground); }
.franja-confianza-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

.grid-combustibles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.tarjeta-combustible {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.35rem;
  box-shadow: var(--sombra-suave); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tarjeta-combustible:hover { transform: translateY(-3px); box-shadow: var(--sombra-media); }
.tarjeta-combustible .icono {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent); font-size: 1.5rem; margin-bottom: 0.9rem;
}
.tarjeta-combustible h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--foreground); }
.tarjeta-combustible p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

.franja-credito {
  background: var(--accent-tint); border-radius: 20px; padding: 2rem 2.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.franja-credito h2 { margin: 0 0 0.4rem; }
.franja-credito p { margin: 0; color: var(--foreground); max-width: 480px; }

.footer-publica { padding: 3rem 2rem 0; color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; margin-top: 1rem; background: var(--calido); }
.footer-contenido { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1.75rem; padding-bottom: 2.25rem; }
.footer-columna p { margin: 0.3rem 0; color: rgba(255, 255, 255, 0.82); }
.footer-marca { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: #fff; font-size: 1.05rem; line-height: 1.25; margin: 0 0 0.9rem !important; }
.footer-slogan { color: rgba(255, 255, 255, 0.72); line-height: 1.5; margin: 0 !important; }
.footer-titulo { font-weight: 700; color: #fff; margin-bottom: 0.6rem !important; font-size: 0.95rem; }
.footer-boton {
  display: inline-block; margin-top: 0.7rem; padding: 0.5rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; font-weight: 600; font-size: 0.82rem; text-decoration: none;
}
.footer-boton:hover { background: #fff; color: var(--accent-oscuro); text-decoration: none; }
.footer-mapa { max-width: 1180px; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.5rem; }
.footer-mapa iframe { display: block; border-radius: 12px; }
.footer-copy { max-width: 1180px; margin: 0 auto; text-align: center; padding: 1.5rem 0; font-size: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.5rem; color: rgba(255, 255, 255, 0.65); }

@media (max-width: 900px) { .footer-contenido { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-contenido { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .navbar-publica { padding: 1rem; }
  .topbar-publica { padding: 0.5rem 1rem; }
  .hero-publica { padding: 2.5rem 1.25rem; }
  .seccion-publica { padding: 2rem 1.25rem; }
  .footer-publica { padding: 2rem 1.25rem 0; }
  .franja-credito { flex-direction: column; text-align: center; }
}

/* --- Punto de Venta: diseño compacto --- */
.tarjeta-compacta { padding: 0.85rem 1rem; margin-bottom: 0.85rem; }
.tarjeta-compacta h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }

.grid-mangueras { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.manguera-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  padding: 0.65rem 0.85rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--foreground); text-align: left;
}
.manguera-btn:hover { border-color: var(--accent); background: var(--accent-tint); text-decoration: none; }
.manguera-btn .isla { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.manguera-btn .combustible { font-size: 1rem; font-weight: 800; color: var(--accent-oscuro); }
.manguera-btn .codigo { font-size: 0.7rem; color: var(--muted); }
.manguera-btn.seleccionada { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent-tint); }

.segmentado { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.segmentado label {
  margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 700; cursor: pointer; background: var(--surface); color: var(--foreground);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.segmentado input[type="radio"] { width: auto; margin: 0; }
.segmentado label.activo { background: var(--accent); border-color: var(--accent); color: var(--accent-foreground); }

.pos-resumen { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pos-resumen .total { font-size: 1.4rem; font-weight: 800; color: var(--accent-oscuro); }

.tabla-compacta th, .tabla-compacta td { padding: 0.4rem 0.6rem; font-size: 0.82rem; }

/* --- Hero rotativo, tarjetas "Descubre" y sección de estación (inspirado en la estructura de sitios de estaciones de servicio) --- */
.hero-slider { min-height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-slide { display: none; position: relative; animation: entrar-slide 0.7s ease; }
.hero-slide.activa { display: block; }
@keyframes entrar-slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-puntos { position: absolute; bottom: 1.2rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.hero-punto { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.hero-punto.activo { background: #fff; width: 28px; border-radius: 999px; }

.titulo-naranja { color: var(--accent) !important; font-size: 1.9rem; }
.grid-descubre { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.tarjeta-descubre { display: block; color: inherit; text-decoration: none; }
.tarjeta-descubre:hover { text-decoration: none; }
.foto-descubre {
  aspect-ratio: 4 / 3; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; margin-bottom: 0.8rem; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.foto-descubre img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-descubre:hover .foto-descubre { transform: translateY(-4px); box-shadow: var(--sombra-media); }
.grad-1 { background: linear-gradient(135deg, var(--accent), var(--accent-vivo)); }
.grad-2 { background: linear-gradient(135deg, var(--calido), #3a3c8a); }
.grad-3 { background: linear-gradient(135deg, var(--accent-vivo), var(--calido)); }
.grad-4 { background: linear-gradient(135deg, #3a3c8a, var(--accent)); }
.tarjeta-descubre h3 { margin: 0 0 0.3rem; color: var(--foreground); }
.tarjeta-descubre p { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--muted); }
.saber-mas { font-weight: 700; font-size: 0.85rem; color: var(--accent); }

.estacion-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; margin-top: 1.25rem; }
.lista-servicios { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.lista-servicios li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1.1rem; font-weight: 600; box-shadow: var(--sombra-suave); }
.mapa-estacion { border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-media); min-height: 320px; }
.mapa-estacion iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 780px) { .estacion-layout { grid-template-columns: 1fr; } .hero-slider { min-height: 340px; } }

/* --- Beneficios de producto --- */
.grid-beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.25rem; }
.beneficio { background: linear-gradient(145deg, var(--calido), #14153a); color: #fff; border-radius: 18px; padding: 1.6rem 1.4rem; min-height: 200px; box-shadow: var(--sombra-media); transition: transform 0.25s ease; }
.beneficio:hover { transform: translateY(-4px); }
.beneficio-icono { width: 52px; height: 52px; border-radius: 16px 16px 16px 4px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.beneficio h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.15rem; }
.beneficio p { margin: 0; font-size: 0.92rem; line-height: 1.5; opacity: 0.85; }

/* --- Preguntas frecuentes (acordeón) --- */
.faq { display: grid; gap: 0.8rem; max-width: 860px; margin: 1.25rem auto 0; }
.faq details { background: var(--surface); border: 1.5px solid var(--accent); border-radius: 6px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; color: var(--accent); font-weight: 800; font-size: 1.2rem; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.25rem 1.2rem; line-height: 1.6; color: var(--foreground); }

.enlace-tarjeta { display: block; color: inherit; text-decoration: none; }
.enlace-tarjeta:hover { text-decoration: none; }
.enlace-tarjeta .saber-mas { display: inline-block; margin-top: 0.6rem; }

/* --- Textos animados --- */
.texto-brillo {
  background: linear-gradient(100deg, #fff 0%, #ffd2ad 25%, #fff 50%, #ffb27a 75%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: brillo-texto 4s linear infinite;
  display: inline-block; text-shadow: none;
}
@keyframes brillo-texto { from { background-position: 0% 0; } to { background-position: 250% 0; } }
.palabra-rotante { transition: opacity 0.35s ease, transform 0.35s ease; }
.palabra-rotante.saliendo { opacity: 0; transform: translateY(-12px); }

.titulo-naranja.letras {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-vivo) 40%, var(--calido) 70%, var(--accent) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: brillo-texto 6s linear infinite;
}
.letra { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(6deg); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(.2,1.4,.4,1); transition-delay: calc(var(--i) * 28ms); }
.visible .letra, .letras-visibles .letra { opacity: 1; transform: none; }

.cinta-marquesina { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; transform: skewY(-1.2deg); margin: 1.2rem 0; box-shadow: 0 6px 18px rgba(226,83,3,.35); }
.cinta-pista { display: inline-flex; gap: 2rem; padding: 0.85rem 0; animation: desfile 28s linear infinite; font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; }
@keyframes desfile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cinta-marquesina:hover .cinta-pista { animation-play-state: paused; }

.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; padding-top: 1.5rem; padding-bottom: 0.5rem; }
.cifra-num { font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.03em; }
.cifra-sufijo { font-size: 2rem; font-weight: 800; color: var(--calido); margin-left: 0.15rem; }
.cifra p { margin: 0.3rem 0 0; color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .texto-brillo, .titulo-naranja.letras, .cinta-pista { animation: none; }
  .letra { opacity: 1; transform: none; transition: none; }
}

/* --- Logo de la marca --- */
.logo-marca { height: 38px; width: 38px; border-radius: 10px; object-fit: cover; vertical-align: middle; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.footer-marca .logo-marca { height: 46px; width: 46px; }
.hero-logo-img { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 4px rgba(255,255,255,.55); animation: latido-logo 4s ease-in-out infinite; z-index: 2; }
.hero-slider { padding-top: 7.2rem; }
@keyframes latido-logo { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
.logo-login { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--sombra-media); margin-bottom: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .hero-logo-img { animation: none; } }
@media (max-width: 720px) { .hero-slider { padding-top: 6.4rem; } .hero-logo-img { width: 76px; height: 76px; } }

/* --- Foto de la estación --- */
.foto-estacion { margin: 1.25rem auto 0; max-width: 620px; border-radius: 22px; overflow: hidden; box-shadow: 14px 14px 0 var(--accent), var(--sombra-media); transition: transform 0.3s ease; }
.foto-estacion:hover { transform: translate(-3px, -3px); }
.foto-estacion img { width: 100%; height: auto; display: block; }

/* Corrección: el degradado con background-clip no se pinta en letras inline-block con transform;
   cada letra lleva su color y el brillo se logra animando el color. */
.titulo-naranja.letras { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; animation: none; color: var(--accent) !important; }
.titulo-naranja.letras .letra { animation: color-letra 5s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); }
@keyframes color-letra { 0%, 100% { color: var(--accent); } 50% { color: var(--calido); } }
@media (prefers-reduced-motion: reduce) { .titulo-naranja.letras .letra { animation: none; } }

/* --- Compromiso con la comunidad --- */
.comunidad-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.comunidad-layout .foto-estacion { margin: 0; max-width: 460px; }
.comunidad-texto h2 { font-size: 2.1rem; line-height: 1.12; margin: 0.6rem 0 0.8rem; color: var(--foreground); }
.comunidad-texto p { line-height: 1.6; color: var(--muted); margin: 0 0 1.4rem; }
@media (max-width: 780px) { .comunidad-layout { grid-template-columns: 1fr; text-align: center; } .comunidad-layout .foto-estacion { margin: 0 auto; } }

/* Cuadro de firma de supervisor (anulaciones) */
.dialogo-firma { border: 1px solid var(--borde, #ccc); border-radius: 12px; padding: 1.2rem; max-width: 380px; width: calc(100% - 2rem); }
.dialogo-firma::backdrop { background: rgba(32, 33, 79, 0.55); }
.dialogo-firma .campo { margin-bottom: 0.6rem; }
.dialogo-firma input, .dialogo-firma select { width: 100%; }
