/* ----------------- VARIABLES ----------------- */
:root {
  --fondo-claro: rgba(255, 255, 255, 0.7);
  --texto-claro: #333;
  --acento-rosa: #e7185d;
  --brillo: rgba(255, 120, 170, 0.7);

  --fondo-oscuro: rgba(20, 10, 30, 0.85);
  --texto-oscuro: #f5e6f9;
  --acento-azul: #b49bff;
  --brillo-oscuro: rgba(190, 150, 255, 0.6);
}

/* ----------------- BODY Y FONDOS ----------------- */
body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: var(--texto-claro);
  cursor: none;
  background: url("Windows.gif") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  z-index: 0;
  transition: background 1s, color 1s;
}

/* GIF Corazoncitos superpuesto */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("Corazoncitos.gif") center center / cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Filtro rosado */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 180, 200, 0.2);
  pointer-events: none;
  z-index: 1;
  transition: background-color 1s ease;
}

/* Overlay nocturno */
body.night::after {
  background-color: rgba(10, 20, 50, 0.5);
}

/* Contenido encima de fondos */
.layout, header, main, aside, .footer-bottom {
  position: relative;
  z-index: 2;
}

/* ----------------- LAYOUT ----------------- */
.layout {
  width: 1000px;
  margin: 60px auto;
  background: var(--fondo-claro);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255,130,180,0.4);
  padding: 20px 20px 60px 20px;
  box-sizing: border-box;
  position: relative;
}

/* ----------------- HEADER ----------------- */
header {
  background: #fff;
  text-align: center;
}
header img {
  width:100%;
  display:block;
  border-bottom:2px solid #ff9dc1;
  filter:brightness(1);
  transition: filter 0.6s ease;
}
header img:hover { filter: brightness(1.1); }
header h1 {
  font-family:'Pixel Digivolve',sans-serif;
  color: var(--acento-rosa);
  text-shadow:0 0 4px var(--brillo);
  margin:10px 0;
  letter-spacing:1px;
}

/* ----------------- MINI FRAMES ----------------- */
.mini-frame {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  border: 2px solid rgba(255,150,200,0.5);
  box-shadow: 0 0 20px rgba(255,150,200,0.4);
  padding: 20px;
  margin: 15px 0;
  transition: all 0.4s ease;
}
.mini-frame:hover,
.magic-zone:hover,
.vitrina-magica:hover,
.mini-game:hover,
#foro:hover {
  transform: scale(1.002);
  box-shadow:0 0 25px rgba(255,150,200,0.6);
}
.mini-frame img {
  max-width: 100%;
  border-radius: 12px;
}

/* ----------------- BOTONES ----------------- */
button {
  cursor: pointer;
  background: linear-gradient(135deg, #ffc6e0, #ff9dc1);
  border: none;
  border-radius: 12px;
  padding: 8px 15px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,120,180,0.7);
  transition: all 0.3s ease;
}
button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,120,180,0.8);
}

/* ----------------- IFRAMES ----------------- */
iframe {
  border-radius: 12px;
  border: none;
  width: 100%;
  height: 150px;
}

/* ----------------- BLOQUES INTERACTIVOS ----------------- */
.magic-zone, .vitrina-magica, .mini-game, #foro {
  width:100%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border-radius:20px;
  box-shadow:0 0 20px rgba(255,150,200,0.4);
  padding:15px;
  transition: all 0.4s ease;
}

/* ----------------- MINI RECUADROS ----------------- */
.gacha-box, .wishlist-box, .photo-box, .poll-frame.comfy, .mini-game, .meme-semana {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,200,220,0.8));
  box-shadow:0 0 12px rgba(255,120,180,0.5);
  border-radius:16px;
  border:2px solid rgba(255,190,230,0.7);
  padding:10px;
  text-align:center;
  transition:all 0.3s ease;
}
.gacha-box:hover, .wishlist-box:hover, .photo-box:hover, .poll-frame.comfy:hover, .mini-game:hover, .meme-semana:hover {
  transform:scale(1.01);
  box-shadow:0 0 20px rgba(255,120,180,0.7);
}

/* ----------------- VITRINA MÁGICA ----------------- */
.vitrina-magica {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 240, 250, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,150,200,0.5);
  box-shadow: 0 0 25px rgba(255,150,200,0.4);
  text-align: center;
}
.vitrina-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 0;
}
.vitrina-grid .item {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid rgba(255,150,200,0.5);
  box-shadow: 0 0 10px rgba(255,150,200,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vitrina-grid .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.vitrina-grid .item:hover { transform: scale(1.01); }
.vitrina-grid .item .descripcion {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 182, 193, 0.9);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  font-weight: bold;
}
.vitrina-grid .item:hover .descripcion {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ----------------- CURSOR Y ESTELA ----------------- */
.cursor, .trail {
  pointer-events: none;
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231,24,93,0.9), rgba(175,0,255,0.6));
  box-shadow:0 0 6px rgba(231,24,93,0.7),0 0 12px rgba(175,0,255,0.4);
  transform: translate(-50%,-50%);
  z-index: 9999;
}
.trail {
  width:8px; height:8px;
  background: radial-gradient(circle, rgba(255,100,150,0.8), rgba(175,0,255,0.5));
  box-shadow:0 0 4px rgba(255,100,150,0.7),0 0 8px rgba(175,0,255,0.5);
  animation:fadeTrail 0.7s linear forwards;
}
@keyframes fadeTrail {
  from {opacity:1; transform:scale(1) translate(-50%,-50%);}
  to {opacity:0; transform:scale(0.4) translate(-50%,-50%);}
}

/* ----------------- POPUPS ----------------- */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.popup-content {
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid rgba(255,150,200,0.7);
  box-shadow: 0 0 25px rgba(255,150,200,0.6);
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  font-family: 'Pixel Digivolve', cursive;
  color: #e7185d;
  text-shadow: 0 0 4px rgba(255,120,170,0.7);
}
.popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #e7185d;
}

/* ----------------- MEME Y GACHA ----------------- */
.meme-semana, .gacha-box.mini-frame {
  min-height: 300px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 240, 250, 0.7);
  border: 2px solid rgba(255,150,200,0.5);
  box-shadow: 0 0 20px rgba(255,150,200,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}
.gacha-box.mini-frame button {
  margin-top: 1rem;
}
.gacha-frame {
  background: rgba(255, 240, 250, 0.6);
  border: 2px solid rgba(255, 160, 210, 0.5);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  margin-top: 1rem;
  box-shadow: 0 0 15px rgba(255, 180, 220, 0.4);
}

#btnGacha {
  background: linear-gradient(90deg, #ffa8d8, #ff77c5);
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-family: 'Pixel Digivolve', cursive;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#btnGacha:hover { transform: scale(1.05); }

#resultadoGacha {
  font-family: 'Pixel Digivolve', cursive;
  color: #ff8ad6;
  margin-top: 10px;
  text-shadow: 0 0 6px rgba(255, 170, 210, 0.7);
  animation: pop 0.5s ease;
}

#coleccionMascotas {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.mascotaPixel {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(255, 150, 220, 0.5));
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}
/* ----------------- SECCIONES FULLWIDTH Y COLUMNAS ----------------- */
.bottom-fullwidth {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bottom-fullwidth .mini-frame {
  width: 100%;
  box-sizing: border-box;
}
.content-two-columns {
  display: flex;
  gap: 20px;
}
.column-left { flex: 1.2; max-width: 620px; }
.column-right { flex: 0.8; max-width: 450px; }
.column-right .mini-frame.enlaces-frame { width: 100%; margin: 0 auto; box-sizing: border-box; }
.column-right .mini-frame.enlaces-frame .mini-frame { width: 95%; margin: 10px auto; padding: 15px; }

/* ----------------- MASCOTA Y CLICKER ----------------- */
/* Animación de parpadeo suave */
@keyframes parpadeo {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.2; }
}

/* Animación de “suspiro” (flotando suavemente) */
@keyframes suspiro {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Mascota normal */
#mascota-img {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease;
}

/* Estado inactivo */
.inactiva #mascota-img {
  animation: parpadeo 3s infinite, suspiro 4s ease-in-out infinite;
  opacity: 0.8;
}

/* Mensaje de suspiro */
.suspiro-msg {
  font-family: 'Pixel Digivolve', cursive;
  font-size: 0.9em;
  color: #ff9edb;
  animation: fadeInOut 5s ease;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}
.mascota-frame {
  background: rgba(255, 240, 250, 0.7);
  border: 2px solid rgba(255,150,200,0.5);
  box-shadow: 0 0 20px rgba(255,150,200,0.4);
  padding: 15px;
  text-align: center;
  margin-top: 1rem;
  border-radius: 16px;
}
/* ❤️ Tamaño del emoji del clicker */
#heartZone::before {
  content: "❤️";
  display: block;
  font-size: 3rem; /* tamaño del corazón */
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(255, 120, 180, 0.8);
  animation: heartPulse 1.5s infinite ease-in-out;
}

/* Animación suave */
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.mascota-frame img { width: 120px; height: 120px; image-rendering: pixelated; margin-top: 0.5rem; }
#heartZone {
  width: 90%;
  margin: 10px auto;
  background-color: rgba(255, 182, 193, 0.2);
  border: 2px solid #ffaad4;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-family: 'Pixel Digivolve', cursive;
  color: #ff8ad6;
}

#clickerBar {
  height: 10px;
  background: linear-gradient(90deg, #ff9edb, #ff58c4);
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s ease;
  margin-bottom: 8px;
}

#levelDisplay {
  color: #ff77c5;
  font-weight: bold;
  font-size: 0.9em;
}

.level-up {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 192, 203, 0.9);
  color: #fff;
  font-family: 'Pixel Digivolve', cursive;
  font-size: 1.2em;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px #ffbbee;
  z-index: 9999;
  animation: popUp 1s ease, fadeOut 1s ease 2s;
}

@keyframes popUp {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ----------------- FRAME OPINIONES ----------------- */
#opiniones-frame {
  background: rgba(255, 240, 250, 0.7);
  border: 2px solid rgba(255,150,200,0.5);
  box-shadow: 0 0 20px rgba(255,150,200,0.4);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-top: 1rem;
}
#disqus_thread {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 0 15px rgba(255,150,200,0.3);
}

/* ----------------- TIPOGRAFÍAS ----------------- */
/* Títulos con Pixel Digivolve, rosita y glow */
h1, h2, h3, h4, h5, h6,
.titulo-frame,
.popup-content h1,
.popup-content h2,
.popup-content h3 {
    font-family: 'Pixel Digivolve', cursive;
    color: var(--acento-rosa);
    text-shadow: 0 0 4px var(--brillo);
    margin: 0.5rem 0;
}
/* Textos normales con Raleway */
body, 
.layout,
.mini-frame,
.magic-zone,
.vitrina-magica,
.mini-game,
#foro,
.texto-frame,
.card,
#cardsResult,
textarea,
input,
button,
.popup-content {
    font-family: 'Raleway', sans-serif;
    color: var(--texto-claro);
}
#foro {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 120, 180, 0.4);
  border-radius: 14px;
  padding: 15px;
  font-family: 'Raleway', sans-serif;
  color: #444;
  box-shadow: 0 0 10px rgba(255, 150, 200, 0.3);
}

#foro form input, #foro form textarea {
  width: 90%;
  border-radius: 10px;
  border: 1px solid #ffa9c9;
  padding: 8px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.8);
}

#foro button {
  background: #ff85c1;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.2s;
}
#foro button:hover { background: #ff5ca9; }

.mensaje-item {
  background: rgba(255,255,255,0.5);
  border-left: 4px solid #ffb3d9;
  padding: 6px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
}

.mensaje-texto {
  color: #666;
  font-style: italic;
}
/* 🌸 RECUADRO INFORMATIVO */
.info-frame {
  background: rgba(255, 248, 252, 0.65);
  border: 2px solid rgba(255, 180, 220, 0.5);
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 1.2rem;
  box-shadow: 0 0 12px rgba(255, 170, 210, 0.3);
  backdrop-filter: blur(3px);
  text-align: center;
}

.info-frame h3 {
  font-family: 'Pixel Digivolve', cursive;
  color: #ff8ad6;
  text-shadow: 0 0 6px rgba(255, 170, 220, 0.6);
  font-size: 1.3em;
  margin-bottom: 12px;
}

/* 🔹 Cuadrícula para los bloques */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  text-align: center;
}

.info-item {
  background: rgba(255, 230, 245, 0.7);
  border: 1.5px solid rgba(255, 150, 200, 0.4);
  border-radius: 12px;
  padding: 10px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 200, 235, 0.9);
  box-shadow: 0 0 12px rgba(255, 170, 220, 0.6);
  transform: translateY(-2px);
}

.info-item h4 {
  font-family: 'Pixel Digivolve', cursive;
  color: #ff6fc9;
  font-size: 1em;
  margin-bottom: 6px;
}

.info-item p {
  font-family: 'Raleway', sans-serif;
  color: #b84d99;
  font-size: 0.9em;
  line-height: 1.3em;
}

