@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* === RESET GENERAL === */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  background: #fff;
  font-family: 'Poppins', 'Segoe UI', Arial, Helvetica, sans-serif;
  overflow-x: hidden; /* Evita el scroll horizontal */
}

/* === NAVBAR === */
.navbar {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 1.14rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  background: #fff;
  z-index: 1001; /* Asegura que la navbar esté siempre por encima de todo */
  /* Si la navbar es "sticky-top", esto funciona bien. Si fuera "fixed-top", el comportamiento sería similar. */
}
.navbar-brand img { max-height: 66px; }

.navbar-nav .nav-link {
  color: #222 !important;
  margin-left: 32px;
  transition: color .2s;
  font-weight: 400;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:focus, .navbar-nav .nav-link:hover {
  color: #246fff !important;
  font-weight: 600;
}

/* === VIDEO DE FONDO FIJO === */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;  /* <--- ASEGÚRATE de que esta línea esté presente y correcta */
  height: 100vh; /* <--- ASEGÚRATE de que esta línea esté presente y correcta */
  overflow: hidden;
  z-index: 1;   /* <--- Mantenlo en -1 si quieres que el contenido esté encima */
  background-color: #000;
}

.video-background-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cubre el área manteniendo la proporción y recortando si es necesario */
  filter: brightness(0.5); /* Oscurece el video para que el texto se vea mejor */
  pointer-events: none; /* Asegura que el video no interfiera con eventos del ratón */
}

/* === HERO SECCIÓN - Contenedor del contenido que se superpone al video === */
.hero {
  position: relative; /* Es relativo para que hero-content pueda tener z-index y para el flujo normal */
  width: 100%;
  /* No se necesita background-color aquí ya que el video fijo lo cubre */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra el contenido verticalmente */
  align-items: center; /* Centra el contenido horizontalmente */
  min-height: 100vh; /* Altura mínima inicial para pantallas grandes */
  /* Los paddings se moverán al hero-content para evitar solapamiento con la navbar */
  padding: 0 20px; /* Padding horizontal para el hero */
  box-sizing: border-box; /* Asegura que el padding se incluya en el width/height */
}

.hero-content {
  position: relative; /* Necesario para que el z-index funcione */
  z-index: 2; /* Asegura que el contenido esté por encima del video fijo */
  width: 100%;
  max-width: 1200px; /* Limita el ancho del contenido principal del hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  flex-grow: 1; /* Permite que el contenido ocupe el espacio vertical disponible */
  justify-content: center; /* Centra el contenido verticalmente si hay espacio */

  /* === AJUSTE DE PADDING-TOP PARA EVITAR SOLAPAR LA NAVBAR === */
  /* La altura de tu navbar es de aproximadamente 66px (del logo). */
  /* Añadimos esa altura más un padding extra para que el contenido principal no quede detrás de la navbar. */
  padding-top: calc(66px + 95px); /* Altura de la navbar + tu padding original de 95px */
  padding-bottom: 60px; /* Tu padding original de 60px para la parte inferior */
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Tamaño de fuente responsivo */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-content .btn {
  margin-top: 20px;
}

.hero-cards {
  margin-top: 48px;
  width: 100%; /* El 100% del hero-content, que ya tiene max-width */
  max-width: 1300px; /* Un poco más ancho que el h1 para las tarjetas */
  z-index: 2; /* Asegura que las tarjetas estén por encima del video */
 
}

.hero-cards .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px; /* Espacio entre las tarjetas */
  
}

.hero-cards .col-md-4 {
  flex: 1 1 280px; /* Permite que las tarjetas crezcan hasta 280px y se envuelvan */
  max-width: 380px; /* Ancho máximo para cada tarjeta */
  margin: 0 10px; /* Espacio horizontal extra entre tarjetas */
}

.icon-card {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 16px;
  min-height: 169px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.13);
  transition: transform 0.16s, box-shadow 0.16s;
  display: flex; /* Para centrar contenido si es necesario */
  flex-direction: column;
  justify-content: center;
   align-items: center;
}
.icon-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  align-items: center;
}
.icon-card p {
  padding: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  align-items: center;
}

/* === SECCIÓN INSTITUCIONAL === */
.section-info {
  width: 100vw;
  position: relative;
  z-index: 2; /* Asegura que esta sección cubra el video fijo cuando se haga scroll */
  background: #fff; /* Fondo blanco para cubrir el video cuando se desplaza */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-info .container-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1350px;
  width: 100%;
  gap: 52px;
  padding: 0 20px;
}

.section-info .info-text {
  flex: 1 1 0;
  padding-left: 2vw;
}

.section-info h2 {
 font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #222;
}

.section-info p {
  font-size: 1.29rem;
  font-weight: 400;
  color: #444;
  margin-bottom: 32px;
  max-width: 510px;
}

.section-info .stats {
  display: flex;
  flex-direction: row;
  gap: 60px;
  margin-top: 36px;
}

.section-info .stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-info .stat-number {
  font-size: 2.9rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
}

.section-info .stat-label {
  font-size: 1.07rem;
  color: #444;
  font-weight: 400;
}

.section-info .info-image {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.section-info .info-image img {
  width: 465px;
  max-width: 96vw;
  border-radius: 28px;
  box-shadow: 0 6px 44px 0 rgba(50,70,110,0.18);
  display: block;
  background: #f5f7fa;
}

/* === SECCIÓN SERVICIOS === */
.section-servicios {
  padding: 60px 0 60px;
  background: #fff;
  position: relative;
  z-index: 3; /* Para asegurar que esté por encima de otras secciones si hay superposición */
}

.section-servicios h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

.section-servicios .subtitulo {
  font-size: 1.2rem;
  color: #555;
  max-width: 720px;
  margin: 0 auto 60px;
  font-weight: 400;
}

.servicio-box {
  background-color: #f1f1f1;
  padding: 80px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.servicio-box h5 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #111;
}

.servicio-box p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.6;
}

.servicio-box img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: block;
}

/* === SECCIÓN SOLUCIONES INNOVADORAS === */
.section-soluciones {
  padding: 100px 0 80px;
  background: #fff;
  position: relative;
  z-index: 2; /* Para asegurar que esté por encima de otras secciones si hay superposición */
}

.section-soluciones h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 12px;
}

.section-soluciones .subtitulo {
  font-size: 1.2rem;
  color: #555;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  font-weight: 400;
}

.solucion-box {
  margin-bottom: 40px;
  background: #f9f9f9;
  border-radius: 12px;
  transition: box-shadow 0.3s;
  padding: 20px; /* Ajuste un padding más razonable por defecto */
}

.solucion-box:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.solucion-box img {
  border-radius: 12px;
  margin-bottom: 24px;
  width: 100%;
  object-fit: cover;
}

.solucion-box h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-top: 14px;
  margin-bottom: 14px;
}

.solucion-box h6 {
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 8px;
  font-weight: 600;
}

.solucion-box p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.solucion-box .lead {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* === FOOTER === */
footer {
  background: #222;
  color: #fff;
  padding: 60px 20px 30px;
  z-index: 10; /* Asegura que el footer esté por encima de todo */
  position: relative;
}

.footer .container.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer .footer-col {
  flex: 1;
  min-width: 250px;
}

.footer h4, .footer h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.footer small {
  font-size: 0.9rem;
  color: #e1e1e1;
}

.footer input[type="text"] {
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #333;
}

.footer input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #333;
}
/*
.footer button {
  padding: 12px 24px;
  background: #1c1818;
  color: #fff;
  border: none;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.footer button:hover {
  background: #333;
}*/

.footer .social-icons a {
  margin-right: 12px;
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.footer .social-icons a:hover {
  color: #ccc;
}
#clientes-fichas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 160px; /* empuja bien el footer */
  min-height: 400px;
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.flex-grow-1 {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .section-info .container-flex { gap: 18px; }
  .section-info .info-image img { width: 370px; }
}

@media (max-width: 991px) {
  .hero-content {
    /* Ajuste en tablet: Altura de la navbar (aprox. 66px) + padding original (65px) */
    padding-top: calc(66px + 65px);
    padding-bottom: 40px;
  }
  .hero-content h1 {
    font-size: 2.05rem;
  }
  .icon-card { min-height: 90px; padding: 15px 6px; }

  .section-info { padding: 44px 0 28px 0; }
  .section-info .info-image img { width: 270px; }

  /* Ajustes para servicio-box en tablet */
  .servicio-box {
    padding: 40px; /* Reduce el padding en tablet */
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: unset; /* Deja que la altura del hero sea dictada por el contenido en móviles */
    padding: 0 14px; /* Ajusta padding horizontal en móvil */
  }
  .hero-content {
    /* Ajuste en móvil: Altura de la navbar (aprox. 66px) + padding original (80px) */
    padding-top: calc(66px + 80px);
    padding-bottom: 40px;
  }

  .hero-cards .row {
    flex-direction: column;
    align-items: center;
  }

  .hero-cards .col-md-4 {
    width: 100%;
    max-width: 90%; /* Asegura que la tarjeta no sea más ancha que el 90% del viewport */
    margin: 0; /* Elimina márgenes extra si se apilan */
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-cards { margin-top: 26px; }

  .section-info { min-height: unset; padding: 32px 0 10px 0; }
  .section-info .container-flex {
    flex-direction: column;
    align-items: center;
    gap: 38px;
    padding: 0 14px;
  }
  .section-info .info-image img { width: 90vw; max-width: 340px; }
  .section-info .info-text { padding-left: 0; text-align: center; }
  .section-info .stats { justify-content: center; gap: 25px; }

  /* Ajustes para servicio-box en móvil */
  .servicio-box {
    padding: 25px; /* Más reducción en móvil */
  }

  /* Ajustes para soluciones en móvil */
  .section-soluciones .solucion-box {
    padding: 15px;
  }
  .section-soluciones h4 {
    font-size: 1.4rem;
  }
  .section-soluciones h6 {
    font-size: 0.95rem;
  }
  .section-soluciones p {
    font-size: 0.9rem;
  }

  /* Footer en móviles */
  .footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer .footer-col {
    min-width: auto;
    width: 100%;
  }
  .footer input[type="email"] {
    max-width: 100%;
  }
  .footer .social-icons {
    margin-bottom: 20px;
  }
}

/* OCULTA BARRA SCROLL HORIZONTAL SI SALE ALGO */
body { overflow-x: hidden; }


/* PAGINA CONTACTO */
p.pagina-contacto {
  font-family: 'Poppins', sans-serif;
 text-align: center;
  margin-top: -40px;
  padding: 0;
}

h1.pagina-contacto {
  text-align: left;
  font-size: 2rem;
  margin-top: 2px;
  margin-bottom: 5px;
  color: #333;
}

.form-wrapper {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
  margin-top: 30px;
  
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

footer.pagina-contacto {
  background-color: #f1f1f1;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
  margin-top: 4rem;
}

.btn-primary {
  background-color: #0056b3;
  border: none;
}

.btn-primary:hover {
  background-color: #004494;
}
.link-mail {
  text-decoration: none;
}

.link-mail p {
  color: #fcfafa;
  font-weight: normal;
  transition: all 0.2s ease;
  margin: 0;
}

.link-mail:hover p {
  color: #918f8f;
  /*font-weight: bold;*/
}
/* === NAVBAR SOLO ÍCONOS (override) === */
.navbar-nav .nav-link {
  /* Oculta el texto de los enlaces */
  font-size: 0 !important;  
  margin-left: 0.75rem !important;  /* ajustá margen si querés */
}

.navbar-nav .nav-link i {
  /* Vuelve a mostrar y agrandar sólo los iconos */
  font-size: 1.6rem !important;
  color: #222 !important;
  transition: color .2s;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
  color: #246fff !important;
}

#bot-selector {
  background: #fff;
  color: #000;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: .9rem;
}
/* Dropdown de bots junto a Marco Estadístico */
#bot-selector {
  min-width: 120px;
  max-width: 200px;
}
.chat-bubble {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  max-width: 90%;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-left: 8px;
  
}

.user-msg {
  background-color: #e6f4ea;
  align-self: flex-start;
  border-left: 4px solid #34a853;
}

.system-msg {
  background-color: #f0f4f9;
  align-self: flex-start;
  border-left: 4px solid #4285f4;
}

.chat-meta {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 4px;
}

.chat-text {
  font-size: 0.95rem;
  color: #222;
}

.bot-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 1px; /* alinea con el inicio del texto */
}

