/* ==========================================================================
   DJ LEBRON — estilos personalizados (glow, glitch, parallax, scroll reveal)
   Tailwind cubre utilidades; aquí solo lo que Tailwind no resuelve bien.
   ========================================================================== */

:root {
  --gold: #f4c531;
  --gold-soft: #ffe27a;
  --black: #060606;
  --black-soft: #0d0d0d;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
}

/* ---------- Scrollbar (estético, no crítico) ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }

/* ---------- Glow / neón ---------- */
.text-glow {
  text-shadow:
    0 0 8px rgba(244, 197, 49, 0.85),
    0 0 24px rgba(244, 197, 49, 0.55),
    0 0 60px rgba(244, 197, 49, 0.35);
}

.glow-border {
  box-shadow:
    0 0 12px rgba(244, 197, 49, 0.55),
    0 0 32px rgba(244, 197, 49, 0.25);
}

.btn-cta {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 20px rgba(244, 197, 49, 0.9),
    0 0 50px rgba(244, 197, 49, 0.5);
}

.btn-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Glitch sutil sobre el logo del hero ---------- */
.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  overflow: hidden;
  opacity: 0;
}

.glitch::before {
  color: #ff2ec4;
  transform: translate(0, 0);
  clip-path: inset(0 0 0 0);
}

.glitch::after {
  color: #2ef2ff;
  transform: translate(0, 0);
  clip-path: inset(0 0 0 0);
}

.glitch.glitch-active::before {
  animation: glitch-anim-1 0.35s steps(2, end) 2;
  opacity: 0.7;
}
.glitch.glitch-active::after {
  animation: glitch-anim-2 0.35s steps(2, end) 2;
  opacity: 0.7;
}

@keyframes glitch-anim-1 {
  0%   { clip-path: inset(10% 0 70% 0); transform: translate(-3px, -1px); }
  50%  { clip-path: inset(60% 0 5% 0);  transform: translate(3px, 1px); }
  100% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 0); }
}
@keyframes glitch-anim-2 {
  0%   { clip-path: inset(70% 0 5% 0);  transform: translate(3px, 0); }
  50%  { clip-path: inset(15% 0 60% 0); transform: translate(-3px, 1px); }
  100% { clip-path: inset(45% 0 25% 0); transform: translate(2px, -1px); }
}

/* ---------- Bandera de Andalucía (verde-blanco-verde) ---------- */
.andalucia-flag {
  background: linear-gradient(
    180deg,
    #009540 0%, #009540 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #009540 66.66%, #009540 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Líneas / grid futurista de fondo ---------- */
.grid-lines {
  background-image:
    linear-gradient(to right, rgba(244, 197, 49, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 197, 49, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Ondas de sonido decorativas (capa media parallax) ---------- */
.soundwave-bar {
  animation: soundwave 1.4s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes soundwave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ---------- Parallax (capas hero) ---------- */
.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

#hero-content {
  will-change: transform, opacity;
}

/* La sección "Quién soy" se desliza por encima del hero, que queda fijo
   (position: sticky) mientras dura ese tramo de scroll — de ahí la sombra
   superior, que vende la sensación de profundidad/parallax entre capas. */
.parallax-overlap {
  box-shadow: 0 -60px 80px -20px rgba(0, 0, 0, 0.85);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Navbar ---------- */
#navbar {
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#navbar.scrolled {
  background-color: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(244, 197, 49, 0.25);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after,
.nav-link.current::after {
  width: 100%;
}

/* ---------- Menu hamburguesa ---------- */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open .line-1 { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .line-2 { opacity: 0; }
.hamburger.is-open .line-3 { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.is-open {
  max-height: 32rem;
  opacity: 1;
}

/* ---------- Tarjetas producto / media con hover ---------- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 197, 49, 0.8);
  box-shadow: 0 12px 40px rgba(244, 197, 49, 0.18);
}

/* ---------- Placeholder badges ---------- */
.placeholder-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

/* ---------- Section divider ---------- */
.diagonal-cut {
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

/* ---------- Foto de fondo del hero ---------- */
.hero-photo {
  opacity: 0.45;
  object-position: 60% center; /* en móvil se centra en el DJ, no en el logo */
}
/* Oscurece los bordes para que la foto no compita con el título. */
.hero-vignette {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
}
@media (max-width: 640px) {
  .hero-photo { opacity: 0.35; }
}

/* ---------- Mis redes: tarjetas grandes con el logo ---------- */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1rem;
  background: #121212;
  border: 1px solid rgba(244, 197, 49, 0.18);
  color: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.social-card-icon {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--gold);
  transition: transform 0.25s ease, filter 0.25s ease;
}
@media (min-width: 640px) {
  .social-card { padding: 3rem 1.5rem; }
  .social-card-icon { width: 6rem; height: 6rem; }
}
.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(244, 197, 49, 0.18);
}
.social-card:hover .social-card-icon,
.social-card:focus-visible .social-card-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(244, 197, 49, 0.55));
}
@media (prefers-reduced-motion: reduce) {
  .social-card, .social-card-icon { transition: none; }
  .social-card:hover, .social-card:hover .social-card-icon { transform: none; }
}

/* ==========================================================================
   Recibo en gracias.html: impresora + ticket que "sale impreso"
   ========================================================================== */
.receipt-zone { display: flex; flex-direction: column; align-items: center; }

.printer { position: relative; width: min(340px, 100%); z-index: 2; }
.printer-tray {
  width: 72%;
  height: 22px;
  margin: 0 auto;
  background: linear-gradient(#2a2a2a, #1a1a1a);
  border: 1px solid rgba(244, 197, 49, 0.35);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.printer-body {
  background: linear-gradient(160deg, #1d1d1d 0%, #0e0e0e 100%);
  border: 1px solid rgba(244, 197, 49, 0.55);
  border-radius: 14px;
  padding: 1rem 1.25rem 1.4rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 197, 49, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.printer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.printer-brand { font-family: 'Anton', sans-serif; letter-spacing: 0.12em; color: rgba(244, 197, 49, 0.85); font-size: 0.85rem; }
.printer-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f6f3a;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
.printer.is-printing .printer-led { animation: led-blink 0.35s steps(2, jump-none) infinite; }
@keyframes led-blink { from { background: #22c55e; box-shadow: 0 0 10px #22c55e; } to { background: #14532d; box-shadow: none; } }

.printer-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #060606;
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 0 #9c7a0e;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}
.printer-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.printer-btn:hover { background: var(--gold-soft); }
.printer-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #9c7a0e; }
.printer-btn:disabled { opacity: 0.6; cursor: progress; }

.printer-slot {
  width: 86%;
  height: 10px;
  margin: -5px auto 0;
  background: #000;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(244, 197, 49, 0.35);
  border-top: 0;
  position: relative;
  z-index: 3;
}

/* La ventana recorta el papel: parece que sale de la ranura. */
.paper-window { width: min(300px, 92%); overflow: hidden; margin-top: -4px; }
.receipt-paper {
  --edge: 10px;
  background: #fbf8ef;
  color: #1a1a1a;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
  padding: 1.1rem 1.1rem calc(1.2rem + var(--edge));
  box-shadow: inset 0 12px 14px -10px rgba(0, 0, 0, 0.35);
  /* Borde de abajo en zigzag, como un ticket arrancado */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--edge)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--edge) * 2) var(--edge) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--edge)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--edge) * 2) var(--edge) repeat-x;
  transform: translateY(-100%);
}
.receipt-paper.is-printing { animation: receipt-print 3.2s steps(34, end) forwards; }
@keyframes receipt-print { to { transform: translateY(0); } }

.receipt-paper p { display: flex; justify-content: space-between; gap: 0.75rem; margin: 0; }
.receipt-paper .rp-title { justify-content: center; font-family: 'Anton', sans-serif; font-size: 1.6rem; letter-spacing: 0.06em; line-height: 1.2; }
.receipt-paper .rp-sub { justify-content: center; font-weight: 700; letter-spacing: 0.18em; font-size: 11px; }
.receipt-paper .rp-sep { border-top: 1px dashed rgba(0, 0, 0, 0.45); margin: 0.55rem 0; }
.receipt-paper .rp-item { margin-top: 0.3rem; }
.receipt-paper .rp-item strong:first-child { text-transform: uppercase; }
.receipt-paper .rp-note { padding-left: 0.8rem; color: #555; font-size: 11.5px; }
.receipt-paper .rp-total { font-weight: 700; font-size: 15px; margin-top: 0.2rem; }
.receipt-paper .rp-center { justify-content: center; text-align: center; }
.receipt-paper .rp-small { font-size: 10.5px; color: #666; }
.receipt-paper .rp-break { word-break: break-all; text-align: right; }
.receipt-paper .rp-barcode {
  height: 34px;
  margin: 0.8rem auto 0;
  width: 80%;
  background: repeating-linear-gradient(90deg, #1a1a1a 0 2px, transparent 2px 4px, #1a1a1a 4px 5px, transparent 5px 8px, #1a1a1a 8px 11px, transparent 11px 12px);
}

.receipt-pdf {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  transition: background 0.2s ease, color 0.2s ease;
  animation: pdf-appear 0.4s ease both;
}
.receipt-pdf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.receipt-pdf:hover { background: var(--gold); color: #060606; }
@keyframes pdf-appear { from { opacity: 0; transform: translateY(-6px); } }

/* Sin animaciones: el ticket aparece al momento (animationend sigue llegando). */
@media (prefers-reduced-motion: reduce) {
  .receipt-paper.is-printing { animation-duration: 0.01s; }
  .printer.is-printing .printer-led, .receipt-pdf { animation: none; }
}
