:root {
  --azul-principal: #0a3a6b;
  --azul-secundario: #1380c3;
  --azul-degradado: linear-gradient(135deg, #0a3a6b, #1380c3);
  --gris-fondo: #f5f7fa;
  --texto: #333;
}

/* ======== RESET Y BASE ======== */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Parkinsans', sans-serif;
  background-color: var(--gris-fondo);
  color: var(--texto);
}

/* ======== NAVBAR ======== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--azul-degradado);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 3px;
}

nav ul li a:hover,
nav ul li a.active {
  color: #aee1ff;
  border-bottom: 2px solid #aee1ff;
}

/* ======== SLIDER (INDEX) ======== */
/* Recuperado: Esto hace funcionar tu carrusel de imágenes */
.slider {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  margin-top: 60px; /* Para que no lo tape el navbar */
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeInDown 1s ease;
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: fadeInUp 1s ease;
}

.slider-controls {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active,
.dot:hover {
  background: #25D366;
}

/* ======== BOTONES Y GENERAL ======== */
.btn-whatsapp {
  background-color: #25d366;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1rem;
  display: inline-block;
}

.btn-whatsapp:hover {
  background-color: #1ebc5b;
}

section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: var(--azul-principal);
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  width: 60%;
  height: 4px;
  background: var(--azul-secundario);
  position: absolute;
  bottom: -10px;
  left: 20%;
  border-radius: 2px;
}

/* --- QUIÉNES SOMOS --- */
.quienes-somos {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.quienes-somos h2 {
  font-size: 2.2rem;
  color: #1e1e1e;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 1px;
}

.quienes-contenido p {
  text-align: justify;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 40px;
}

.valores {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.valor {
  flex: 1 1 400px;
  padding: 25px 30px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.valor h3 {
  font-size: 1.4rem;
  color: #0a74da;
  margin-bottom: 15px;
}

.valor p {
  text-align: justify;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* ======== SERVICIOS (2x2 HORIZONTAL) ======== */
/* Diseño ancho y horizontal para escritorio */
.servicios-seccion {
  padding: 100px 2%;
  max-width: 1500px;
  background: #f8f9fc;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 40px;
  grid-auto-rows: 1fr;
}

.servicio-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.servicio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.servicio-item img {
  width: 25%; 
  object-fit: cover;
}

.servicio-texto {
  padding: 30px;
  text-align: left; 
  width: 75%; 
  display: flex;
  flex-direction: column; 
}

.servicio-texto h3 {
  color: #0a3a6b;
  font-size: 1.6rem;
  margin: 0 0 10px 0; 
}

.servicio-texto p {
  color: #333;
  line-height: 1.7;
  text-align: justify;
  margin: 0 0 20px 0; 
}

.btn-servicio {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: flex-start; 
  margin-top: auto; 
}

.btn-servicio:hover {
  background: #1ebc59;
}

/* ======== EMPRESAS ======== */
#empresas {
  padding: 80px 20px;
  text-align: center;
  background: none;
  color: #222;
}

#empresas h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.empresas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: center;
}

.empresa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empresa-item img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.empresa-item img:hover {
  transform: scale(1.05);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.empresa-item p {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  color: #444;
}

/* ======== CONTACTO ======== */
.contacto {
  background: var(--azul-degradado);
  color: white;
  padding: 80px 20px;
  border-radius: 20px;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(40px);
}

.contacto h2 {
  color: #fff; /* Título blanco en esta sección */
}

.contacto h2::after {
  background: rgba(255,255,255,0.5); /* Línea blanca */
}

.contacto p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.contacto-info {
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 10px;
}

.contacto-info .icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.contacto-info a.btn-whatsapp {
  margin-top: 25px;
  align-self: flex-start;
}

.contacto-mapa iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  /* CAMBIO AQUÍ: De azul a negro (#111) */
  background: #111; 
  /* Color del texto claro */
  color: #f5f5f5; 
  padding: 40px 20px 10px;
  font-size: 0.9rem;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.footer-logo,
.footer-contacto,
.footer-redes {
  flex: 1 1 250px;
  text-align: justify;
}

.footer-logo {
  text-align: justify;
}

.footer-logo img {
  width: 80px;
  display: block;
  margin: 0 auto 10px;
}

.footer-logo h3 {
  margin-bottom: 5px;
  color: #25D366;
  font-weight: 700;
  text-align: center;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
  text-align: justify;
}

.footer-contacto h4,
.footer-redes h4 {
  color: #25D366;
  margin-bottom: 10px;
  text-align: center;
}

.footer-contacto p {
  margin: 5px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
  text-align: justify;
}

.footer-contacto .btn-whatsapp {
  background: #25D366;
  color: #fff;
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.footer-contacto .btn-whatsapp:hover {
  background: #1ebe5b;
}

/* --- FOOTER REDES (DISEÑO NUEVO) --- */
.footer-redes {
  text-align: center;
}

/* Texto de invitación */
.redes-intro {
  font-size: 1.05rem;
  color: #ccc; 
  margin: 15px 0 25px 0; 
}

.redes-icons {
  display: flex;
  justify-content: center;
  gap: 35px; /* Espacio más amplio */
  margin-top: 10px;
}

.redes-icons img {
  width: 60px; /* Iconos GRANDES */
  height: 60px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); /* Sombra sutil */
}

.redes-icons a:hover img {
  transform: scale(1.15) translateY(-5px); /* Efecto rebote */
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 10px;
  font-size: 0.85rem;
  color: #bbb;
}
/* --- FOOTER REDES (Mejorado) --- */
.footer-redes {
  text-align: center;
}

.redes-intro {
  font-size: 1.05rem;
  color: #ccc; 
  margin: 15px 0 25px 0; 
}

.redes-icons {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 10px;
}

.redes-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.redes-icons a:hover img {
  transform: scale(1.15) translateY(-5px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 10px;
  font-size: 0.85rem;
  color: #bbb;
}

/* ======== WHATSAPP FLOTA & ANIMACIONES ======== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebc5b;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================== */
/* RESPONSIVE (MÓVIL)               */
/* ========================================== */
@media (max-width: 900px) {
  
  /* Navbar más ajustado */
  nav {
    padding: 12px 20px;
    flex-wrap: wrap; 
  }
  
  nav ul {
    gap: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Slider */
  .slider {
    height: 50vh; /* Más pequeño en móvil */
  }
  .slide-content h1 {
    font-size: 1.8rem;
  }

  /* Servicios: De 2 columnas a 1 columna */
  .servicios-grid {
    grid-template-columns: 1fr; 
  }

  /* Tarjeta de Servicio: De Horizontal a Vertical */
  .servicio-item {
    flex-direction: column;
    height: auto;
  }

  /* Imagen del servicio ocupa todo el ancho */
  .servicio-item img {
    width: 100%;
    height: 220px;
  }

  /* Texto del servicio ocupa todo el ancho */
  .servicio-texto {
    width: 100%;
    padding: 25px;
    text-align: center;
  }

  /* Botón centrado en móvil */
  .btn-servicio {
    align-self: center;
    margin-top: 15px;
  }

  /* Contacto en columna */
  .contacto-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contacto-info { text-align: center; align-items: center; }
  .contacto-info a.btn-whatsapp { align-self: center; }

  /* Footer en columna */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo,
  .footer-contacto,
  .footer-redes {
    text-align: center;
  }

  .footer-logo p,
  .footer-contacto p {
    text-align: center;
  }
}