/* ===================================== */
/* 1. VARIABLES Y CONFIGURACIÓN BASE     */
/* ===================================== */
:root {
  /* Colores principales */
  --color-primary: #255e9c;
  --color-secondary: #1a4171;
  --color-text: #333;
  --color-light: #fff;
  --color-gray: #f5f5f5;
  --color-whatsapp: #25D366;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(37,94,156,0.06);
  --shadow-md: 0 0 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 2px 15px rgba(0,0,0,0.1);
  
  /* Bordes */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  
  /* Transiciones */
  --transition-default: all 0.3s ease;
}

/* ===================================== */
/* 2. ESTILOS BASE Y RESET              */
/* ===================================== */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-gray);
  color: var(--color-text);
  overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

/* ===================================== */
/* 3. UTILIDADES Y HELPERS              */
/* ===================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

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

/* ===================================== */
/* 4. COMPONENTES                       */
/* ===================================== */

/* 4.1 Header y Navegación */
.header {
  background-color: transparent;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-default);
}

/* 4.2 Botones */
.btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-default);
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

/* 4.3 WhatsApp */
.whatsapp-menu-icon {
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================== */
/* 5. SECCIONES                         */
/* ===================================== */

/* 5.1 Hero */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
}

/* 5.2 Sobre Nosotros */
.sobre-nosotros {
  background-color: var(--color-light);
  padding: var(--spacing-lg) var(--spacing-sm);
}

/* 5.3 Servicios */
.servicios {
  padding: var(--spacing-lg) var(--spacing-sm);
  background-color: var(--color-light);
}

/* 5.4 Testimonios */
.testimonios {
  padding: var(--spacing-lg) var(--spacing-sm);
  background-color: var(--color-light);
}

/* 5.5 Contacto */
.contacto {
  padding: var(--spacing-lg) var(--spacing-sm);
  background-color: var(--color-light);
}

/* ===================================== */
/* 6. MEDIA QUERIES                     */
/* ===================================== */

/* ===================================== */
/* 6. MEDIA QUERIES RESPONSIVE           */
/* ===================================== */

/* Estilos para MacBook Pro y pantallas grandes (Base) */
/* No se necesita media query, son los estilos por defecto */

/* Estilos para iPad Air y tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sobre-nosotros-flex {
    gap: 2rem;
  }
}

/* Estilos para iPhone 14 y móviles (max-width: 768px) */
@media (max-width: 768px) {
  .header {
    top: 0; /* El topbar se oculta, el header sube */
    padding: 0.8rem 1rem;
  }
  .header .container {
    flex-direction: row; /* Mantiene logo y whatsapp en linea */
    justify-content: space-between;
  }
  .topbar {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 90%;
    max-width: 300px;
  }
  .sobre-nosotros-flex {
    flex-direction: column;
    text-align: center;
  }
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .contacto-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .contacto-col {
    width: 100%;
  }
  .botones-formulario {
    justify-content: center;
  }
  .footer-container, .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  .whatsapp-header {
    display: none !important; /* Oculto en móvil como se pidió */
  }
}

/* Ajustes específicos para el layout del header en móvil */
@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }
}

/* ===================================== */
/* BARRA SUPERIOR NEGRA (TOPBAR)         */
/* ===================================== */
.topbar {
  background-color: #000;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  transition: top 0.3s ease;
}
.topbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-right a {
  color: #fff;
  margin-left: 18px;
  text-decoration: none;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-right a:hover {
  color: #255e9c;
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .topbar-container {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
}

/* ===================================== */
/* ENCABEZADO (HEADER)                   */
/* ===================================== */
.header {
  background-color: transparent;
  padding: 1rem 2rem;
  position: fixed;
  top: 2.2rem; /* espacio para topbar */
  width: 100%;
  box-shadow: none;
  z-index: 1000;
  transition: all 0.3s ease;
}
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logos */
.logo-img { height: 60px; display: none; }
.logo-white { display: block; }
.header.scrolled .logo-white { display: none; }
.header.scrolled .logo-blue  { display: block; }
/* Menú */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-list a:hover { color: #e3f2fd; }
/* Botón hamburguesa */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
@media (max-width: 768px) {
  .hamburger { display: none; }
  .nav {
    display: block; /* Asegura que el menú siempre esté visible */
    width: 100%;
  }
  .nav-list {
    flex-direction: column;
    padding-top: 1rem;
  }
  .nav-list a {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
  }
  .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-img { height: 50px; }
}

/* ===================================== */
/* HEADER AL HACER SCROLL                */
/* ===================================== */
.header.scrolled {
  top: 0;
  background-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header.scrolled .nav-list a { color: #000; }
.header.scrolled .nav-list a:hover { color: #255e9c; }

/* ===================================== */
/* HERO PRINCIPAL                        */
/* ===================================== */
.hero {
  background-image: url('../assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
}
.hero-overlay {
  background-color: rgba(0,0,0,0.3);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}
.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
  letter-spacing: -1px;
}
.hero-content p {
  font-size: 1.35rem;
  color: #e3f2fd;
  margin-bottom: 2.2rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn-primary {
  background-color: #255e9c;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(37,94,156,0.12);
}
.btn-primary:hover {
  background-color: #1a4171;
}
.btn-secondary {
  background-color: #fff;
  color: #255e9c;
  border: 2px solid #255e9c;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(37,94,156,0.08);
}
.btn-secondary:hover {
  background-color: #e3f2fd;
  color: #1a4171;
}
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.3;
    margin: 0 auto 1rem auto;
    width: 100%;
  }
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    align-items: center;
  }
  .btn-primary,
  .btn-secondary {
    width: auto;
    min-width: 180px;
    max-width: 90vw;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
  }
}

/* ===================================== */
/* SOBRE NOSOTROS (HUBSPOT STYLE)        */
/* ===================================== */
.sobre-nosotros {
  background-color: #fff;
  padding: 1.2rem 1rem;
}
.sobre-nosotros h2 {
  text-align: center;
  color: #255e9c;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.sobre-nosotros-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* Menos espacio entre imagen y texto */
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}
.sobre-nosotros .texto {
  flex: 1 1 500px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}
.sobre-nosotros .imagen {
  flex: 1 1 400px;
  text-align: center;
}
.sobre-nosotros .imagen img {
  width: 100%;
  max-width: 280px; /* Imagen más pequeña */
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  margin: 0 auto;
  display: block;
}
@media (max-width: 768px) {
  .sobre-nosotros {
    padding: 0 0.5rem 2rem 0.5rem; /* Eliminar padding superior, mantener inferior */
  }
  .sobre-nosotros h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem; /* Reducir margen inferior del título */
    text-align: center;
  }
  .sobre-nosotros-flex {
    display: block; /* Cambiar a block para eliminar espaciado de flexbox */
    text-align: center;
  }
  .sobre-nosotros .texto {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0; /* Eliminar margen inferior */
    padding-bottom: 0; /* Eliminar padding inferior */
    width: 100%;
    max-width: 400px;
    height: fit-content; /* Ajustar altura al contenido */
  }
  .sobre-nosotros .texto p {
    margin-bottom: 0; /* Eliminar margen del párrafo */
  }
  .sobre-nosotros .imagen img {
    max-width: 140px;
    margin: 1.5rem auto 0 auto; /* Añadir margen superior para separar del texto */
    display: block;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
  }
}

/* ===================================== */
/* SECCIÓN SERVICIOS (CUADRÍCULA 3×2)    */
/* ===================================== */
.servicios {
  padding: 1.2rem 1rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.servicios h2 {
  text-align: center;
  color: #255e9c;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.servicios .container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  justify-content: center;
  width: 100%;
}
.servicio {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.servicio:hover {
  transform: translateY(-5px);
}
.servicio img {
  display: block;
  margin: 0 auto 1rem auto;
  width: 80px;
  height: 80px;
}
.servicio h3 {
  margin-bottom: 0.5rem;
  color: #255e9c;
}
.servicio p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ===================================== */
/* NAV BAR ESTILOS ACTUALIZADOS Y CENTRADO */
/* ===================================== */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 0 auto;
  padding: 0;
  font-size: 0.9rem;
}
.nav-list a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 5px;
  transition: color 0.3s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #255e9c;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header.scrolled .nav-list a {
  color: #000;
}
.header.scrolled .nav-list a:hover::after {
  background-color: #255e9c;
}

/* ===================================== */
/* BOTÓN WHATSAPP EMERGENTE              */
/* ===================================== */
.whatsapp-fixed {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2000;
  background-color: #25D366;
  color: white;
  padding: 0.7rem;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Estructura de header en tres columnas === */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Centrado del menú */
.header-center {
  display: flex;
  justify-content: center;
}
.header-center .nav-list {
  justify-content: center;
}

/* Botón de WhatsApp al lado derecho */
.whatsapp-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 1.5rem;
  margin-left: auto;
  position: relative;
}
.whatsapp-button span {
  position: absolute;
  top: 100%;
  font-size: 0.7rem;
  width: 120px;
  color: #255e9c;
  background: transparent;
  text-align: center;
  margin-top: 0.4rem;
}

/* ===================================== */
/* BOTÓN WHATSAPP + LEYENDA EN HEADER    */
/* ===================================== */
.whatsapp-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.whatsapp-menu-icon:hover {
  transform: scale(1.1);
}
.whatsapp-label {
  font-size: 0.75rem;
  font-weight: bold;
  color: #255e9c;
  line-height: 1.1;
  text-align: left;
}

/* ===================================== */
/* TEXTO WHATSAPP EN BLANCO AL INICIO   */
/* ===================================== */
.header:not(.scrolled) .whatsapp-label {
  color: white !important;
}

/* ===================================== */
/* BLOQUES CORREGIDOS WHATSAPP ICONO Y TEXTO */
/* ===================================== */
.whatsapp-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  animation: pulse 1.5s infinite;
}
.whatsapp-menu-icon:hover {
  transform: scale(1.1);
}
.whatsapp-label {
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  color: #255e9c;
}
.whatsapp-label:hover {
  text-decoration: none;
}

/* Animación */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}


/* ===================================== */
/* SECCIÓN TESTIMONIOS / CLIENTES        */
/* ===================================== */
.testimonios {
  padding: 1.2rem 1rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonios h2 {
  text-align: center;
  color: #255e9c;
  font-size: 2rem;
  margin-bottom: 2rem;
}


.testimonios p {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}


/* ===================================== */
/* GALERÍA DE LOGOTIPOS DE CLIENTES      */
/* ===================================== */
.clientes-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.clientes-logos img {
  height: 106px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.clientes-logos img:hover {
  transform: scale(1.1);
}


.logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-caption {
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: #888;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  max-width: 160px;
}

.logo-item:hover 
.logo-caption {
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: #888;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  max-width: 160px;
}



.logo-item:hover .logo-caption {
  opacity: 1;
  transform: translateY(0);
}


/* ===================================== */
/* SECCIÓN CONTACTO FINAL CORREGIDA      */
/* ===================================== */
.contacto {
  padding: 3rem 1rem;
  background-color: #fff;
}
.contacto-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.contacto-texto {
  width: 48%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-imagen {
  width: 48%;
  text-align: right;
}

.contacto-imagen img {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  box-shadow: 0 0 16px rgba(0,0,0,0.07);
  margin: 0 auto;
  display: block;
}

@media (max-width: 900px) {
  .contacto-container {
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .contacto-texto,
  .contacto-imagen {
    width: 100%;
    text-align: center;
  }
  .contacto-imagen img {
    max-width: 220px;
    margin-bottom: 0.5rem;
  }
}


/* ===================================== */
/* FORMULARIO DE CONTACTO                */
/* ===================================== */
.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  background: #f7fafd;
  padding: 1.2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.04);
}

.formulario-contacto input,
.formulario-contacto textarea {
  border: 1px solid #bcdff1;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  border: 1.5px solid #255e9c;
  outline: none;
}

.formulario-contacto button {
  align-self: flex-end;
  padding: 0.7rem 1.5rem;
  background-color: #255e9c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario-contacto button:hover {
  background-color: #1a4171;
}


.contacto-container {
  margin: 0 auto;
}


.contacto-leyenda {
  font-size: 1rem;
  color: #444;
  margin-top: 0.5rem;
}


/* ===================================== */
/* BOTONES DEL FORMULARIO DE CONTACTO   */
/* ===================================== */
.botones-formulario {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
}


/* ===================================== */
/* BOTÓN WHATSAPP ESTILO ENCABEZADO      */
/* ===================================== */
.btn-whatsapp-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}
.btn-whatsapp-icon .icono {
  background-color: #25D366;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.btn-whatsapp-icon .icono i {
  font-size: 18px;
}
.btn-whatsapp-icon .texto {
  color: #255e9c;
  white-space: nowrap;
}

.btn-whatsapp-icon .icono {
  transition: transform 0.3s ease;
}
.btn-whatsapp-icon:hover .icono {
  transform: scale(1.1);
}


/* ===================================== */
/* PIE DE PÁGINA                         */
/* ===================================== */
.footer {
  background-color: #255e9c;
  color: #fff;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  text-decoration: underline;
}
.footer-text {
  color: #fff;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}
.footer-icon {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.footer-icon:hover {
  transform: scale(1.1);
}


/* --- Responsive Servicios y Testimonios --- */

/* Servicios grid: desktop */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Testimonios logos: desktop */
.clientes-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.logo-item {
  width: 180px;
  text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-item {
    width: 140px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .servicio {
    margin: 0 auto;
    max-width: 350px;
  }
  .clientes-logos {
    gap: 1rem;
  }
  .logo-item {
    width: 100px;
  }
  .sobre-nosotros-flex {
    flex-direction: column;
    align-items: center;
  }
  .contacto-container {
    flex-direction: column;
    align-items: center;
  }
  .contacto-col {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Imágenes responsivas */
.servicio img,
.logo-item img,
.contacto-imagen img,
.sobre-nosotros .imagen img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  /* Oculta menú y hamburguesa */
  .nav,
  .nav-list,
  .hamburger {
    display: none !important;
  }

  /* Centra el botón de WhatsApp en el header */
  .whatsapp-header {
    width: 100%;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex !important;
  }
  /* Opcional: agranda el botón para mejor visibilidad */
  .whatsapp-menu-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }
  .whatsapp-label {
    font-size: 1rem;
    margin-left: 0.5rem;
  }
}

/* ===================================== */
/* LISTA DE CLIENTES (NUEVO ESTILO)    */
/* ===================================== */
.clientes-lista {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0 auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cliente-info {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alinea todo a la izquierda */
  background: #f7fafd;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 8px rgba(37,94,156,0.06);
  font-size: 1rem;
  color: #255e9c;
  gap: 1rem;
}

.cliente-icono {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(37,94,156,0.08);
  flex-shrink: 0;
}

.cliente-info strong {
  font-size: 1.08rem;
  color: #1a4171;
}

.cliente-info span {
  display: block;
  color: #444;
  font-size: 0.97rem;
  margin-top: 0.3rem;
}

/* ===================================== */
/* PRELOADER                             */
/* ===================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 150px;
  animation: pulse-loader 1.5s infinite;
}

@keyframes pulse-loader {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .clientes-lista {
    max-width: 98vw;
    gap: 0.8rem;
  }
  .cliente-info {
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 0.7rem;
    font-size: 0.97rem;
    gap: 0.7rem;
  }
  .cliente-icono {
    width: 36px;
    height: 36px;
  }
}
