/* ======== ESTILOS GLOBALES MÍNIMOS ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* El header usa Poppins, el resto de la página usará Inter (definido en Tailwind) */
body {
  font-family: "Poppins", sans-serif; 
  line-height: 1.7;
  /* --- NUEVOS estilos de SM_service.css --- */
  background-color: #ffffff; /* era var(--text-light) */
  color: #212529; /* era var(--text-dark) */
}

/* ======== NUEVO: ESTILOS GLOBALES DE SM_service.css ======== */
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 10px;
}

/* h1 es usado por la sección Hero de Tailwind, así que no lo tocamos */
/* h1, */
/* MODIFICADO: Se ha hecho más específico para no colisionar con Tailwind */
.section-title h2 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}



#cumplimiento p {
  margin-bottom: 1rem;
  color: #2c2c2c; /* era var(--text-secondary) */
}

.section-light {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title p {
  font-size: 1.15rem;
}
/* ======== / FIN NUEVOS ESTILOS GLOBALES ======== */


/* ======== HEADER ======== */
/* Estilos para el header, logo y menú (Sin cambios) */
.logo_link {
  text-decoration: none;
  color: #0070c0;
  transition: color 0.3s ease;
  font-weight: 900;
  font-size: 1em;
}
.logo_link:hover {
  color: #03a64a;
  text-decoration: none;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(to right, #0070c0, #03a64a);
  -webkit-background-clip: text;
  background-clip: text;
}

.contenedor {
  max-width: 100%;
  margin: auto;
}

.color_degradado_icsi {
  color: transparent;
  background: linear-gradient(to right, #0070c0, #03a64a);
  -webkit-background-clip: text;
  background-clip: text;
}

header {
  background-color: #1e1e1e;
  padding: 10px 20px; 
}

header .textologo {
  font-weight: 900;
  font-size: 1.8em;
}

.contenedor_logo_y_texto {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 15px; 
}

.contenedor_imagen_logo_header {
  background-image: url("../Recursos_Media/logoicsi.png");
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: right;
  width: 70px; 
  height: 50px; 
}

#menu_principal {
  display: flex; 
  gap: 15px; 
  padding: 0; 
  margin: 0; 
}

header a {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  padding: 8px 10px 4px; 
  transition: color 0.3s ease, background 0.3s ease; 
}

header a:hover {
  background: linear-gradient(to right, #0070c0, #03a64a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

header p {
  margin-bottom: 0rem;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
}

.menu-toggle-icon {
  width: 32px;
  height: 32px;
}

/* Estilos del buscador (Sin cambios) */
.searchWidget .searchBox {
  position: relative;
  max-width: 200px;
  background: #2f3640;
  border-radius: 50px;
}

.searchWidget .searchInput {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  color: white;
  font-size: 15px;
  padding: 12px 40px 12px 12px; 
}
.searchWidget .searchInput::placeholder {
  color: rgb(218, 218, 218); 
}

.searchWidget .searchButton {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%); 
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(90deg, #2af598 0%, #009efd 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.searchWidget .searchButton:hover {
  color: #fff;
  background-color: #1a1a1a;
  box-shadow: rgba(0, 0, 0, 0.5) 0 10px 20px;
  transform: translateY(-50%) translateY(-3px); 
}

.searchWidget .searchButton:active {
  box-shadow: none;
  transform: translateY(-50%) translateY(0); 
}

/* ----------------------WHATSAPP (Sin cambios)--------------------------------- */
.whatsapp-fab {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-chat-box {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 350px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  z-index: 1001;
  display: none; 
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.chat-header {
  background-color: #075e54;
  color: white;
  padding: 20px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.chat-header h3 {
  margin: 0;
  font-size: 18px;
}

.chat-header p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
  color: white;
}

.chat-body {
  background-color: #e5ddd5;
  padding: 20px;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAARCAYAAAA/x3RRAAABcElEQVR4nO3SQQ3AIADDsJT7d/8sB+MgjAjo22Nk65EzZ84sCMGIBTFiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWbBiARYsGLFgZMMGNkyYsWDExsAbBwMsegQ/xOQAAAAASUVORK5CYII=");
}

.welcome-message {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 90%;
}

.chat-footer {
  display: flex;
  padding: 10px;
  background-color: #f0f0f0;
}

.chat-footer input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
}

.whatsapp-chat-box .chat-footer button {
  background: #075e54; 
  border: none;
  box-shadow: none;
  padding: 0; 
  font-size: 20px; 
  font-weight: normal; 
  color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease; 
}

.whatsapp-chat-box .chat-footer button:hover {
  background-color: #128c7e;
}


/* ======== SECCIONES ANTIGUAS ELIMINADAS (HERO, OBJETIVOS, CUMPLIMIENTO) ======== */


/* ======== NUEVO: SECCIÓN CUMPLIMIENTO (de SM_service.css) ======== */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  padding-bottom: 2rem;
}

.compliance-card {
  width: 100%;
  height: 250px; /* <-- ALTO FIJO */
  position: relative;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.compliance-card .front-content {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.compliance-card .front-content p {
  font-size: 2rem;
  font-weight: 700;
  opacity: 1;
  background: #16a34a;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  color: #16a34a; /* Fallback para p */
}

.compliance-card .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left; /* Cambiado a izquierda para listas */
  gap: 10px;

  background: white;

  padding: 20px;
  line-height: 1.5;
  border-radius: 5px;
  pointer-events: none;
  transform: translateY(-96%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow-y: auto; /* Para el texto largo */
}

.compliance-card .content .heading {
  font-size: 1.5rem; /* Ajustado */
  font-weight: 600;
  text-align: center; /* Centramos el heading */
  margin-bottom: 0.125rem;
}

.compliance-card .content p,
.compliance-card .content li {
  font-size: 0.938rem; /* Texto más pequeño para que quepa */
  text-align: justify;
  color: #2c2c2c;
  margin-right: 1rem;
  margin-left: 1rem;
}
.compliance-card .content ul {
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 0;
  width: 100%; /* Aseguramos que la lista ocupe el ancho */
  list-style-type: disc; /* Aseguramos que se vean los puntos */
}

.compliance-card:hover .content {
  transform: translateY(0);
}

.compliance-card:hover .front-content {
  transform: translateY(30%);
}

.compliance-card:hover .front-content p {
  opacity: 0;
}

/* Adaptación para la card ancha (span-2) */
.compliance-card.grid-span-2 {
  aspect-ratio: 2.05 / 1; /* Hacemos que sea rectangular */
  grid-column: span 1; /* Por defecto en móvil es 1 */
}
/* ======== / FIN SECCIÓN CUMPLIMIENTO ======== */


/* ======== ANIMACIONES DE SCROLL (Sin cambios) ======== */
.animate-on-scroll {
  opacity: 0; 
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.animate-on-scroll.slide-in-up {
  transform: translateY(30px); 
}

.animate-on-scroll.is-visible {
  opacity: 1; 
  transform: translateY(0); 
}

/* ======== ACORDEÓN BENEFICIOS (Sin cambios) ======== */
.service-desc {
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}
/* La regla .benefits-section .service-item FUE ELIMINADA porque ya no es necesaria */


/* ======== FOOTER (Sin cambios) ======== */
footer {
  background-color: #e6e6e6;
  padding: 10px;
  text-align: center;
  color: #646464;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  margin-bottom: 0rem;
}

/* ======== MEDIA QUERIES (Header y nueva sección) ======== */
@media (max-width: 768px) {
  #menu_principal {
    display: none;
    flex-direction: column;
    align-items: center; 
    gap: 0px; 
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px; 
    left: 0;
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(247, 244, 244, 0.2);
    z-index: 100; 
  }

  #menu_principal.active {
    display: flex;
  }

  #menu_principal a {
    padding: 15px;
    border-bottom: 1px solid #333;
    width: 100%; 
  }
  #menu_principal form {
    padding: 15px 0; 
  }
  .menu-toggle {
    display: block;
  }

  .menu-toggle-icon {
    width: 32px; 
    height: 32px; 
  }

  .header-container {
    justify-content: space-between;
  }

  .contenedor_imagen_logo_header {
    display: none;
  }
}

/* Estilos para pantallas medianas (769px a 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
  .logo {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .contenedor_imagen_logo_header {
    display: block; 
    height: 42px; 
    width: auto;
  }
}

/* ======== NUEVO: MEDIA QUERIES PARA CUMPLIMIENTO (de SM_service.css) ======== */
@media (max-width: 991.98px) {
  /* ===== NUEVA SECCIÓN CUMPLIMIENTO (RESPONSIVE) ===== */
  .compliance-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
  }

  .compliance-card {
    aspect-ratio: 1 / 1; /* Mantenemos cuadrado */
      height: 360px; /* <-- ALTO FIJO */

  }

  /* La card ancha también será 1/1 en móvil */
  .compliance-card.grid-span-2 {
    aspect-ratio: 1 / 1;
    grid-column: span 1; /* Reseteamos el span */
  }

  .compliance-card .front-content p {
    font-size: 1.5rem;
  }
  .compliance-card .content .heading {
    font-size: 1.25rem;
  }
  .compliance-card .content p,
  .compliance-card .content li {
    font-size: 0.875rem;
  }

  /* Ajustes de h2 para móvil (de SM_service.css) */
  /* h1 se omite para no afectar el hero de tailwind */
  h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  /* ===== NUEVA SECCIÓN CUMPLIMIENTO (GRID DESKTOP) ===== */
  .compliance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .compliance-card.grid-span-2 {
    grid-column: span 2;
  }
}
/* ======== / FIN NUEVOS MEDIA QUERIES ======== */