/* ==========================================================================
   1. VARIABLES Y RESET
   ========================================================================== */
:root {
  --bg-color: #0B1B13;
  --bg-panel: rgba(11, 27, 19, 0.85);
  --text-main: #ffffff;
  --text-muted: #d7ebd7;
  --accent-neon: #39FF14;
  --accent-orange: #FF6B35;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Syne', sans-serif;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: var(--font-primary);
  background: var(--bg-color);
  color: var(--text-muted);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   2. CAPA DE DECORACIONES (Ajustada para monitores)
   ========================================================================== */
.decorations-wrapper {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; /* Permite hacer clic a través de las imágenes */
  z-index: 1; /* Queda detrás del contenido principal */
  overflow: hidden; /* Corta lo que quede por fuera de la pantalla */
}

/* Brillo ambiental ligero */
.decorations-wrapper::before {
  content: '';
  position: absolute;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, rgba(0,0,0,0) 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.decor-element { position: absolute; opacity: 0.9; }

.vine-top { top: -20px; left: -20px; width: 380px; max-width: 35vw; }

/* Enredaderas más abajo para que no toquen al jaguar ni la info de arriba */
.vine-left { top: 65%; left: -30px; width: 320px; max-width: 24vw; }
.vine-right { top: 70%; right: -30px; width: 320px; max-width: 24vw; transform: scaleX(-1); }

.guacamaya { top: 20px; right: 2%; width: 320px; max-width: 28vw; }

/* Jaguar hundido para que asome la cabeza pero no estorbe */
.jaguar { bottom: -120px; left: 0%; width: 380px; max-width: 30vw; }


/* ==========================================================================
   3. CONTENEDOR PRINCIPAL Y HEADER
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 10; /* Siempre por encima de las decoraciones */
  width: 100%;
  max-width: 700px;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 36px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.logo-container { margin-bottom: 20px; }
.logo { max-width: 240px; height: auto; background: var(--text-main); padding: 15px; border-radius: 20px; }
.title { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.slogan { font-style: italic; font-size: 1.3rem; color: var(--accent-neon); margin-bottom: 25px; }
.description { font-size: 1.1rem; line-height: 1.6; margin-bottom: 35px; }


/* ==========================================================================
   4. RELOJ MUNDIAL
   ========================================================================== */
.world-clock-box {
  margin: -20px auto 30px auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 20px;
  padding: 15px 20px;
}
.clock-date { font-size: 0.9rem; font-weight: 600; color: var(--accent-neon); text-transform: capitalize; margin-bottom: 12px; }
.clock-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 15px; }
.clock-city { display: flex; flex-direction: column; align-items: center; }
.city-name { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #a5d6a7; font-weight: 700; }
.city-time { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-top: 4px; }


/* ==========================================================================
   5. REPRODUCTOR DE AUDIO
   ========================================================================== */
.player-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 24px;
  padding: 30px;
  margin: 0 auto 35px auto;
  max-width: 400px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.status-indicator { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-main); font-size: 1.1rem; }
.live-dot { width: 12px; height: 12px; background-color: var(--accent-orange); border-radius: 50%; box-shadow: 0 0 8px var(--accent-orange); }

.play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-neon); border: none;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; box-shadow: 0 8px 25px rgba(57, 255, 20, 0.3);
  transition: transform 0.2s ease;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { width: 35px; height: 35px; fill: var(--bg-color); margin-left: 4px; }

.volume-control { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: center; }
.volume-icon { width: 20px; height: 20px; fill: var(--accent-neon); }
.volume-slider { -webkit-appearance: none; width: 60%; height: 6px; border-radius: 3px; background: #1a3320; outline: none; cursor: pointer; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-neon); cursor: pointer; }


/* ==========================================================================
   6. PETICIONES WHATSAPP
   ========================================================================== */
.request-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(57, 255, 20, 0.4);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.request-box:hover { border-color: rgba(57, 255, 20, 0.7); background: rgba(255, 255, 255, 0.06); }
.request-title { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.request-desc { font-size: 0.95rem; color: #a5d6a7; margin-bottom: 5px; }

.btn-request {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; 
  color: var(--bg-color);
  font-weight: 700; font-size: 1rem;
  padding: 12px 24px; border-radius: 24px; text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-request:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }


/* ==========================================================================
   7. CÁPSULAS CULTURALES
   ========================================================================== */
.podcasts-section {
  background: rgba(12, 22, 12, 0.6);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.podcasts-header {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-neon);
  margin-bottom: 16px;
}
.podcast-list { display: flex; flex-direction: column; gap: 12px; }
.podcast-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.podcast-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(57, 255, 20, 0.3);
}
.podcast-info { flex: 1; }
.podcast-title { font-size: 0.98rem; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.podcast-duration { font-size: 0.82rem; color: #81c784; }
.podcast-audio { height: 32px; max-width: 220px; outline: none; }


/* ==========================================================================
   8. REDES SOCIALES, WHATSAPP Y TOAST
   ========================================================================== */
.social-section {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.social-links { display: flex; justify-content: center; gap: 15px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--accent-neon); text-decoration: none; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-btn:hover { background: var(--accent-neon); color: var(--bg-color); transform: translateY(-3px); }
.social-btn svg { width: 24px; height: 24px; fill: currentColor; }

.whatsapp-image-container {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-top: 10px;
}
.whatsapp-image-container:hover { transform: scale(1.05); }
.whatsapp-image-container img {
  max-width: 240px; 
  height: auto; 
  display: block; 
  border-radius: 8px;
}

.toast-notification {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--accent-neon); color: var(--bg-color);
  padding: 10px 22px; border-radius: 20px; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999; pointer-events: none; opacity: 0;
}
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }


/* ==========================================================================
   9. OPTIMIZACIÓN EXTREMA MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
  .main-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0d1e15 !important;
    padding: 30px 18px;
  }
  
  .decorations-wrapper { display: none !important; } /* Ocultar en móviles para evitar caídas de fotogramas (lag) */
  
  .title { font-size: 2.1rem; }
  .slogan { font-size: 1rem; margin-bottom: 15px; }
  .description { font-size: 0.95rem; margin-bottom: 25px; }
  
  .world-clock-box { padding: 12px; margin-top: 0; }
  .clock-grid { gap: 8px; }
  .play-btn { width: 70px; height: 70px; }
  .request-title { font-size: 1rem; }

  .podcast-item { flex-direction: column; align-items: flex-start; }
  .podcast-audio { width: 100%; max-width: 100%; }
}