/* ======== CONFIGURACIÓN GLOBAL Y VARIABLES ======== */
:root {
  --primary-green: #0d9263;
  --dark-green: #086d49;
  --light-green-wave: #10b981;
  --dark-bg: #12181f;
  --light-bg: #f8f9fa;
  --text-light: #ffffff;
  --text-dark: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--text-light);
  color: var(--text-dark);
  line-height: 1.7;
}

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 10px;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: var(--dark-green);
  transform: translateY(-3px);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
  transform: translateY(-3px);
}
.section-light {
  padding: 40px 0;
}
.section-dark {
  padding: 40px 0;
  background-color: var(--dark-bg);
  color: var(--text-light);
}
.section-dark h2 {
  color: var(--text-light);
}
.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* ======== HEADER ======== */

/**
*HEADER 
*/

.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; /* 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-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; /* 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;
    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 responsivos para pantallas pequeñas */

/*---------------------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;
  }
}

/* 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;
  color: white;
}

/* 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;
}

/* ======== HERO SECTION ======== */

.hero-banner {
  padding: 60px 0;
  /* Un fondo degradado sutil como en la imagen de maqueta */
  background: whitesmoke;
}
.hero-banner h1 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}
/* Estilo para el span dentro del H1 */
.hero-banner h1 span {
  color: #0d9263; /* Tomado de tu nes3.css */
}

.hero-banner p.lead {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #555;
  text-align: justify;
}

/* Contenedor para los botones */
.hero-buttons {
  margin-top: 30px; /* Espacio superior */
  display: flex;
  flex-wrap: wrap; /* Para que se ajusten en móvil */
  gap: 15px; /* Espacio entre botones */
}

.hero-banner .btn-primary {
  font-weight: 600;
  /* Un verde más vibrante */
  background-color: #03a64a;
  border-color: #03a64a;
  border-radius: 8px;
  padding: 12px 30px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 104, 56, 0.2);
  color: #fff; /* Aseguramos color de texto */
}
.hero-banner .btn-primary:hover {
  background-color: white;
  border-color: white;
  color: #16a34a;
  transform: translateY(-3px);
}

/* Estilos añadidos para el botón outline */
.hero-banner .btn-outline {
  font-weight: 600;
  color: #03a64a; /* Color de texto primario */
  border-color: white; /* Borde primario */
  border-radius: 8px;
  padding: 12px 30px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 4px 15px rgba(1, 104, 56, 0.2);
}
.hero-banner .btn-outline:hover {
  background-color: #03a64a;
  border-color: #03a64a;
  color: #fff;
  transform: translateY(-3px);
}

.hero-banner .hero-image {
  border-radius: 1.5rem; /* 24px */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  height: 100%; /* Añadido */
  object-fit: cover; /* Añadido */
  /* min-height: 400px; */ /* Eliminado para que la altura la dicte el texto */
}

/* Para asegurar que en móvil el contenido del hero se vea bien */
@media (max-width: 991.98px) {
  .hero-banner .hero-image {
    /* En pantallas 'lg' e inferiores, la imagen pasa arriba */
    margin-bottom: 30px;
    min-height: auto; /* Reseteamos la altura mínima en móvil */
  }
  .hero-banner h1{
    text-align: center;
  }

  .hero-banner p.lead {
    text-align: justify;
  }
  /* Centrar botones en móvil */
  .hero-buttons {
    justify-content: center;
  }
}

/* ======== SERVICIOS (TARJETAS) - DISEÑO CON TEXTO DINÁMICO ======== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.card {
  width: 250px;
  height: auto;
  padding: 2.5rem;

  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card > i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  transition: 0.2s ease-in-out;
  z-index: 2;
}

.textBox {
  position: relative;
  text-align: center;
  z-index: 2;
  width: 100%;
  height: 90px; /* Espacio reservado para el texto */
}

.text-normal,
.text-hover {
  position: absolute;
  width: 100%;
  padding: 0;
  transition: opacity 0.3s ease-in-out;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.text-normal {
  opacity: 1;
}

.text-hover {
  opacity: 0;
}

.textBox .head {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.text-normal .head {
  color: var(--text-dark);
}

.text-normal span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.text-hover .head {
  color: var(--text-light);
  font-size: 1.1rem;
}

.text-hover span {
  font-size: 1rem;
  color: rgb(255, 255, 255);
}

/* --- ESTILOS EN HOVER --- */

.card:hover {
  width: 300px;
  height: 300px;
  color: white;
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0px 8px 28px -9px rgba(0, 0, 0, 0.45);
}

.card:hover .text-normal {
  opacity: 0;
}

.card:hover .text-hover {
  opacity: 1;
}

.card:hover > i {
  position: absolute;
  height: 65%;
  font-size: 8rem;
  filter: blur(7px);
  animation: animIcon 3s infinite;
  z-index: 1;
  margin-bottom: 0;
}

@keyframes animIcon {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* --- ESTILOS PARA EL EFECTO WAVE --- */
.wave {
  position: absolute;
  width: 540px;
  height: 700px;
  opacity: 0;
  left: 0;
  top: 0;
  margin-left: -50%;
  margin-top: -60%;
  background: linear-gradient(
    744deg,
    var(--dark-green),
    var(--primary-green) 60%,
    var(--light-green-wave)
  );
  transition: opacity 0.4s ease-in-out;
}

.card:hover .wave {
  opacity: 0.6;
}

.wave:nth-child(2),
.wave:nth-child(3) {
  top: 210px;
}

.card:hover .wave {
  border-radius: 40%;
  animation: wave 3000ms infinite linear;
}

.card:hover .wave:nth-child(2) {
  animation-duration: 4000ms;
}

.card:hover .wave:nth-child(3) {
  animation-duration: 5000ms;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ====== LÓGICA PARA MOSTRAR/OCULTAR VERSIONES ====== */
/* ... (Estilos de tabs y responsive sin cambios) ... */
.infra-accordion-mobile {
  display: none;
}
.tabs-container {
  display: flex; /* Valor por defecto para escritorio */
}
/* ======== NUEVOS ESTILOS PARA LA SECCIÓN DE INFRAESTRUCTURA (TABS) ======== */
.tabs-container {
  display: flex;
  gap: 2rem;
  background-color: #1a222c;
  padding: 2rem;
  border-radius: 10px;
  min-height: 450px;
}

.tab-nav {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tab-link {
  width: 100%;
  padding: 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-left: 3px solid transparent;
}

.tab-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.tab-link.active {
  background-color: var(--primary-green);
  color: var(--text-light);
  font-weight: 600;
  border-left: 3px solid var(--dark-green);
}
.tab-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 146, 99, 0.4);
}

.tab-content {
  flex: 1;
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
  display: block;
}

.tab-pane img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.tab-pane .text-content h4 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.tab-pane .text-content p,
.tab-pane .text-content ul {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-align: justify;
}
.tab-pane .text-content ul {
  padding-left: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.infra-accordion-mobile {
  display: none;
  background-color: #1a222c;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 2rem;
}
.infra-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.infra-accordion-item:last-child {
  border-bottom: none;
}
.infra-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.infra-accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.infra-accordion-header span {
  flex: 1;
}

.infra-accordion-header i {
  margin-left: auto;
  transition: transform 0.3s ease;
}
.infra-accordion-header.active i {
  transform: rotate(180deg);
}
.infra-accordion-header:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 146, 99, 0.4);
  border-radius: 8px;
}

.infra-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: rgba(0, 0, 0, 0.2);
}
.infra-accordion-content img {
  width: 90%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 1rem;
}
.infra-accordion-content p {
  padding: 0 1rem 1rem 1rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}
.infra-accordion-content ul {
  padding: 0 1rem 1rem 2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}
.infra-accordion-content ul li {
  margin-bottom: 0.5rem;
}

/* ======== CAROUSEL DE PROYECTOS ======== */
#projectCarousel .carousel-item {
  height: 550px;
  background-color: #333;
  border-radius: 30px;
}

#projectCarousel .carousel-item img {
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

#projectCarousel .carousel-caption {
  background: rgba(0, 0, 0, 0.404);
  border-radius: 30px;
  padding: 1rem 1rem;
}

#projectCarousel .carousel-caption h5 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
#projectCarousel .carousel-caption p {
  font-size: 16px;
  color: #ffffff;
}

/* ======== FOOTER ======== */
/*
 * Footer
 */
footer {
  background-color: #e6e6e6;
  padding: 10px;
  text-align: center;
  color: #646464;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  margin-bottom: 0rem;
}

/* ======== NUEVA SECCIÓN SUMINISTROS ======== */
.eq-section {
  background: #000;
  color: #ffffff;
}
.eq-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 3rem) 2rem;
}
.eq-title {
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 1.25rem;
}

.eq-item {
  position: relative;
  padding-left: 64px;
}
.eq-item dl {
  margin: 0;
}
.eq-item dt {
  text-align: left;
  font-weight: 800;
  margin: 0 0 0.45rem;
}
.eq-item dd {
  margin: 0;
  color: #ffffff;
  line-height: 1.55;
}

.eq-ico {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.eq-ico i {
  font-size: 1.15rem;
  color: #8bd5ff;
}

.eq-swiper {
  overflow: hidden;
}
.eq-swiper .swiper-wrapper {
  align-items: stretch;
}
.eq-swiper .swiper-slide {
  width: 100%;
}

.eq-pagination {
  margin-top: 0.75rem;
  position: static;
}
.eq-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: #ffffff33;
  opacity: 1;
  margin: 0 0.28rem !important;
}
.eq-pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: scaleY(1.1);
}

.list_point {
  list-style-type: disc;
  padding-left: 1.5rem;
  text-align: left;
}
/* ================== REFA (estructura común) ================== */
#refaccionamiento {
  background: #020202;
  color: #ffffff;
}
#refaccionamiento .refa-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
#refaccionamiento .refa-title {
  font-weight: 800;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 auto 2rem;
  max-width: 90%;
}

.refa-desktop {
  display: none;
}
.refa-mobile {
  display: block;
}

/* ================== MOBILE (Swiper cards) ================== */
#refaccionamiento .refa-mobile .swiper {
  width: 240px;
  height: 320px;
  margin: 0 auto;
  overflow: visible;
}
#refaccionamiento .refa-mobile .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 1.25rem;
  height: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
#refaccionamiento .refa-mobile .swiper-slide:nth-child(1n) {
  background-color: #0b3a2d;
}
#refaccionamiento .refa-mobile .swiper-slide:nth-child(2n) {
  background-color: #0b3a2d;
}
#refaccionamiento .refa-mobile .swiper-slide:nth-child(3n) {
  background-color: #0b3a2d;
}
#refaccionamiento .refa-mobile .swiper-slide:nth-child(4n) {
  background-color: #0b3a2d;
}
#refaccionamiento .refa-mobile .swiper-slide:nth-child(5n) {
  background-color: #0b3a2d;
}

/* ======== MEDIA QUERIES GENERALES ======== */
@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  .main-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #projectCarousel .carousel-item {
    height: 350px;
  }
  .tabs-container {
    display: none;
  }
  .infra-accordion-mobile {
    display: block;
  }

  #refaccionamiento .refa-mobile {
    display: flex;
    justify-content: center;
  }
}

/* ================== REFA DESKTOP/TABLET SHARED ================== */
@media (min-width: 768px) {
  .refa-mobile {
    display: none;
  }
  .refa-desktop {
    display: flex;
  }
  .eq-pagination {
    display: none;
  }
  .eq-swiper {
    overflow: visible;
  }
  .eq-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem 3rem;
    transform: none !important;
  }
  .eq-wrap {
    padding: clamp(2rem, 3vw, 3rem) 6rem;
  }
}

/* ================== TABLET (acordeón vertical) ================== */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .refa-desktop {
    flex-direction: column;
    gap: 1rem;
  }
  .refa-card {
    --radius: 18px;
    background: #0b3a2d;
    border-radius: var(--radius);
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: min-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 1.25rem;
  }
  .refa-card .refa-ill {
    order: 1;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease 0.1s;
  }
  .refa-card .refa-ill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  .refa-card .refa-body {
    order: 2;
    background: transparent;
    padding: 0;
  }
  .refa-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
  }
  .refa-card p {
    margin: 0 0 0 0;
    color: white;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  /* Active State */
  .refa-card.is-active {
    min-height: auto;
  }
  .refa-card.is-active .refa-ill {
    height: 200px;
    opacity: 1;
    margin-bottom: 1rem;
  }
  .refa-card.is-active p {
    max-height: 120px;
    opacity: 1;
  }
}

/* ================== DESKTOP (acordeón horizontal) ================== */
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .card {
    width: 250px;
  }
  .eq-swiper .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eq-wrap {
    padding: clamp(2rem, 3vw, 3rem) 1rem;
  }
  .refa-desktop {
    gap: 1.25rem;
    align-items: stretch;
    flex-direction: row;
  }
  /* REFA CARD - OUTER WRAPPER */
  .refa-card {
    --radius: 20px;
    border-radius: var(--radius);
    min-height: 345px;
    max-height: 350px;
    flex: 1;
    position: relative;
    cursor: pointer;
    background: transparent;
    transition: flex-basis 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
      box-shadow 0.4s ease, background-image 0.4s ease;
    padding: 0;
  }

  /* REFA CARD - INNER CONTENT */
  .refa-card-inner {
    height: 100%;
    width: 100%;
    background: #0b3a2d;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
  }

  /* Reduce font size on inactive cards when one is active to prevent text overflow */
  .refa-desktop:has(.refa-card.is-active) .refa-card:not(.is-active) h3 {
    font-size: 1rem;
  }

  /*Hover effect*/
  .refa-card:not(.is-active):hover {
    /* Aplicamos el nuevo efecto de hover */
    transform: translateY(-4px);
    background-image: linear-gradient(163deg, #00ff75 0%, #3700ff 100%);
    box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.3);
  }
  .refa-card:not(.is-active):hover h3 {
    color: white;
  }

  .refa-card:not(.is-active):hover .refa-card-inner {
    transform: scale(0.985);
    border-radius: var(--radius);
  }

  /* CONTENT STYLES (inside .refa-card-inner) */
  .refa-card .refa-ill {
    width: 100%;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
  }
  .refa-card .refa-ill img {
     position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  .refa-card .refa-body {
    position: relative;
    z-index: 2;
    width: 100%;
    background: transparent;
    padding: 1.5rem;
  }
  .refa-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    transition: text-align 0.4s ease, font-size 0.4s ease;
  }
  .refa-card p {
    margin: 0;
    color: #103b2f;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
  }

  /* Active State */
  .refa-card.is-active {
    flex: 3;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    justify-content: flex-start;
  }
  .refa-card.is-active .refa-ill {
    height: 220px;
    opacity: 1;
  }
  .refa-card.is-active .refa-body {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    margin: 1rem;
    width: calc(100% - 2rem);
    border-radius: 16px;
    margin-top: -50px;
  }
  .refa-card.is-active h3 {
    text-align: left;
    color: #0b3a2d;
  }
  .refa-card.is-active p {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.25rem;
  }
}

/* ===== Ajustes de la imagen del hero ===== */

/* Imagen del hero en desktop */
.hero-banner .hero-image {
  width: 100%;
  height: 600px;
  border-radius: 16px;
  object-fit: cover;
}

/* Imagen visible solo en desktop */
@media (min-width: 992px) {
  .hero-banner .col-lg-6 img.hero-image {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
  }
}

/* Imagen en tablet y móvil (ocupa todo el ancho del contenedor) */
@media (max-width: 991.98px) {
  .hero-image-mobile img {
    width: 50px;
    height: auto;
    max-height: 300px;
    border-radius: 12px;
    object-fit: cover;
  }
}
