/* Reset ligero */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #333;
}



/* Encabezado */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main-nav a:hover {
  color: #32f1ce;
}

/* Hero */
.hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-section .highlight {
  background-color: #32f1ce;
  color: #000;
  padding: 0 5px;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* About */
/* ====== ESTRUCTURA GENERAL ====== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== SECCIÓN ABOUT ====== */
.about-section {
  padding: 60px 0;
  background-color: #fff;
}
.content-wrapper {
  display: flex; /* Habilita Flexbox para alinear elementos horizontalmente */
  flex-direction: row; /* Asegura que los elementos se coloquen en fila */
  align-items: center; /* Centra verticalmente los elementos dentro del wrapper */
  justify-content: space-around; /* Distribuye el espacio entre los elementos */
  gap: 20px; /* Espacio entre el texto y la imagen */
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.text-wrapper {
  flex: 1; /* Permite que el texto ocupe el espacio disponible */
  min-width: 300px; /* Ancho mínimo para el texto antes de envolver */
  padding: 20px; /* Espaciado interno para el texto */
}

.image-wrapper {
  flex: 1; /* Permite que la imagen ocupe el espacio disponible */
  min-width: 300px; /* Ancho mínimo para la imagen antes de envolver */
  display: flex; /* Para centrar la imagen dentro de su wrapper si es necesario */
  justify-content: center; /* Centra horizontalmente la imagen */
  align-items: center; /* Centra verticalmente la imagen */
}

.image-wrapper img {
  max-width: 100%; /* Asegura que la imagen no desborde su contenedor */
  height: auto; /* Mantiene la proporción de la imagen */
  display: block; /* Elimina espacio extra debajo de la imagen */
  border-radius: 8px; /* Opcional: para bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Opcional: para una sombra sutil */
}

/* Media query para pantallas más pequeñas, si quieres que se apilen verticalmente */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column; /* Apila los elementos verticalmente en pantallas pequeñas */
  }
  .text-wrapper,
  .image-wrapper {
    min-width: unset; /* Quita el ancho mínimo para que ocupe todo el ancho disponible */
    width: 100%; /* Ocupa todo el ancho */
  }
}

/* ====== RESPONSIVIDAD ====== */

/* 📱 Teléfonos */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .text-wrapper,
  .image-wrapper {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .text-wrapper p {
    font-size: 1em;
  }

  .text-wrapper p strong {
    font-size: 1.2em;
  }
}

/* 💻 Tablets medianas */
@media (max-width: 1024px) {
  .content-wrapper {
    gap: 20px;
  }

  .text-wrapper {
    flex: 1 1 60%;
  }

  .image-wrapper {
    flex: 1 1 40%;
  }
}


/* Estilos para las tarjetas: ALINEACIÓN HORIZONTAL (Flexbox) */
.services-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.service-card {
    /* Distribución en 3 columnas responsivas */
    flex: 1 1 300px;
    max-width: 350px;
    
    /* Estilos visuales de la tarjeta */
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para el texto de la lista: ALINEACIÓN A LA IZQUIERDA Y FUENTE MÁS PEQUEÑA */
.service-card .details-list {
    text-align: left; /* Alinea el contenido de la lista a la izquierda */
    padding-left: 0;
    margin-top: 15px;
}

/* Reducción del tamaño de fuente */
.service-card .details-list p,
.service-card .details-list ul {
    font-size: 0.8em; /* Fuente más pequeña (90% del tamaño base) */
    margin: 0;
}

/* Estilo para la frase introductoria de la lista */
.service-card .details-list p {
    font-weight: bold; 
    margin-bottom: 5px;
}

/* Estilos de la lista */
.service-card .details-list ul {
    list-style-position: inside;
    padding-left: 0; 
}


/* Adaptación para Móviles */
@media (max-width: 900px) {
    .services-grid {
        flex-direction: column; 
        align-items: center; 
    }

    .service-card {
        flex: auto;
        width: 90%; 
        margin-bottom: 20px;
    }
}

/* Contact */
.contact-section {
  padding: 60px 0;
  text-align: center;
}

.contact-section a {
  color: #32f1ce;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #fafafa;
  padding: 40px 0;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

.site-footer a {
  color: #32f1ce;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== Modal ===== */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Contenido del modal */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Botón cerrar */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Botón para abrir el modal */
.btn-news {
  background-color: #32f1ce;
  color: #000;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-news:hover {
  background-color: #27cdae;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


.clientes-section {
  padding: 60px 20px;
  background-color: #f9fafc;
  text-align: center;
}

.clientes-title {
  font-size: 2rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 40px;
}

.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cliente img {
  width: 120px;
  max-width: 100%;
  height: auto;
  filter: grayscale(20%);
  transition: all 0.3s ease-in-out;
}

.cliente img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.services-section {
  padding: 80px 20px;
  background-color: #f8f9fb;
  text-align: center;
}

.services-title {
  font-size: 2rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.services-subtitle {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  justify-items: center;
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #32f1ce;
  margin-bottom: 15px;
}

.features-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 50px;
  color: #333;
}

.features-title strong {
  color: #32f1ce;
  font-size: 1.3rem;
}

.features-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  color: #32f1ce;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

/* Responsive: en pantallas pequeñas se apilan verticalmente */
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    align-items: center;
  }
 
  .feature-item {
    max-width: 100%;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background-color: #20ba5a;
}

.whatsapp-float i {
  font-size: 1.5rem;
}

.anchor-target {
  scroll-margin-top: 80px;
}

html {
  scroll-behavior: smooth;
}
