/*
 * General Styles
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.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;
}



/*------------Header y navegación------------------------*/

/**
*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;
}



/**-------------------------------------*/
/* 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 */
}

/*
 * Main Content
 */
.main-content {
  background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("../Recursos_Media/Fondo_Proyectos.png"); /* Imagen de fondo de relleno */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.contact-form-container {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
}

.contact-form-container h3 {
  font-size: 2em;
  margin-bottom: 20px;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
}

.contact-form-container label {
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form-container input,
.contact-form-container textarea {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #fff;
  color: black;
  font-size: 1rem;
  width: 100%;
}

.contact-form-container textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-container button {
  align-self: center;
  width: 100%;
}
.contact-form-container 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;
}

.contact-form-container button:hover {
  background: linear-gradient(to right, #014678, #026d31);
}

/*
 * Contact Areas
 */
.contact-areas-section {
  padding: 50px 20px;
  background-color: #ffffff;
}

.contact-areas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.area-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  gap: 20px;
}

.area {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.area h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #082f4b;
  text-align: center;
}
.area a {
  text-decoration: none;
  color: #0070c0;
  transition: color 0.3s ease;
}

.area a:hover {
  color: #0070c0;
  text-decoration: underline;
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.contact-info .icon {
  font-size: 1.2em;
  color: #0070c0;
}

.contact-info a {
  color: #082f4b;
  font-size: 1.375em;
  white-space: nowrap; /* Evita que el texto se salte a la siguiente línea */
  overflow: hidden; /* Oculta cualquier texto que se desborde */
  text-overflow: ellipsis; /* Añade los puntos suspensivos (...) al final */
}
/*------------------------------  DISEÑO RESPONSIVO  --------------------------------------------------------*/
/*
 * Responsive Design (Mobile First)
 */
/*---------------------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;
  }

  .contact-areas-container {
    flex-direction: column;
  }

  .area-column {
    max-width: 100%;
  }

  .contenedor_imagen_logo_header {
    display: none;
  }
  
}

/* 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;
  }

  .contact-areas-container {
    gap: 20px;
  }

  .area-column {
    width: 48%; /* Ajusta el ancho para que quepan dos columnas */
  }
}
/* ----------------------NOTIFICACIÓN--------------------------------------- */

/* --- Notification Card Styles --- */
.card {
  width: 330px;
  height: 80px;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 10px 15px;
  background-color: #ffffff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
  /* Positioning and visibility */
  position: fixed;
  top: 80px; /* Position below the header */
  right: -100%; /* Start off-screen */
  z-index: 2000;
  transition: right 0.5s ease-in-out;
  visibility: hidden;
}

/* Class to show the notification */
.card.show {
  right: 20px; /* Slide into view */
  visibility: visible;
}

.wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31px;
  top: 32px;
  width: 80px;
  fill: #04e4003a;
}
.icon-container {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #04e40048;
  border-radius: 50%;
  margin-left: 8px;
}
.icon {
  width: 17px;
  height: 17px;
  color: #269b24;
}
.message-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}
.message-text,
.sub-text {
  margin: 0;
  cursor: default;
}
.message-text {
  color: #269b24;
  font-size: 17px;
  font-weight: 700;
}
.sub-text {
  font-size: 14px;
  color: #555;
}
.cross-icon {
  width: 18px;
  height: 18px;
  color: #555;
  cursor: pointer;
}

/* ----------------------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;
}

/*
 * Footer
 */
footer {
  background-color: #e6e6e6;
  padding: 10px;
  text-align: center;
  color: #646464;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
