.hidden { display: none !important; }

/* ---------- FÉNIX DECORATIVO (fijo, no afecta el centrado del contenido) ---------- */
.fenix-side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  z-index: 0;
  overflow: hidden;
  display: none;
  pointer-events: none;
}

.fenix-ave--side {
  position: absolute;
  left: 8%;
  bottom: 6%;
  width: 82%;
  height: auto;
  opacity: 0.94;
}

@media (min-width: 1600px) {
  .fenix-side { display: block; }
}

/* ---------- CONTENIDO: centrado real en la ventana, sin depender del fénix ---------- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

/* ---------- HEADER ---------- */
.topbar { margin-bottom: 40px; }
.topbar .logo-fenix { justify-content: center; }
.topbar .logo-fenix-img { height: 68px; }

.hero { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
}

.hero h1 .acento { color: var(--orange); }

.sub { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ---------- BUSCADOR ---------- */
.buscador {
  display: flex;
  gap: 8px;
  padding: 10px;
  margin-bottom: 28px;
  border-color: var(--line-strong);
}

.buscador input {
  border: none;
  background: transparent;
  font-size: 16px;
}
.buscador input:focus { outline: none; box-shadow: none; }

#btn-buscar {
  background: var(--orange);
  color: #1a0f00;
  padding: 0 26px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
#btn-buscar:hover { background: var(--orange-bright); box-shadow: var(--glow-orange); }
#btn-buscar:disabled { opacity: 0.6; cursor: default; }

.mensaje-vacio {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-soft);
}
.sub-chica { font-size: 13px; opacity: 0.85; }

.resultados { display: flex; flex-direction: column; gap: 16px; }

/* ---------- CARD DE RESULTADO ---------- */
.equipo { padding: 24px; }

.equipo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.equipo-marca { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.equipo-ticket { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }

/* --- Pista de progreso --- */
.track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0 6px 28px;
}

.track-line {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.track-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--fire));
  transition: width 0.5s ease;
}

.track-nodo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  text-align: center;
}

.punto {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--line-strong);
  transition: all 0.3s ease;
}

.track-nodo.activo { color: var(--ink); }
.track-nodo.activo .punto { border-color: var(--orange); background: var(--orange); }
.track-nodo.actual .punto {
  box-shadow: 0 0 0 5px rgba(245, 130, 12, 0.2);
  animation: pulso 1.8s ease-in-out infinite;
}

@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 5px rgba(245, 130, 12, 0.2); }
  50% { box-shadow: 0 0 0 9px rgba(245, 130, 12, 0.08); }
}

/* --- Detalle --- */
.equipo-detalle {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.label-inline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  flex-shrink: 0;
  display: block;
  margin-bottom: 5px;
}

.detalle-bloque { display: flex; flex-direction: column; gap: 5px; }
.detalle-valor { margin: 0; line-height: 1.5; word-break: break-word; color: var(--ink); }

.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.detalle-mini { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.detalle-mini span:last-child { word-break: break-word; color: var(--ink); }

/* ---------- FOOTER DESPLEGABLE ---------- */
.footer-desplegable {
  margin: 48px 0 60px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.footer-desplegable summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0;
}
.footer-desplegable summary::-webkit-details-marker { display: none; }

.footer-desplegable-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--orange);
  font-size: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.footer-desplegable[open] .footer-desplegable-icono { transform: rotate(45deg); }

.footer-contenido {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  margin-top: 24px;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.footer-terminos-intro {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
}

.footer-terminos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.footer-terminos li { padding-left: 16px; position: relative; }
.footer-terminos li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.footer-col-marca { border-left: 1px solid var(--line); padding-left: 32px; }

.footer-tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 10px 0 20px;
}

.footer-sucursales { display: flex; flex-direction: column; gap: 16px; }

.sucursal { display: flex; flex-direction: column; gap: 3px; }
.sucursal-nombre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.sucursal-direccion { font-size: 12.5px; color: var(--ink-soft); padding-left: 20px; }
.sucursal-telefono {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-whatsapp {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16281f;
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 14px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.footer-whatsapp:hover { background: #1a3324; }
.footer-whatsapp strong { color: #4ade80; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .wrap { padding: 32px 16px 0; }
  .equipo { padding: 18px; }
  .footer-contenido { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-marca { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

@media (max-width: 400px) {
  .wrap { padding: 26px 14px 0; }
  .hero { margin-bottom: 22px; }
  .buscador { padding: 8px; gap: 6px; }
  #btn-buscar { padding: 0 16px; font-size: 12px; }
  .equipo { padding: 16px; }
  .track { margin: 0 2px 26px; }
  .track-nodo { font-size: 10px; }
  .detalle-grid { grid-template-columns: 1fr; }
}
