/* ════════════════════════════
   EFECTO 3D EN CARDS DE NIVELES
════════════════════════════ */
.nivel-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.nivel-card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(240,165,0,0.25);
}

/* ════════════════════════════
   COVERFLOW 3D EN MODAL NIVELES
════════════════════════════ */
.coverflow-wrap {
  position: relative;
  height: 280px;
  perspective: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  width: 100%;
}

.coverflow-slide {
  position: absolute;
  width: 55%;
  max-width: 360px;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1),
              opacity 0.5s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.coverflow-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.coverflow-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(10,25,70,0.92) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Flechas */
.carrusel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(10,25,70,0.85);
  border: 1px solid rgba(240,165,0,0.35);
  color: #fff; font-size: 1.6rem; line-height: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  z-index: 20; font-family: inherit;
  backdrop-filter: blur(8px);
}
.carrusel-btn:hover {
  background: rgba(240,165,0,0.25);
  border-color: rgba(240,165,0,0.7);
  transform: translateY(-50%) scale(1.1);
}
.carrusel-prev { left: 8px; }
.carrusel-next { right: 8px; }

/* Puntos */
.carrusel-puntos {
  display: flex; justify-content: center; gap: 7px; margin-top: 14px;
}
.carrusel-punto {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; transition: all 0.2s; padding: 0;
}
.carrusel-punto.activo {
  background: #F0A500; border-color: #F0A500;
  width: 22px; border-radius: 4px;
}

.carrusel-counter {
  text-align: center; font-size: 0.78rem;
  color: rgba(255,255,255,0.45); font-weight: 700;
  margin-top: 8px; letter-spacing: 0.5px;
}

/* Foto única sin carrusel */
.nivel-foto-unica {
  position: relative; border-radius: 16px; overflow: hidden;
}
.nivel-foto-unica img {
  width: 100%; max-height: 360px; object-fit: cover; display: block;
}

@media (max-width: 600px) {
  .coverflow-wrap { height: 220px; }
  .coverflow-slide { width: 70%; }
  .coverflow-slide img { height: 180px; }
}

/* ════════════════════════════
   EFECTO ARCO DORADO EN BANNER
════════════════════════════ */
.banner-content h2 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  overflow: visible !important;
  height: 80px;
}

.banner-letra {
  display: inline-block;
  opacity: 0;
  color: #F0A500;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  animation: letraAparece 0.4s forwards;
  transform-origin: bottom center;
  text-shadow: 0 2px 12px rgba(240,165,0,0.35);
}

.banner-espacio {
  display: inline-block;
  width: 0.35em;
}

@keyframes letraAparece {
  0%   { opacity: 0; transform: translateY(10px) scale(0.8); }
  100% { opacity: 1; transform: translateY(var(--arco-y, 0px)) scale(1); }
}

@media (max-width: 600px) {
  .carrusel-slide img { height: 200px; }
  .carrusel-btn { width: 36px; height: 36px; font-size: 1.4rem; }
  .carrusel-wrap { max-width: 100%; }
  .banner-letra { font-size: 1.1rem; }
  .banner-content h2 { height: 60px; }
}

/* ════════════════════════════
   ACTIVIDADES — TEXTO RECORTADO Y VER MÁS
════════════════════════════ */
.actividad-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-ver-mas {
  color: #F0A500;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.3px;
  transition: letter-spacing 0.2s;
}
.actividad-card:hover .act-ver-mas {
  letter-spacing: 1px;
}

/* ════════════════════════════
   EFECTO SHIMMER EN BANNERS
════════════════════════════ */
.banner-shimmer {
  background: linear-gradient(
    90deg,
    #a86200 0%,
    #F0A500 30%,
    #fffbe0 50%,
    #F0A500 70%,
    #a86200 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-move 3s linear infinite;
}

@keyframes shimmer-move {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ════════════════════════════
   MODAL DETALLE — LAYOUT FOTO + TEXTO
════════════════════════════ */
#modal-actividad-detalle .nivel-modal {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#act-detalle-imagen-wrap {
  display: flex !important;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 0 !important;
}

#act-detalle-imagen {
  width: 260px !important;
  height: 300px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  flex-shrink: 0;
}

.act-detalle-contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

@media (max-width: 600px) {
  #act-detalle-imagen-wrap {
    flex-direction: column;
    overflow: hidden;
  }
  #act-detalle-imagen {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 12px !important;
    display: block !important;
  }
  #act-detalle-titulo,
  #act-detalle-titulo2 {
    font-size: 1.1rem !important;
  }
  #act-detalle-desc,
  #act-detalle-desc2 {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }
  #modal-actividad-detalle .nivel-modal {
    padding: 1.2rem !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .nivel-modal-cerrar {
    top: 0.8rem !important;
    right: 0.8rem !important;
  }
}

@media (max-width: 600px) {
  .nivel-modal-overlay {
    padding: 0.5rem !important;
  }
  .nivel-modal {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 16px !important;
  }
}

/* ════════════════════════════════
   NOTIFICACIÓN DE NUEVO ANUNCIO
════════════════════════════════ */
.notif-anuncio-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 25, 64, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.notif-anuncio-overlay.activo {
  display: flex;
  animation: notifFadeIn 0.4s ease;
}
@keyframes notifFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.notif-anuncio-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, var(--azul3), var(--azul-dark));
  border: 2px solid var(--dorado);
  border-radius: 20px;
  padding: 2.2rem 1.8rem 1.6rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(240, 165, 0, 0.35), var(--sombra);
  animation: notifPop 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes notifPop {
  from { transform: scale(0.8) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.notif-anuncio-cerrar {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--texto2);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.notif-anuncio-cerrar:hover { color: var(--dorado); }
.notif-anuncio-icono {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  min-width: 56px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #fff !important;
  padding: 6px !important;
  box-shadow: 0 0 0 3px rgba(240,165,0,0.4) !important;
  animation: notifBounce 1.4s ease-in-out infinite;
}
@keyframes notifBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-6px) rotate(-6deg); }
  75%      { transform: translateY(-2px) rotate(6deg); }
}
.notif-anuncio-badge {
  display: inline-block;
  margin: 0.8rem 0 0.6rem;
  padding: 0.3rem 0.9rem;
  background: rgba(240,165,0,0.15);
  border: 1px solid var(--dorado);
  color: var(--dorado3);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  animation: notifParpadeo 1.6s ease-in-out infinite;
}
@keyframes notifParpadeo {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.notif-anuncio-titulo {
  font-family: 'Playfair Display', serif;
  color: var(--blanco);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.notif-anuncio-desc {
  color: var(--texto2);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.notif-anuncio-detalles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.9rem;
  color: var(--dorado2);
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}
.notif-anuncio-barra {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.notif-anuncio-progreso {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--dorado), var(--dorado2));
}
@media (max-width: 600px) {
  .notif-anuncio-card { padding: 1.8rem 1.2rem 1.3rem; }
}
