/* Estilos generales */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #111, #000);
  color: #eaeaea;
  scroll-behavior: smooth;
}

/* Contenedor principal */
main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background-color: #121212;
  border-radius: 15px;
  box-shadow: 0 0 20px #ff8c00;
}

/* Encabezado */
header {
  background-color: #0a0a0a;
  padding: 20px 0;
  box-shadow: 0 2px 10px #ff8c00;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
  color: #ff8c00;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 0 0 12px #ff8c00;
}

/* Navegación */
nav {
  margin-top: 15px;
  text-align: center;
}
nav button {
  background-color: #ff8c00;
  color: #0a0a0a;
  border: none;
  margin: 10px 15px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #ff8c00;
  text-transform: uppercase;
  letter-spacing: 1px;
}
nav button:hover,
nav button:focus {
  background-color: #ffaa40;
  color: #1a1a1a;
  box-shadow: 0 0 18px #ffaa40;
  outline: none;
}

/* Secciones */
section {
  margin: 50px 0;
  padding: 20px;
  border-bottom: 2px solid #ff8c00;
  border-radius: 0 0 30px 30px;
}

/* Títulos de sección */
section h2 {
  font-size: 2rem;
  color: #ff8c00;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #ff8c00;
  letter-spacing: 2px;
}

/* Párrafos */
section p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #dcdcdc;
  text-align: center;
}

/* Imágenes - TAMAÑO REDUCIDO */
section img {
  display: block;
  margin: 25px auto 0;
  max-width: 60%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 18px #ff8c00;
  transition: transform 0.3s ease;
}
section img:hover,
section img:focus {
  transform: scale(1.05);
  box-shadow: 0 0 28px #ffaa40;
  outline: none;
}

/* Video - TAMAÑO REDUCIDO */
section video {
  display: block;
  margin: 25px auto;
  border-radius: 15px;
  max-width: 70%;
  max-height: 350px;
  box-shadow: 0 0 22px #ff8c00;
}

/* Swiper slider - CORREGIDO PARA EVITAR SOBRANTES */
.swiper-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 50px;
  border-radius: 15px;
  overflow: hidden; /* IMPORTANTE: Evita que las imágenes se salgan */
  box-shadow: 0 0 35px #ff8c00;
  background: #1a1a1a;
  position: relative; /* Para contener elementos absolutos */
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Asegura que ocupe todo el ancho */
  height: 350px; /* Altura fija del contenedor */
  overflow: hidden; /* Evita desbordamiento */
}

.swiper-slide img {
  width: 100%; /* Ocupa todo el ancho del slide */
  height: 100%; /* Ocupa toda la altura del slide */
  object-fit: cover; /* Recorta manteniendo proporción */
  object-position: center; /* Centra la imagen */
  border-radius: 0; /* Sin bordes para que llene completamente */
  transition: transform 0.3s ease;
  display: block;
}

.swiper-slide img:hover,
.swiper-slide img:focus {
  transform: scale(1.05);
}

/* Swiper navigation - MEJORADO */
.swiper-button-next,
.swiper-button-prev {
  color: #ff8c00 !important;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-top: -22px;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #ffaa40 !important;
  background: rgba(0, 0, 0, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Swiper pagination - MEJORADO */
.swiper-pagination {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.swiper-pagination-bullet {
  background: #ff8c00;
  opacity: 0.6;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffaa40;
  box-shadow: 0 0 12px #ffaa40;
  transform: scale(1.2);
}

/* Contenedor responsive para Google Maps - CORREGIDO TAMAÑO */
.map-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* Ancho máximo del contenedor */
  height: 450px; /* Altura fija más grande */
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 0 20px #ff8c00;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Ocultar controles en #quienes-somos */
#quienes-somos .swiper-button-next,
#quienes-somos .swiper-button-prev,
#quienes-somos .swiper-pagination {
  display: none !important;
}

/* Responsivo */
@media (max-width: 768px) {
  nav button {
    font-size: 0.9rem;
    padding: 10px 20px;
    margin: 6px 10px;
  }
  main {
    padding: 15px;
  }
  section h2 {
    font-size: 1.5rem;
  }
  section p {
    font-size: 1rem;
    max-width: 95%;
  }
  
  /* Imágenes en móvil */
  section img {
    max-width: 80%;
    max-height: 250px;
  }
  
  /* Video en móvil */
  section video {
    max-width: 90%;
    max-height: 280px;
  }
  
  /* Swiper en móvil - CORREGIDO */
  .swiper-container {
    max-width: 100%;
  }
  
  .swiper-slide {
    height: 250px; /* Altura reducida en móvil */
  }
  
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Mapa más pequeño en móvil */
  .map-container {
    height: 300px;
    margin: 20px auto;
  }
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 0 8px #25D366;
  transition: all 0.3s ease;
  font-weight: bold;
}
.btn-whatsapp:hover {
  background-color: #1ebe57;
  box-shadow: 0 0 12px #1ebe57;
}
