/* ==== ESTILOS BASE ==== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* Fondo degradado naranja -> amarillo suave (difuminado) */
  background: linear-gradient(135deg, #ff8a00 0%, #ffb347 40%, #ffd54a 75%, #fff9e6 100%);
  /* superponer una ligera textura sutil (opcional, usa rgba para no tapar el degradado) */
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 16px 16px, cover;
  background-attachment: fixed;
  color: #333;
}

/* ==== HEADER / NAVBAR ==== */
header {
  background: linear-gradient(135deg, #ffcb00, #ff7700);
  color: white;
  padding: 7px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.08);
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navegación */
nav {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: #ff5722;
}

/* ==== CONTENIDO PRINCIPAL ==== */
main {
  margin-top: 0.7px;
}

/* ==== SLIDER ==== */
.slider-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
  margin-bottom: -20px;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
}

/* ==== QUIENES SOMOS ==== */
.quienes-somos {
  padding: 20px 20px 30px;
  max-width: 1100px;
  margin: auto;
  margin-top: -30px;
}

.titulo-principal {
  text-align: center;
  color: #004080;
  font-size: 2.9rem;
  font-weight: 900;
  margin-top: 1px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
}

.subtitulo-izquierda {
  color: #ff5722;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left;
  margin-top: 50px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
  line-height: 1.3;
}

/* ==== REGIONES ==== */
.regiones {
  color: #ff5722;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  margin-top: 50px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
  line-height: 1.3;
}

/* ==== PLANES ==== */
.planes-section {
  background-color: #ff5722;
  color: white;
  padding: 30px 20px;
}

.planes-container {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

.plan {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  flex: 1 1 250px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 8px 0 rgba(255, 136, 0, 0.816);
  animation: blueGlow 0.9s ease-in-out infinite alternate;
}

@keyframes blueGlow {
  0% { box-shadow: 0 0 8px 2px rgba(255, 98, 0, 0.4); }
  100% { box-shadow: 0 0 15px 5px rgba(255, 183, 0, 0.9); }
}

/* ==== OTRAS SECCIONES ==== */
.cobertura-section,
.soporte-section,
.contacto-section {
  padding: 30px 20px;
  max-width: 1100px;
  margin: auto;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(135deg, #ffcc00da, #ff7700);
  color: white;
  padding: 20px 20px 10px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section h4 {
  margin-top: 0;
}

.footer-section a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 5px 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-section a i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-section a:hover i {
  transform: scale(1.2);
  color: tomato;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
    z-index: 1300;
  }

  nav {
    position: fixed;
    inset: 0;

    background:
      radial-gradient(
        circle at top,
        #ffb347,
        #ff8c00 55%,
        #ff6f00
      );

    backdrop-filter: blur(6px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 22px;

    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(.22,1,.36,1);
    z-index: 1200;
  }

  nav.open {
    transform: translateY(0);
  }

  nav a {
    width: 85%;
    max-width: 320px;

    text-align: center;

    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 1px;

    color: #ffffff;
    text-decoration: none;

    padding: 16px 0;
    border-radius: 999px;

    background: rgba(255,255,255,0.18);
    box-shadow:
      0 8px 22px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.35);

    transition:
      transform 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease;
  }

  nav a:hover {
    transform: scale(1.08);
    background: rgba(255,255,255,0.32);
    box-shadow:
      0 12px 30px rgba(0,0,0,0.25),
      inset 0 1px 0 rgba(255,255,255,0.45);
  }

  nav a:active {
    transform: scale(0.96);
  }

  header {
    flex-wrap: nowrap;
  }

}


/* ==== REGIONES CON ANIMACIÓN ==== */
.regiones-section {
  padding: 30px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.regiones-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.region {
  background-color: #004080;
  color: white;
  padding: 67px;
  border-radius: 15px;
  cursor: pointer;
  flex: 1 1 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.region-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ==== LISTAS PROVINCIAS ==== */
.provincias-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
  width: 80%;
  text-align: center;
  transform: translateY(-10px);
  transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

.provincias-list.visible {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 15px;
}

.provincias-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.provincias-list li {
  padding: 6px 0;
  font-size: 1.1em;
  border-bottom: 1px solid #ddd;
  animation: fadeIn 0.6s ease;
}

.provincia-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 8px 15px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.provincia-bubble:hover {
  background: #25D366;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.provincia-bubble i {
  color: #25D366;
  transition: color 0.3s;
  font-size: 1.2rem;
}

.provincia-bubble:hover i {
  color: #fff;
}

/* ==== GOOGLE MAPS ==== */
.mapa-container {
  display: block;
  margin-top: 20px;
  opacity: 1;
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==== CARRUSEL HORIZONTAL ==== */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-images {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
  display: block;
  height: auto;
  object-fit: cover;
}

/* ==== SLIDER PRINCIPAL OPTIMIZADO ==== */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider .slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider .slide.active {
  opacity: 1;
}
 
/* ============================
   FONDO GENERAL
============================ */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at center, #f69051 0%, #dead19 100%);
  min-height: 100vh;
}