/* ============================================================
🔒 PROTECT
============================================================ */
.no-select, .no-select * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important; /* iOS long-press */
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
}

img { 
  user-drag: none; 
  -webkit-user-drag: none; 
  -webkit-touch-callout: none; 
}

.protect-overlay {
  position: absolute;
  inset: 0;
  pointer-events: all;
  background: transparent;
  z-index: 9999;
}


/* ============================================================
🌗 VARIABLES
============================================================ */
:root {
  --primary: #c4ff00;
  --accent: #7e73ff;
  --light-accent: #E7E2FD;
  --light-primary:#21270B;
  --bg-dark: #0d0d15;
  --bg-light: #e9e6f7;
  --bg-dark-img: url("../assets/images/bg-dark.webp");
  --bg-light-img: url("../assets/images/bg-light.webp");
  --text-dark: #6b5b95;
  --blackdeep: #000;
  --whitepure: #fff;
  
}

/* ============================================================
FONDO Y GENERAL
============================================================ */
body {
  background-color: var(--bg-dark);
  background-image: var(--bg-dark-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  font-family: 'VT323', monospace;
  color: #fff;
  text-align: center;
  margin: 0;
  transition: background-color 0.6s ease, background-image 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.light-mode {
  background-color: var(--bg-light);
  background-image: var(--bg-light-img);
  color: var(--text-dark);
}

span {
  font-family: 'VT323', monospace;
}

/* ============================================================
BOTONES FLOTANTES
============================================================ */
.icon-floating {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary);
}

/* Botón de modo */
#themeToggle {
  top: 16px;
  left: 16px;
}

/* Botón de Facebook */
#facebookBtn {
  bottom: 16px;
  left: 16px;
  font-size: 1rem;
  background: var(--primary);
  color: #000;
  border: none;
  box-shadow: none;
}

#facebookBtn:hover {
  box-shadow: 0 0 12px var(--primary);
}

/* ---------------------------
 🌗 MODO CLARO
-----------------------------*/
body.light-mode #themeToggle {
  border-color: #7e73ff; /* Morado */
  color: #7e73ff;
  background: rgba(255, 255, 255, 0.08);
}

/* ☀️ LIGHT MODE (corrección del glow morado) */
body.light-mode #facebookBtn {
  background: #7e73ff;
  color: #fff;
}

body.light-mode #facebookBtn:hover {
  background: #7e73ff;
  color: #fff;
  box-shadow: 0 0 18px rgba(126, 115, 255, 0.8); /* 💜 más intenso al hover */
}

body.light-mode .icon-floating:hover {
  background: #7e73ff;
  color: #fff;
  box-shadow: 0 0 15px #7e73ff;
}

/* ============================================================
HEADER PRINCIPAL
============================================================ */
.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  margin-top: 15px;
}

.main-logo {
  width: 70px;
}

/* ============================================================
LOGOS — MODO OSCURO Y CLARO
============================================================ */
.main-logo,
.logo-title {
  transition: opacity 0.4s ease-in-out;
}

/* Oculta los logos light por defecto */
.light-logo,
.light-title {
  display: none;
  opacity: 0;
}

/* 🌙 Dark Mode activo (por defecto) */
body:not(.light-mode) .dark-logo,
body:not(.light-mode) .dark-title {
  display: inline;
  opacity: 1;
}

/* ☀️ Light Mode activo */
body.light-mode .dark-logo,
body.light-mode .dark-title {
  display: none;
  opacity: 0;
}

body.light-mode .light-logo,
body.light-mode .light-title {
  display: inline;
  opacity: 1;
}


/* ============================================================
SITE WRAPPER Y INTRO
============================================================ */
.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.logo-title {
  width: 260px;
  margin-top: 10px;
}

.intro-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  margin: 20px auto 0;
  padding: 20px 25px;
  width: 70%;
  max-width: 600px;
}

/* 🌙 DARK MODE */
body:not(.light-mode) .intro-box {
  background: rgba(255, 255, 255, 0.1);
}

/* ☀️ LIGHT MODE */
body.light-mode .intro-box {
  background: #d7cffc; 
  color: #1a1a2a;
}

.intro-box p {
  font-size: 1.1rem;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ============================================================
🌐 ENLACES SECTION
============================================================ */
.links-section {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  width: 100%;
  z-index: 1;
}

.link-buttons-container {
  display: flex;
  position: relative;
  width: 100%;
  overflow: visible;
  justify-content: center;
  z-index: 1;
  margin-top: 40px;
}

/* Carrusel scrollable */
.link-buttons-scroll {
  display: flex;
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  scrollbar-width: none; /* Firefox */
  z-index: 2;
}

.link-buttons-scroll::-webkit-scrollbar {
  display: none; /* iPhone / Chrome */
}

.link-buttons {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 0 1rem;
  scrollbar-width: none;
  overflow: visible;
  scroll-snap-align: center;
  z-index: 2;
}

.link-buttons::-webkit-scrollbar {
  display: none;
}

/* 🔘 Contenedor general del botón */
.link-btn {
  flex: 0 0 auto;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
  color: inherit;
  text-align: center;
  z-index: 3;
}

.link-btn:active {
  transform: scale(0.95);
}

/* 🌑 Círculo base */
.icon-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 0 auto;
}

/* 🧿 Icono SVG — independiente del fondo */
.icon-circle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(43%) sepia(82%) saturate(734%)
    hue-rotate(215deg) brightness(95%) contrast(101%);
}

/* Texto debajo */
.link-btn span {
  margin-top: 0.7rem;
  font-family: "VT323", monospace;
  font-size: 1rem;
  letter-spacing: 0.4px;
  color: var(--text-color, #222);
}

/* ✨ Hover */
.link-btn:hover .icon-circle {
  background: var(--bg-light);
  transform: translateY(-3px);
}

/* 🌙 Dark Mode */
body:not(.light-mode) .icon-circle {
  background: rgba(255, 255, 255, 0.1);
}

body:not(.light-mode) .icon-circle img {
  filter: invert(79%) sepia(94%) saturate(500%) hue-rotate(35deg)
    brightness(150%) contrast(130%);
}

body:not(.light-mode) .link-btn span {
  color: var(--whitepure);
}

body:not(.light-mode) .link-btn:hover .icon-circle {
  background: var(--light-primary);
}




/* ============================================================
CARDS
============================================================ */
.button-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  padding: 0;
}

.card {
  background: #000;
  border: 1px solid var(--primary);
  border-radius: 14px;
  width: 200px;
  height: auto;
  padding: 25px 10px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  flex-shrink: 0;
}


.card-content {
  position: relative;
  z-index: 10;
}

.card-icon {
  width: 58px;
  height: 58px;
  margin-top: 5px;
  filter: invert(79%) sepia(94%) saturate(500%) hue-rotate(35deg)
    brightness(150%) contrast(130%);
}

.card h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ============================================================
HOVER MODO OSCURO
============================================================ */
.card:hover {
  background: var(--primary);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px var(--primary);
}

.card:hover h3 {
  color: #000;
}

.card:hover .card-icon {
  filter: invert(0%) brightness(0%);
}

/* ============================================================
CARDS — MODO CLARO
============================================================ */
body.light-mode .card {
  background: var(--whitepure);
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px rgba(126, 115, 255, 0.3);
  transition: all 0.3s ease;
}

body.light-mode .card h3 {
  color: var(--accent);
}

body.light-mode .card-icon {
  filter: brightness(0) saturate(100%) invert(43%) sepia(82%) saturate(734%)
    hue-rotate(215deg) brightness(95%) contrast(101%);
}

/* ============================================================
HOVER — MODO CLARO
============================================================ */
body.light-mode .card:hover {
  background: var(--accent);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px var(--accent);
}

body.light-mode .card:hover h3 {
  color: #fff;
}

body.light-mode .card:hover .card-icon {
  filter: invert(100%) brightness(200%);
}


/* ============================================================
FLOATING OBJECTS
============================================================ */
.hover-objects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.card:hover .hover-objects {
  opacity: 1;
}

.float {
  position: absolute;
  width: 70px;
  opacity: 0.85;
  animation: floatUp 3.5s ease-in-out infinite alternate;
}

#blog .float1 {
  top: -30px;
  left: -25px;
  transform: rotate(-8deg);
}
#blog .float2 {
  bottom: -25px;
  right: -25px;
  transform: rotate(12deg);
}
#blog .float3 {
  top: 5px;
  right: -30px;
  transform: rotate(18deg);
}

#lpr .float1 {
  top: -25px;
  right: -25px;
  transform: rotate(8deg);
}
#lpr .float2 {
  bottom: 60px;
  left: -30px;
  transform: rotate(-10deg);
}
#lpr .float3 {
  bottom: -35px;
  left: 50px;
  transform: rotate(5deg);
}

#playground .float1 {
  top: -30px;
  left: -20px;
  transform: rotate(12deg);
}
#playground .float2 {
  bottom: -35px;
  right: -40px;
  transform: rotate(-12deg);
}
#playground .float3 {
  bottom: 0;
  left: -15px;
  transform: rotate(18deg);
  width: 60px;
}

@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 0.9;
  }
  to {
    transform: translateY(-10px);
    opacity: 0.7;
  }
}

/* ============================================================
FOOTER
============================================================ */
footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 20px;
}


/* ============================================================
RESPONSIVE — MODO MÓVIL Y TABLET
============================================================ */
@media (max-width: 768px) {
  /* ============================================================
BODY Y ESTRUCTURA GENERAL
============================================================ */
  body {
    display: block;
    height: auto;
    overflow-y: auto; /* ✅ habilita scroll vertical */
  }

  .site-wrapper {
    display: block;
    padding: 40px 20px 80px;
  }

  footer {
    position: relative;
    margin-top: 40px;
  }

  /* ============================================================
INTRO Y CABECERA
============================================================ */
  .intro-box {
    width: 90%;
  }

  .logo-title {
    width: 220px;
  }

  /* ============================================================
CARDS Y CONTENEDOR
============================================================ */
  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }

  .card {
    width: 100%;
    height: auto;
    padding: 30px 10px;
    background: #000;
    border: 1px solid var(--primary);
    background: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  .card-content {
    position: relative;
    z-index: 10;
  }

  .card-icon {
    width: 58px;
    height: 58px;
    margin-top: 5px;
    filter: invert(79%) sepia(94%) saturate(500%) hue-rotate(35deg)
      brightness(150%) contrast(130%);
  }

  .card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--primary);
  }

  /* ============================================================
HOVER EFECTOS (en móvil apenas perceptibles)
============================================================ */
  .card:hover {
    background: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 20px var(--primary);
  }

  .card:hover h3 {
    color: #000;
  }

  .card:hover .card-icon {
    filter: invert(0%) brightness(0%);
  }

  /* ============================================================
ELEMENTOS DECORATIVOS — DESACTIVADOS EN MÓVIL
============================================================ */
  .float,
  .hover-objects {
    display: none !important;
  }
}

/* ============================================================
ELEMENTOS DECORATIVOS DE FONDO
============================================================ */
.background-elements {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none; /* ✅ no bloquea clicks */
  z-index: 0;
}

.bg-elem {
  position: absolute;
  opacity: 0.25;
  filter: blur(1px) saturate(120%);
  mix-blend-mode: screen;
  transition: opacity 0.8s ease-in-out, transform 1.5s ease-in-out;
  animation: floatElement 12s ease-in-out infinite alternate;
}

/* 🌙 Posiciones base */
.elem1 { top: 20%; right: 10%; width: 220px; animation-delay: 4s; }
.elem2 { top: 60%; left: 15%; width: 180px; animation-delay: 2s; }
.elem3 { top: 10%; left: 8%; width: 140px; animation-delay: 0s; }
.elem4 { bottom: 8%; right: 20%; width: 160px; animation-delay: 6s; }

/* 💨 Animación flotante */
@keyframes floatElement {
  from { transform: translateY(0) rotate(0deg); opacity: 0.25; }
  to { transform: translateY(-25px) rotate(10deg); opacity: 0.4; }
}

/* ============================================================
EFECTO DIFERENTE EN MODO CLARO
============================================================ */
body.light-mode .bg-elem {
  mix-blend-mode: multiply;
  opacity: 0.18;
  filter: brightness(1.1) blur(1.5px);
}

/* ============================================================
MODALES — ESTILO GENERAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  width: 90%;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--primary);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 🌙 Desktop: altura controlada + scroll interno */
@media (min-width: 769px) {
  .modal-box {
    max-height: 80vh; /* límite de altura */
  }

  .modal-scroll {
    overflow-y: auto;
    padding: 20px 30px;
  }

  
}

/* ☀️ Móvil: ocupa todo el viewport */
@media (max-width: 768px) {
  .modal-box {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .modal-scroll {
    overflow-y: auto;
    height: 100%;
    padding: 20px;
  }
}

/* ============================================================
🧭 HEADER FIJO DENTRO DEL MODAL
============================================================ */
.modal-header {
  position: sticky;
  top: 0;
  background: inherit;
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}
.modal-close:hover {
  transform: scale(1.15);
  color: var(--accent);
}

/* ============================================================
☀️ MODO CLARO
============================================================ */
body.light-mode .modal-box {
  background: var(--whitepure);
  color: var(--text-dark);
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px rgba(126, 115, 255, 0.4);
}

body.light-mode .modal-header {
  border-bottom: 1px solid rgba(126, 115, 255, 0.4);
}

body.light-mode .modal-close {
  color: var(--accent);
}


/* 🌙 DARK MODE */
body:not(.light-mode) .modal-box {
  background: var(--blackdeep);
  color: #fff;
}

/* ☀️ LIGHT MODE */

body.light-mode .modal-close {
  color: var(--accent);
}

body.light-mode .modal-subtitle {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
}

body.light-mode .accordion-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid var(--accent);
  color: var(--text-dark);
}

body.light-mode .accordion-btn:hover {
  background: var(--accent);
  color: #fff;
}


body.light-mode .accordion-img {
  box-shadow: 0 0 10px rgba(126, 115, 255, 0.25);
}

/* Playground Grid en modo claro */
body.light-mode .play-card {
  background: #d7cffc;
  border: 1px solid var(--accent);
  color: var(--text-dark);
}

body.light-mode .play-card:hover {
  background: var(--accent);
  color: #fff;
}


.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.2);
  color: var(--accent);
}

body.light-mode .modal-close {
  color: var(--accent);
}

/* ✨ Animación */
@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mostrar el modal */
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* ============================================================
📘 CONTENIDO MODAL ESTRUCTURADO
============================================================ */
.modal-intro {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.modal-subtitle {
  margin-top: 24px;
  margin-bottom: 28px;
  font-size: 1.2rem;
  color: var(--primary);
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--primary);
  padding-bottom: 4px;
}

/* Acordeones */
.accordion {
  margin-top: 10px;
  text-align: left;
}
.accordion-btn {
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}
.accordion-btn:hover {
  background: var(--primary);
  color: #000;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--light-accent);
  padding: 0 2.5rem;
  border-radius: 12px;
  color: var(--text-dark);
  font-size: 1.2rem;
  
}

.accordion-content p {
  font-family: 'VT323', monospace;
  margin: 0.2rem 0;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 6px 0;
}
.accordion-content a {
  color: var(--primary);
  text-decoration: underline;
  color: var(--text-dark);
}

.accordion-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin: 32px auto;
}

/* ============================================================
🌸 🎮 PASANDO EL RATO - Cards de sección
============================================================ */

.playground-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
}
.play-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--primary);
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}
.play-card:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-4px);
}

.playground-grid .play-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(10%) sepia(5%) saturate(200%) hue-rotate(230deg) brightness(80%) contrast(90%);
}

/* 🌞 Modo claro */
body.light-mode .playground-grid .play-card img {
  filter: brightness(10) saturate(10%) invert(43%) sepia(82%) saturate(350%)
    hue-rotate(215deg) brightness(70%) contrast(101%);
}

body.light-mode .playground-grid .play-card:hover img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(182deg) brightness(106%) contrast(98%);
}

/* 🌙 Modo oscuro */
body:not(.light-mode) .playground-grid .play-card img {
  filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(0%) hue-rotate(46deg) brightness(110%) contrast(100%);
}

body:not(.light-mode) .playground-grid .play-card:hover img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(30deg) brightness(100%) contrast(100%);
}


/* ============================================================
💜 NUEVO ESTILO DE ACORDEONES TIPO "THE OUTLINE"
============================================================ */
.accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'VT323', monospace;
  text-align: left;
  background: #f1edff;
  padding: 12px 18px;
  border-radius: 12px;
  margin-top: 10px;
}
.accordion-btn .acc-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.accordion-btn .acc-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.accordion-btn.active .acc-icon {
  transform: rotate(180deg);
}
.accordion-btn.active {
  background: #d7cffc;
  border: none;
}
.badge-new {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-hiatus {
  background: #aaa;
  color: #fff;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  text-transform: uppercase;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

/* 🌙 Dark mode */
body:not(.light-mode) .badge-hiatus {
  background: #666;
  color: #e2e2e2;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* 🌫️ Estado HIATUS — visible, con estilo pausado */
.accordion-btn.hiatus {
  background: rgba(170, 170, 170, 0.08);
  border: 1px dashed #aaa;
  color: #777;
  opacity: 0.8;
  position: relative;
  transition: all 0.3s ease;
}

/* 🌙 Dark mode */
body:not(.light-mode) .accordion-btn.hiatus {
  background: rgba(100, 100, 100, 0.08);
  border-color: #666;
  color: #bbb;
}

/* ✨ Hover con efecto "dormido" */
.accordion-btn.hiatus:hover {
  background: rgba(170, 170, 170, 0.15);
  border-color: #999;
  opacity: 1;
}

/* 💤 Cursor tipo dormido */
.accordion-btn.hiatus::after {
  content: "💤";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.accordion-btn.hiatus:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

/* 💫 Badge gris (ya incluida antes, pero refinada un poco) */
.badge-hiatus {
  background: #b5b5b5;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  text-transform: uppercase;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

body:not(.light-mode) .badge-hiatus {
  background: #555;
  color: #eaeaea;
}




/* Contenido del acordeón */

.read-chapter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent);
  margin: 2rem auto;
  display: block;
}
.read-chapter-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}



/* Vista del capítulo */
.chapter-view {
  position: relative;
  font-family: 'VT323', monospace;
  text-align: left;
  color: var(--text-dark);
  padding: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  scroll-behavior: smooth;
}
.chapter-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--accent);
}

body:not(.light-mode) .chapter-title {
  color: var(--primary);
}

.chapter-view h3 {
  text-align: center;
  margin-bottom: 10px;
}
.chapter-img {
  width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}
.chapter-text {
  white-space: pre-line;
  font-size: 18px;
  transition: font-size 0.2s ease;
}
.back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'VT323', monospace;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Botón "Volver" */
body:not(.light-mode) .back-btn {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: none;
}
body:not(.light-mode) .back-btn:hover {
  background: var(--primary);
  color: #000;
}

/* 🔼 Botón Volver Arriba */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.scroll-top-btn.visible {
  display: flex;
  opacity: 1;
}
.scroll-top-btn:hover {
  transform: scale(1.1);
  background:rgba(255, 255, 255, 0.9);
}

body:not(.light-mode) .scroll-top-btn {
  color: var(--primary);
  border-color: var(--primary);
  background:rgba(0, 0, 0, 0.6);
}

body:not(.light-mode) .scroll-top-btn:hover {
  transform: scale(1.1);
  background:rgba(0, 0, 0, 0.9);
}

/* 🔠 Control de texto */
.font-control {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column; /* A abajo, + y - arriba */
  align-items: center;
  z-index: 999;
}

.font-options {
  display: flex;
  flex-direction: column-reverse; /* invierte el orden para + arriba, - abajo */
  gap: 6px;
  margin-bottom: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.font-options.active {
  opacity: 1;
  pointer-events: auto;
}

.font-toggle {
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

body:not(.light-mode) .font-toggle {
  background: rgba(0, 0, 0, 0.6);
}

.font-options button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  width: 36px;
  height: 28px;
  font-size: 1.1rem;
  font-family: 'VT323', monospace;
  cursor: pointer;
  transition: background 0.2s;
}

body:not(.light-mode) .font-options button {
  background: rgba(0, 0, 0, 0.9);
}

.font-options button:hover {
  background: rgba(255, 255, 255, 0.8);
}

body:not(.light-mode) .font-options button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.font-options.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
🚫 BLOQUEO DE SCROLL DEL BODY CUANDO EL MODAL ESTÁ ACTIVO
============================================================ */
body.modal-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none; /* evita desplazamiento en móviles */
}

/* ============================================================
🎨 AJUSTES DE COLOR Y ESTADOS — DARK / LIGHT MODE
============================================================ */

/* 🌙 ========== DARK MODE (verde primario) ========== */
body:not(.light-mode) .accordion-btn {
  background: rgba(196, 255, 0, 0.15);
  border: 1px solid var(--primary);
  color: #fff;
  transition: all 0.3s ease;
}

body:not(.light-mode) .accordion-btn:hover,
body:not(.light-mode) .accordion-btn.active {
  background: var(--primary);
  color: #000;
}

/* Contenido del accordion */
body:not(.light-mode) .accordion-content {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
}

body:not(.light-mode) .accordion-content p {
  color: var(--whitepure)
}

/* Badge "ESTRENO" */
body:not(.light-mode) .badge-new {
  background: var(--primary);
  color: #000;
  transition: all 0.3s ease;
}

/* Cuando el accordion con “estreno” está activo o hover */
body:not(.light-mode) .accordion-btn:hover .badge-new,
body:not(.light-mode) .accordion-btn.active .badge-new {
  background: #fff;
  color: var(--bg-dark);
}

/* Botón "Leer primer capítulo" */
body:not(.light-mode) .read-chapter-btn {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}
body:not(.light-mode) .read-chapter-btn:hover {
  background: #759800;
}

/* Texto dentro de lectura de capítulo */
body:not(.light-mode) .chapter-view {
  background: transparent;
  color: #fff;
}

/* 🎴 Estilo para el texto del capítulo */
.chapter-text {
  line-height: 1.8;           /* Interlineado suave */
  font-size: 1.1rem;            /* Ajusta tamaño si deseas mayor legibilidad */
  letter-spacing: 0.2px;
  text-align: justify;        /* Opcional si quieres justificar el texto */
}

/* 🌿 Simular espacio entre párrafos generados por <br><br> */
.chapter-text br + br {
  content: "";
  display: block;
  margin-bottom: 1.4em;       /* Espacio extra entre párrafos */
}


/* Ícono de cierre (x) */
body:not(.light-mode) .modal-close {
  color: var(--primary);
}
body:not(.light-mode) .modal-close:hover {
  color: #fff;
}

/* 🌕 ========== LIGHT MODE (morado acento) ========== */
body.light-mode .accordion-btn {
  background: rgba(126, 115, 255, 0.08);
  border: 1px solid var(--accent);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

body.light-mode .accordion-btn:hover,
body.light-mode .accordion-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Badge "ESTRENO" */
body.light-mode .badge-new {
  background: var(--accent);
  color: #fff;
  transition: all 0.3s ease;
}

/* Hover/activo badge */
body.light-mode .accordion-btn:hover .badge-new,
body.light-mode .accordion-btn.active .badge-new {
  background: #fff;
  color: var(--accent);
}


/* X cierre — morada */
body.light-mode .modal-close {
  color: var(--accent);
}
body.light-mode .modal-close:hover {
  color: #5f53d8;
}



/* ============================================================
📚 ESTADO ACTIVO DE ACORDEONES — Mantener color al abrir
============================================================ */
.accordion-btn.active {
  background: var(--primary);
  color: #000;
}
body.light-mode .accordion-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Badge “Estreno” dentro del activo */
.accordion-btn.active .badge-new {
  background: #fff;
  color: var(--primary);
}
body.light-mode .accordion-btn.active .badge-new {
  background: #fff;
  color: var(--accent);
}

/* ============================================================
🧭 TRANSICIONES SUAVES
============================================================ */
.accordion-btn,
.accordion-content,
.badge-new,
.read-chapter-btn,
.back-btn,
.modal-close {
  transition: all 0.3s ease;
}

/* ============================================================
💡 GLOW SUAVE PARA BADGE "ESTRENO"
============================================================ */

/* 🌙 Dark Mode */
body:not(.light-mode) .badge-new {
  background: var(--primary);
  color: var(--blackdeep);
  box-shadow: 0 0 10px rgba(200, 255, 60, 0.55),
              0 0 18px rgba(200, 255, 60, 0.35);
  animation: glowPulseDark 2.5s ease-in-out infinite;
  transition: all 0.3s ease, box-shadow 0.4s ease;
}

/* Hover o activo */
body:not(.light-mode) .accordion-btn:hover .badge-new,
body:not(.light-mode) .accordion-btn.active .badge-new {
  background: #fff;
  color: var(--blackdeep);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
              0 0 22px rgba(200, 255, 60, 0.5);
}

/* ✨ Animación de pulso verde */
@keyframes glowPulseDark {
  0% {
    box-shadow: 0 0 5px rgba(200, 255, 60, 0.4),
                0 0 18px rgba(200, 255, 60, 0.1);
  }
  50% {
    box-shadow: 0 0 11px rgba(200, 255, 60, 0.8),
                0 0 12px rgba(200, 255, 60, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(200, 255, 60, 0.4),
                0 0 18px rgba(200, 255, 60, 0.1);
  }
}

/* ☀️ Light Mode */
body.light-mode .badge-new {
  background: var(--accent);
  color: var(--whitepure);
  box-shadow: 0 0 10px rgba(126, 115, 255, 0.55),
              0 0 18px rgba(126, 115, 255, 0.35);
  animation: glowPulseLight 2.5s ease-in-out infinite;
  transition: all 0.3s ease, box-shadow 0.4s ease;
}

/* Hover o activo */
body.light-mode .accordion-btn:hover .badge-new,
body.light-mode .accordion-btn.active .badge-new {
  background: var(--whitepure);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7),
              0 0 22px rgba(126, 115, 255, 0.45);
}

/* ✨ Animación de pulso lavanda */
@keyframes glowPulseLight {
  0% {
    box-shadow: 0 0 5px rgba(126, 115, 255, 0.4),
                0 0 18px rgba(126, 115, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 11px rgba(126, 115, 255, 0.8),
                0 0 22px rgba(126, 115, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(126, 115, 255, 0.4),
                0 0 18px rgba(126, 115, 255, 0.1);
  }
}

/* ============================================================
🌙 LUNAR PEEK READS — DISEÑO DE ACORDEONES
============================================================ */

/* Contenedor general */
.lpr-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.lpr-item {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--accent-light);
  position: relative;
}



body:not(.light-mode) .lpr-item {
  border-color: var(--primary); /* Verde en dark mode */
}


/* 🎴 Banner del acordeón (fondo del botón) */
.lpr-banner-canvas {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
}

/* === IMAGEN INTERIOR DEL CONTENIDO === */
.lpr-cover-canvas {
  position: relative;        /* <--- cambio clave */
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 1.2rem auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  background: none;
}



/* Degradado gris: izquierda transparente → derecha opaco */
.lpr-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(120, 120, 120, 0.15) 35%,
    rgba(80, 80, 80, 0.55) 65%,
    rgba(70, 70, 70, 0.85) 85%,
    rgba(70, 70, 70, 1) 100%
  );
  z-index: 3; /* encima del blend y de la imagen */
  pointer-events: none;
}

/* Botón visible */
.lpr-btn {
  position: relative;
  display: block;
  align-items: center;
  justify-content: flex-start;
  padding-right: 40px;
  width: 100%;
  height: 130px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  background: var(--banner) no-repeat left center / cover;
  isolation: isolate; /* ✅ crea stacking context */
  /* 🖼️ Banner + degradado + blend integrados en el mismo fondo */
  background-image: 
    linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(120, 120, 120, 0.25) 45%,
      rgba(70, 70, 70, 0.65) 75%,
      rgba(50, 50, 50, 0.85) 100%
    ),
    var(--banner);
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;

  /* 💜 Modo claro / 💚 Modo oscuro */
  mix-blend-mode: normal;
  filter: brightness(0.9);
  padding: 0;
  margin: 0;
}


/* Imagen de fondo */
.lpr-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left center;
  filter: brightness(0.9);
  z-index: 1;
  transition: all 0.4s ease;
}

/* Texto sobre la imagen */
.lpr-btn span {
  position: relative;
  z-index: 3;
  color: #fff;
  font-size: 1.1rem;
  padding: 12px 20px;
  width: 100%;
  text-align: right; /* ✅ alinea el texto hacia la derecha */
  display: flex;
  justify-content: flex-end; /* ✅ empuja el contenido hacia el extremo derecho */
  align-items: center;
}

/* Hover: agrandar levemente */
.lpr-btn:hover::before {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Hover más visible */
.lpr-btn:hover::after {
  opacity: 0.7;
}

/* ============================================================
🌙 DEGRADADO AJUSTADO — MÁS OPACO A LA DERECHA
============================================================ */
.lpr-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  opacity: 0.55;
  z-index: 2;
  transition: opacity 0.4s ease, background-color 0.4s ease;
  pointer-events: none;
}

/* 💜 Modo claro */
body.light-mode .lpr-btn::after {
  background-color: var(--accent);
}

/* 🌙 Dark Mode */
body:not(.light-mode) .lpr-btn::after {
  background-color: var(--primary);
}

body:not(.light-mode) .lpr-btn span {
  color: #000;
  font-weight: bold;
}

/* ☀️ Light Mode */
body.light-mode .lpr-btn {
  border-color: var(--accent);
}

/* ------------------------------------------------------------
ACORDEÓN ACTIVO (abierto)
------------------------------------------------------------ */
.lpr-btn.active {
  height: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: none;
  border: none;
  overflow: visible;
  border-radius: 12px;
}

/* Elimina el fondo blend */
.lpr-btn.active::before,
.lpr-btn.active::after {
  display: none;
}

/* 3️⃣ Degradado independiente encima del blend */
.lpr-btn::marker,
.lpr-btn::part(gradient) { display: none; } /* aseguramos compatibilidad */

.lpr-btn .lpr-gradient {
  position: absolute;
  inset: 0;
  /* transparente a la izquierda, cubre gradualmente a la derecha */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,    /* izquierda totalmente transparente */
    rgba(200, 200, 200, 1) 15%,
    rgba(120, 120, 120, 1) 35%,
    rgba(90, 90, 90, 1) 60%,
    rgba(70, 70, 70, 1) 85%,
    rgba(60, 60, 60, 1) 100%      /* derecha totalmente cubierta */
  );
  z-index: 3; /* sobre el blend */
  pointer-events: none;
}

/* 💜 Versión light */
body.light-mode .lpr-btn .lpr-gradient {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(230, 225, 255, .05) 35%,
    rgba(200, 190, 255, 1) 60%,
    rgba(170, 160, 255, 1) 85%,
    rgba(140, 130, 255, 1) 100%
  );
}

/* 🖤 Versión dark */
body:not(.light-mode) .lpr-btn .lpr-gradient {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(232, 255, 225, 0.05) 35%,
    rgb(202, 255, 190) 60%,
    rgb(207, 255, 160) 85%,
    rgb(153, 255, 130) 100%
  );
}

/* 3️⃣ NUEVA CAPA INDEPENDIENTE PARA EL GRADIENTE */
.lpr-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(200, 200, 200, 0.05) 35%,
    rgba(130, 130, 130, 0.25) 60%,
    rgba(90, 90, 90, 0.55) 80%,
    rgba(70, 70, 70, 0.85) 95%,
    rgba(60, 60, 60, 1) 100%
  );
  z-index: 3; /* se muestra sobre el blend */
  pointer-events: none;
}

/* 💜 LIGHT MODE */
body.light-mode .lpr-overlay {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(230, 225, 255, 0.2) 35%,
    rgba(200, 190, 255, 0.4) 60%,
    rgba(170, 160, 255, 0.65) 85%,
    rgba(150, 140, 255, 0.9) 100%
  );
}

/* 💚 DARK MODE */
body:not(.light-mode) .lpr-overlay {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,        /* izquierda transparente */
    rgba(200, 255, 120, 0.15) 35%,    /* verde muy tenue */
    rgba(172, 255, 108, 0.35) 60%,    /* verde medio translúcido */
    rgba(140, 210, 70, 0.55) 80%,     /* verde más denso */
    rgba(110, 180, 50, 0.75) 90%,     /* verde profundo */
    rgba(60, 90, 20, 0.95) 100%       /* cierre oscuro */
  );
}


/* Contenido interno */
.lpr-content {
  display: none;
  text-align: left;
  background: var(--light-accent);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  animation: fadeIn 0.4s ease;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  color: var(--text-dark);
}

body:not(.light-mode) .lpr-content {
  background: var(--light-primary);
  color: #fff;
}

/* Títulos, texto y enlaces */
.lpr-content h4 {
  font-family: "VT323", monospace;
  margin: 0 0 8px 0;
}

.lpr-content p {
  margin: 0.2rem 0;
  line-height: 1.2;
}

.lpr-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ------------------------------------------------------------
🎫 BOTÓN “GENERAR TICKET”
------------------------------------------------------------ */
.ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ticket-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

body:not(.light-mode) .ticket-btn {
  border-color: var(--primary);
  color: var(--primary);
}

body:not(.light-mode) .ticket-btn:hover {
  background: var(--primary);
  color: #000;
}



/* ------------------------------------------------------------
🏷️ TAGS COMO BADGES
------------------------------------------------------------ */
/* Etiquetas */
.tags {
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.tag-badge {
  display: inline-block;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin: 4px 5px 0 0;
  text-transform: uppercase;
}

body:not(.light-mode) .tag-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--blackdeep);
}

/* ============================================================
🌙 LUNAR PEEK READS (ACORDEONES PERSONALIZADOS)
============================================================ */


.lpr-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  z-index: 3;
}

.lpr-title {
  position: absolute;
  z-index: 4; /* ✅ por encima del blend y degradado */
  font-family: "VT323", monospace;
  font-size: 1.6rem; /* ✅ ligeramente más grande */
  color: #fff; /* ✅ blanco puro */
  font-size: 2rem;
  text-align: right;
  padding-right: 24px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.55); /* ✅ mejora visibilidad */
  pointer-events: none; /* evita interferir con el click del accordion */
  opacity: 1;
  z-index: 6;
}

/* 🎫 Ticket Section */
.ticket-section {
  margin-top: 1.5rem;
}

.ticket-section .ticket-text {
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

/* Botón centrado */
.ticket-section .ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "VT323", monospace;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent);
  margin: 0 auto;          /* ✅ centra el botón horizontalmente */
  display: block;          /* ✅ permite que el margin funcione */
}

.ticket-section .ticket-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.ticket-section .ridi-link {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  color: var(--accent, #7a6fff);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.ticket-section .ridi-link:hover {
  color: #fff;
}

body:not(.light-mode) .ticket-section .ridi-link {
  color: var(--primary);
  transition: color 0.3s ease;
}

body:not(.light-mode) .ticket-section .ridi-link:hover {
  color: #fff;
}

/* ✨ Estado activo (abierto) */
.lpr-item.active {
  background: rgba(255, 255, 255, 0.15);
}

.lpr-item.active .lpr-content {
  display: block;
}

.lpr-item.active .lpr-gradient {
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 15%, rgba(60, 60, 60, 0.8) 95%);
}

/* DELINEADO EN BOTON LPR EN ACTIVE
.lpr-item.active .lpr-btn {
  border: 1.5px solid var(--primary);
} */

.lpr-item.active .lpr-btn::before {
  filter: brightness(1);
}

/* Light mode */
body.light-mode .lpr-gradient {
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 10%, rgba(240, 240, 240, 1) 90%);
}

body.light-mode .lpr-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(126, 115, 255, 0.4);
}

/* 💜 Light mode */
body.light-mode .lpr-overlay {
  background: rgba(126, 115, 255, 0.35);
}

/* 💚 Dark mode */
body:not(.light-mode) .lpr-btn .lpr-title {
  color: #fff;
}

body:not(.light-mode) .lpr-overlay {
  background: rgba(172, 255, 108, 0.25);
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
🌗 NUEVA CAPA VEIL — DEVUELVE EL DEGRADADO VISIBLE
============================================================ */
.lpr-veil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4; /* encima del blend y overlay */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(230, 230, 230, 0.05) 0%,
    rgba(190, 190, 190, 1) 40%,
    rgba(150, 150, 150, 1) 60%,
    rgba(90, 90, 90, 1) 80%,
    rgba(60, 60, 60, 1) 95%,
    rgba(40, 40, 40, 1) 100%
  );
  transition: opacity 0.4s ease;
}

/* 💜 Light Mode */
body.light-mode .lpr-veil {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(230, 220, 255, 0.1) 0%,
    rgba(230, 220, 255, 0.1) 20%,
    rgba(180, 170, 255, 1) 65%,
    rgba(150, 140, 255, 1) 100%
  );
}

/* 💚 Dark Mode */
body:not(.light-mode) .lpr-veil {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,        /* inicio totalmente transparente */
    rgba(210, 255, 120, 0.05) 0%,    /* brillo suave lima translúcido */
    rgba(210, 255, 120, 0.05) 10%,    /* brillo suave lima translúcido */
    rgba(160, 240, 80, 1) 65%,      /* tono medio brillante */
    rgba(130, 210, 60, 1) 85%,      /* verde intenso */
    rgba(90, 160, 40, 1) 100%         /* cierre oscuro natural */
  );
}


/* Hover suave */
.lpr-btn:hover .lpr-veil {
  opacity: 0.9;
}


/* 🔹 Efecto de color/blend */
.lpr-btn .lpr-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--accent, #5b4bff);
  mix-blend-mode: color;
  opacity: 0.75;
  z-index: 1; /* capa baja */
  pointer-events: none;
}

/* 🔹 Degradado lateral */
.lpr-btn .lpr-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(160, 140, 255, 0.3) 35%,
    rgba(120, 110, 255, 0.6) 60%,
    rgba(90, 70, 255, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.lpr-btn .lpr-title {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 5; /* ✅ más alto que veil/overlay */
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 1.9rem;
  text-align: right;
  pointer-events: none;
}

/* 🌞 Versión Light Mode */
body.light-mode .lpr-btn .lpr-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(120, 100, 255, 0.45);
}


/* ======= BASE ======= */
body.modal-open {
  overflow: hidden;
}

/* ======= DESKTOP MODAL ======= */
.ticket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999; /* 🚀 más alto que tu modal principal */
}

.ticket-modal-overlay.active {
  display: flex;
  transform: scale(1);
  opacity: 1;
}
.ticket-modal.closing {
  transform: scale(0.9);
  opacity: 0;
}

.ticket-modal {
  position: relative;
  background: rgba(25, 25, 60, 0.9);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: all 0.35s ease;
  animation: fadeIn 0.3s ease;
  
}

body:not(.light-mode) .ticket-modal {
  background: rgba(26, 34, 15, 0.9);
  border: 1px solid var(--primary);
}

.ticket-modal img {
  width: 100%;
  max-width: 380px;
  display: block;
  border-radius: 16px;
}

.ticket-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s;
  z-index: 999;
}

body:not(.light-mode) .ticket-close {
  color: var(--primary);
}

.ticket-close:hover {
  transform: scale(1.15);
}

/* ======= MOBILE SHEET ======= */
.ticket-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 99998;
}

.ticket-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ticket-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: rgba(250, 245, 255, 0.98);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.45);
  padding: 14px 0 30px;
  z-index: 99999; /* 🚀 encima de overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s ease-out;
  transform: translateY(100%);
}

.ticket-bottom-sheet.active {
  transform: translateY(0);
  bottom: 0;
}

.ticket-handle {
  width: 55px;
  height: 6px;
  background: rgba(90, 90, 130, 0.4);
  border-radius: 3px;
  margin-bottom: 12px;
  transition: background 0.3s;
}

.ticket-handle:hover {
  background: rgba(120, 120, 180, 0.6);
}

.ticket-bottom-sheet img {
  width: 88%;
  max-width: 340px;
  border-radius: 16px;
}

/* DARK MODE VARIANTS */
body:not(.light-mode) .ticket-bottom-sheet {
  background: #1b2101;
}
body:not(.light-mode) .ticket-handle {
  background: #c3ff0016;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   🎚️ SCROLLBAR ESTÉTICO – MODO LIGHT / DARK
   ========================================================= */

/* Estructura base */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Fondo del track (canal) */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Thumb (barra deslizante) */
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.3s ease;
}

/* Hover */
::-webkit-scrollbar-thumb:hover {
  transform: scaleX(1.1);
}

/* =========================================================
   💡 LIGHT MODE
   ========================================================= */
body.light-mode ::-webkit-scrollbar-thumb {
  background-color: rgba(150, 130, 255, 0.35); /* tono violeta suave */
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(97, 73, 219, 0.712);
}

/* =========================================================
   💚 DARK MODE
   ========================================================= */
body:not(.light-mode) ::-webkit-scrollbar-thumb {
  background-color: rgba(199, 255, 120, 0.25); /* verde neón translúcido */
  box-shadow: inset 0 0 6px rgba(211, 255, 100, 0.3);
}

body:not(.light-mode) ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(177, 255, 100, 0.5);
}

/* =========================================================
   ✨ Scrollbars en modales o secciones específicas
   ========================================================= */
.modal-scroll::-webkit-scrollbar-thumb {
  border-radius: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

body:not(.light-mode) .modal-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(219, 255, 120, 0.25);
}

body.light-mode .modal-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(150, 130, 255, 0.35);
}

/* ========================================================= */

/* =========================================================
   🎯 VISIBILIDAD CLARA DE BOTONES FLOTANTES EN MODALES
   ========================================================= */

/* Asegura que los botones flotantes estén SIEMPRE visibles */
.icon-floating {
  position: fixed;
  z-index: 9999; /* por encima de todo menos el ticket */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
  filter: none;
}

/* Mantienen nitidez y sin blur en modales normales */
body.modal-open .icon-floating {
  filter: none;
  opacity: 1;
}

/* Cuando se abre el ticket modal o bottom sheet: se atenúan */
body.ticket-open .icon-floating {
  opacity: 0.3;
  filter: blur(1px);
  pointer-events: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Restaura visibilidad al cerrar el ticket */
body:not(.ticket-open) .icon-floating {
  opacity: 1;
  filter: none;
}


/* ============================================================
🎞️ ACTUALIZACIONES — Carrusel
============================================================ */
.actus-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  align-items: center; /* centra verticalmente el slider */
  justify-content: center;
}

.actus-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
}

.actus-slider::-webkit-scrollbar {
  display: none;
}

/* 🔹 Fade de borde derecho */
.actus-slider::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 3;
}


/* 🔹 Botones laterales */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.scroll-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* 🌙 Dark Mode */
body:not(.light-mode) .scroll-btn {
  background: rgba(10, 10, 10, 0.8);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(172, 255, 108, 0.25);
}

body:not(.light-mode) .scroll-btn:hover {
  background: rgba(172, 255, 108, 0.2);
  box-shadow: 0 0 14px rgba(172, 255, 108, 0.5);
}

/* 📍 Posiciones */
.scroll-btn.left {
  left: 0;
  transform: translate(-50%, -50%);
}
.scroll-btn.right {
  right: 0;
  transform: translate(50%, -50%);
}

/* Mostrar solo si hay contenido desplazable */
.scroll-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* 🔹 Responsivo */
@media (max-width: 768px) {
  .scroll-btn {
    width: 40px;
    height: 40px;
    background-size: 44% auto;
  }
}


.actu-card {
  position: relative;
  min-width: 340px;
  height: 150px;
  border-radius: 14px;
  background-size: cover;
  background-position: left;
  scroll-snap-align: start;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.actu-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(140, 110, 255, 0.35);
}
.actu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.7) 100%);
  transition: background 0.4s ease;
  pointer-events: none;
}
.actu-card:hover::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.25) 20%, rgba(0,0,0,0.5) 100%);
}
.actu-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 1.5rem;
  color: #fff;
  text-align: right;
  z-index: 2;
  transform: translateX(0px);
  transition: transform 0.4s ease;
}
.actu-card:hover .actu-info {
  transform: translateX(-5);
}
.actu-tipo {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 0.1rem 0;
}
.actu-caps {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.1rem 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.actu-tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.badge {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 4px 10px;
  font-weight: 300;
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
  color: #fff;
  transition: transform 0.2s ease, background 0.3s ease;
}
.badge:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}

/* ============================================================
🏷️ REPERTORIO — ETIQUETAS INTERACTIVAS
============================================================ */
.repertorio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  justify-content: flex-start;
}

.rep-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rep-badge:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

/* 🌙 DARK MODE */
body:not(.light-mode) .rep-badge {
  border-color: var(--primary);
  color: var(--primary);
}

body:not(.light-mode) .rep-badge:hover {
  background: var(--primary);
  color: #000;
}

/* Animación de rebote suave al hacer click */
.rep-badge:active {
  transform: scale(0.95);
  opacity: 0.85;
}

/* ============================================================
💬 TOOLTIP PIXEL PARA REP-BADGES (CORREGIDO)
============================================================ */
.rep-badge {
  position: relative;
  overflow: visible;
}

/* Tooltip base */
.rep-badge::after {
  content: "Ver obra";
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--accent);
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50; /* 🟢 asegura que esté por encima */
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Triángulo inferior */
.rep-badge::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--accent);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 49; /* 🔹 ahora justo debajo del tooltip, pero encima del badge */
}

/* Hover: muestra tooltip */
.rep-badge:hover::after,
.rep-badge:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* 🌙 DARK MODE */
body:not(.light-mode) .rep-badge::after {
  background: var(--primary);
  color: #000;
  box-shadow: 0 2px 10px rgba(172,255,108,0.35);
}
body:not(.light-mode) .rep-badge::before {
  border-top-color: var(--primary);
}

/* Animación pop */
.rep-badge:hover::after {
  animation: tooltipPop 0.25s ease-out forwards;
}

@keyframes tooltipPop {
  0% { transform: translateX(-50%) scale(0.7); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ============================================================
🌙 BLOG — ACORDEONES VISUALES
============================================================ */
.blog-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.blog-item {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.blog-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 120px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  background: var(--banner) no-repeat left center / cover;
  background-image: linear-gradient(
      to right,
      rgba(255,255,255,0) 0%,
      rgba(100,100,100,0.5) 60%,
      rgba(80,80,80,0.9) 100%
    ),
    var(--banner);
  background-size: cover;
  background-position: left center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.blog-btn:hover {
  transform: scale(1.02);
}

.blog-title {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "VT323", monospace;
  font-size: 1.6rem;
  color: #fff;
  text-align: right;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
  z-index: 4;
}

.blog-overlay,
.blog-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

body.light-mode .blog-overlay {
  background: rgba(126,115,255,0.3);
}
body:not(.light-mode) .blog-overlay {
  background: rgba(172,255,108,0.25);
}

.blog-veil {
  background: linear-gradient(to right,
    rgba(255,255,255,0) 0%,
    rgba(130,130,130,0.4) 60%,
    rgba(60,60,60,1) 100%);
  z-index: 3;
}

.blog-content {
  display: none;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  animation: fadeIn 0.4s ease;
  text-align: left;
}

body.light-mode .blog-content {
  background: #E7E2FD;
  color: var(--text-dark);
}

body:not(.light-mode) .blog-content {
  background: var(--light-primary);
  color: #fff;
}

/* Imagen, texto y botones */
.blog-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.blog-content p {
  margin: 0.4rem 0;
  line-height: 1.3;
}

.blog-item.active .blog-content {
  display: block;
}


/* ============================================================
🌸 EN MANOS DE LAS CAMELIAS — CARDS INTERACTIVAS
============================================================ */
.camelia-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: visible;
}

.camelia-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.camelia-slider::-webkit-scrollbar {
  display: none;
}

/* Card base */
.camelia-card {
  min-width: 200px;
  height: 80px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content:space-between;
  padding: 24px 32px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.35s ease;
  scroll-snap-align: start;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0,0,0,0.15);
  transform-origin: center;
}

.camelia-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 8px rgba(126,115,255,0.5);
  z-index: 5;
}

.camelia-left-text {
  display: flex;
  flex-direction: column;
  justify-items: start;
}

/* Nombre */
.camelia-name {
  font-family: "VT323", monospace;
  font-size: 2.2rem;
  letter-spacing: 0.8px;
  margin: 0;
}

.camelia-state{
  gap: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0;
  margin-bottom: 1rem;
}

/* Badge del estado */
.camelia-status {
  background: #fff;
  color: var(--accent);
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Ícono o emoji */
.camelia-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 🔹 Fuerza el color blanco o filtro claro del emoji */
body.light-mode .camelia-icon .emoji-icon {
  filter: brightness(0) invert(1); /* convierte negro en blanco */
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.3s ease;
}

/* Hover cambia al pixel-art */
.camelia-card:hover .emoji-icon {
  opacity: 0;
  transform: scale(0.8);
}

.camelia-card:hover .pixel-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.35); /* ✅ escala más moderada */
}

/* Pixel oculto por defecto */
.pixel-icon {
  position: absolute;
  top: 60%;
  left: 75%;
  width: 70px;
  height: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.35s ease, transform 0.4s ease;
  filter: contrast(125%) brightness(1.15);
  pointer-events: none;
}


/* Botones de scroll */
.camelia-wrapper .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.camelia-wrapper .scroll-btn::before {
  content: attr(data-icon);
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 1.6rem;
  line-height: 1;
}

.camelia-wrapper:hover .scroll-btn {
  opacity: 1;
  pointer-events: all;
}

.camelia-wrapper .scroll-btn.left { left: 0; transform: translate(-50%, -50%); }
.camelia-wrapper .scroll-btn.right { right: 0; transform: translate(50%, -50%); }

body:not(.light-mode) .camelia-card {
  background: var(--primary);
  color: #000;
}

body:not(.light-mode) .camelia-status {
  background: #000;
  color: var(--primary);
}

/* ============================================================
🌸 CAMELIA MODAL / SHEET — Estado y obras de Camelias
============================================================ */

/* 🖥️ Desktop modal - Ventana */
.camelia-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 9999;
}

.camelia-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.camelia-modal-box {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 30px 40px;
  width: 400px;
  color: #fff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.camelia-modal-box img {
  max-width: 220px;
  margin: 0 auto 10px;
  display: block;
}

/* ===== 🌙 Dark mode ===== */
body:not(.light-mode) .camelia-modal-box {
  background: rgba(20, 25, 10, 0.9);
  border-color: var(--primary);
  color: #fff;
}

.camelia-modal {
  position: relative;
  background: rgba(25, 25, 60, 0.9);
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  transform: scale(0.9);
  opacity: 0;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent);
  padding: 40px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: all 0.35s ease;
  animation: fadeIn 0.3s ease;
  
}

/* ===== 🌙 Dark mode ===== */
body:not(.light-mode) .camelia-modal {
  background: rgba(20, 25, 10, 0.9);
  border-color: var(--primary);
}

.camelia-modal.active {
  transform: scale(0.9);
  opacity: 1;
}

.camelia-modal-body {
  padding: 0 40px;
  overflow: visible;
}

.camelia-modal-body .camelia-subtitle, 
.camelia-modal-body .camelia-state{
  color: var(--light-accent);
}


.camelia-modal.closing {
  transform: scale(0.9);
  opacity: 0;
}

/* ===== Cierre ===== */
.camelia-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s;
  z-index: 999;
}

body:not(.light-mode) .camelia-close {
  color: var(--primary);
}

.camelia-close:hover {
  transform: scale(1.15);
}

/* 📱 Móvil Bottom Sheet - Ventana desde abajo*/
.camelia-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out;
  z-index: 99998;
}

.camelia-overlay.active {
  opacity: 1;
  visibility: visible;
}

.camelia-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: rgba(250, 245, 255, 0.98);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.45);
  padding: 16px 0 30px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s ease-out;
  transform: translateY(100%);
}

body:not(.light-mode) .camelia-bottom-sheet {
  background: #1b2101;
}

body:not(.light-mode) .camelia-bottom-sheet .camelia-subtitle, 
body:not(.light-mode) .camelia-bottom-sheet .camelia-state{
  color: var(--whitepure);
}

.camelia-bottom-sheet.active {
  transform: translateY(0);
  bottom: 0;
}

.camelia-bottom-sheet.closing {
  transform: translateY(100%);
}

.camelia-handle {
  width: 50px;
  height: 6px;
  background: rgba(150, 150, 200, 0.4);
  border-radius: 3px;
  margin-bottom: 12px;
}

/* 🌸 Contenido común */
.camelia-modal-content,
.camelia-sheet-content {
  width: 100%;
  text-align: center;
  font-family: "VT323", monospace;
}

/* ===== Contenido ===== */

.camelia-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase;
}

/* ===== Dark mode ===== */
body:not(.light-mode) .camelia-badge {
  background: var(--primary);
  color: #000;
}

.camelia-bottom-sheet .camelia-state,
.camelia-bottom-sheet .camelia-subtitle {
  color: var(--text-dark);
}

.camelia-subtitle {
  font-size: 1.3rem;
  text-align: start;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 4px;
  margin: 0;
}

/* 🌙 Dark mode */
body:not(.light-mode) .camelia-subtitle{
  border-bottom: 1px dashed var(--primary);
}

.camelia-obras-scroll {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-bottom: 0.5rem;
  justify-content: center;
}

.camelia-obra-card canvas {
  max-width: 120px;
  width: auto;
  height: auto;
  border-radius: 6px;
  margin-bottom: 4px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  display: block;
  object-fit: contain;
}
.camelia-obra-card p {
  font-size: 0.9rem;
  margin: 0;
}


/* 🌸 CAMELIA OBRAS — Carrusel horizontal */
.camelia-obras-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  overflow-x: visible;
  gap: 1rem;
  padding: 1rem 0;
  justify-content: center;
  scrollbar-width: none;
}



.camelia-obras-wrapper::-webkit-scrollbar {
  display: none;
}

/* 🌸 Contenido */
.camelia-content {
  text-align: center;
  color: var(--text);
}

.camelia-status-img {
  width: 200px;
  border-radius: 12px;
  margin-top: 12px;
}


/* ============================================================
🌸 CAMELIA MODAL — Flechas visibles para el carrusel de obras
============================================================ */

.camelia-obras-wrapper .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20; /* 🔹 asegura que quede por encima del contenido */
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 💫 Oculta completamente los botones cuando no son visibles */
.camelia-obras-wrapper .scroll-btn:not(.visible) {
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
  pointer-events: none;
  visibility: hidden;
}

.camelia-obras-wrapper .scroll-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Hover */
.camelia-obras-wrapper .scroll-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* Posición lateral */
.camelia-obras-wrapper .scroll-btn.left {
  left: 4px;
  transform: translate(-50%, -50%);
}
.camelia-obras-wrapper .scroll-btn.right {
  right: 4px;
  transform: translate(50%, -50%);
}

/* Solo visibles si hay overflow */
.camelia-obras-wrapper .scroll-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* 🌙 Dark Mode */
body:not(.light-mode) .camelia-obras-wrapper .scroll-btn {
  background: rgba(15, 15, 15, 0.85);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(172, 255, 108, 0.25);
}
body:not(.light-mode) .camelia-obras-wrapper .scroll-btn:hover {
  background: rgba(172, 255, 108, 0.25);
  box-shadow: 0 0 14px rgba(172, 255, 108, 0.5);
}

/* 🔹 Responsivo */
@media (max-width: 768px) {
  .camelia-obras-wrapper .scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    opacity: 0.95; /* ligeramente más visibles en móvil */
  }
}

.camelia-obras-slider {
  gap: 1rem;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 1rem;
}
.camelia-obras-slider::-webkit-scrollbar {
  display: none;
}



.scroll-btn {
  background: var(--whitepure);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  z-index: 5;
}
.scroll-btn:hover {
  background: var(--accent);
  color: #fff;
}

.scroll-btn.left {
  position: absolute;
  left: 4px;
}
.scroll-btn.right {
  position: absolute;
  right: 4px;
}



/* ============================================================
🚧 Toast de aviso
============================================================ */

.construction-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #bdbdff);
  color: var(--whitepure, #222);
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
}

/* Mostrar el toast */
.construction-toast.active {
  bottom: 30px;
  opacity: 1;
}

/* 🌙 Modo oscuro */
body:not(.light-mode) .construction-toast {
  background: var(--primary, #1b1b1b);
  color: var(--blackdeep, #fff);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}



/* 🚫 Estado deshabilitado */
.link-btn.disabled {
  cursor: not-allowed;
  opacity: 0.8;
  position: relative;
}

/* Desactivar solo los clics reales, pero permitir hover */
.link-btn.disabled a,
.link-btn.disabled span {
  pointer-events: none;
}

/* Ícono de “restringido” */
.link-btn.disabled .restricted-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  filter: invert(87%) sepia(93%) saturate(580%) hue-rotate(30deg) brightness(120%) contrast(110%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

/* 💬 Tooltip retro */
.disabled-tooltip {
  position: fixed;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 15, 0.96);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 10px rgba(196, 255, 0, 0.4);
  z-index: 999;
  pointer-events: none;
  visibility: hidden;
}

body.light-mode .disabled-tooltip {
  color: var(--accent);
  border-color: var(--accent);
}
.link-btn.disabled:hover .disabled-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  visibility: visible;
}

/* 🎭 Fondo tenue al pasar */
.link-btn.disabled:hover .icon-circle {
  background: rgba(0, 0, 0, 0.4);
  transform: none;
}



/* ===============================
   🎧 MUSIC FAVORITE VIEW
   =============================== */
.music-wrapper {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  padding: 22px 20px;
}

.music-subtitle {
  margin: 20px 0 25px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.music-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.music-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  max-width: 580px;
  background: var(--black-100);
  padding: 1rem 0;
  border-radius: 12px;
  transition: transform 0.25s ease;
  margin: 1rem 0;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  background: var(--light-accent);
}

body:not(.light-mode) .music-card {
  background: var(--light-primary);
}

.music-card:hover {
  transform: scale(1.03);
}

/* ==== Left (Cover + Vinyl) ==== */
.music-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cover-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* ==== Vinilo (rotación central) ==== */
.vinyl-img {
  position: absolute;
  right: -35px;
  height: 160px;
  aspect-ratio: 1/1;
  transition: all 0.4s ease;
  transform-origin: center center; /* ✅ rotación sobre su eje */
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(155, 155, 255, 0.25));
}

.music-card:hover .vinyl-img {
  right: -50px;
}

.vinyl-img.pop {
  right: -80px !important;
  filter: drop-shadow(0 0 10px rgba(190, 150, 255, 0.4));
}

/* ✅ rotación continua del vinilo */
.spin {
  animation: spinVinyl 3.5s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.main-play {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: var(--whitepure);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease;
}

.main-play:hover {
  transform: scale(1.1);
}

.music-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  text-transform: uppercase;
}

/* ==== Right (Controls Row) ==== */
.music-right {
  display: flex;
  align-items: center;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.side-play {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: var(--whitepure);
  cursor: pointer;
  transition: transform 0.2s ease;
}

body:not(.light-mode) .side-play{
  background: var(--primary);
  color: var(--blackdeep);
}

.side-play:hover {
  transform: scale(1.1);
}

.music-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.music-link:hover {
  filter: brightness(1.3);
  transform: scale(1.1);
}

/* ===============================
   🔙 BOTÓN VOLVER — Alineado a la izquierda
   =============================== */
.back-btn {
  position: static; /* ✅ fluye con el contenido */
  display: inline-flex;
  flex: 0 0 auto; /* ✅ evita que se estire o se alinee según el flex del padre */
  align-self: flex-start; /* lo manda a la izquierda */
  gap: 6px;
  margin: 0; /* separación superior e inferior */
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-display);
  transition: all 0.25s ease;
  text-align: initial !important;
}

.back-btn:hover {
  background: var(--accent);
  color: var(--whitepure);
  box-shadow: 0 0 8px var(--accent);
  transform: translateX(-3px); /* efecto sutil hacia la izquierda */
}

body:not(.light-mode) .back-btn:hover {
  box-shadow: 0 0 8px var(--primary);
}