/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
  /* Colores de Marca */
  --brand-blue: #15284B;       /* Azul Oscuro */
  --brand-orange: #F05A28;     /* Naranja */
  --brand-orange-dark: #d14010;
  
  /* Colores Neutros */
  --text-main: #333333;
  --text-light: #666666;
  --bg-light: #f9fafb;         /* Gris muy suave para fondos de sección */
  --white: #ffffff;
  --border-color: #e0e0e0;
}

html {
  /* 1. Activa el desplazamiento suave */
  scroll-behavior: smooth;
  
  /* 2. Compensación para el menú fijo (Header) 
     Esto evita que el título quede escondido detrás del menú al hacer scroll.
     Ajusta los 90px si tu header es más alto o más bajo. */
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box; /* Previene desbordamientos de padding */
}

/* --- COMPENSACIÓN DEL CUERPO --- */
body {
  margin: 0;
  font-family: sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  
  /* IMPORTANTE: Empujamos todo el sitio hacia abajo para que el Hero 
     no quede escondido detrás del header fijo. 
     Ajusta este valor si tu header es más alto o más bajo. */
  padding-top: 85px; 
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* Sección General (Fondo gris para resaltar tarjetas blancas) */
.section-padding {
  padding: 100px 0;
  background-color: var(--bg-light); 
}

/* --- TIPOGRAFÍA Y TEXTOS --- */

/* Texto Lead (Intro): Por defecto GRIS (para fondos claros) */
.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
  position: fixed; /* Hace que se quede pegado arriba */
  top: 0;
  left: 0;
  width: 100%; /* Ocupa todo el ancho */
  background-color: var(--white);
  
  /* Sombra suave para separarlo del contenido al bajar */
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
  border-bottom: none; /* Quitamos el borde gris simple, la sombra se ve mejor */
  
  padding: 15px 0;
  z-index: 1100; /* Un número alto para que esté ENCIMA del video y modales */
  transition: all 0.3s ease; /* Suavidad si quisieras cambiar tamaño al bajar */
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-img {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--brand-orange);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================
   3. BOTONES GLOBALES
   ========================================= */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-outline {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--brand-blue);
  color: var(--white);
}

.btn-primary {
  background-color: var(--brand-orange);
  color: var(--white);
  border: 1px solid var(--brand-orange);
}

.btn-primary:hover {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
}

/* Elementos Móviles (Ocultos en Desktop) */
.menu-btn, .mobile {
  display: none;
}

/* --- HERO SECTION CON VIDEO --- */
.hero {
  position: relative; /* Necesario para que lo de adentro se posicione absoluto */
  padding: 160px 0;   /* Un poco más de altura para que luzca el video */
  overflow: hidden;   /* Corta el video si se sale de los bordes */
  color: var(--white);
  text-align: center;
}

/* El Video de Fondo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hace que el video llene el espacio sin estirarse (como background-size: cover) */
  z-index: 0; /* Capa más baja */
}

/* La Capa Oscura (Overlay) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente azul oscuro semitransparente */
  background: linear-gradient(
    to bottom,
    rgba(21, 40, 75, 0.55),
    rgba(21, 40, 75, 0.70)
  );
  z-index: 1; /* Encima del video */
}

/* El Contenido (Texto) */
.hero-content {
  position: relative;
  z-index: 2; /* Encima de todo lo demás */
}

/* --- ESTILOS DE TEXTO Y BOTONES (Igual que antes) --- */
.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 24px 0;
  max-width: 900px;
}

/* Forzamos el texto lead a blanco en el hero */
.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 40px;
}

/* Badge */
.hero .badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* Botones */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Override botón outline en Hero */
.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.hero .btn-outline:hover {
  background-color: var(--white);
  color: var(--brand-blue);
}

/* Píldoras de confianza */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.trust-pill {
  background-color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--brand-blue);
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero { padding: 100px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; box-sizing: border-box; display: block; }
  .trust-row { flex-direction: column; width: 100%; gap: 10px; }
  .trust-pill { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* =========================================
   5. SECCIÓN PROBLEMA / SOLUCIÓN (ESTILO TARJETAS)
   ========================================= */

.intro-block {
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-orange);
  margin-bottom: 10px;
  display: block;
}

.intro-block h2 {
  font-size: 2rem;
  color: var(--brand-blue);
  margin-bottom: 15px;
}

/* Grid Layout */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Estilo ATRACTIVO de Tarjetas */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 40px;
  border-radius: 16px;
  height: 100%;
  /* Sombra suave */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
              0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

/* Efecto Hover: Levantar tarjeta */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tarjeta destacada (izquierda) */
.highlight-card {
  border-top: 4px solid var(--brand-orange);
}

.card h3 {
  margin-top: 10px;
  margin-bottom: 15px;
  color: var(--brand-blue);
  font-size: 1.4rem;
}

/* Chips / Etiquetas */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge-pill {
  background-color: rgba(21, 40, 75, 0.05);
  color: var(--brand-blue);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(21, 40, 75, 0.1);
}

/* Lista estilizada con "X" */
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✕";
  color: #ef4444; /* Rojo */
  background-color: #fee2e2; /* Fondo rojo claro */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Métricas al pie */
.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.metric-item strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1rem;
}

.metric-item span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* =========================================
   6. RESPONSIVE / MÓVIL (Max 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Header */
  nav, .nav-cta .btn { display: none; }
  
  .menu-btn {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--brand-blue);
    cursor: pointer;
    padding: 5px;
  }

  .mobile {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .mobile a {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-main);
    display: block;
  }

  .mobile.open { display: flex; }

  /* Hero */
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  /* Botones que no se salen de la pantalla */
  .hero-actions .btn {
    width: 100%;
    box-sizing: border-box; 
    display: block;
    margin: 0;
  }

  .trust-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .trust-pill {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Sección Grid */
  .grid-2-cols { grid-template-columns: 1fr; }
  .intro-block h2 { font-size: 1.6rem; }
}

/* --- ESTILOS DE LOS BOTONES MÉTRICOS --- */
.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas */
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.metric-btn {
  background: #f0f4f8; /* Fondo suave */
  border: 1px solid transparent;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit; /* Heredar fuente */
}

.metric-btn:hover {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 10px rgba(21, 40, 75, 0.1);
  transform: translateY(-2px);
}

.metric-btn strong {
  display: block;
  color: var(--brand-blue);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.metric-btn span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- ESTILOS DE LA VENTANA MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px); /* Efecto borroso elegante */
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--brand-orange); /* Detalle de marca */
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--brand-orange);
}

#modalTitle {
  color: var(--brand-blue);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

#modalText {
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- GRID DE SERVICIOS --- */
/* --- GRID DE SERVICIOS (Con Imágenes) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Tarjeta Base */
.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  /* IMPORTANTE: Padding 0 para que la imagen toque los bordes */
  padding: 0; 
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden; /* Para que la imagen respete las esquinas redondeadas */
}

/* Contenedor de la Imagen */
.card-image {
  margin: 0;
  width: 100%;
  height: 200px; /* Altura fija para uniformidad */
  overflow: hidden;
  background-color: #f0f4f8;
}

/* La Imagen en sí */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
  transition: transform 0.5s ease;
}

/* Zoom suave al pasar el mouse */
.service-card:hover .card-image img {
  transform: scale(1.1);
}

/* Cuerpo del Texto (Donde va el padding ahora) */
.card-body {
  padding: 25px; /* Espacio interno para el texto */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Efecto Hover Tarjeta completa */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: transparent;
}

/* Borde inferior naranja al hover */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--brand-orange);
  transition: width 0.3s ease;
  z-index: 2;
}

.service-card:hover::after {
  width: 100%;
}

/* --- TEXTOS --- */
.card-body h3 {
  font-size: 1.35rem;
  margin: 0 0 10px 0;
  color: var(--brand-blue);
  font-weight: 700;
}

.card-body p.muted {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Empuja el botón al final */
}

/* Botón enlace */
.link-btn {
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.link-btn:hover {
  gap: 10px;
  color: var(--brand-orange-dark);
}

/* --- TEXTOS --- */
.service-card h3 {
  font-size: 1.35rem;
  margin: 0 0 12px 0;
  color: var(--brand-blue);
  font-weight: 700;
}

.service-card p.muted {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Botón tipo enlace simple */
.link-btn {
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.link-btn:hover {
  gap: 10px; /* La flecha se mueve a la derecha */
  color: var(--brand-orange-dark);
}

/* --- FONDO TÉCNICO PARA SECCIÓN SERVICIOS --- */
#servicios {
  background-color: #ffffff; /* Fondo base blanco */
  position: relative; /* Para asegurar que el contenido quede encima */
  
  /* Patrón de cuadrícula estilo ingeniería (muy sutil) */
  background-image: 
    linear-gradient(rgba(21, 40, 75, 0.03) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(21, 40, 75, 0.03) 1px, transparent 1px);
  
  background-size: 40px 40px; /* Tamaño de los cuadros */
  
  /* Sombra interna superior para separar de la sección anterior */
  box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.05);
  border-top: 1px solid #eee;
}

/* Opcional: Si quieres que el título resalte más sobre este fondo */
#servicios .section-header h2 {
  position: relative;
  z-index: 1;
}

/* --- SECCIÓN DIFERENCIADORES --- */
#diferenciadores {
  background-color: var(--bg-light); /* Fondo gris para contraste con el blanco anterior */
}

/* Alineación vertical centrada para las columnas */
.align-center {
  align-items: center;
}

/* Divisor visual simple */
.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 20px 0;
  width: 100px; /* Solo una línea corta estética */
}

/* --- LISTA POSITIVA (Checkmarks) --- */
.check-list-positive {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list-positive li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1rem;
}

/* El icono de "Check" naranja */
.check-list-positive li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--white);
  background-color: var(--brand-orange);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(240, 90, 40, 0.3);
}

/* --- TARJETA DASHBOARD (Derecha) --- */
.dashboard-card {
  border-top: 4px solid var(--brand-blue); /* Detalle superior azul */
  padding: 35px;
}

.card-header {
  margin-bottom: 15px;
}

.small-text {
  font-size: 0.9rem;
  margin-bottom: 25px;
}

/* Rejilla de Métricas 2x2 */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.stat-box {
  background-color: #f0f4f8; /* Fondo azul grisáceo muy suave */
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background-color: var(--white);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.2;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
  font-weight: 600;
}

.placeholder-note {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .info-block {
    margin-bottom: 40px; /* Separación entre texto y tarjeta en móvil */
  }
}

/* --- SECCIÓN SECTORES --- */
#sectores {
  background-color: var(--white); /* Fondo blanco limpio */
}

/* Grid de 3 Columnas */
.sectors-grid {
  display: grid;
  /* Se adapta: mínimo 300px por tarjeta, si cabe más, pone 3 columnas */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Tarjeta de Sector */
.sector-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center; /* Texto centrado para este tipo de contenido */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Borde superior de color (Detalle estético importante) */
  border-top: 4px solid var(--brand-blue);
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: transparent; /* El borde gris desaparece, queda la sombra */
  border-top-color: var(--brand-orange); /* El borde superior cambia a naranja */
}

/* Icono Grande Centrado */
.sector-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  
  /* Círculo decorativo detrás del emoji */
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: var(--bg-light);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.sector-card:hover .sector-icon {
  background-color: rgba(240, 90, 40, 0.1); /* Fondo naranja suave al hover */
  animation: bounce 0.5s ease;
}

.sector-card h3 {
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 15px;
}

.sector-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Pequeña animación de rebote para el icono */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .sectors-grid {
    grid-template-columns: 1fr; /* Una sola columna en celular */
  }
}

/* --- SECCIÓN METODOLOGÍA --- */
#metodologia {
  background-color: var(--bg-light); /* Fondo Gris suave para alternar */
}

/* Ajuste de la intro */
.methodology-intro {
  padding-right: 30px;
}

/* --- ESTILOS DEL TIMELINE (PASOS) --- */
.steps-container {
  position: relative;
  padding-left: 20px;
}

/* Línea vertical conectora */
.steps-container::before {
  content: '';
  position: absolute;
  left: 34px; /* Alineado al centro de los números */
  top: 20px;
  bottom: 20px;
  width: 2px;
  background-color: #e0e0e0;
  z-index: 0;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Para estar encima de la línea */
}

.step:last-child {
  margin-bottom: 0;
}

/* Números circulare */
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--white);
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse por el paso completo */
.step:hover .step-num {
  background-color: var(--brand-blue);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(21, 40, 75, 0.1); /* Anillo suave */
}

.step-content strong {
  display: block;
  font-size: 1.1rem;
  color: var(--brand-blue);
  margin-bottom: 5px;
}

.small-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* --- CTA BAND (Caja Azul inferior) --- */
.cta-band {
  background-color: var(--brand-blue); /* Fondo Azul Oscuro */
  border-radius: 16px;
  padding: 40px 50px;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  box-shadow: 0 20px 40px -10px rgba(21, 40, 75, 0.3);
  
  /* Imagen de fondo sutil (Opcional, patrón geométrico) */
  background-image: radial-gradient(circle at top right, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.cta-content {
  max-width: 600px;
}

.cta-content h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 0 10px 0;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Botón Outline Blanco (Específico para fondo oscuro) */
.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--brand-blue);
  border-color: var(--white);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
  }
  
  .cta-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .btn-primary, .btn-outline-white {
    width: 100%; /* Botones grandes en móvil */
  }
  
  .methodology-intro {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
}

/* --- SECCIÓN NOSOTROS --- */
#nosotros {
  background-color: var(--white); /* Fondo blanco para alternar */
}

/* --- TARJETA PLACEHOLDER (Espacio reservado) --- */
.placeholder-card {
  background-color: #f8f9fa; /* Fondo muy claro */
  border: 2px dashed #cbd5e1; /* Borde punteado estilo "plano/blueprint" */
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.placeholder-card:hover {
  border-color: var(--brand-blue);
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background-color: var(--white);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Etiquetas (Tags) de lo que vendrá */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.tag {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Nota para el administrador/dueño */
.admin-note {
  background-color: rgba(240, 90, 40, 0.1); /* Fondo naranja suave */
  border-left: 3px solid var(--brand-orange);
  padding: 10px 15px;
  font-size: 0.85rem;
  color: var(--text-main);
  text-align: left;
  width: 100%;
  margin-top: 20px;
  border-radius: 0 4px 4px 0;
}

/* --- SECCIÓN NOSOTROS --- */
#nosotros {
  background-color: var(--white);
}

/* --- BLOQUE DE IMAGEN/LOGO (Izquierda) --- */
.image-block.logo-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Fondo gris muy claro y marco para que el logo resalte */
  background-color: #f8f9fa; 
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 40px;
  height: 100%;
  min-height: 350px; /* Altura mínima para balancear con el texto */
  /* Sombra interna sutil para dar sensación de profundidad */
  box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

/* Estilos específicos para la imagen del logo */
.logo-showcase img {
  width: 100%;
  max-width: 300px; /* Ajusta esto según qué tan grande quieres que se vea tu logo */
  height: auto;
  object-fit: contain; /* Asegura que el logo no se recorte */
  /* Sombra suave externa para que el logo "flote" */
  filter: drop-shadow(0 10px 20px rgba(21, 40, 75, 0.15));
  transition: transform 0.5s ease;
  z-index: 1;
}

/* Efecto hover elegante */
.logo-showcase:hover img {
  transform: scale(1.05); /* Crece ligeramente */
}

/* Decoración de fondo opcional (un brillo sutil) */
.logo-showcase::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.logo-showcase:hover::after {
  opacity: 1;
}

/* (Opcional) Limpieza: Si ya no usas las clases del placeholder anterior 
   (.placeholder-card, .tags-container, .admin-note), puedes borrarlas de tu CSS para mantenerlo limpio. */

/* --- SECCIÓN RECURSOS --- */
#recursos {
  background-color: var(--bg-light); /* Fondo Gris para contraste */
}

/* Tarjeta de Recurso Genérica */
.resource-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Para contener la etiqueta */
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Estilo específico para la Tarjeta de Descarga (Más llamativa) */
.download-card {
  border-top: 4px solid var(--brand-orange); /* Borde superior Naranja */
}

.article-card {
  border-top: 4px solid var(--brand-blue); /* Borde superior Azul */
}

/* Etiqueta superior (Badge) */
.resource-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #f0f4f8;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Icono central grande */
.resource-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  margin-top: 10px;
  background-color: var(--bg-light);
  width: 90px;
  height: 90px;
  line-height: 90px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
  background-color: var(--brand-blue); /* Se vuelve azul al hover */
  transform: scale(1.1);
  /* Un pequeño truco para que el emoji se vea bien sobre azul */
  text-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* Ajustes de texto */
.resource-content h3 {
  font-size: 1.4rem;
  color: var(--brand-blue);
  margin-bottom: 15px;
  line-height: 1.3;
}

.resource-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1; /* Empuja el botón hacia abajo si el texto es corto */
}

/* Ajuste móvil para botones */
@media (max-width: 768px) {
  .btn-full {
    width: 100%;
  }
}

/* --- SECCIÓN CONTACTO --- */
#contacto {
  background-color: var(--white);
}

.align-start {
  align-items: start; /* Alinea los elementos al tope */
}

/* Tarjeta de Confianza (Izquierda) */
.trust-card {
  background-color: #f0f4f8; /* Azul grisáceo muy suave */
  border-left: 4px solid var(--brand-blue);
  padding: 30px;
  border-radius: 8px;
  margin-top: 20px;
}

.trust-card h3 {
  color: var(--brand-blue);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
}

/* --- ESTILOS DEL FORMULARIO --- */
.form-card {
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Sombra más pronunciada para resaltar */
  border: 1px solid var(--border-color);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

/* Etiquetas */
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

/* Inputs y Selects */
input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

/* Efecto Focus (Al escribir) */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 40, 75, 0.1);
}

/* Estilo para Textarea */
textarea {
  resize: vertical; /* Permite cambiar tamaño solo verticalmente */
  min-height: 100px;
}

/* Footer del formulario */
.form-footer {
  margin-top: 20px;
}

.privacy-text {
  font-size: 0.85rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.privacy-text a {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Flechita personalizada para selects (Opcional para que se vea moderno) */
.select-wrapper {
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 15px;
  }
  
  .form-card {
    padding: 25px; /* Menos padding en móvil */
  }
}

/* --- FOOTER (PIE DE PÁGINA) --- */
.site-footer {
  background-color: var(--brand-blue); /* Fondo Azul Oscuro */
  color: var(--white);
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  /* 3 columnas: La primera más ancha (2fr), las otras normales (1fr) */
  grid-template-columns: 2fr 1fr 1fr; 
  gap: 40px;
  margin-bottom: 40px;
}

.brand-logo {
  margin-bottom: 20px;
  /* Quitamos los estilos de texto flex que ya no sirven para la imagen */
}

/* Estilo para la imagen del logo en el footer */
.footer-logo-img {
  display: block;
  max-width: 160px; /* Ajusta este valor según el tamaño deseado de tu logo */
  height: auto;     /* Mantiene la proporción */
  object-fit: contain;
}

.logo-icon {
  background-color: var(--brand-orange); /* Detalle naranja */
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7); /* Blanco con transparencia */
  line-height: 1.6;
  max-width: 300px;
}

/* Títulos de columnas */
.footer-heading {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-orange); /* Línea decorativa */
  display: inline-block;
  padding-bottom: 5px;
}

/* Enlaces */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-orange); /* Naranja al pasar el mouse */
  text-decoration: none;
}

.privacy-link {
  text-decoration: underline !important;
  font-size: 0.85rem;
}

/* Divisor y Copyright */
.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1); /* Línea muy sutil */
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 40px;
    text-align: center;
  }

  .footer-heading {
    justify-content: center; /* Centrar elementos */
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-desc {
    margin: 0 auto; /* Centrar texto */
  }
}

/* Aseguramos que se centre en móvil */
@media (max-width: 768px) {
  .brand-logo {
    display: flex;
    justify-content: center;
  }
}

/* --- ENLACE ACTIVO (Scroll Spy) --- */
nav a.active, 
.mobile a.active {
  color: var(--brand-orange) !important; /* Forzamos el color naranja */
  font-weight: 700;
  position: relative;
}

/* Opcional: Un puntito debajo del enlace activo para que se vea moderno */
nav a.active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--brand-orange);
  border-radius: 50%;
  margin: 4px auto 0 auto; /* Centrado debajo del texto */
  position: absolute;
  left: 0; 
  right: 0;
}