/* ==========================================================
   V-SANDBOX — Banner temporal del curso Linux
   ==========================================================
   ⚠ ARCHIVO TEMPORAL — ver LINUX_CURSO_TEMPORAL.md ⚠
   Este archivo existe únicamente para el curso de Linux y
   se elimina al terminar. No forma parte del design system:
   está enlazado SOLO desde index.html y curso-linux.html.
   Al borrarlo, ambos <link> dejan de resolver y hay que
   quitarlos también (el manifiesto lo indica).
   ========================================================== */

/* ==========================================================
   BARRA DE PROMOCIÓN DEL CURSO (bajo el navbar)
   ==========================================================
   Sustituye al botón grande que iba dentro del navbar: aquel
   medía 229px de ancho y competía visualmente con
   ./PRE-REGISTRO, que es el CTA principal. La barra mantiene
   el navbar limpio y el Animated glow queda contenido.
   ========================================================== */

/* ── Animaciones compartidas ── */
@keyframes linuxPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 255, 102, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 255, 102, 0.55),
                0 0 34px rgba(0, 255, 102, 0.20);
  }
}

@keyframes linuxDot {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* Punto del badge en la página del curso (curso-linux.html).
   Necesita su propia regla: no hereda nada de la barra. */
.linux-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #00FF66;
  flex: none;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.9);
  animation: linuxDot 1.8s ease-in-out infinite;
}

/* ── Tux: pingüino de la barra ──
   SVG inline en index.html. El cuerpo usa currentColor para
   heredar el rojo de la barra, y las partes internas usan el
   fondo (#0B0C10) y el naranja de marca (#FF7700). */
.linux-tux {
  flex: none;
  display: block;
  /* El cuerpo usa currentColor vía las clases de Tailwind del padre;
     se fija aqui para que el pinguino sea rojo y no herede el blanco
     del enlace. currentColor sigue funcionando para el relleno. */
  color: #ff3b3b;
  filter: drop-shadow(0 0 5px rgba(255, 59, 59, 0.45));
  transition: transform .2s ease;
}

/* Pequeño impulso al pasar el ratón: da vida sin parpadeo */
.linux-bar:hover .linux-tux,
.linux-bar:focus-visible .linux-tux {
  transform: translateY(-1px) scale(1.08);
}

/* Halo muy leve sobre el fondo de la barra, no sobre el texto:
   un resplandor fuerte en una banda de 30px molesta al leer */
.linux-bar {
  transition: background-color .2s ease;
}

.linux-bar:hover,
.linux-bar:focus-visible {
  background-color: rgba(255, 59, 59, 0.07);
  outline: none;
}

/* El CTA de la derecha seunderline al pasar el ratón */
.linux-bar-cta {
  position: relative;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.linux-bar:hover .linux-bar-cta,
.linux-bar:focus-visible .linux-bar-cta {
  border-bottom-color: currentColor;
}

/* ── Respetar la preferencia de movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  /* Tux deja de hacer el impulso al hover y el punto se congela */
  .linux-tux {
    transform: none;
    filter: none;
  }
  .linux-bar:hover .linux-tux,
  .linux-bar:focus-visible .linux-tux {
    transform: none;
  }
  .linux-dot {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================
   PÁGINA curso-linux.html
   ========================================================== */

/* Fondo del hero: retícula terminal + halo lime superior */
.linux-hero {
  position: relative;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 102, 0.13), transparent 62%),
    linear-gradient(rgba(31, 40, 51, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 40, 51, 0.55) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
}

/* Etiqueta de cada día del calendario */
.linux-day-tag {
  font-variant-numeric: tabular-nums;
}

/* Tarjeta de temario: el borde izquierdo se enciende al hover */
.linux-topic {
  transition: border-color .2s ease, background-color .2s ease;
}

.linux-topic:hover {
  border-color: rgba(0, 255, 102, 0.55);
  background-color: rgba(0, 255, 102, 0.04);
}

/* Lista de temas: guion que se desplaza al hover */
.linux-topic li {
  transition: color .2s ease, transform .2s ease;
}

.linux-topic:hover li {
  color: #e5e7eb;
}

/* Precio:_digits tabulares para que no baile */
.linux-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Botón flotante de WhatsApp */
.linux-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 9999px;
  background: #0B0C10;
  border: 1px solid #00FF66;
  color: #00FF66;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(0, 255, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.6);
  animation: linuxPulse 2.4s ease-in-out infinite;
  transition: background .2s ease, color .2s ease;
}

.linux-float:hover,
.linux-float:focus-visible {
  background: #00FF66;
  color: #0B0C10;
  outline: none;
}

.linux-float:hover .linux-float-label,
.linux-float:focus-visible .linux-float-label {
  display: none;
}

@media (min-width: 420px) {
  .linux-float { right: 1.25rem; bottom: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .linux-float {
    animation: none;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.28), 0 8px 24px rgba(0, 0, 0, 0.6);
  }
}
