/* Estilo General */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #a8dadc;
  --light-color: #f1faee;
  --dark-color: #457b9d;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom, var(--secondary-color), var(--dark-color));
  color: #333;
  padding-top: 76px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.section-title {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Navbar General */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--secondary-color) !important;
  padding: 10px 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--light-color) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header con gradiente y efectos */
.header-container {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
  border-radius: 15px;
  padding: 15px;
  margin: 20px auto;
  max-width: 95%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-gif {
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo-gif:hover {
  transform: scale(1.03);
}

/* Contenedor de Contenido Central */
.content-container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.display-4 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.lead {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
}

.wiphala-img {
  max-width: 300px;
  margin-bottom: 20px;
}

/* Botones mejorados */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c1121f;
  border-color: #c1121f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(198, 18, 31, 0.3);
}

/* Carrusel mejorado con altura fija */
.carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 500px; /* Altura fija para el carrusel */
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Esto hace que la imagen cubra el espacio sin deformarse */
}

.carousel-control-prev, .carousel-control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  opacity: 0.9;
}

/* Sección de videos */
.video-section {
  background: linear-gradient(to right, var(--secondary-color), var(--dark-color));
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  color: white;
  text-align: center;
}

.video-navigation .btn-nav {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.video-navigation .btn-nav:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.wiphala-bottom {
  max-width: 250px;
  margin-top: 20px;
}

/* Footer mejorado */
footer {
  background: linear-gradient(to right, #1a1a2e, #16213e) !important;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: 50px;
}

.footer-title {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.contact-info li {
  transition: transform 0.3s ease;
  padding: 5px 0;
}

.contact-info li:hover {
  transform: translateX(5px);
}

.contact-info i {
  color: var(--accent-color);
  width: 25px;
}

.social-buttons .btn {
   border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
  border-width: 2px;
  font-weight: 500;
}

.social-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Color específico para TikTok al hacer hover */
.btn-outline-dark:hover {
  background-color: #000000;
  border-color: #000000;
  color: white;
}

.btn-outline-dark {
  border-color: #ffffff;
  color: #ffffff;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-instagram {
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 500;
  background: transparent;
  color: #cc2366 !important;   /* tono oscuro del gradiente */
  border: 2px solid #cc2366;   /* borde oscuro */
  transition: all 0.3s ease;
}

.btn-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #bc1888;       /* borde coincide con el gradiente */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(204, 35, 102, 0.5);
  color: white !important;
}

/* Botón Threads con fondo transparente */
.btn-threads {
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 500;
  background: transparent;
  color: #ffffff !important;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-threads:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: #ffffff !important;
}

/* Botón YouTube con fondo transparente */
.btn-youtube {
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 500;
  background: transparent;
  color: #ff0000 !important;
  border: 2px solid #ff0000;
  transition: all 0.3s ease;
}

.btn-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
  color: #ffffff !important;
}

/* Radio player mejorado */
.radio-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(145deg, var(--secondary-color), var(--dark-color));
  padding: 15px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  max-width: 350px;
  transition: all 0.3s ease;
}

.radio-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.radio-title {
  color: white;
  font-weight: 600;
  margin-right: 15px;
  white-space: nowrap;
  font-size: 0.9rem;
}

audio {
  border-radius: 30px;
  height: 40px;
  width: 100%;
  min-width: 200px;
}

/* Personalización del reproductor de audio */
audio::-webkit-media-controls-panel {
  background: linear-gradient(to right, var(--secondary-color), var(--dark-color));
}

audio::-webkit-media-controls-play-button {
  background-color: var(--primary-color);
  border-radius: 50%;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: white;
}

/* Efectos de nieve mejorados */
@keyframes snowflakes-fall {
  0% { top: -10% }
  100% { top: 100% }
}

@keyframes snowflakes-shake {
  0%, 100% { transform: translateX(0) }
  50% { transform: translateX(80px) }
}

.snowflake {
  color: #fff;
  font-size: 1.5em;
  position: fixed;
  top: -10%;
  z-index: 9999;
  user-select: none;
  cursor: default;
  animation-name: snowflakes-fall, snowflakes-shake;
  animation-duration: 10s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-play-state: running, running;
}

/* Clima Container */
#climaContainer {
  font-size: 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#climaContainer h4 {
  margin-bottom: 5px;
  color: var(--accent-color);
}

#climaContainer p {
  margin: 2px 0;
  line-height: 1.1;
}

/* Responsividad mejorada */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-gif {
    margin-bottom: 15px;
  }
  
  .radio-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    border-radius: 15px;
    flex-direction: column;
    text-align: center;
  }
  
  .radio-title {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .content-container {
    padding: 20px 15px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
    
  /* Carrusel responsive */
  .carousel {
    height: 350px; /* Altura menor en dispositivos móviles */
  }
  
  audio {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .carousel {
    height: 300px; /* Altura aún menor en pantallas muy pequeñas */
  }
  
  .radio-container {
    padding: 10px 15px;
  }
  
  .radio-title {
    font-size: 0.9rem;
  }
}