/* ===== Estilos generales ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafc;
  color: #333;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* ===== Cabecera ===== */
header {
  background: #004aad;
  color: white;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header img {
  height: 70px;
  margin-bottom: 10px;
}

/* ===== Navegación ===== */
nav ul {
  list-style: none;
  background-color: #004aad;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: block;
  transition: background 0.3s;
}

nav ul li a:hover, .activo {
  background: #00347a;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-img, .fotoentrada {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
}

/* ===== Contenido ===== */
.contenido {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contenido h2, .contenido h3 {
  margin-top: 1.5rem;
}

.contenido p, .contenido li {
  text-align: left;
  line-height: 1.5;
}

/* ===== Información de contacto ===== */
.info-contacto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.1rem;
}

.info-contacto div {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  width: 100%;
  max-width: 600px;
}

/* ===== Botones ===== */
.boton-whatsapp {
  background-color: #25D366;
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 5px 10px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.boton-youtube {
  background-color: #FF0000;
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 5px 10px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.boton-spotify {
  background-color: #1DB954; /* Verde Spotify */
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 5px 10px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.boton-ivoox {
  background-color: #f96500; /* Naranja característico de iVoox */
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 5px 10px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.boton-volver {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 5px;
  text-decoration: none;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(90deg, #004aad, #60efff);
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== Hover común ===== */
.boton-whatsapp:hover,
.boton-youtube:hover,
.boton-spotify:hover,
.boton-ivoox:hover,
.boton-volver:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== Iconos dentro de los botones ===== */
.boton-whatsapp i,
.boton-youtube i,
.boton-spotify i,
.boton-ivoox i,
.boton-volver i {
  margin-right: 8px;
  vertical-align: middle;
  font-size: 1.2em;
}

/* ===== Iframes ===== */
iframe {
  border-radius: 12px;
  width: 100%;
  margin-top: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
footer {
  background: #004aad;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Avisos importantes (marquesina automática) ===== */
#avisos {
  background: #fff9e6;
  border: 2px solid #ffcc00;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

#avisos h2 {
  color: #cc8a00;
  margin-bottom: 1rem;
}

.avisos-marquesina {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-avisos 25s linear infinite;
  font-size: 1rem;
  color: #333;
}

.avisos-marquesina span {
  margin: 0 1.5rem;
}

/* Animación horizontal de scroll */
@keyframes scroll-avisos {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ======== 🔹 MEDIA QUERIES (RESPONSIVE) ======== */

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
  header img {
    height: 60px;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .hero-text {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .contenido {
    padding: 1.5rem;
  }

  .avisos-marquesina {
    animation-duration: 30s;
  }
}

/* Móviles (pantallas pequeñas) */
@media (max-width: 600px) {
  header {
    padding: 1rem;
  }

  header img {
    height: 50px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li a {
    padding: 0.8rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .hero-img {
    height: 200px;
  }

  .hero-text {
    position: static;
    transform: none;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0;
    width: 100%;
    padding: 1rem;
  }

  .contenido {
    padding: 1rem;
  }

  footer {
    font-size: 0.9rem;
  }

  /* Botones en columna en móvil */
  .boton-whatsapp,
  .boton-youtube,
  .boton-spotify,
  .boton-ivoox {
    width: 90%;
    margin: 8px auto;
    display: block;
  }

  .avisos-marquesina {
    font-size: 0.9rem;
    animation-duration: 35s;
  }
}

/* ===== Asistente Virtual - Botón Flotante ===== */
.asistente-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.asistente-flotante:hover {
  transform: scale(1.1);
}

.boton-asistente {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #004aad 0%, #0066dd 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.4);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.boton-asistente:hover {
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.6);
  background: linear-gradient(135deg, #0066dd 0%, #004aad 100%);
}

.boton-asistente i {
  font-size: 1.5rem;
  animation: pulse-robot 2s infinite;
}

@keyframes pulse-robot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Sección Asistente Virtual */
.asistente-seccion {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.15);
  border-left: 6px solid #004aad;
  text-align: center;
}

.asistente-seccion h2 {
  color: #004aad;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.asistente-seccion h2 i {
  font-size: 2rem;
  animation: pulse-robot 2s infinite;
}

.asistente-contenido {
  display: block;
  text-align: center;
}

.asistente-info {
  margin-bottom: 1.5rem;
}

.asistente-info p {
  color: #004aad;
  font-size: 1.05rem;
  margin: 0.5rem 0;
}

.asistente-info ul {
  list-style: none;
  padding-left: 0;
  display: none; /* Ocultar lista larga */
}

.asistente-cta {
  text-align: center;
  margin-top: 1rem;
}

.boton-asistente-grande {
  display: inline-block;
  background: linear-gradient(135deg, #004aad 0%, #0066dd 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.boton-asistente-grande:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.5);
  background: linear-gradient(135deg, #0066dd 0%, #004aad 100%);
}

.boton-asistente-grande i {
  margin-right: 10px;
  font-size: 1.3rem;
}

/* Responsive - Asistente Virtual */
@media (max-width: 992px) {
  .asistente-contenido {
    grid-template-columns: 1fr;
  }
  
  .boton-asistente {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .asistente-seccion h2 {
    color: #004aad !important;
  }
  
  .video-seccion h2 {
    color: #004aad !important;
  }
  
  .video-descripcion {
    color: #666 !important;
  }
  
  .asistente-info p {
    color: #004aad;
  }
}

@media (max-width: 600px) {
  .asistente-flotante {
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .boton-asistente {
    width: 70px;
    height: 70px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.6);
    background: linear-gradient(135deg, #004aad 0%, #0066dd 100%) !important;
    border: 4px solid white !important;
    gap: 0;
    animation: pulse-button 2s infinite;
  }
  
  .boton-asistente span {
    display: none !important;
  }
  
  .boton-asistente i {
    margin: 0 !important;
    font-size: 2.2rem !important;
    color: white;
  }
  
  .asistente-seccion {
    padding: 1.5rem 1rem;
  }
  
  .asistente-seccion h2 {
    font-size: 1.3rem !important;
    flex-direction: row !important;
    gap: 0.5rem;
    color: #004aad !important;
  }
  
  .asistente-info p {
    font-size: 0.95rem;
    color: #004aad;
  }
  
  .boton-asistente-grande {
    padding: 15px 30px;
    font-size: 1rem;
    width: 100%;
  }
  
  .video-seccion h2 {
    font-size: 1.3rem !important;
    color: #004aad !important;
    flex-direction: row !important;
  }
  
  .video-descripcion {
    color: #666 !important;
  }
}

@keyframes pulse-button {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.6);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.8);
  }
}

/* ===== Sección Video Aéreo ===== */
.video-seccion {
  background: linear-gradient(135deg, #f0f4ff 0%, #e3f2fd 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.12);
  border-left: 6px solid #004aad;
  text-align: center;
}

.video-seccion h2 {
  color: #004aad;
  margin-top: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.video-seccion h2 i {
  font-size: 2rem;
  animation: pulse-video 2s infinite;
}

@keyframes pulse-video {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.video-descripcion {
  color: #666;
  font-size: 1.1rem;
  margin: 1rem 0 2rem 0;
  font-style: italic;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* Ratio 16:9 estándar */
  max-height: 280px;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Responsive - Video */
@media (max-width: 992px) {
  .video-container {
    max-width: 300px;
    max-height: 250px;
  }
  
  .video-seccion {
    padding: 1.5rem;
  }
  
  .video-seccion h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .video-container {
    max-width: 260px;
    max-height: 220px;
    padding-bottom: 56.25%;
  }
  
  .video-seccion {
    padding: 1.2rem;
  }
  
  .video-seccion h2 {
    font-size: 1.2rem;
    flex-direction: row;
    gap: 8px;
  }
  
  .video-descripcion {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}
