/*
|--------------------------------------------------------------------------
|                              CENTEOLT
|--------------------------------------------------------------------------
|
|   "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:       Centeolt
|   *   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;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
  max-width: 100%;
}

section[id],
header[id],
main[id],
div[id] {
  scroll-margin-top: 100px;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* ---- 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: 40vh; /* 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: 30vh; /* 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 & Aesthetic Upgrade) ---- */

/* Contenedor principal de la navegación con Glassmorphism */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transform: translateZ(0); /* Capa GPU independiente: evita repintar el viewport completo en cada scroll */
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .main-nav {
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
  }
}

/* Bloqueo de scroll cuando el cajón móvil está abierto */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* 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.reveal-on-scroll.nav-visible,
.main-nav.nav-open,
.main-nav.nav-visible {
  transform: translateY(0);
}

.main-nav.scrolled,
.main-nav.nav-visible {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 0 1px 0 var(--apple-green-glow);
  border-bottom-color: var(--apple-green-border);
}

.nav-container {
  width: 90%;
  height: 74px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: height 0.3s ease;
}

/* Enlace del logo + marca Centeolt */
.nav-container > a,
.nav-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Ajuste del logo para máxima nitidez y visibilidad */
.nav-logo {
  width: auto;
  height: 44px;
  max-height: 48px;
  max-width: 240px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.nav-logo:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 12px var(--apple-green-glow));
}

@media (min-width: 768px) {
  .nav-container {
    height: 80px;
  }
  .nav-logo {
    height: 50px;
    max-height: 54px;
    max-width: 270px;
  }
}

/* --- Estilos para el MENÚ MÓVIL (Modo Teléfono - Mobile First) --- */

/* Fondo oscuro difuminado al abrir el menú móvil */
.main-nav::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(4, 7, 5, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.main-nav.nav-open::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Wrapper para botones de acción del Nav (Theme toggle + hamburguesa) */
.nav-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
}

/* Botón Hamburguesa Moderno con Animación y Efecto Glow */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  color: var(--apple-green-500);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.nav-toggle:hover {
  background: var(--apple-green-50);
  border-color: var(--apple-green-500);
  color: var(--apple-green-600);
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--apple-green-glow);
}

.nav-toggle:active {
  transform: scale(0.92);
}

/* Conmutación y animación de iconos hamburguesa / cierre */
.nav-toggle .icon-close {
  display: none;
}

.main-nav.nav-open .nav-toggle {
  background: var(--apple-green-50);
  border-color: var(--apple-green-500);
  color: var(--apple-green-600);
  box-shadow: 0 0 22px var(--apple-green-glow);
}

.main-nav.nav-open .nav-toggle .icon-hamburger {
  display: none;
}

.main-nav.nav-open .nav-toggle .icon-close {
  display: block;
  animation: spinIcon 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spinIcon {
  from {
    transform: rotate(-90deg) scale(0.7);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

/* Menú Desplegable Móvil (Drawer Lateral Glassmorphism) */
body:not(.platform-body) .menu-list {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-left: 1px solid var(--apple-green-border);
  border-radius: 28px 0 0 28px;
  list-style: none;
  padding: 100px 24px 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s, background-color 0.3s ease;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45), inset 1px 0 0 rgba(255, 255, 255, 0.08);
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 768px) {
  .menu-list {
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
  }
}

.menu-list::before {
  content: 'MENÚ DE NAVEGACIÓN';
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--apple-green-500);
  text-transform: uppercase;
  padding: 0 4px 12px 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  opacity: 0.85;
}

.menu-list::after {
  content: '🟢 Centeolt © 2026 • Agro-Economía';
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: auto;
  padding-top: 22px;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

.main-nav.nav-open .menu-list {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Animación de Entrada Escalonada Suave para los Enlaces Móviles */
body:not(.platform-body) .list-items {
  width: 100%;
  opacity: 0;
  transform: translateX(45px) scale(0.96);
}

.main-nav.nav-open .list-items {
  animation: mobileSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-nav.nav-open .list-items:nth-child(1) { animation-delay: 0.10s; }
.main-nav.nav-open .list-items:nth-child(2) { animation-delay: 0.16s; }
.main-nav.nav-open .list-items:nth-child(3) { animation-delay: 0.22s; }
.main-nav.nav-open .list-items:nth-child(4) { animation-delay: 0.28s; }
.main-nav.nav-open .list-items:nth-child(5) { animation-delay: 0.34s; }

@keyframes mobileSlideIn {
  0% {
    opacity: 0;
    transform: translateX(45px) scale(0.96);
  }
  70% {
    opacity: 0.95;
    transform: translateX(-3px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Enlaces del Menú Móvil estilizados como Tarjetas Táctiles Interactivas */
.list-items a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 20px;
  padding-left: 22px;
  border-radius: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Indicador lateral verde en hover/touch */
.list-items a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 4px;
  background: var(--apple-green-500);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.list-items a::after {
  content: '→';
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--apple-green-500);
  transition: transform 0.25s ease, color 0.2s ease;
}

.list-items a:hover,
.list-items a:active {
  background: var(--apple-green-50);
  border-color: var(--apple-green-500);
  color: var(--apple-green-600);
  transform: translateX(-4px);
  box-shadow: 0 4px 18px var(--apple-green-glow);
}

.list-items a:hover::before,
.list-items a:active::before {
  transform: scaleY(1);
}

.list-items a:hover::after {
  transform: translateX(4px);
  color: var(--apple-green-600);
}

[data-theme="dark"] .list-items a:hover,
[data-theme="dark"] .list-items a:active {
  color: var(--apple-green-400);
}

[data-theme="dark"] .list-items a:hover::after {
  color: var(--apple-green-400);
}

/* Botón CTA dentro del Menú Móvil con Efecto Shimmer */
body:not(.platform-body) .list-items-cta {
  width: 100%;
  margin-top: 8px;
  opacity: 0;
  transform: translateX(45px) scale(0.96);
}

.main-nav.nav-open .list-items-cta {
  animation: mobileSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.38s;
}

.list-items-cta a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--apple-green-600), var(--apple-green-500));
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: var(--shadow-apple);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
}

.list-items-cta a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  transition: left 0.75s ease;
}

.list-items-cta a:hover::before {
  left: 140%;
}

.list-items-cta a:hover {
  background: linear-gradient(135deg, var(--apple-green-500), var(--apple-green-400));
  color: #0a0e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--apple-green-glow);
}

/* --- BREAKPOINT: TABLET Y DESKTOP ( >= 768px ) --- */
@media (min-width: 768px) {
  .nav-toggle {
    display: none; /* Ocultar hamburguesa en pantallas de escritorio */
  }

  .nav-container {
    width: 92%;
    max-width: 1280px;
    display: flex;
    align-items: center;
  }

  .nav-brand-link {
    order: 1;
    margin-right: auto;
  }

  .menu-list {
    order: 2;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
    border-radius: 0;
    transform: none;
    padding: 0;
    box-shadow: none;
    gap: clamp(8px, 1.4vw, 22px);
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .nav-actions-wrapper {
    order: 3;
    margin-left: 16px;
    gap: 0;
  }

  .list-items {
    width: auto;
    opacity: 1;
    transform: none;
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .list-items-cta {
    width: auto;
    opacity: 1;
    transform: none;
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-left: 8px;
  }

  .list-items a {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
    transition: all 0.25s ease;
  }

  .menu-list::before,
  .menu-list::after {
    display: none !important;
  }

  .list-items a::before,
  .list-items a::after {
    display: none !important;
  }

  .list-items a:hover {
    color: var(--apple-green-500);
    border-color: var(--apple-green-border);
    background: var(--apple-green-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px var(--apple-green-glow);
  }

  .list-items-cta a {
    display: inline-flex;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--apple-green-600) 0%, var(--apple-green-500) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-apple);
    text-decoration: none;
    width: auto;
    transition: all 0.3s ease;
  }

  .list-items-cta a:hover {
    background: linear-gradient(135deg, var(--apple-green-500) 0%, var(--apple-green-400) 100%);
    color: #0a0e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--apple-green-glow);
  }

  .list-items-login a {
    white-space: nowrap;
    border: 1px solid var(--apple-green-border, rgba(132, 204, 22, 0.4)) !important;
    background: rgba(132, 204, 22, 0.08) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
  }

  .list-items-login a:hover {
    background: var(--apple-green-500) !important;
    color: #0c120e !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px var(--apple-green-glow) !important;
  }
}

/* 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 TABLET Y DESKTOP (Pantallas más grandes) --- */
@media (min-width: 768px) {
  .hero-content {
    text-align: center;
  }
  .hero-brand {
    justify-content: flex-start;
  }
  .hero-logo {
    width: 180px;
    height: auto;
  }
}

/* ---- Estilos de la Sección de Servicios ---- */
.services-section {
  padding: 90px 20px;
  background-color: var(--bg-body);
  text-align: center;
  transition: background-color var(--transition-normal);
}

.services-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.45rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
  overflow-wrap: break-word;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 36px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--apple-green-border);
  box-shadow: var(--shadow-apple);
}

.service-card-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  background: var(--apple-green-50);
  border: 1px solid var(--apple-green-border);
  border-radius: 50%;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--apple-green-500);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 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: 90px 20px;
  background-color: var(--bg-surface);
  transition: background-color var(--transition-normal);
}

.about-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 45px;
  flex-direction: column;
  text-align: center;
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--text-primary);
}

.about-content .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--text-secondary);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.about-cta {
  display: inline-block;
  color: var(--apple-green-500);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.about-cta:hover {
  color: var(--apple-green-400);
  border-bottom-color: var(--apple-green-500);
  transform: translateX(4px);
}

.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 Moderno Centeolt ---- */
.main-footer {
  background: linear-gradient(180deg, #1a251c 0%, #0d140e 100%);
  color: #cbd5e0;
  padding: 60px 20px 0;
  border-top: 2px solid rgba(40, 167, 69, 0.25);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 35px;
  padding-bottom: 40px;
}

.footer-brand,
.footer-links,
.footer-social {
  width: 100%;
  max-width: 480px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-nav-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.footer-nav-logo:hover {
  transform: translateY(-2px) scale(1.02);
}

.footer-slogan {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #48bb78;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.footer-links h4,
.footer-social h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 9px;
}

.footer-links ul a {
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.92rem;
}

.footer-links ul a:hover {
  color: #48bb78;
  padding-left: 6px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin: 0;
  justify-content: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

.social-icons a:hover {
  background: #28a745;
  border-color: #28a745;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0 28px;
  text-align: center;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-copyright {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.footer-credits {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a0aec0;
}

.footer-credits strong {
  color: #48bb78;
}

.footer-credits a {
  color: #68d391;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credits a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: left;
    flex: 1.2;
  }

  .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-link picture {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 15px auto;
}

@media (min-width: 1024px) {
  .footer-logo-link picture {
    justify-content: flex-start;
    margin: 0 0 15px 0;
  }
}

/* (Overrides de logotipo limpiados) */



.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 SECCIN DE NOTICIAS =================== */
/* =================================================================== */

.news-section {
  padding: 100px 0;
  background-color: var(--bg-body);
  transition: background-color var(--transition-normal);
  scroll-margin-top: 90px;
}

.news-container-main {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.news-section .section-title {
  color: var(--text-primary);
  font-size: clamp(1.45rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
  overflow-wrap: break-word;
}

.news-section .section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  max-width: 720px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

.index-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  text-align: left;
}

.loading-news {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 40px;
}

.news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-card);
  position: relative;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 25px var(--apple-green-glow);
  border-color: var(--apple-green-border);
}

.news-card-img {
  height: 205px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  background-color: var(--bg-surface-elevated, #151d17);
  background-image: linear-gradient(135deg, rgba(132, 204, 22, 0.15), rgba(101, 163, 13, 0.25)), url('../img/truck-working-field-sunny-day.jpg');
}

.news-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.news-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 5px 14px;
  background-color: var(--apple-green-50);
  color: var(--apple-green-600);
  border: 1px solid var(--apple-green-border);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .news-card-tag {
  color: var(--apple-green-400);
}

.news-card-title {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: var(--apple-green-500);
}

.news-card-info {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--apple-green-600);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

[data-theme="dark"] .news-read-more {
  color: var(--apple-green-400);
}

.news-read-more:hover {
  color: var(--apple-green-500);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-section {
    padding: 70px 0;
  }
  .index-news-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
}

/* 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);
    }
}

/* ==========================================================================
   CENTEOLT — MODALES INFORMATIVOS Y DE SERVICIOS
   ========================================================================== */
.modal-overlay.centeotl-overlay {
  background: rgba(4, 7, 5, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.modal-content.centeotl-modal-card {
  max-width: 580px;
  width: 92%;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0a0e0b);
  border: 1px solid var(--apple-green-border, rgba(132, 204, 22, 0.35));
  box-shadow: var(--shadow-lg, 0 20px 45px rgba(0, 0, 0, 0.5)), 0 0 35px var(--apple-green-glow, rgba(132, 204, 22, 0.15));
  overflow: hidden;
  position: relative;
  padding: 0;
  animation: centeotlModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes centeotlModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header con gradiente Centeotl */
.centeotl-modal-header {
  position: relative;
  flex-shrink: 0;
  padding: 26px 64px 20px 28px;
  background: linear-gradient(135deg, #152b1b 0%, #0d1a10 100%);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  overflow: hidden;
  text-align: left;
}

[data-theme="light"] .centeotl-modal-header {
  background: linear-gradient(135deg, #14351d 0%, #1e4d29 100%);
  color: #ffffff;
}

[data-theme="dark"] .centeotl-modal-header {
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.12) 0%, #0c120e 100%);
  color: #ffffff;
}

.centeotl-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  background: rgba(132, 204, 22, 0.18);
  border: 1px solid var(--apple-green-400, #bef264);
  color: var(--apple-green-200, #d9f99d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 9999px);
  margin-bottom: 12px;
  line-height: 1.35;
}

.centeotl-modal-header h3 {
  margin: 0 0 6px 0;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.centeotl-modal-header p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  line-height: 1.4;
}

/* Botón cerrar elegante */
.centeotl-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  line-height: 1;
}

.centeotl-modal-close:hover {
  background: var(--apple-green-500, #84cc16);
  color: #0c120e;
  transform: rotate(90deg) scale(1.08);
  border-color: transparent;
  box-shadow: 0 0 15px var(--apple-green-glow, rgba(132, 204, 22, 0.4));
}

/* Cuerpo del modal con scroll interno fluido */
.centeotl-modal-body {
  padding: 24px 28px;
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0a0e0b);
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--apple-green-500, #84cc16) transparent;
}

.centeotl-modal-body::-webkit-scrollbar {
  width: 6px;
}

.centeotl-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

[data-theme="dark"] .centeotl-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.centeotl-modal-body::-webkit-scrollbar-thumb {
  background: var(--apple-green-500, #84cc16);
  border-radius: 6px;
}

.centeotl-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--apple-green-400, #a3e635);
}

.centeotl-modal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apple-green-600, #65a30d);
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .centeotl-modal-section-title {
  color: var(--apple-green-400, #bef264);
}

/* Lista estilizada con viñetas Centeotl */
.centeotl-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.centeotl-modal-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary, #374151);
}

[data-theme="dark"] .centeotl-modal-list li {
  color: var(--text-secondary, #d1d5db);
}

.centeotl-modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--apple-green-50, rgba(132, 204, 22, 0.15));
  color: var(--apple-green-600, #65a30d);
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--apple-green-border, rgba(132, 204, 22, 0.35));
}

[data-theme="dark"] .centeotl-modal-list li::before {
  color: var(--apple-green-400, #bef264);
}

.centeotl-modal-list strong {
  color: var(--text-primary, #0a0e0b);
}

[data-theme="dark"] .centeotl-modal-list strong {
  color: var(--text-primary, #f8faf8);
}

/* Footer / CTA del modal */
.centeotl-modal-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.centeotl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: #0c120e !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: var(--radius-pill, 9999px);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(101, 163, 13, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.4px;
}

.centeotl-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
  box-shadow: 0 10px 28px rgba(132, 204, 22, 0.45);
  color: #060a07 !important;
}

.centeotl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-muted, #6b7280);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.15));
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.centeotl-btn-secondary:hover {
  background: var(--apple-green-50, rgba(132, 204, 22, 0.08));
  color: var(--text-primary, #0a0e0b);
  border-color: var(--apple-green-400, #a3e635);
}

/* ==========================================================================
   CENTEOLT — WIZARD PLAN DE PRODUCCIÓN AGROPECUARIA
   ========================================================================== */
#production-modal.modal-overlay {
  background: rgba(4, 7, 5, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
}

#production-modal .modal-content {
  max-width: 840px !important;
  width: 95% !important;
  max-height: 90vh !important;
  border-radius: var(--radius-lg, 20px) !important;
  background: var(--bg-surface, #ffffff) !important;
  color: var(--text-primary, #0a0e0b) !important;
  border: 1px solid var(--apple-green-border, rgba(132, 204, 22, 0.35)) !important;
  box-shadow: var(--shadow-lg, 0 20px 45px rgba(0, 0, 0, 0.5)), 0 0 35px var(--apple-green-glow, rgba(132, 204, 22, 0.15)) !important;
  overflow-y: auto !important;
  position: relative !important;
  padding: 0 !important;
  animation: centeotlModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#production-modal .modal-header {
  padding: 28px 28px 22px !important;
  background: linear-gradient(135deg, #152b1b 0%, #0d1a10 100%) !important;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08)) !important;
  text-align: left !important;
  position: relative !important;
}

[data-theme="light"] #production-modal .modal-header {
  background: linear-gradient(135deg, #14351d 0%, #1e4d29 100%) !important;
  color: #ffffff !important;
}

[data-theme="dark"] #production-modal .modal-header {
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.12) 0%, #0c120e 100%) !important;
  color: #ffffff !important;
}

#production-modal .modal-body {
  padding: 28px !important;
  background: var(--bg-surface, #ffffff) !important;
  color: var(--text-primary, #0a0e0b) !important;
  margin-top: 0 !important;
}

/* Títulos y Subtítulos de los pasos del Wizard */
.prod-wizard-step-title {
  color: var(--apple-green-600, #65a30d);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

[data-theme="dark"] .prod-wizard-step-title {
  color: var(--apple-green-400, #bef264);
}

.prod-wizard-step-desc {
  color: var(--text-secondary, #4b5563);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

[data-theme="dark"] .prod-wizard-step-desc {
  color: var(--text-muted, #9ca3af);
}

/* Tarjetas de nichos interactivas */
.niche-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 10px !important;
}

.niche-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.niche-card:hover {
  transform: translateY(-4px);
}

.niche-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-card, #ffffff) !important;
  border: 1px solid var(--border-card, rgba(0, 0, 0, 0.1)) !important;
  border-radius: var(--radius-md, 14px) !important;
  padding: 22px 10px !important;
  min-height: 125px !important;
  color: var(--text-primary, #0a0e0b) !important;
  transition: all 0.25s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.niche-icon {
  font-size: 2.6rem !important;
  margin-bottom: 10px !important;
  transition: transform 0.25s ease, filter 0.25s ease !important;
}

.niche-box span:last-child {
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.2px !important;
}

/* Estado Seleccionado */
.niche-card input:checked + .niche-box {
  border-color: var(--apple-green-500, #84cc16) !important;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.14) 0%, rgba(132, 204, 22, 0.04) 100%) !important;
  box-shadow: 0 8px 24px var(--apple-green-glow, rgba(132, 204, 22, 0.25)) !important;
  transform: scale(1.03) !important;
}

.niche-card input:checked + .niche-box span:last-child {
  color: var(--apple-green-600, #65a30d) !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .niche-card input:checked + .niche-box span:last-child {
  color: var(--apple-green-400, #bef264) !important;
}

.niche-card input:checked + .niche-box .niche-icon {
  transform: scale(1.12) !important;
  filter: none !important;
}

/* Inputs de Paso 2 adaptados a temas */
#step-prod-2 .input-group label {
  color: var(--text-primary, #0a0e0b);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

#step-prod-2 input,
#step-prod-2 select {
  background: var(--bg-input, #ffffff) !important;
  color: var(--text-primary, #0a0e0b) !important;
  border: 1px solid var(--border-subtle, #d1d5db) !important;
  border-radius: var(--radius-sm, 8px) !important;
  padding: 10px 14px !important;
  font-size: 0.95rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#step-prod-2 input:focus,
#step-prod-2 select:focus {
  outline: none !important;
  border-color: var(--apple-green-500, #84cc16) !important;
  box-shadow: 0 0 0 3px var(--apple-green-glow, rgba(132, 204, 22, 0.25)) !important;
}

#dynamic-fields-container {
  background: var(--bg-surface-elevated, #f9fafb) !important;
  border: 1px solid var(--border-card, rgba(0, 0, 0, 0.08)) !important;
  border-radius: var(--radius-md, 14px) !important;
}

[data-theme="dark"] #dynamic-fields-container {
  background: var(--bg-surface-elevated, #151d17) !important;
  border-color: var(--border-subtle, rgba(255, 255, 255, 0.08)) !important;
}

/* ==========================================================================
   CENTEOLT — OPTIMIZACIÓN RESPONSIVE MOBILE INDEX
   ========================================================================== */
@media (max-width: 768px) {
  .services-section {
    padding: 50px 16px;
  }
  .services-container {
    padding: 0 4px;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .service-card {
    padding: 26px 20px !important;
    text-align: center;
  }
  .service-card h3 {
    font-size: 1.18rem !important;
  }
  .service-card p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }
  .news-section {
    padding: 50px 16px !important;
  }
  .index-news-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* ==========================================================================
   CENTEOLT — MODAL RESPONSIVE Y SCROLL MÓVIL
   ========================================================================== */
@media (max-width: 640px) {
  .modal-overlay.centeotl-overlay {
    padding: 12px;
  }

  .modal-content.centeotl-modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }

  .centeotl-modal-header {
    padding: 18px 54px 14px 18px;
  }

  .centeotl-modal-header h3 {
    font-size: 1.15rem;
  }

  .centeotl-modal-header p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .centeotl-modal-badge {
    font-size: 0.68rem;
    padding: 3px 10px;
    margin-bottom: 8px;
  }

  .centeotl-modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .centeotl-modal-body {
    padding: 18px 18px;
  }

  .centeotl-modal-section-title {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .centeotl-modal-list {
    gap: 10px;
    margin-bottom: 20px;
  }

  .centeotl-modal-list li {
    font-size: 0.86rem;
    line-height: 1.45;
    padding-left: 26px;
  }

  .centeotl-modal-list li::before {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: 2px;
  }

  .centeotl-modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
    padding-top: 14px;
  }

  .centeotl-modal-footer .centeotl-btn-primary,
  .centeotl-modal-footer .centeotl-btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* Soporte para dispositivos móviles apaisados (Landscape) o pantallas de altura reducida */
@media (max-height: 540px) {
  .modal-overlay.centeotl-overlay {
    padding: 8px;
    align-items: flex-start;
  }

  .modal-content.centeotl-modal-card {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .centeotl-modal-header {
    padding: 12px 48px 10px 14px;
  }

  .centeotl-modal-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .centeotl-modal-header h3 {
    font-size: 1.05rem;
  }

  .centeotl-modal-header p {
    font-size: 0.78rem;
  }

  .centeotl-modal-body {
    padding: 12px 16px;
  }
}
