/* Fuente base */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Encabezado */
header {
  background-color: #0d1b2a;
}

header h1 {
  font-size: 1.8rem;
  font-weight: bold;
}

header .nav-link {
  font-weight: 500;
  transition: color 0.3s;
}

header .nav-link:hover {
  color: #00b4d8;
}
html {
  scroll-padding-top: 100px; /* Ajusta según la altura real de tu header */
}


/* Sección Inicio 
//#inicio {
  background: linear-gradient(to right, #0077b6, #00b4d8);
  color: white;
  padding: 4rem 0;
}*/

#inicio h2 {
  font-size: 2rem;
  font-weight: bold;
}

.titulo-seccion {
  color: #053E7A;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

/* Línea decorativa */
.titulo-seccion::after {
  content: "";
  width: 70px;
  height: 4px;
  background: #053E7A;
  display: block;
  margin-top: 6px;
}

.text-center.titulo-seccion::after {
  margin-left: auto;
  margin-right: auto;
}


/* Servicios */
.servicios-bg {
  background: #ebf1fa; /* gris muy suave */
}

.servicio-bloque {
  padding: 20px 10px;
  transition: transform 0.3s ease;
}

.servicio-bloque:hover {
  transform: translateY(-6px);
}

.servicio-icono {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #053E7A; /* azul base */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.servicio-bloque:hover .servicio-icono {
  background: #ff7a00; /* naranja */
  box-shadow: 0 8px 20px rgba(255,122,0,0.35);
}

.servicio-icono i {
  color: #fff;
  font-size: 1.4rem;
}

.servicio-bloque h5 {
  color: #053E7A;
  font-weight: 700;
  margin-bottom: 6px;
}

.servicio-bloque p {
  font-size: 0.9rem;
  color: #555;
}



/* TARJETAS */
.card-plan {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transition: .25s ease;
  padding-bottom: 25px;
  min-height: 520px;
  position: relative;
}

.card-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

/* HEADER */
.card-header {
  padding: 35px 25px;
  text-align: center;
}

.suave-azul {
  background: linear-gradient(to bottom, rgba(5,62,122,0.25), rgba(255,255,255,0.35));
}

.suave-naranja {
  background: linear-gradient(to bottom, rgba(255,122,0,0.35), rgba(255,255,255,0.35));
}

.card-header h3 {
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #053E7A;
}

.precio {
  font-size: 2.3rem;
  font-weight: 900;
  color: #053E7A;
}

.precio span {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 4px;
}

.iva {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #444;
}

#mapa-cobertura {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
}

}
.cobertura-bg {
  background: #f6f8fb; /* mismo gris suave */
}

.nota-cobertura {
  font-size: 0.85rem;
  color: #777;
}

/* Leyenda */
.leyenda {
  font-size: 0.9rem;
  color: #444;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.fibra {
  background: #ff7a00;
}

.dot.antena {
  background: #053E7A; 
}
.pin {
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--color);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

.pin::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 13px solid var(--color);
}

.pin .icono {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin .icono img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45));
}
/* Cluster mediano */
.marker-cluster-medium {
  background-color: rgba(5, 62, 122, 0.6);
}
.marker-cluster-medium div {
  background-color: rgba(5, 62, 122, 0.9);
}
.btn-tpc {
  background-color: #053E7A;
  color: #fff;
}
.btn-tpc:hover {
  background-color: #042f5c;
  color: #fff;
}


/* LISTA */

.lista {
  list-style: none;
  padding: 20px 30px;
  margin: 0;
}

.lista li {
  margin: 10px 0;
  font-size: 0.97rem;
  color: #333;
}

.lista li b {
  color: #053E7A;
}
.lista li::before {
  content: "✔";
  color: #FF7A00;
  margin-right: 8px;
  font-weight: bold;
}


/* BOTÓN */
.btn-info {
  background: #FF7A00;
  border: none;
  color: #fff;
  width: 85%;
  margin: 0 auto;
  display: block;
  padding: 12px 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: 0.25s;
  margin-top: 10px;
}

.btn-info:hover {
  background: #e86c00;
}
.link-ift {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #606060;
  margin-top: 6px;
  text-decoration: underline;
}

.link-ift:hover {
  color: #053E7A;
}

.ift-num {
  font-size: 0.7rem;
  color: #8a8a8a;
}



/* POPULAR */
.popular {
  border: 3px solid #FF7A00;
}

.etiqueta-popular {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #FF7A00;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
}
.btn-info {
  background: #FF7A00;
  border: none;
  color: #fff;
  width: 85%;
  margin: 0 auto;
  display: block;
  padding: 12px 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: 0.25s;
  margin-top: 10px;
  text-align: center;
  text-decoration: none; /* quita subrayado */
}

.zona-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Accordion zonas - color unificado */
/* Estado normal (cerrado) */
.zona-btn {
  background-color: #f1f3f6 !important; /* gris claro */
  color: #053E7A !important;           /* tu azul */
  font-weight: 600;
  border: none;
}

/* Hover */
.zona-btn:hover {
  background-color: #e6eaf0 !important;
}

/* Activo (abierto) */
.accordion-button:not(.collapsed).zona-btn {
  background-color: #053E7A !important;
  color: #fff !important;
  box-shadow: none;
}

/* Flecha */
.accordion-button::after {
  filter: brightness(0) invert(1);
}

/* Bordes del accordion */
.accordion-item {
  border: none;
  border-radius: 8px;
  overflow: hidden;
}



/* Nosotros */
.titulo-nosotros {
  color: #053E7A;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
}

.titulo-nosotros::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #053E7A;
  display: block;
  margin-top: 6px;
}

.texto-nosotros {
  text-align: justify;
  color: #444;
  font-size: 0.95rem;
}

.contador {
  color: #053E7A;
  font-weight: 800;
  font-size: 1.8rem;
}

.contador-suf {
  margin-left: 2px;
}


.bloque-nosotros {
  padding: 10px 0;
}

.icono-nosotros {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.icono-nosotros i {
  color: #fff;
  font-size: 1.1rem;
}

.bloque-nosotros h5 {
  color: #053E7A;
  font-weight: 700;
  margin-bottom: 4px;
}

.bloque-nosotros p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}




/* Contacto */
#contacto form {
  max-width: 600px;
  margin: auto;
}

#contacto h2 {
  color: #0d1b2a;
}

/* AOS efectos suaves */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

/* Responsivo: para móviles */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  #inicio h2 {
    font-size: 1.5rem;
  }
}
.inicio-seccion {
  position: relative;
  background-image: url('./img/fondo.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-shadow: 1px 1px 4px black;
}

.inicio-seccion::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);  /* <<< desenfoque real */
  -webkit-backdrop-filter: blur(4px); /* soporte en Safari */
  z-index: 1;
}


.inicio-seccion .container {
  position: relative;
  z-index: 2;
}


.overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem;
  background-color: rgba(0, 0, 0, 0.4); /* oscurece un poco el fondo para que el texto se lea mejor */
  border-radius: 10px;
}
.error {
    color: #d90429;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: block;
  }

  #formulario-contacto input,
  #formulario-contacto textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  #formulario-contacto button {
    background-color: #0d1b2a;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }

  #formulario-contacto button:hover {
    background-color: #00b4d8;
  }
  .contacto-contenido {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.formulario-contacto, .info-contacto {
  flex: 1 1 300px;
}

.info-contacto h3 {
  color: #0077b6;
  margin-bottom: 1rem;
}

.info-contacto p {
  margin: 0.5rem 0;
}

.carousel-inner {
  height: 400px; /* Puedes ajustar la altura */
}

.carousel-inner img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.galeria {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.galeria h2 {
  font-weight: bold;
  margin-bottom: 40px;
}
.img-thumbnail {
  object-fit: cover;
  height: 250px;
  width: 100%;
  transition: transform 0.3s;
}
.img-thumbnail:hover {
  transform: scale(1.03);
}


/* Móviles */
@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }
}
.img-nosotros {
  max-height: 400px;      /* Limita la altura */
  width: 100%;            /* Que ocupe el ancho del contenedor */
  object-fit: cover;      /* Recorta sin deformar */
  object-position: center;
  display: block;         /* Evita espacios extra */
}
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 180px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1rem;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.flip-card-front {
  background-color: #f8f9fa;
}

.flip-card-back {
  background-color: #00b4d8;
  color: white;
  transform: rotateY(180deg);
}
