/* Formulario */
#contacto {
  background-color: #e9f0ff;
  padding: 3rem 1rem;
  border-radius: 25px;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#contacto h3 {
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--primary-color);
  text-align: center;
}

#contacto .form-control {
  border-radius: 12px;
  border: 1.8px solid var(--primary-color);
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
}

#contacto .form-control:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 8px var(--primary-hover);
  outline: none;
}

#contacto button.btn {
  width: 100%;
  font-weight: 700;
  padding: 12px 0;
  font-size: 1.25rem;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

#contacto button.btn:hover,
#contacto button.btn:focus {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 32px rgba(13, 76, 255, 0.6);
  outline: none;
}

:root {
  --primary-color: #000000;
  --primary-hover: #084cdf;
  --secondary: #4a90e2;
  --light: #f5f5f5;
  --dark: #000;
  --accent: #4a9af5;
  --background-gradient: linear-gradient(135deg, #4a9af5 0%, #abf3e2 50%, #ffffff 100%);
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

header.hero {
  background: url("assets/header-image.png") center/cover no-repeat;
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

header .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

header .btn {
  background-color: #ffffff;
  color: #084cdf;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header .btn:hover {
  background-color: #084cdf;
  color: white;
}

.hero-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 20px;
}




.hero-content {
  z-index: 1;
}



/* Navbar */
nav.navbar {
  background-color: rgba(255 255 255 / 0.95);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 1030;
}

nav.navbar.scrolled {
  background-color: white;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary-hover);
}

/* Header Hero */

header h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

header p {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  max-width: 720px;
  margin-bottom: 2rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

header .btn {
  font-size: 1.25rem;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255 255 255 / 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header .btn:hover,
header .btn:focus {
  background-color: #063ec9;
  box-shadow: 0 8px 32px rgba(255 255 255 / 0.5);
  color: white;
  outline: none;
}

section {
  padding: 60px 20px;
}

/* Icon boxes: con icono + texto */
.icon-box {
  text-align: center;
  padding: 25px 20px;
  border-radius: 15px;
  background: rgba(255 255 255 / 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icon-box i {
  font-size: 48px;
  color: #0d6efd;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.3);
}

.icon-box:hover i {
  color: #084cdf;
}

/* Carrusel opiniones centrado */
#testimonios {
  background: linear-gradient(135deg, #d9e8ff, #f5faff);
  padding: 80px 20px;
  color: #333;
}

#testimonios h2 {
  margin-bottom: 40px;
  font-weight: 700;
}

.carousel-inner {
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.25rem;
  color: #444;
}

.carousel-item .testimonial-author {
  margin-top: 15px;
  font-weight: 600;
  font-size: 1rem;
  color: #0d6efd;
}

.carousel-control-prev,
.carousel-control-next {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
  width: 2.5rem;
  height: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 110, 253, 0.8);
  /* azul Bootstrap, no blanco */
  border-radius: 50%;
  opacity: 1;
  border: none;
  color: #fff;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carousel-control-prev-icon:after {
  content: '\f053';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.carousel-control-next-icon:after {
  content: '\f054';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}


.carousel-indicators {
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

/* Otros estilos */
footer {
  background: #f8f9fa;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

/* --- INTEGRACIÓN DE ESTILOS NUEVOS --- */
body {
  font-family: "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #4a9af5 0%, #abf3e2 50%, #ffffff 100%);
}

.icon-box {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin: 15px 0;
  transition: transform 0.3s;
  box-shadow: none;
  min-height: unset;
  padding: 20px;
  display: block;
}

.icon-box:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.icon-box i {
  font-size: 40px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.transparent-carousel .carousel-item {
  background-color: transparent !important;
}

.transparent-carousel blockquote {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
}

.terreno-seccion {
  background: linear-gradient(135deg, #d9e8ff, #f5faff);
  padding: 2rem 1rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(13, 76, 255, 0.15);
  max-width: 1020px;
  margin: 3rem auto;

  display: flex;
  flex-wrap: nowrap;
  /* evitar que se envuelva */
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.terreno-textos {
  flex: 0 0 45%;
  /* ocupa 45% del ancho */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.terreno-fotos {
  flex: 0 0 45%;
  /* ocupa 45% del ancho */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.terreno-fotos img {
  width: 100%;
  /* para que las imágenes usen el ancho completo del contenedor */
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(13, 76, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.terreno-fotos img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(13, 76, 255, 0.5);
}

.terreno-textos p.fw-bold.fs-4 {
  color: #084cdf;
  margin-bottom: 0.5rem;
}

.terreno-textos p.fs-5 {
  color: #333;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .terreno-seccion {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .terreno-textos,
  .terreno-fotos {
    flex: unset;
    width: 100%;
  }
}

.contenedor-antenas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  background-color: #e9f0ff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(13, 76, 255, 0.15);
  flex-wrap: wrap;
  /* para que en pantallas pequeñas se adapte */
}

.lado-izquierdo,
.lado-derecho {
  flex: 1 1 300px;
  /* ancho mínimo 300px, crece si hay espacio */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.imagenes.fila {
  display: flex;
  gap: 1rem;
}

.imagenes.fila img,
.lado-derecho>img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13, 76, 255, 0.25);
  object-fit: cover;
}

.fw-bold.fs-4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--primary-hover, #084cdf);
}

.fs-5 {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
}

/* Responsive: en móviles apilamos verticalmente */
@media (max-width: 768px) {
  .contenedor-antenas {
    flex-direction: column;
    align-items: center;
  }

  .lado-izquierdo,
  .lado-derecho {
    flex-basis: 100%;
  }

  .imagenes.fila {
    justify-content: center;
  }

  .imagenes.fila img,
  .lado-derecho>img {
    max-width: 45vw;
  }
}

.contenedor-antenas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  background-color: #e9f0ff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(13, 76, 255, 0.15);
  flex-wrap: wrap;
  align-items: flex-start;
  /* que no se solapen verticalmente */
}

.lado-izquierdo,
.lado-derecho {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.imagenes.fila {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  /* no dejar que se apilen */
}

.imagenes.fila img {
  width: 45%;
  /* menos ancho para que no quede muy grande */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13, 76, 255, 0.25);
  object-fit: cover;
}

.lado-derecho>img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13, 76, 255, 0.25);
  object-fit: cover;
  align-self: flex-start;
  /* para evitar superposición */
}

.fw-bold.fs-4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--primary-hover, #084cdf);
}

.fs-5 {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
}

/* Responsive: en móviles apilamos verticalmente */
@media (max-width: 768px) {
  .contenedor-antenas {
    flex-direction: column;
    align-items: center;
  }

  .lado-izquierdo,
  .lado-derecho {
    flex-basis: 100%;
  }

  .imagenes.fila {
    justify-content: center;
  }

  .imagenes.fila img,
  .lado-derecho>img {
    max-width: 45vw;
    width: auto;
  }
}

.contenedor-antenas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  background-color: #e9f0ff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(13, 76, 255, 0.15);
  flex-wrap: wrap;
  align-items: flex-start;
}

.lado-izquierdo,
.lado-derecho {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.imagenes.fila {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.imagenes.fila img {
  width: 45%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13, 76, 255, 0.25);
  object-fit: cover;
}

.lado-derecho>img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13, 76, 255, 0.25);
  object-fit: cover;
  align-self: flex-start;
}

.fw-bold.fs-4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--primary-hover, #084cdf);
}

.fs-5 {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
}

/* ✅ Corrección para móviles */
@media (max-width: 768px) {
  .contenedor-antenas {
    flex-direction: column;
    align-items: center;
  }

  .lado-izquierdo,
  .lado-derecho {
    flex-basis: 100%;
    align-items: center;
    text-align: center;
  }

  .imagenes.fila {
    flex-direction: column;
    align-items: center;
  }

  .imagenes.fila img,
  .lado-derecho>img {
    width: 90%;
    max-width: 320px;
  }
}


/* 1. Animaciones generales */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicamos a textos e imágenes */
.contenedor-antenas .texto,
.contenedor-antenas img {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.contenedor-antenas .texto {
  animation-delay: 0.2s;
}

.contenedor-antenas .imagenes img:first-child {
  animation-delay: 0.4s;
}

.contenedor-antenas .imagenes img:nth-child(2) {
  animation-delay: 0.6s;
}

.lado-derecho img {
  animation-delay: 0.8s;
}

/* Efecto hover en imágenes */
.contenedor-antenas img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Solo aplicar el zoom y borde en pantallas grandes */
@media (hover: hover) {
  .contenedor-antenas img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(13, 76, 255, 0.35);
    outline: 2px solid #084cdf;
    outline-offset: 4px;
    border-radius: 14px;
  }
}