/*
|--------------------------------------------------------------------------
|                              CORDAMI
|--------------------------------------------------------------------------
|
|   "Infiltrando mi propio código con una firma de autor."
|
|   ASCII Logo recreado a partir de la imagen original.
|
|         \ '.      .' /    |   +---------------------+
|          \  '....'  /     |   |         SIT         |
|           \        /      |   |   INTERNACIONAL     |
|            \  /\  /       |   |                     |
|             \/  \/        |   +---------------------+
|--------------------------------------------------------------------------
|   Developer Signature
|--------------------------------------------------------------------------
|
|   *   Autor:          [MathForce]
|   *   Proyecto:       CORDAMI
|   *   Fecha de Inicio: Enero, 2026
|   *   Stack:          HTML, CSS, JavaScript, EmailJS, Chart.js, Bootstrap,PHP, MySQL, Node.js, Express, Netlify, PostgreSQL
|   *   Contacto:       [+58 412-4294446] [+58 412-5915442]
|   *   Portafolio:     [https://mathforceportafolio.netlify.app/]
|   *   GitHub:         [https://github.com/Matheus0101010]
|--------------------------------------------------------------------------
|   ¡SERVICIOS SIT INTERNACIONAL!
|--------------------------------------------------------------------------
|
|   
|
|
*/




/* ---- Reset y Estilos Globales ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ---- Estilos del Header Principal (Hero Section) Premium ---- */
.header-hero.premium-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Flexbox centra el slideshow interno */
  height: 100vh;
  min-height: 650px;
  background-color: transparent; /* Permitir que la capa nature-bg sea visible */
  overflow: hidden;
  padding: 0;
}

/* ---- Slideshow dinámico ---- */
.hero-slideshow {
  position: relative; /* Integrado al flujo flexbox del padre */
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(50%, 65vw, 85%); /* Tamaño menor en pantallas grandes */
  height: clamp(50%, 75vh, 90%);
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex; /* Nuevo: Centrado por Flexbox */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.8s ease-in-out, transform 8s ease-out;
}

/* Envoltorio para alinear frase e imagen perfectamente */
.hero-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.hero-content-image {
  display: block;
  max-width: 100%;
  max-height: 60vh; /* Ajustado de 80vh a 60vh para dar espacio a la frase y el botón */
  object-fit: contain;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ---- Controles de Carrusel (Flechas) ---- */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.carousel-control:hover {
  background: rgba(40, 167, 69, 0.8);
  border-color: #28a745;
  transform: translateY(-50%) scale(1.1);
}
.carousel-control.prev {
  left: 20px;
}
.carousel-control.next {
  right: 20px;
}
@media (max-width: 768px) {
  .carousel-control {
    display: none; /* Opcional: Ocultar en móviles muy pequeños para no invadir, o hacerlas más sutiles */
  }
}

/* Overlay eliminado: imágenes del carrusel se aprecian completamente */
.hero-gradient-overlay {
  display: none;
}

/* ---- Frase integrada en cada slide ---- */
.slide-phrase {
  width: 100%; /* El ancho del wrapper es el ancho de la imagen */
  text-align: center;
  margin-bottom: 5px; /* Exactamente 5px por encima de la imagen */
  z-index: 4;
  pointer-events: none;
}

.slide-phrase span {
  display: block; /* Ocupar todo el ancho disponible del wrapper/imagen */
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.8rem, 1vw, 1.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 8px 0; /* Relleno vertical uniforme */
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 254, 254, 0.085);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ---- CTA del hero (Ajustado por flujo Dinámico) ---- */
.hero-cta-overlay {
  display: contents; /* Requerido para alineación precisa bajo la imagen */
}

.hero-cta-button.premium-btn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
  margin-top: 5px; /* Exactamente 5px separado de la foto */
  border-radius: 50px;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.55rem, 1.1vw, 0.75rem);
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 5;
}

.hero-cta-button.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

/* Indicadores de carrusel */
.carousel-indicators {
  display: none !important; /* Desactivado visualmente por petición de UI pura */
}

.carousel-indicators .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(27, 51, 32, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .dot.active {
  background-color: #27ae60;
  transform: scale(1.3);
}

@media (max-width: 770px) {
  .header-hero.premium-hero {
    align-items: center;
    padding: 0;
    height: 100vh;
    min-height: 600px;
  }

  .hero-slideshow {
    width: clamp(90vw, 95vw, 100vw); /* Aumentado en mobile */
    height: clamp(80vh, 90vh, 100vh);
  }

  .hero-slide {
    background-size: contain; /* Siempre 100% visible en movil */
  }

  .slide-phrase {
    margin-bottom: 5px;
  }

  .hero-content-image {
    max-height: 55vh; /* Reducido para asegurar que la frase y el botón quepan en pantallas pequeñas */
  }

  .slide-phrase span {
    font-size: clamp(0.55rem, 3.2vw, 0.9rem);
    padding: 6px;
  }


  .hero-cta-button.premium-btn {
    padding: clamp(8px, 2vw, 10px) clamp(15px, 4vw, 18px); /* Botón mobile fluido y contenido */
    font-size: clamp(0.55rem, 2.5vw, 0.65rem); /* Letra reducida mobile */
  }

  .carousel-indicators {
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px;
  }
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-title-container {
  margin-bottom: 1.5rem;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0.5rem;
  justify-content: center;
} /* Centrar marca */
.hero-logo {
  width: 150px;
  height: auto;
} /* Ajuste de tamaño para móviles */
.brand-name {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 2px;
} /* Ajuste de tamaño */
/* Removed duplicate .hero-tagline rule */
.hero-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
} /* Centrar y ajustar margen */

.hero-cta-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: #2e2e2e;
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-cta-button:hover {
  background-color: #000;
  transform: translateY(-3px);
}

/* ---- ESTILOS DE NAVEGACIÓN REFINADOS (Responsive Fix) ---- */

/* Contenedor principal de la navegación */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Soporte Safari */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease;
}

/* Estado inicial para la navegación que se revela al hacer scroll */
.main-nav.reveal-on-scroll {
  transform: translateY(-100%);
}

/* Revelar navegación al hacer scroll o si el menú móvil está abierto */
.main-nav.reveal-on-scroll.scrolled,
.main-nav.nav-open {
  transform: translateY(0);
}

.nav-container {
  /* Max-width alineado con el resto del sitio para consistencia visual */
  width: 90%;
  height: 85px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Enlace del logo + título CORDAMI */
.nav-container > a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Título CORDAMI en el nav */
.nav-h1 {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Separador | entre logo y texto */
.nav-separator {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: #ccc;
    margin: 0 8px;
}

/* Ajuste del logo para prevenir deformaciones */
.nav-logo {
  display: block;
  width: clamp(280px, 80vw, 450px); /* Tamaño perfeccionado para el nuevo formato nav 3 */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}


/* --- Responsive para Logo en pantallas mayores --- */

@media (min-width: 768px) {
    .nav-logo {
        width: clamp(400px, 30vw, 650px); /* Proporcional para desktop en 4K/UltraWide */
    }
}




/* --- Estilos para el MENÚ MÓVIL (Por defecto - Mobile First) --- */
.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  color: #333;
}
.nav-toggle svg {
  width: 30px;
  height: 30px;
}
/* Lógica de iconos controlada por clases */
.nav-toggle .icon-close {
  display: none;
}
.main-nav.nav-open .nav-toggle .icon-hamburger {
  display: none;
}
.main-nav.nav-open .nav-toggle .icon-close {
  display: block;
}

.menu-list {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background-color: #ffffff;
  list-style: none;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Transición más suave 'Premium' */
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
}

.main-nav.nav-open .menu-list {
  transform: translateX(0);
}

/* Estilos de los enlaces (General) */
.list-items a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem; /* Más legible en móvil */
  white-space: nowrap; /* SOLUCIÓN CLAVE: Evita que el texto se parta en dos líneas */
  transition: color 0.3s ease;
}

.list-items a:hover {
  color: #28a745;
}

/* Botón CTA dentro del menú */
.list-items-cta {
  text-align: center;
  margin-top: 10px;
  white-space: nowrap; /* Evita que el botón se divida en varias líneas */
}

.list-items-cta a {
  display: block;
  background-color: #28a745;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.list-items-cta a:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* --- BREAKPOINT: TABLET Y DESKTOP --- */
/* Ajuste inteligente: Usamos flex-grow y espacios dinámicos */

@media (min-width: 1400px) {
  .nav-toggle {
    display: none; /* Ocultar hamburguesa */
  }

  .nav-container {
    width: 90%; /* Más aire en los bordes */
  }

  .menu-list {
    position: static;
    flex-direction: row;
    justify-content: flex-end; /* Empuja los items a la derecha */
    width: auto;
    height: auto;
    background-color: transparent;
    transform: translateX(0);
    padding-top: 0;
    box-shadow: none;
    gap: clamp(
      15px,
      2vw,
      40px
    ); /* Espaciado inteligente que se reduce si la pantalla se encoge */
    margin-right: 0; /* Eliminado el margen del 10% que rompía el diseño */
  }

  .list-items a {
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent; /* Preparar para hover sin salto */
  }

  .list-items a:hover {
    border-bottom: #28a745 solid 2px;
  }

  /* Ajuste específico para el botón CTA en desktop */
  .list-items-cta {
    margin-top: 0;
    margin-left: 10px;
  }

  .list-items-cta a {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .list-items-cta a:hover {
    /* Eliminamos el borde inferior verde en el botón, ya que tiene fondo */
    border-bottom: none;
    color: #fff;
  }

  .nav-logo {
    background-position: center; /* Volver al centro si lo prefieres, o left */
  }
}

/* Media query extra para pantallas muy grandes (mejora visual) */
@media (min-width: 1400px) {
  .menu-list {
    gap: 50px; /* Más espacio si la pantalla lo permite */
  }
}

/* --- Estilos para el MENÚ MÓVIL (Por defecto) --- */

/* Botón de Hamburguesa */
.nav-toggle {
  display: block; /* Visible en móvil */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001; /* Siempre encima del resto */
  color: #333; /* Color del icono */
}
.nav-toggle svg {
  width: 28px; /* Tamaño del icono */
  height: 28px;
}
.nav-toggle .icon-close {
  display: none;
} /* Ocultar la 'X' por defecto */
.main-nav.nav-open .nav-toggle .icon-hamburger {
  display: none;
} /* Ocultar hamburguesa cuando el menú está abierto */
.main-nav.nav-open .nav-toggle .icon-close {
  display: block;
} /* Mostrar la 'X' cuando el menú está abierto */

/* Lista de enlaces del menú en móvil */
.menu-list {
  position: fixed;
  top: 0; /* Ajustado a 0 para cubrir toda la altura */
  right: 0;
  width: 80%;
  max-width: 320px; /* Ancho máximo para el menú móvil */
  height: 100vh;
  background-color: #f9f9f9;
  list-style: none;
  padding-top: 100px; /* Espacio para el logo/toggle */
  display: flex;
  flex-direction: column; /* Alinea los items verticalmente */
  align-items: center; /* Centra los items */
  gap: 25px; /* Espacio entre los items */
  transform: translateX(100%); /* Oculto fuera de la pantalla */
  transition: transform 0.4s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* Agregado para que se vea mejor */
}

/* Cuando el menú está abierto */
.main-nav.nav-open .menu-list {
  transform: translateX(0); /* Lo trae a la vista */
}

.list-items a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-weight: 700;
}

.list-items a:hover {
  color: #28a745;
  border-bottom: #218838 solid 2px;
}

.list-items-cta {
  text-align: center;
}

.list-items-cta a {
  display: block; /* Para que ocupe todo el ancho de su contenedor */
  background-color: #28a745;
  color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}
.list-items-cta a:hover {
  background-color: #218838;
}

/* --- Estilos para TABLET Y DESKTOP (Pantallas más grandes) --- */
@media (min-width: 768px) {
  /* Cambiado a 768px para tabletas */
  .hero-content {
    text-align: center; /* Volver a la izquierda en pantallas grandes */
  }
  .hero-brand {
    justify-content: flex-start; /* Alinear a la izquierda */
  }
  .hero-logo {
    width: 180px; /* Tamaño original en desktop */
    height: auto;
  }
}

@media (min-width: 1400px) {
  /* Ocultar el botón de hamburguesa en pantallas grandes */
  .nav-toggle {
    display: none;
  }

  /* Restaurar el menú a su estado horizontal */
  .menu-list {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: translateX(0);
    padding-top: 0;
    box-shadow: none;
    gap: 30px;
    margin-right: 10%;
  }

  .list-items a {
    font-size: 15px;
    padding: 5px 0;
  }

  .list-items-cta {
    width: auto;
  }

  .list-items-cta a {
    display: inline-block; /* Vuelve a ser un botón normal */
    padding: 10px 22px;
  }

}

/* ---- Estilos de la Sección de Servicios ---- */
.services-section {
  padding: 80px 20px; /* Ajuste de padding para móviles */
  background-color: #f9f9f9;
  text-align: center;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 6vw, 2.8rem); /* Ajuste de tamaño */
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.2rem); /* Ajuste de tamaño */
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem auto; /* Ajuste de margen inferior */
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Reducido minmax para móviles */
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 30px 20px; /* Ajuste de padding */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- El efecto Hover Dinámico --- */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px; /* Ajuste de tamaño */
  height: 50px; /* Ajuste de tamaño */
  background-color: #eaf6ec;
  border-radius: 50%;
  margin-bottom: 1rem; /* Ajuste de margen */
}

.service-card-icon svg {
  width: 24px; /* Ajuste de tamaño */
  height: 24px; /* Ajuste de tamaño */
  color: #28a745;
}

.service-card h3 {
  font-size: 1.2rem; /* Ajuste de tamaño */
  font-weight: 700;
  color: #333;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.9rem; /* Ajuste de tamaño */
  color: #666;
  line-height: 1.8;
}

/* Ajuste para que en pantallas muy grandes no se hagan 4 o 5 columnas */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid > .service-card:nth-last-child(1):first-child ~ .service-card {
    grid-column-end: span 1;
  }
  .services-grid > .service-card:nth-last-child(2):first-child {
    grid-column-start: 1;
  }
  .services-grid > .service-card:nth-last-child(2):first-child ~ .service-card {
    grid-column-start: 2;
  }
}

/* ---- Estilos de la Sección Sobre Nosotros ---- */
.about-section {
  padding: 80px 20px; /* Ajuste de padding */
  background-color: #fff;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px; /* Ajuste de espacio */
  flex-direction: column; /* Apila elementos por defecto en móviles */
  text-align: center;
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  text-align: center; /* Centrar en móviles */
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.about-content .section-subtitle {
  text-align: center; /* Centrar en móviles */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

.about-content p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem; /* Ajuste de tamaño */
}

.about-cta {
  color: #28a745;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.about-cta:hover {
  border-color: #28a745;
}

.about-image {
  flex: 1;
  max-width: 100%; /* Asegura que la imagen no se desborde */
  margin-top: 30px; /* Espacio superior */
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Responsive para la sección Sobre Nosotros - Desktop */
@media (min-width: 992px) {
  .about-container {
    flex-direction: row; /* Vuelve a poner en fila en desktop */
    text-align: left;
  }
  .about-content .section-title,
  .about-content .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .about-image {
    margin-top: 0;
    max-width: 450px; /* Vuelve al tamaño original */
  }
}

/* ---- Estilos del Footer ---- */
.main-footer {
  background-color: #2e2e2e;
  color: #a9a9a9;
  padding: 50px 20px 0 20px; /* Ajuste de padding */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px; 
  padding-bottom: 30px; 
  flex-wrap: wrap;
  text-align: center; 
}

.footer-brand,
.footer-links,
.footer-social,
.footer-logo {
  flex: 1 1 100%; /* Cada columna ocupa el 100% en móvil */
  min-width: unset; /* Reiniciar min-width */
}

.footer-brand p {
  font-style: italic;
  font-size: 0.85rem; /* Ajuste de tamaño */
}

.footer-links h4,
.footer-social h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 15px;
  z-index: 1000;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0; /* Eliminado offset que rompía el centrado */
  z-index: 1000;
}

.footer-links ul li {
  margin-bottom: 8px; /* Ajuste de margen */
}

.footer-links ul a {
  color: #a9a9a9;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-size: 0.9rem; /* Ajuste de tamaño */
}

.footer-links ul a:hover {
  color: #fff;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin: 0; /* Eliminado offset */
  z-index: 1000;
  justify-content: center; 
}

.social-icons a {
  color: #a9a9a9;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a svg {
  width: 22px; /* Ajuste de tamaño de icono */
  height: 22px;
}

.social-icons a:hover {
  color: #28a745;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem; /* Ajuste de tamaño */
}

/* --- DISEÑO DEL FOOTER --- */

/* Por defecto (Mobile & Tablet < 1024px): Centrado y Apilado */
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-brand, .footer-links, .footer-social {
  width: 100%;
  max-width: 500px;
}

.footer-links h4, .footer-social h4 {
  margin-left: 0; /* Reset margins para centrado real */
  margin-bottom: 15px;
  color: #fff;
}

/* Transición a Layout Horizontal (Escritorio > 1024px) */
@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 30px;
  }

  .footer-brand, .footer-links, .footer-social {
    flex: 1;
    width: auto;
    max-width: none;
  }

  .footer-social .social-icons {
    justify-content: flex-start;
  }
}


/* Agrega esto al final de css/platform.css */

/* --- INTERFAZ CÁMARA Y REGISTRO --- */
.form-grid-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

.camera-wrapper {
  width: 100%;
  height: 300px; /* Alto fijo para mantener proporción */
  background: #000;
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#video-stream,
#photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recortar para llenar el espacio como un carnet */
}

/* Efecto espejo para la selfie */
#video-stream {
  transform: scaleX(-1);
}

.camera-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn-primary {
  background: #28a745;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.small-info {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 5px;
}

/* --- DISEÑO DE CARNET CON QR (Re-diseño) --- */
.carnet-design {
  width: 500px; /* Un poco más ancho para info y QR */
  height: 300px;
  display: flex;
  flex-direction: column;
}

.carnet-content {
  display: flex;
  padding: 15px;
  gap: 15px;
  align-items: flex-start;
  flex: 1;
}

.carnet-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 35%;
}

.carnet-photo-box {
  width: 100px;
  height: 100px;
  border: 3px solid #28a745;
  background: #ddd;
  border-radius: 10px; /* Cuadrado redondeado se ve mas moderno */
  overflow: hidden;
}
.carnet-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-box {
  background: #fff;
  padding: 5px;
  border-radius: 5px;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#qrcode img {
  display: block; /* fix libreria */
  width: 100%;
}

.carnet-right {
  flex: 1;
  text-align: left;
  padding-top: 10px;
}

/* --- ESTILOS DEL MODAL (VISOR PÚBLICO/MOBILE) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Fondo oscuro */
  z-index: 9999;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 400px; /* Tamaño tipo móvil */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.modal-header {
  background: linear-gradient(135deg, #218838 0%, #1e2e1e 100%);
  padding: 30px 20px;
  color: white;
  text-align: center;
}
.modal-logo {
  height: 40px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}
.verified-badge {
  background: #fff;
  color: #218838;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.modal-body {
  padding: 20px;
  text-align: center;
  margin-top: -40px; /* Para que la foto flote sobre el header */
}

.modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: #eee;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.modal-role {
  color: #28a745;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  text-align: left;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
}
.detail-item {
  display: flex;
  flex-direction: column;
}
.detail-item.full-width {
  grid-column: span 2;
  margin-top: 10px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
.detail-item label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
}
.detail-item span {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

/* Responsive adjustments for Carnet generation */
@media (max-width: 550px) {
  .carnet-design {
    transform-origin: left top;
    transform: scale(0.65); /* Escalar para móviles */
    margin-bottom: -90px;
  }
}

/* --- MODAL WIZARD --- */
/* --- ESTILO MODAL MODERNO (OVERRIDE) --- */

.modal-content.nexus-theme {
  padding: 0;
  border-radius: 12px;
  background: #fff;
  font-family: "Montserrat", sans-serif;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden; /* Para que el header no se salga de los bordes redondeados */
}

/* HEADER OSCURO */
.modal-header-modern {
  background: #1e2e1e; /* Verde muy oscuro casi negro */
  color: #fff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #28a745; /* Linea verde acento */
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-icon {
  font-size: 1.5rem;
}
.modal-header-modern h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.close-modern {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}
.close-modern:hover {
  color: #fff;
  transform: scale(1.1);
}

/* BODY */
.modal-body-wizard {
  padding: 30px;
}

/* Pasos */
.step-indicator {
  font-size: 0.75rem;
  color: #28a745;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.step-title {
  color: #333;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 25px;
}

/* --- FORMULARIO Y INPUTS (Estilo Custom) --- */
.nexus-input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-label {
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 8px;
}

.nexus-input,
.nexus-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #f9fdf9; /* Un tinte verde muy muy sutil */
  color: #333;
  font-family: inherit;
}

/* Focus verde profesional */
.nexus-input:focus,
.nexus-select:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
  background-color: #fff;
}

.input-row-joined {
  display: flex;
  gap: 0;
}
.input-row-joined .nexus-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 2;
}
.input-row-joined .nexus-select {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  flex: 1;
  background: #f1f1f1;
}

/* --- NICHE CARDS (Tarjetas de Selección) --- */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Responsivo */
  gap: 15px;
  margin-bottom: 30px;
}
.niche-card {
  position: relative;
  cursor: pointer;
}
.niche-card input {
  display: none;
}
.niche-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  transition: 0.3s;
  background: #fff;
  height: 100%;
}
.niche-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.niche-card span {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.niche-card input:checked + .niche-content {
  border-color: #28a745;
  background-color: #f0fff4;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.15);
  transform: translateY(-2px);
}

/* --- BOTONES NEXUS --- */
.btn-nexus {
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-nexus.primary {
  background: #28a745;
  color: white;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.btn-nexus.primary:hover {
  background: #218838;
  transform: translateY(-1px);
}
.btn-nexus.dark {
  background: #2e2e2e;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-nexus.secondary {
  background: #e9ecef;
  color: #555;
}
.btn-nexus.secondary:hover {
  background: #dee2e6;
  color: #333;
}
.btn-nexus:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- RESULT DASHBOARD --- */
.charts-dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.chart-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.chart-box h5 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}
.kpi-card {
  background: #f4f7f6;
  border-left: 4px solid #28a745;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}
.kpi-card span {
  font-size: 0.7rem;
  color: #777;
  text-transform: uppercase;
}
.kpi-card strong {
  font-size: 1.1rem;
  color: #2e2e2e;
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.score-badge {
  background: #2e2e2e;
  color: #4af57a;
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
}
.score-badge span {
  display: block;
  font-size: 0.6rem;
  color: #bbb;
}
.score-badge strong {
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .charts-dashboard {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- ESTILOS DEL FOOTER BRANDING --- */


.footer-logo {
    display: block;
    width: clamp(280px, 80vw, 450px); /* Sincronizado con el nav-logo */
    height: auto;
    margin: 0 auto 15px auto; /* Centrado automático en móvil */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .footer-logo {
        margin: 0 0 15px 0; /* Alineación a la izquierda solo en escritorio */
        width: clamp(350px, 25vw, 650px);
    }
}






.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 10px;
}



.footer-h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc; /* Hereda o fuerza color oscuro */
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Ajustes Responsive Específicos para Footer */
@media (min-width: 992px) {
    .footer-h1 {
        font-size: 1.8rem;
    }
}

/* Ajuste de Proporciones solicitado (< 1400px) */
@media (max-width: 1400px) {
    .footer-logo-link {
        gap: 8px; /* Reducir gap */
    }
    .footer-h1 {
        font-size: clamp(0.8rem, 1.5vw, 1.2rem); /* Texto reducido significativamente */
        letter-spacing: 1.5px;
    }

}



/* =================================================================== */
/* =================== ESTILOS SECCI�N DE NOTICIAS =================== */
/* =================================================================== */

.news-section {
  padding: 80px 0;
  background-color: #f8fbf9;
}

.news-container-main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.index-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.loading-news {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  padding: 40px;
}

.news-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.15);
}

.news-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.news-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #e6ffed;
  color: #28a745;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #2e2e2e;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-info {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.news-read-more {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #28a745;
  font-weight: 700;
  text-decoration: none;
  margin-top: 15px;
  transition: gap 0.2s;
}

.news-read-more:hover {
  gap: 10px;
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 0;
  }
  .index-news-grid {
    gap: 20px;
  }
}

/* Estilos para la imagen superior izquierda */
.hero-logo-top {
    position: absolute;
    top: 15px;
    left: 15px;
    width: clamp(150px, 35vw, 300px);
    height: auto;
    z-index: 90;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-logo-top {
        width: clamp(250px, 30vw, 450px);
    }
}

