/* Estilo general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* Hero (portada) */
.hero {
  position: relative;
  height: 100vh;
  background: url("img-pvz/portada-zom.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffe066;
}


/* Contador */
.countdown {
  padding: 30px;
  text-align: center;
  background: #ffe066;
  color: #222;
}

#timer {
  font-size: 1.5rem;
  margin-top: 10px;
  font-weight: bold;
}

/* Información */
.info {
  padding: 40px 20px;
  text-align: center;
}

.info ul {
  list-style: none;
  margin: 20px 0;
}

.info li {
  margin: 10px 0;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ff6f61;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #e55748;
}

/* Galería / Carrusel */
.gallery {
  padding: 40px 20px;
  text-align: center;
}

.carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  border-radius: 15px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* gGALERIA PARA COLOREAR */

.pvz-gallery-section {
  padding: 30px 10px;
  text-align: center;
  background: #fdfdfd;
}

.pvz-gallery-container {
  max-width: 700px; /* Igual que la sección Bingo */
  margin: auto;
  background: rgba(255,255,255,0.95); /* Igual que Bingo */
  padding: 15px; /* Igual que Bingo */
  border-radius: 15px; /* Igual que Bingo */
  box-shadow: 0 0 20px rgba(0,0,0,0.3); /* Igual que Bingo */
}

.pvz-gallery-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  color: #f44336;
  margin-bottom: 20px;
}

.pvz-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-bottom: 20px;
}

.pvz-gallery-item {
  width: 90px;
  height: 90px;
  border-radius: 20%;
  border: solid 2px #0f4d21;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.pvz-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pvz-gallery-item:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.pvz-gallery-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: bold;
  color: #333;
  transition: bottom 0.3s;
}

.pvz-gallery-item:hover .pvz-gallery-label {
  bottom: 5px;
}

.pvz-gallery-download-btn {
  padding: 10px 20px;
  font-size: 16px;
  background: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px #2e7d32;
  transition: 0.3s;
}

.pvz-gallery-download-btn:hover {
  background: #45a049;
}

.pvz-gallery-download-btn:active { 
  box-shadow: 0 2px #2e7d32;
  transform: translateY(2px);
}

/* Responsive */
@media (max-width: 500px){
  .pvz-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
  }

  .pvz-gallery-item {
    width: 70px;
    height: 70px;
  }

  .pvz-gallery-label {
    font-size: 10px;
  }
  .pvz-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra todas las filas, incluida la última */
  gap: 15px;
  margin-bottom: 20px;
}


}


/* bingo */
.pvz-bingo-section {
  margin: 20px auto;
  text-align: center;
}

.pvz-bingo-container {
  background: rgba(255,255,255,0.95);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 700px;
  margin: auto;
}

.pvz-bingo-title {
  font-family: Arial, Helvetica, sans-serif;
  color: #ff5722;
  font-size: 25px;
  margin-bottom: 10px;
}

.pvz-bingo-controls {
  margin-bottom: 10px;
}

.pvz-bingo-controls button {
  padding: 5px 10px;
  margin: 3px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px #2e7d32;
}

.pvz-bingo-controls button:hover { opacity:0.9; }
.pvz-bingo-controls button:active { transform:translateY(2px); box-shadow:0 1px #2e7d32; }

.pvz-bingo-draw-btn { background: #4caf50; color: #fff; }
.pvz-bingo-line-btn { background: #ff9800; color: #fff; }
.pvz-bingo-bingo-btn { background: #f44336; color: #fff; }
.pvz-bingo-reset-btn { background: #2196f3; color: #fff; }
.pvz-bingo-print-btn { background: #9c27b0; color: #fff; }

.pvz-bingo-current {
  font-size: 40px;
  margin: 10px 0;
  color: #ff5722;
}

.pvz-bingo-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-top: 10px;
}

.pvz-bingo-cell {
  background: #f99304;
  padding: 8px 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #fffdfd;
  box-shadow: 0 1px #aaa;
  transition: 0.3s transform, 0.3s background;
  display:flex;
  justify-content:center;
  align-items:center;
}

.pvz-bingo-cell.called {
  background: #ffeb3b;
  color: #000;

  transform: scale(1.2);
  animation: bounce 0.3s;
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.2); }
}

.pvz-bingo-history-title { margin-top: 10px; font-size: 14px; font-weight:bold; }
.pvz-bingo-history { font-size: 12px; max-height: 100px; overflow-y:auto; margin-top:3px; }

/* Mini-íconos dentro de celdas */
.pvz-icon {
  margin-left:3px;
  font-size:12px;
}



/* 🎨 Contenedor - juego de la memoria*/
/* Contenedor (mismas medidas/estilo que tu web) */
.memory-container{
  max-width:700px;
  margin:auto;
  background:rgba(255,255,255,0.95);
  padding:8px;
  border-radius:15px;
  box-shadow:0 0 20px rgba(0,0,0,0.3);
  font-family:Arial, sans-serif;
}
.memory-title{ text-align:center; color:#ff6f61; margin-bottom:5px; }
.memory-subtitle{ text-align:center; margin-bottom:15px; color:#333; }

/* Tablero 4x4 (armónico en web y móvil) */
.memory-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:3px;
}

/* Cartas cuadradas con flip */
.memory-card{ position:relative; width:100%; padding-top:100%; perspective:1000px; cursor:pointer; }
.memory-card-inner{ position:absolute; inset:0; transition:transform .6s; transform-style:preserve-3d; }
.memory-card.flipped .memory-card-inner{ transform:rotateY(180deg); }

.memory-card-front, .memory-card-back{
  position:absolute; inset:0; backface-visibility:hidden;
  border-radius:10px; overflow:hidden;
}
.memory-card-front{
  background:#4CAF50; display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:bold; font-size:20px;
}
.memory-card-back{
  transform:rotateY(180deg);
  background:#fff; display:flex; align-items:center; justify-content:center;
}
.memory-card-back img{ width:95%; height:95%; object-fit:contain; }

/* Botón */
.memory-controls{ text-align:center; margin-top:15px; }
.memory-btn{
  background:#ff6f61; border:none; padding:10px 20px;
  color:#fff; border-radius:8px; cursor:pointer; font-size:16px;
}
.memory-btn:hover{ background:#ff4a3d; }


/* camara */
.pvz-selfie-section {
  max-width: 700px;
  margin: auto;
  background: rgba(255,255,255,0.95);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  font-family: sans-serif;
}

.pvz-camera-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 10px;
  background: #000;
}

.pvz-camera-wrapper video.pvz-camera {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.pvz-camera-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.pvz-btn-take,
.pvz-btn-download,
.pvz-btn-share {
  background: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.pvz-btn-take:hover,
.pvz-btn-download:hover,
.pvz-btn-share:hover {
  background: #ff4a3d;
}

.pvz-selfie-result canvas.pvz-canvas {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 10px;
}

.pvz-btns-result {
  display: flex;
  justify-content: center;
  gap: 10px;
}




/* Footer */
footer {
  padding: 20px;
  background: #222;
  color: white;
  text-align: center;
}
