@import url('1_base.css');
@import url('2_layout.css');
@import url('components/_navbar.css');
@import url('components/_buttons.css');
@import url('components/_cards.css');
@import url('components/_footer.css');
@import url('components/_forms.css');
@import url('components/_chatbot.css');


/* --- ESTILOS DEL NUEVO HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Ocupa el 85% de la altura de la pantalla */
    overflow: hidden;
    color: white;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* --- INICIO DE LA SOLUCIÓN PARA ESTIRAR --- */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    /* --- FIN DE LA SOLUCIÓN PARA ESTIRAR --- */

    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

/* Capa oscura sobre la imagen para que el texto sea legible */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative; /* Para que esté por encima de la capa oscura */
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: clamp(2em, 5vw, 3.5em); /* Tamaño de fuente adaptable */
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: clamp(1em, 2vw, 1.2em);
    line-height: 1.6;
}


/* --- OPCIÓN 2: FLECHAS BLANCAS DELGADAS EN CÍRCULOS TRANSPARENTES --- */
/* --- OPCIÓN 3: FLECHAS CON FONDO SÓLIDO Y ESPACIO --- */
/* --- OPCIÓN 2: FLECHAS BLANCAS DELGADAS EN CÍRCULOS TRANSPARENTES --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* Fondo transparente */
    color: white;
    border: 2px solid white; /* Borde blanco */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: white; /* Fondo blanco al pasar el ratón */
    color: var(--color-primary); /* Cambia el color del icono */
    border-color: white;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}
/* --- ESTILOS PARA EL BANNER DE CONSTRUCCIÓN --- */
.construction-banner {
    background-color: #ffc107; /* Amarillo de advertencia, muy visible */
    color: #000;              /* Texto negro para fácil lectura */
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9em;
    font-weight: 500;
    width: 100%;
    position: fixed;
    top: 55px; /* Altura de tu menú de navegación */
    left: 0;
    z-index: 998; /* Justo debajo del menú pero encima de todo lo demás */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.construction-banner p {
    margin: 0;
}

/* Ajuste para que el carrusel no quede debajo del nuevo banner */
.hero-slider {
    margin-top: 45px; /* Empuja el carrusel hacia abajo */
}


/* --- ▼▼▼ CÓDIGO AÑADIDO ▼▼▼ --- */
/* --- ESTILOS PARA LA SECCIÓN DE SOLUCIONES --- */
.final-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
  color: var(--color-white);
  padding: 80px 0;
}
.final-section-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.final-section-text {
  flex-basis: 45%;
  text-align: left;
}
.final-section-text h2 {
  text-align: left;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--color-white);
  font-size: 2.5em;
  line-height: 1.2;
}
.final-section-text h2::after {
    display: none;
}
.final-section-text p {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-top: 20px;
}
.final-section-features {
  flex-basis: 50%;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.final-section-features h4 {
    color: var(--color-white);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 25px;
    font-size: 1.4em;
    text-align: left;
}
.features-list {
  list-style: none;
  padding: 0;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.feature-icon-wrapper {
  margin-right: 15px;
  margin-top: 5px;
}
.feature-icon {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-white);
}
.feature-text-wrapper strong {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--color-white);
}
.feature-text-wrapper p {
  margin: 0;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}
/* --- ▲▲▲ FIN DEL CÓDIGO AÑADIDO ▲▲▲ --- */


/* --- ESTILOS RESPONSIVOS GENERALES --- */
@media screen and (max-width: 768px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.8em; }
  
  .container {
    padding: 40px 20px;
  }
  
  .final-section-container {
    flex-direction: column;
  }
  .final-section-text {
    text-align: center;
    margin-bottom: 40px;
  }
  .final-section-text h2 {
    text-align: center;
  }
  .final-section-features {
    width: 100%;
  }

  #chatbot .ia-chatbot-container {
    margin-top: 40px;
  }
  .chatbot-window {
    height: 480px;
  }
  .chat-message {
    max-width: 95%;
    line-height: 1.5;
  }
  .report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .final-section-text h2 {
    font-size: 2em;
  }
}

/* --- ESTILOS PARA LA SECCIÓN DE PRODUCTO DESPLEGABLE --- */
#producto {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.7s ease-out, padding-top 0.7s ease-out, padding-bottom 0.7s ease-out;
}

#producto.open {
    max-height: 2000px; /* Un valor grande para que quepa todo */
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 60px auto;
    font-size: 1.1em;
    color: var(--color-text-light);
}

.product-image-main {
    text-align: center;
    margin-bottom: 60px;
}

.product-image-main img {
    max-width: 100%;
    width: 900px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 47, 86, 0.15);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-block { 
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 47, 86, 0.1);
}

.feature-block h4 { 
    margin-top: 0;
    margin-bottom: 15px; 
    color: var(--color-primary); 
    font-size: 1.1em;
}

.feature-block ul { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 0;
}

.feature-block li { 
    margin-bottom: 10px; 
    color: var(--color-text-light); 
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
}

.feature-block li::before {
    content: '✔';
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-block li:last-child {
    margin-bottom: 0;
}