/* ================================================================
   STYLE.CSS — CYUMIAU · Portafolio Artístico
   ================================================================
   ÍNDICE RÁPIDO (busca el número para ir directo):
   
   01. VARIABLES DE COLOR Y FUENTES  ← cambia toda la paleta aquí
   02. RESET Y BODY
   03. FONDO CON PATRÓN DIAGONAL
   04. CURSOR PERSONALIZADO
   05. CANVAS DE PÉTALOS
   06. ── PANTALLA DE ENTRADA (SPLASH) ──
   07. FLORES DECORATIVAS DEL SPLASH
   08. CONTENIDO DEL SPLASH (título, personaje, botón)
   09. ── SITIO PRINCIPAL ──
   10. BARRA DE NAVEGACIÓN
   11. SECCIONES (contenedor general)
   12. TÍTULO DE SECCIÓN
   13. ── HOME ──
   14. GRID DE 3 COLUMNAS
   15. WIDGETS (cajitas laterales)
   16. GIF SLOT
   17. MÚSICA PLAYER
   18. WELCOME BOX (caja central de bienvenida)
   19. NOVEDADES
   20. LINKS DE SIDEBAR
   21. ── ABOUT ME ──
   22. LAYOUT ABOUT
   23. IMAGEN PRINCIPAL ABOUT
   24. MINI IMÁGENES INTERACTIVAS
   25. TARJETAS DE TEXTO ABOUT
   26. ── ARTWORK ──
   27. GRID DE OBRAS
   28. TARJETA DE OBRA (art-card)
   29. LIGHTBOX
   30. ── GALERÍA ──
   31. MASONRY LAYOUT
   32. ── JARDÍN SECRETO ──
   33. CAMPO INTERACTIVO
   34. FLORES ANIMADAS
   35. MINIJUEGO
   36. ── FOOTER ──
   37. SCROLLBAR
   38. RESPONSIVE (móvil)
   ================================================================ */


/* ────────────────────────────────────────────────────────────────
   01. VARIABLES DE COLOR Y FUENTES
   ── Cambia estos valores para cambiar TODA la paleta a la vez ──
──────────────────────────────────────────────────────────────── */
:root {
  /* Paleta principal */
  --negro:          #06020d;   /* fondo base (negro azulado) */
  --rosa:           #ff2d78;   /* rosa principal: títulos, bordes, énfasis */
  --rosa-suave:     #ff80b0;   /* rosa más claro: textos secundarios */
  --verde:          #1aff8c;   /* verde neón: acento secundario */
  --morado:         #9b30ff;   /* morado: bordes, detalles */
  --morado-oscuro:  #2a003f;   /* morado oscuro: fondos de cajas */
  --blanco:         #f0e6ff;   /* blanco lavanda: texto general */

  /* Fuentes */
  --fuente-titulo:  'Permanent Marker', cursive;  /* títulos y display */
  --fuente-mono:    'Fragment Mono', monospace;    /* texto general y nav */
}


/* ────────────────────────────────────────────────────────────────
   02. RESET Y BODY
──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-mono);
  font-size: 14px;
  overflow-x: hidden;
  cursor: none; /* oculta el cursor nativo; usamos el personalizado */
}


/* ────────────────────────────────────────────────────────────────
   03. FONDO CON PATRÓN DIAGONAL
   Cambia opacity (.08) para más o menos visible.
   Cambia background-size para más o menos denso.
──────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, var(--verde) 1px, transparent 1px),
    radial-gradient(circle, var(--rosa)  1px, transparent 1px);
  background-size:     30px 30px, 60px 60px;
  background-position: 0 0,       15px 15px;
  opacity: 0.07; /* ← cambia entre 0.03 y 0.15 */
}


/* ────────────────────────────────────────────────────────────────
   04. CURSOR PERSONALIZADO
──────────────────────────────────────────────────────────────── */
#cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 22px;
  height: 22px;
  border: 2px solid var(--rosa);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
  box-shadow: 0 0 10px var(--rosa), 0 0 20px var(--morado);
}
#cursor::after {
  content: '✿';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--rosa);
}
/* Cursor más grande al pasar sobre elementos clickeables */
body:has(a:hover) #cursor,
body:has(button:hover) #cursor,
body:has(.mini-img:hover) #cursor {
  width: 36px;
  height: 36px;
  background: rgba(255, 45, 120, .15);
}


/* ────────────────────────────────────────────────────────────────
   05. CANVAS DE PÉTALOS
──────────────────────────────────────────────────────────────── */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}


/* ════════════════════════════════════════════════════════════════
   06. PANTALLA DE ENTRADA (SPLASH)
════════════════════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--negro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}

/* Clase que se agrega con JS al hacer clic en ENTER */
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Líneas diagonales de fondo del splash */
#splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,          transparent          40px,
    rgba(155,48,255,.05)  rgba(155,48,255,.05) 41px
  );
}


/* ────────────────────────────────────────────────────────────────
   07. FLORES DECORATIVAS DEL SPLASH
──────────────────────────────────────────────────────────────── */
.splash-flor {
  position: absolute;
  font-size: clamp(1rem, 3vw, 2rem);
  opacity: .18;
  animation: girar 12s linear infinite;
  pointer-events: none;
  color: var(--rosa);
}
/* offsets de color alternados */
.splash-flor:nth-child(even) { color: var(--verde); }

@keyframes girar {
  to { transform: rotate(360deg); }
}


/* ────────────────────────────────────────────────────────────────
   08. CONTENIDO DEL SPLASH
──────────────────────────────────────────────────────────────── */
.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Personaje / dibujo principal del splash
   ── PARA COLOCAR TU IMAGEN: reemplaza el emoji 🌸 en el HTML
      con: <img src="tu-personaje.png" class="splash-char-img"> ── */
#splash-char {
  width: clamp(180px, 35vw, 420px);
  aspect-ratio: 1 / .85;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  filter: drop-shadow(0 0 30px var(--morado)) drop-shadow(0 0 60px var(--rosa));
  animation: charFloat 3s ease-in-out infinite;
}
/* Si pones una <img> dentro, le aplicamos el mismo estilo */
.splash-char-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes charFloat {
  0%, 100% { transform: translateY(0)    rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(1deg);  }
}

/* Título grande "CYUMIAU"
   ── CAMBIA el texto en el HTML, no aquí ── */
.splash-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--rosa);
  text-shadow:
    0 0 10px var(--rosa),
    0 0 30px var(--rosa),
    4px 4px 0 var(--morado-oscuro),
    -2px -2px 0 rgba(26, 255, 140, .4);
  letter-spacing: .04em;
  line-height: 1;
  position: relative;
}
/* Línea diagonal tipo scratch sobre el título */
.splash-title::after {
  content: '';
  position: absolute;
  top: 45%; left: -5%;
  width: 110%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--verde), transparent);
  transform: rotate(-4deg);
  opacity: .7;
}

/* Subtítulo del splash */
.splash-sub {
  font-family: var(--fuente-mono);
  font-size: clamp(.7rem, 1.5vw, .95rem);
  color: var(--verde);
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .8;
}

/* Botón ENTER */
#enter-btn {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--blanco);
  background: transparent;
  border: 2px solid var(--blanco);
  padding: 10px 40px;
  cursor: none;
  letter-spacing: .3em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s;
}
#enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rosa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: -1;
}
#enter-btn:hover              { border-color: var(--rosa); }
#enter-btn:hover::before      { transform: scaleX(1); }


/* ════════════════════════════════════════════════════════════════
   09. SITIO PRINCIPAL
════════════════════════════════════════════════════════════════ */
#site {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
#site.visible { display: block; }


/* ────────────────────────────────────────────────────────────────
   10. BARRA DE NAVEGACIÓN
──────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(6, 2, 13, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--morado);
  padding: 0 clamp(12px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 10px);
  height: 52px;
  overflow-x: auto;
}

/* Logo "CYUMIAU" en la izquierda del nav */
nav::before {
  content: '✿CYUMIAU✿';
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  color: var(--rosa);
  text-shadow: 0 0 8px var(--rosa);
  margin-right: auto;
  white-space: nowrap;
}

.nav-link {
  font-family: var(--fuente-mono);
  font-size: .75rem;
  color: var(--blanco);
  text-decoration: none;
  letter-spacing: .15em;
  padding: 6px 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s, text-shadow .2s;
}
.nav-link:hover {
  color: var(--rosa);
  border-color: var(--rosa);
  text-shadow: 0 0 8px var(--rosa);
}


/* ────────────────────────────────────────────────────────────────
   11. SECCIONES (contenedor general)
──────────────────────────────────────────────────────────────── */
section {
  display: none;
  min-height: 100vh;
}
section.active { display: block; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 60px) clamp(16px, 3vw, 40px);
}


/* ────────────────────────────────────────────────────────────────
   12. TÍTULO DE SECCIÓN
──────────────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--rosa);
  text-shadow: 0 0 14px var(--rosa), 3px 3px 0 var(--morado-oscuro);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* línea decorativa después del título */
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rosa), transparent);
}


/* ════════════════════════════════════════════════════════════════
   13–20. HOME
════════════════════════════════════════════════════════════════ */

/* 13. Fondo de sección HOME */
#home {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 48, 255, .18) 0%, transparent 70%),
    var(--negro);
}

/* 14. Grid de 3 columnas */
.home-grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 20px;
  align-items: start;
}

/* Columnas laterales */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Columna central */
.home-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 15. WIDGETS (cajitas) */
.widget {
  background: rgba(42, 0, 63, .55);
  border: 1px solid rgba(155, 48, 255, .4);
  border-radius: 4px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
/* línea de color en la parte superior del widget */
.widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rosa), var(--morado), var(--verde));
}

.widget-title {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--verde);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.widget-text {
  font-size: .72rem;
  line-height: 1.8;
  opacity: .8;
}
.widget-dim {
  font-size: .65rem;
  opacity: .5;
  margin-top: 4px;
}

/* 16. GIF SLOT
   Reemplaza el contenido con: <img src="tu-gif.gif" style="width:100%"> */
.gif-slot {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(26, 255, 140, .06);
  border: 1px dashed rgba(26, 255, 140, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: rgba(26, 255, 140, .5);
  text-align: center;
  padding: 8px;
  transition: background .2s;
}
.gif-slot:hover { background: rgba(26, 255, 140, .12); }

/* 17. MÚSICA PLAYER */
.music-player {
  background: rgba(6, 2, 13, .8);
  border: 1px solid var(--rosa);
  padding: 10px;
}
.music-label {
  font-size: .7rem;
  color: var(--rosa-suave);
  margin-bottom: 6px;
}
/* Reemplaza con <audio controls src="..."> cuando tengas el archivo */
.music-placeholder {
  background: rgba(255, 45, 120, .08);
  border: 1px dashed var(--rosa);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: var(--rosa-suave);
}

/* 18. WELCOME BOX */
.welcome-box {
  background: rgba(42, 0, 63, .4);
  border: 1px solid rgba(155, 48, 255, .5);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.welcome-box::after {
  content: '✿ ❀ ✾ ❃';
  position: absolute;
  bottom: -4px; right: 10px;
  font-size: 1.4rem;
  opacity: .2;
  letter-spacing: .3em;
}
.welcome-box h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--verde);
  text-shadow: 0 0 10px var(--verde);
  margin-bottom: 12px;
}
.welcome-box p {
  font-size: .82rem;
  line-height: 1.8;
  opacity: .85;
}

/* 19. NOVEDADES */
.news-box .item {
  border-bottom: 1px solid rgba(155, 48, 255, .25);
  padding: 10px 0;
  font-size: .78rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.news-box .item::before {
  content: '✿';
  color: var(--rosa);
  flex-shrink: 0;
}

/* 20. LINKS DE SIDEBAR */
.links-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.sidebar-link {
  font-size: .72rem;
  color: var(--rosa-suave);
  text-decoration: none;
  transition: color .2s;
}
.sidebar-link:hover { color: var(--rosa); }


/* ════════════════════════════════════════════════════════════════
   21–25. ABOUT ME
════════════════════════════════════════════════════════════════ */

/* 21. Fondo */
#about {
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255, 45, 120, .1) 0%, transparent 65%),
    var(--negro);
}

/* 22. Layout de 2 columnas */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.about-img-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 23. IMAGEN PRINCIPAL ABOUT
   Reemplaza el emoji con: <img src="tu-avatar.png" style="width:100%;height:100%;object-fit:contain;"> */
.about-main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(42, 0, 63, .5);
  border: 2px solid var(--morado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s;
}
.about-main-img:hover             { border-color: var(--rosa); }
.about-main-img:hover .img-overlay { opacity: 1; }

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 45, 120, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  letter-spacing: .15em;
  color: var(--blanco);
  opacity: 0;
  transition: opacity .3s;
}

/* 24. MINI IMÁGENES INTERACTIVAS (4 cuadraditos) */
.about-mini-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-img {
  aspect-ratio: 1;
  background: rgba(42, 0, 63, .5);
  border: 1px solid rgba(155, 48, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .25s;
}
.mini-img:hover {
  transform: scale(1.08) rotate(-2deg);
  border-color: var(--verde);
  box-shadow: 0 0 20px rgba(26, 255, 140, .3);
}

/* 25. TARJETAS DE TEXTO ABOUT */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-card {
  background: rgba(6, 2, 13, .7);
  border-left: 3px solid var(--morado);
  padding: 16px 20px;
}
.about-card h3 {
  font-family: var(--fuente-titulo);
  color: var(--morado);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.about-card p,
.about-card ul {
  font-size: .8rem;
  line-height: 1.8;
  opacity: .85;
}
.about-card ul        { padding-left: 16px; }
.about-card li::marker { color: var(--rosa); }


/* ════════════════════════════════════════════════════════════════
   26–29. ARTWORK
════════════════════════════════════════════════════════════════ */

/* 26. Fondo */
#artwork {
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(26, 255, 140, .08) 0%, transparent 65%),
    var(--negro);
}

/* 27. GRID DE OBRAS
   auto-fill: agrega columnas automáticamente según el espacio.
   minmax(200px, 1fr): cada tarjeta mide mínimo 200px. */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* 28. TARJETA DE OBRA */
.art-card {
  background: rgba(42, 0, 63, .4);
  border: 1px solid rgba(155, 48, 255, .3);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
  position: relative;
}
.art-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 12px 40px rgba(255, 45, 120, .3), 0 0 0 1px var(--rosa);
}

/* Imagen (o emoji placeholder) de la tarjeta
   Reemplaza el emoji con: <img src="obra.png" style="width:100%;height:100%;object-fit:cover;"> */
.art-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(6, 2, 13, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}

.art-card-label {
  padding: 10px 12px;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--rosa-suave);
}

/* Overlay "[ VER ]" al hacer hover */
.art-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 45, 120, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  font-size: .75rem;
  letter-spacing: .2em;
  color: transparent;
}
.art-card:hover .art-card-overlay {
  background: rgba(255, 45, 120, .25);
  color: var(--blanco);
}

/* 29. LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(6, 2, 13, .95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: none;
}
#lightbox.open { display: flex; }

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

#lb-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: var(--rosa);
  cursor: none;
  background: none;
  border: none;
}


/* ════════════════════════════════════════════════════════════════
   30–31. GALERÍA
════════════════════════════════════════════════════════════════ */

/* 30. Fondo */
#galeria {
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(155, 48, 255, .15) 0%, transparent 60%),
    var(--negro);
}

/* 31. MASONRY LAYOUT (columnas de altura variable)
   Cambia "3 200px" para más/menos columnas o tamaño mínimo */
.gallery-masonry {
  columns: 3 200px;
  column-gap: 14px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  background: rgba(42, 0, 63, .4);
  border: 1px solid rgba(155, 48, 255, .25);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(155, 48, 255, .4);
}

/* Reemplaza el emoji con: <img src="imagen.png" style="width:100%;display:block;"> */
.gallery-item-img {
  width: 100%;
  background: rgba(6, 2, 13, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  padding: 20px;
}


/* ════════════════════════════════════════════════════════════════
   32–35. JARDÍN SECRETO
════════════════════════════════════════════════════════════════ */

/* 32. Fondo */
#jardin {
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(42, 0, 63, .9) 0%, var(--negro) 100%);
}

/* 33. CAMPO INTERACTIVO (haz clic para hacer florecer) */
#garden-container {
  position: relative;
  height: 220px;
  margin-bottom: 20px;
  border: 1px dashed rgba(155, 48, 255, .3);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(6, 2, 13, .4);
}

#garden-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: .75rem;
  opacity: .4;
  text-align: center;
  pointer-events: none;
}

#garden-field {
  position: absolute;
  inset: 0;
}

/* 34. FLORES ANIMADAS (creadas por JS al hacer clic) */
.jardin-flor {
  position: absolute;
  opacity: 0;
  animation: florecen 1s ease forwards;
  cursor: pointer;
  transition: transform .3s;
  user-select: none;
}
.jardin-flor:hover {
  transform: scale(1.3) rotate(20deg);
  filter: drop-shadow(0 0 10px var(--rosa));
}
@keyframes florecen {
  from { opacity: 0; transform: scale(0) rotate(180deg); }
  to   { opacity: .6; transform: scale(1)  rotate(0deg);  }
}

/* 35. MINIJUEGO */
#game-area {
  background: rgba(6, 2, 13, .6);
  border: 1px solid var(--verde);
  border-radius: 4px;
  padding: 20px;
  margin-top: 20px;
}
#game-area h3 {
  font-family: var(--fuente-titulo);
  color: var(--verde);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
#game-area > p {
  font-size: .78rem;
  opacity: .8;
  margin-bottom: 14px;
}

#flower-game {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 400px;
}

.flower-btn {
  background: rgba(42, 0, 63, .6);
  border: 1px solid rgba(155, 48, 255, .4);
  width: 100%;
  aspect-ratio: 1;
  font-size: 1.5rem;
  cursor: none;
  transition: transform .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flower-btn:hover {
  transform: scale(1.1);
  background: rgba(155, 48, 255, .2);
}
.flower-btn.bloomed {
  background: rgba(255, 45, 120, .25);
  border-color: var(--rosa);
  animation: bloom-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes bloom-pop {
  0%   { transform: scale(.5); }
  100% { transform: scale(1);  }
}

#game-score {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--verde);
}

#game-reset {
  margin-top: 8px;
  background: none;
  border: 1px solid var(--morado);
  color: var(--blanco);
  padding: 6px 18px;
  font-family: var(--fuente-mono);
  font-size: .72rem;
  cursor: none;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
}
#game-reset:hover {
  background: var(--morado);
  color: var(--negro);
}


/* ────────────────────────────────────────────────────────────────
   36. FOOTER
──────────────────────────────────────────────────────────────── */
footer {
  background: var(--morado-oscuro);
  border-top: 1px solid var(--morado);
  text-align: center;
  padding: 24px;
  font-size: .72rem;
  color: rgba(240, 230, 255, .5);
  letter-spacing: .1em;
}
footer span { color: var(--rosa); }


/* ────────────────────────────────────────────────────────────────
   37. SCROLLBAR PERSONALIZADA
──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--negro); }
::-webkit-scrollbar-thumb { background: var(--morado); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rosa); }


/* ────────────────────────────────────────────────────────────────
   38. RESPONSIVE — pantallas pequeñas (móvil)
──────────────────────────────────────────────────────────────── */
@media (max-width: 750px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .home-sidebar .widget {
    flex: 1 1 140px;
  }
}

@media (max-width: 650px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .gallery-masonry {
    columns: 2 150px;
  }
}

@media (max-width: 400px) {
  .gallery-masonry {
    columns: 1;
  }
  #flower-game {
    grid-template-columns: repeat(4, 1fr);
  }
}
