:root {
  --sky: #fdfbf6;
  /*--sky-light: #fad674;*/
  --blue: #ff76aa;
  --orange: #f7c460;
  --green: #B0E57C;
  --white: #fff;
}

.h1 .h2 h3 .h4 {
  font-family: 'Waltograph', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: 'Waltograph', sans-serif;
  background: linear-gradient(180deg, var(--sky-light), #ffffff 70%);
  overflow-x: hidden;
  color: #333;
}


.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 60px 0 0 20px #fff;
  animation: float 18s linear infinite;
  opacity: 0.8;
}

.cloud.small {
  width: 80px;
  height: 50px;
  top: 15%;
  left: -100px;
  animation-delay: 2s;
}

.cloud.big {
  width: 140px;
  height: 80px;
  top: 25%;
  left: -150px;
}

@keyframes float {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(120vw);
  }
}

.ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, var(--green), #9dd36a);
}

/* 🎈 Globos */
.balloon {
  position: absolute;
  bottom: -120px;
  animation: rise 10s linear infinite;
}

.balloon:nth-child(1) {
  left: 15%;
  animation-delay: 0s;
}

.balloon:nth-child(2) {
  left: 45%;
  animation-delay: 3s;
}

.balloon:nth-child(3) {
  left: 70%;
  animation-delay: 5s;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-110vh) scale(1.1);
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  color: var(--blue);
  overflow: hidden;
  /* para que la imagen no se salga del borde */
}

/* 👉 Imagen de fondo tipo <img> */
.hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  object-fit: cover;
  /* llena toda la sección sin deformarse */
  z-index: 0;
  /* se coloca detrás de todo */
  opacity: 0.95;
  /* opcional: transparencia para no tapar el texto */
}

/* 👉 Asegura que el resto del contenido esté encima del fondo */
.hero *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 8vw, 64px);
  color: var(--blue);
  text-shadow: 2px 3px #fff;
}

.hero h2 {
  font-size: clamp(22px, 5vw, 32px);
  color: var(--orange);
  margin-bottom: 10px;
}

.hero p {
  font-size: 25px;
  color: #333;
  margin-top: 20px;
}

.hero img.character {
  width: 200px;
  margin-top: 100px;
  animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ===== BOTÓN VIDEO ===== */
.play-intro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #ff76ab;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .3s ease;
  font-family: 'Waltograph', sans-serif;
}

.play-intro:hover {
  transform: translateY(-2px) scale(1.05);
}

.play-intro,
.btn {
  white-space: nowrap;
  /* evita que el texto se divida */
}

/* ===== CARD ===== */
.card {
  max-width: 720px;
  background: #ff76aa;
  margin: 0 auto;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 2;
  position: relative;
  transform: translateY(-20px);
  font-family: 'Waltograph', sans-serif;
  margin-bottom: 25px;
}

.card h3 {
  text-align: center;
  color: var(--orange);
  font-size: 26px;
  margin-bottom: 20px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}

.icon {
  font-size: 28px;
}

.detail {
  background: #fff7e0;
  border-left: 6px solid var(--orange);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===== CONTADOR ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 5px;
  color: #353534;
  font-size: 18px;
  margin-top: 10px;
}

.countdown-message {
  display: block;
  text-align: center;
  font-size: xx-large;
  font-weight: 700;
  color: #ffffff;
  margin-top: 10px;
  animation: fadeIn 1s ease-in-out;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.timer {
  text-align: center;
  background: white;
  padding: 12px 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, .2);
}

.timer span {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #353534;
}

/* ===== BOTÓN ===== */
.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-family: 'Waltograph', sans-serif;

  /* para que se acomoden si la pantalla es pequeña */
  margin-top: 20px;
  font-weight: bold;
  font-weight: bold;
}

.cta a {
  font-family: 'Waltograph', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn {
  background: white;
  color: #00bccf;
  padding: 12px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s;
  font-family: 'Waltograph', sans-serif;
  border-color: #00bccf;
  font-size: x-large;
}

.btnnegro {
  background: white;
  color: #4dd3e1;
  padding: 12px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s;
  font-family: 'Waltograph', sans-serif;
  border-color: #4dd3e1;
  width: 100%;
  font-size: x-large;
}



.btn:hover {
  transform: scale(1.08)
}

/* ===== SPOTIFY ===== */
.spotify {
  max-width: 720px;
  background: var(--white);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 2;
  position: relative;
  font-family: 'Waltograph', sans-serif;
  margin-bottom: 40px;
}

.spotify h3 h2 {
  text-align: center;
  color: var(--blue);
  font-size: 26px;
  margin-bottom: 20px;
}

.spotify iframe {
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  height: 152px;
}






/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  place-items: center;
  z-index: 60
}

.lightbox.show {
  display: grid
}

.lb-wrap {
  position: relative;
  width: min(92vw, 940px)
}

.lb-main img,
.lb-main video {
  width: 100%;
  border-radius: 12px;
}

.lb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: #fff
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .18)
}

.counter {
  font-weight: 700
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  color: #555;
  margin-top: 30px;
  padding-bottom: 40px;
  position: relative;
}

footer img.qr {
  width: 100px;
  border-radius: 12px;
  margin-top: 8px;
}

footer p {
  font-size: 14px;
  opacity: .8
}

footer .family {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-top: 20px;
}

footer .family img {
  height: 120px;
}

.shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 10px;
}

.phone {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 28px;
  box-shadow: var(--shadow);

  position: relative;
  overflow: hidden;
  border: solid #414141;
}


/* ===== EFECTOS DE CONFETI Y FUEGOS ===== */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}

/* ===== EFECTO DE BOTONES NEÓN AZUL PARPADEANTE ===== */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 8px #353534, 0 0 16px #353534, 0 0 24px #353534;
    background: linear-gradient(90deg, #353534, #353534);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 14px #8b6243, 0 0 28px #353534, 0 0 40px #353534;
    background: linear-gradient(90deg, #353534, #353534);
    transform: scale(1.05);
  }
}

.btn,
.play-intro {
  font-family: 'Waltograph', sans-serif;
  font-weight: 600;
  border: none;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  padding: 14px 28px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-intro {
  background: linear-gradient(90deg, #f87ab3, #fbb5d9);
}

.btn {
  background: linear-gradient(90deg, #47d1df, #78e3f2);
}

.btnnegro {
  background: linear-gradient(90deg, #ffffff, #ffffff);
}

.btn:hover,
.play-intro:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* ===== BOTÓN FLOTANTE DE COMPARTIR ===== */
.share-button {

  bottom: 20px;
  right: 16px;
  z-index: 9999;
  background: white;
  color: #00d6e0;
  font-family: 'Waltograph', sans-serif;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: pulseGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}

.share-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #353534, 0 0 40px #353534;
}

/* ===== BOTÓN DE UBICACIÓN ===== */
.map-button {

  bottom: 20px;
  right: 16px;
  z-index: 9999;
  background: white;
  color: #00d7e0;
  font-family: 'Waltograph', sans-serif;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: pulseGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #353534, 0 0 40px #353534
}

/* Versión para pantallas pequeñas */
@media (max-width: 600px) {
  .map-button {
    bottom: 14px;
    right: 10px;
    font-size: 14px;
    padding: 8px 14px;

  }
}

@media (max-width: 600px) {
  .share-button {
    bottom: 14px;
    right: 10px;
    font-size: 14px;
    padding: 8px 14px;

  }
}

/* 💡 Mantiene el efecto de parpadeo azul igual que los botones */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 8px #353534, 0 0 16px #353534, 0 0 24px #353534;
  }

  50% {
    box-shadow: 0 0 14px #353534, 0 0 28px #353534, 0 0 40px #353534;
  }
}


.spotify.lilo-stitch {

  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: 'Waltograph', sans-serif;
  max-width: 720px;
  margin: 0 auto 40px;
  border: 2px solid #ff76aa;
  /* borde tipo dorado */
}

.spotify.lilo-stitch h2 {
  color: #ff76aa;
  /* tono marrón cálido */
  font-size: 28px;
  margin-bottom: 16px;
  text-shadow: 1px 1px #fff3e0;
}

.spotify.lilo-stitch iframe {
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  height: 152px;
  box-shadow: 0 4px 10px #353534;
}

.detalle-img {
  width: 100%;
  /* controla el tamaño */
  display: block;
  margin: 15px auto;
  /* centra la imagen */
  border-radius: 20px;
  /* esquinas suaves */

  object-fit: cover;
}

/* 🌺 BOTÓN DE MÚSICA */
.music-btn {
  position: fixed;
  bottom: 10px;
  right: 16px;
  z-index: 9999;
  background: linear-gradient(90deg, #ff76aa, #ff76aa);
  color: white;
  font-family: 'Waltograph', cursive;
  font-size: 22px;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

/* 🌀 Hover */
.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #3c3c3b, 0 0 40px #3c3c3b;
}

/* 🌞 Modo “sonando” */
.music-btn.playing {
  background: linear-gradient(90deg, #ff76aa, #ff76aa);
  box-shadow: 0 0 20px #b8708b, 0 0 40px #b8708b;
  animation: spinGlow 4s linear infinite;
}

/* ✨ Animación de rotación suave */
@keyframes spinGlow {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 25px #b8708b, 0 0 50px #b8708b;
  }

  100% {
    transform: rotate(360deg) scale(1);
    box-shadow: 0 0 20px #b8708b, 0 0 40px #b8708b;
  }
}

/* 🌊 Ondas musicales que salen del botón */
.music-btn.playing::before,
.music-btn.playing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 2px solid #2d2322;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  animation: soundWaves 2.2s ease-out infinite;
  pointer-events: none;
}

.music-btn.playing::after {
  animation-delay: 1.1s;
}

/* 🔁 Efecto de expansión de las ondas */
@keyframes soundWaves {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}


/* 🌺 Estilos base para ambos botones */
.btn-action {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 50px;
  padding: 10px 10px;
  font-family: 'Waltograph', sans-serif;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

}

/* 🌈 Efecto general al pasar el mouse */
.btn-action:hover {
  transform: translateY(-3px) scale(1.05);
}

/* 📍 UBICACIÓN (azul tropical con pulso de radar) */
.location-btn {
  background: linear-gradient(90deg, #4ed0de, #5bd4e0);
}

.location-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.location-btn:hover::before {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 1;
  animation: pulseRadar 1.5s ease-out infinite;
}

@keyframes pulseRadar {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* 🔗 COMPARTIR (rosa brillante con destello que cruza) */
.share-btn {
  background: linear-gradient(90deg, #f77eb5, #ffb3d2);
}

.share-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75px;
  width: 50px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  transform: skewX(-20deg);
  filter: blur(6px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.3s;
}

.share-btn:hover::before {
  transform: translateX(300px) skewX(-20deg);
  opacity: 1;
}

/* 🌸 Ajustes de fila de botones */
.buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* 🌺 BOTÓN VOLVER ARRIBA */
.scroll-top-btn {
  position: fixed;
  bottom: 85px;
  /* justo arriba del botón de música */
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, #47d1df, #78e3f2);
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: linear-gradient(90deg, #78e3f2, #78e3f2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.scroll-top-btn i {
  font-size: 22px;
  color: #fff;
}

/* ===== Modal de Video ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-content {
  position: relative;
  max-width: 90%;
  width: 640px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-content video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.close-video {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #78e3f2;
  color: white;
  border: none;
  font-size: 22px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* 🎥 MODAL DE VIDEOS */
#modalVideos {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#modalVideos .modal-content {
  background: none;
  border: none;
  box-shadow: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 🔹 Contenedor interno centrado */
#modalVideos .lb-inner {
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
}

/* 🎬 Video activo — ocupa pantalla, centrado */
#contenedorVideos video {
  display: none;
  width: auto;
  height: 80vh;
  max-width: 90vw;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  background: #000;
}

#contenedorVideos video.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 🔹 Flechas navegación */
#modalVideos .lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ff69b4;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0px 15px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

#modalVideos .lb-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

#modalVideos #prevVidBtn {
  left: 10px;
}

#modalVideos #nextVidBtn {
  right: 10px;
}


/* 🔹 Botón cerrar dentro de imagen o video */
#modalGaleria .lb-close,
#modalVideos .lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff69b4;
  color: white;
  border: none;
  font-size: 22px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

#modalGaleria .lb-close:hover,
#modalVideos .lb-close:hover {
  background: #ff85c2;
  transform: scale(1.1);
}

/* Asegura que el contenedor sea la referencia de posicionamiento */
#modalGaleria .lb-inner,
#modalVideos .lb-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔹 Contador */
#modalVideos .lb-counter {
  color: white;
  position: absolute;
  bottom: 100px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 16px;
}

/* 🔹 Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 🎨 Modal Galería (igual estilo que el de videos) */
#modalGaleria {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 99998;
}

#modalGaleria .lb-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 🔹 Imagen activa centrada */
#contenedorImagenes img {
  display: none;
  width: auto;
  height: 80vh;
  max-width: 90vw;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  background: #000;
}

#contenedorImagenes img.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 🔹 Flechas navegación */
#modalGaleria .lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ff69b4;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0px 15px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

#modalGaleria .lb-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

#modalGaleria #prevImgBtn {
  left: 10px;
}

#modalGaleria #nextImgBtn {
  right: 10px;
}

/* 🔹 Contador inferior */
#modalGaleria .lb-counter {
  color: white;
  position: absolute;
  bottom: 80px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.foto-box {
  position: relative;
}

.foto-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.btn-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, .7);
  border: none;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.modal-galeria {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  text-align: center;
}

.modal-content {
  text-align: center;
}

#modalImagen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Muestra todo sin cortar */
  max-width: none;
  max-height: none;
}

.zoom-activo {
  transform: scale(1.7);
}

.modal-prev,
.modal-next,
.modal-close {
  position: absolute;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  color: white;
}

.modal-prev {
  left: 20px;
  top: 50%;
}

.modal-next {
  right: 20px;
  top: 50%;
}

.modal-close {
  right: 20px;
  top: 20px;
  z-index: 999999;
}





.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  height: 12px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 0.2s ease;
}

.progress-barvideo {
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 20px;
  transition: width 0.2s ease;
}

.btn-eliminar-galeria {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-eliminar-galeria:hover {
  background: rgba(255, 0, 0, 0.7);
  transform: scale(1.15);
}

.btn-eliminar-modal {
  position: absolute;

  left: 30%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 16px;
  z-index: 10000;
  transition: background .25s, transform .25s;
}

/* 🔥 hover DESACTIVADO POR DEFAULT */
.btn-eliminar-modal.hover-activo:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: translateX(-50%) scale(1.05);
}




.modal-msg {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  padding: 10px 20px;
  border-radius: 20px;

  font-size: 15px;
  opacity: 0;

  transition: opacity .3s ease-in-out;
  pointer-events: none;
  z-index: 99999;
}


/* Ocultar el input real */
.custom-file-upload input[type="file"] {
  display: none;
}

/* Botón personalizado */
.custom-file-upload {

  padding: 12px 25px;
  border-radius: 30px;

  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  display: inline-block;
  transition: 0.2s ease;
  font-family: 'Waltograph', sans-serif;
}

.custom-file-upload:hover {
  transform: scale(1.05);

}

/* Texto del archivo seleccionado */
#file-name {
  margin-left: 10px;
  font-weight: bold;
  color: #ffffff;
}


.galeria-videos video {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* Modal */
.modal-video {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
}

.modal-video video {
  width: 90%;
  max-height: 60vh;
  margin: 60px auto 20px;
  display: block;
}

/* Botón eliminar video */
.btn-eliminar-video {

  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 20px;
  font-size: 16px;
  z-index: 999999;
}



.btn-ver-todos {
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 20px;
  background: #00f9ff;
  color: #000;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.btn-ver-todos:hover {
  transform: scale(1.05);
}

.modal-video-completo {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  text-align: center;
}

#videoFullPlayer {
  width: 100%;

  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  /* o cover si quieres que recorte */
  border-radius: 0;
  /* opcional */
  margin: 0;
  padding: 0;
}

/* Flechas */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding: 5px 15px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.modal-prev {
  left: 10px;
}

.modal-next {
  right: 10px;
}


.msg-videos {
  text-align: center;
  color: #ff76aa;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s ease;
  font-size: 20px;
}

.estilo1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-block-start: 20px;
}

.modal-contador {
  color: #ffffff;
  float: right;
  margin: 5px;
}

.txt-video-msg {

  margin-top: 8px;
  font-size: 14px;
  color: white;
  text-align: center;
  opacity: 0.8;
}

.video-wrapper {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  display: block;
  pointer-events: none;
  /* 👈 Esto permite que el click sea del wrapper */
}

.video-thumb {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  background: #000;
}