/*
 * General Styles
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Aplicamos la fuente Poppins a todo el cuerpo del documento */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}


/* Estilo para la sección principal (hero) */
.hero-section {
  position: relative;
  overflow: hidden; /* Oculta las imágenes que se salen */
  /*height: 100vh; /* Para que se vea tipo portada completa */
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

/* Fondo con varias imágenes */
.background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%; /*  100% por cada una de las imagenes*/
  height: 100%;
  animation: moverSlides 20s ease-in-out infinite;
}

.slide {
  flex: 0 0 100%; /* Cada imagen ocupa 100% del ancho */
  background-size: cover;
  background-position: center;
}

/* Animación: de derecha a izquierda */
@keyframes moverSlides {
  0% {
    transform: translateX(0);
  }
  14.28% {
    transform: translateX(0);
  }

  28.56% {
    transform: translateX(-100%);
  }
  42.84% {
    transform: translateX(-100%);
  }

  57.12% {
    transform: translateX(-200%);
  }
  71.4% {
    transform: translateX(-200%);
  }

  85.68% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(-300%);
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    15,
    23,
    42,
    0.6
  ); /* Un azul muy oscuro con 60% de opacidad */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* max-width: 800px; */
  margin: 0rem auto;
  text-align: center; /* Centra el texto */
  max-width: 48rem; /* max-w-3xl = 48rem */
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 60px; /* text-4xl = 2.25rem */
  font-weight: 700; /* font-bold */
  line-height: 1; /* leading-tight */
  margin-bottom: 1rem; /* mb-4 = 16px */
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.services-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #16a34a;
  color: white;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.services-button:hover {
  background-color: #ffffff;
  transform: scale(1.05);
}

/* Estilo para la sección de servicios */
.services-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #f8fafc;
}

.services-section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.services-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #4b5563;
}

.services-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(3, 1fr);

  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  /* Añade estas propiedades para resetear el estilo del enlace */
  color: inherit; /* Hereda el color del texto de su contenedor padre */
  text-decoration: none; /* Quita el subrayado */
  display: block; /* Asegura que el enlace ocupe todo el espacio como un bloque */
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: #e5e7eb; /* Placeholder para íconos, ajusta según sea necesario */
  border-radius: 0.25rem;
}

/* Estilos para el contenedor de la imagen dentro de la tarjeta */
.service-image-container {
  width: 100%;
  height: 200px; /* Ajusta la altura de la imagen para que sea uniforme */
  overflow: hidden; /* Oculta cualquier parte de la imagen que se desborde */
  margin-bottom: 12px;
}

/* Estilos para la imagen misma */
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor sin distorsionarla */
  display: block;
  border-radius: 6px;
}

.service-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2px;
}

/* Estilo para la sección de cumplimiento normativo */
.compliance-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #1e293b;
}
.compliance-section-content {
  text-align: center;
  background-color: #1e293b;

  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.compliance-section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f4f5f7;
}

.compliance-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #f4f5f7;
}

/* Estilos para el acordeón */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 0.5rem;
}

.accordion-button {
  width: 100%;
  padding: 1.2rem;
  background-color: #1e293b;
  border: none;
  border-radius: 10px;
  border: 1.5px solid #0a0b0e;
  box-shadow: 0 0 5px #0a0b0e;

  text-align: left;
  font-size: 1.2rem;
  font-weight: 700; /* Bold text for accordion button */
  color: #ffffff; /* Darker color for bold appearance */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.accordion-button:hover {
  background-color: #e5e7eb;
}

/* Antes eran solo buton ahora son para el acordion */
/*.accordion-button {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  background: linear-gradient(to right, #0070c0, #03a64a);
  cursor: pointer;
  transition: background 0.3s ease;
}*/

.accordion-button:hover {
  background: linear-gradient(to right, #014678, #026d31);
}

.accordion-arrow {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23ffffff" stroke-width="2"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7" /%3E%3C/svg%3E');
  background-size: cover;
  transition: transform 0.3s ease;
}

.accordion-button.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #1e293b;
  padding: 0 1rem;
  border-radius: 0.25rem;
}

.accordion-content p {
  padding: 1.6rem 0;
  padding-bottom: 0rem;
  font-size: 1rem;
  color: #f4f5f7;
}

/*----------------------------------------------*/

a:hover {
  color: #03a64a;
  /*text-decoration: underline;*/
}

.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;
}

/*
 * Footer
 */
footer {
  background-color: #e6e6e6;
  padding: 10px;
  text-align: center;
  color: #646464;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/**
*HEADER 
*/

.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; /* Añade un poco de padding en la parte superior e inferior */
}

header .textologo {
  font-weight: 900;
  font-size: 1.8em;
}

.contenedor_logo_y_texto {
  display: flex; /* Mantén flex para alinear los elementos en una fila */
  align-items: center; /* Alinea verticalmente los elementos en el centro */
  justify-content: space-between; /* Añade espacio entre los elementos */
  gap: 15px; /* Espacio entre el logo y el texto */
}

.contenedor_imagen_logo_header {
  background-image: url("../Recursos_Media/logoicsi.png");
  background-size: contain; /* Ajusta la imagen para que se contenga dentro del contenedor */
  background-repeat: no-repeat;
  background-position: right;
  width: 70px; /* Ajusta el tamaño del contenedor */
  height: 50px; /* Ajusta el tamaño del contenedor */
}

#menu_principal {
  display: flex; /* Utiliza flex para alinear los enlaces en una fila */
  gap: 15px; /* Añade espacio entre los elementos */
  padding: 0; /* Elimina el padding automático */
  margin: 0; /* Elimina el margen predeterminado */
}

header a {
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  padding: 5px 10px 4px; /* Ajusta el padding para los enlaces */
  transition: color 0.3s ease, background 0.3s ease; /* Transiciones suaves para los hover */
}

header a:hover {
  background: linear-gradient(to right, #0070c0, #03a64a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-toggle {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
}

.menu-toggle-icon {
  width: 32px;
  height: 32px;
}

/*---------------------Mobile design------------------------*/
@media (max-width: 768px) {
  #menu_principal {
    display: none;
    flex-direction: column;
    align-items: center; /* <-- AÑADE ESTA LÍNEA */
  gap: 0px; /* Añade espacio entre los elementos */

    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px; /* Ajusta la posición para que no se superponga con el header */
    left: 0;
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(247, 244, 244, 0.2);
    z-index: 100; /* <-- AÑADE ESTA LÍNEA */

  }

  #menu_principal.active {
    display: flex;
  }

  #menu_principal a {
    padding: 15px;
    border-bottom: 1px solid #333;
    width: 100%; /* <-- AÑADE ESTA LÍNEA */
  }
#menu_principal form {
  padding: 15px 0; /* <-- CAMBIA 20px POR 15px para que coincida con los enlaces */
}
  .menu-toggle {
    display: block;
  }

  .menu-toggle-icon {
    width: 32px; /* Define el ancho del ícono */
    height: 32px; /* Define la altura del ícono, manteniendo la proporción */
  }

  .header-container {
    justify-content: space-between;
  }

  .contenedor_imagen_logo_header {
    display: none;
  }

  /*------------contenido de servicios--------------------------------*/
  .hero-content h1 {
    font-size: 1.875rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .services-button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .services-section h2 {
    font-size: 1.5rem;
  }

  .services-section p {
    font-size: 1rem;
  }

  .compliance-section h2 {
    font-size: 1.5rem;
  }

  .compliance-section p {
    font-size: 1rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Estilos para pantallas medianas (769px a 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
  /* Estilos para el logo en pantallas de 769px o más */
  .logo {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .contenedor_imagen_logo_header {
    display: block; /* Muestra el logo */
    height: 42px; /* Tamaño del logo */
    width: auto;
  }
}

/**-------------------------------------*/
/* todo lo que esté dentro de .searchWidget NO se verá afectado por estilos globales */

.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; /* deja espacio a la derecha (40px = ancho del botón) */
  box-sizing: border-box;
}
.searchWidget .searchInput::placeholder {
  color: rgb(218, 218, 218); /* O el color que desees */
}

.searchWidget .searchButton {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%); /* centra verticalmente */
  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;
  /* transición para animación */
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* hover effect */
.searchWidget .searchButton:hover {
  color: #fff;
  background-color: #1a1a1a;
  box-shadow: rgba(0, 0, 0, 0.5) 0 10px 20px;
  transform: translateY(-50%) translateY(-3px); /* mantiene centrado pero sube un poco */
}

/* button pressing effect */
.searchWidget .searchButton:active {
  box-shadow: none;
  transform: translateY(-50%) translateY(0); /* vuelve a su posición original */
}



/* ----------------------WHATSAPP--------------------------------------- */
/* Estilos para el botón flotante de WhatsApp */
.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;
}

/* Estilos para la ventana de chat */
.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; /* Oculto por defecto */
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Cabecera de la ventana de chat */
.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;
}

/* Cuerpo del chat con el mensaje de bienvenida */
.chat-body {
  background-color: #e5ddd5;
  padding: 20px;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAARCAYAAAA/x3RRAAABcElEQVR4nO3SQQ3AIADDsJT7d/8sB+MgjAjo22Nk65EzZ84sCMGIBTFiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWTBiwYgFYxYMWbBiARYsGLFgZMMGNkyYsWDExsAbBwMsegQ/xOQAAAAASUVORK5CYII=");
}

.welcome-message {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 90%;
}

/* Pie de la ventana de chat con el campo de texto y el botón */
.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 {
  /* Propiedades para anular el estilo general */
  background: #075e54; /* Usamos un color de WhatsApp para consistencia */
  border: none;
  box-shadow: none;
  padding: 0; /* Clave para mantener la forma circular */
  font-size: 20px; /* Mantenemos el tamaño del ícono */
  font-weight: normal; /* Anulamos el 'bold' del estilo general */

  /* Propiedades originales para la forma y alineación */
  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; /* Efecto hover suave */
}

/* Opcional: Un pequeño efecto al pasar el mouse */
.whatsapp-chat-box .chat-footer button:hover {
  background-color: #128c7e;
}
