/* ================ HERO ================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 90px;

  /* Imagen de fondo — ruta corregida */
  background-image: url('../fondo-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Color del texto encima */
  color: #fff;
}

/* GRID: 70% TEXTO — 30% ESPACIO PARA IMAGEN */
.hero-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 36px;
  align-items: center;
  min-height: 520px;
  position: relative;
  z-index: 2; /* Asegura que el contenido quede sobre el fondo */
}


/* COLUMNA IZQUIERDA */
.hero-left {
  z-index: 2;
  max-width: 650px;
  padding-right: 20px;
}

/* COLUMNA DERECHA (imagen futura) */
.hero-right {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Capa de oscurecimiento para mejorar la legibilidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(19, 42, 19, 0.85) 0%,
    rgba(19, 42, 19, 0.55) 40%,
    rgba(19, 42, 19, 0.25) 70%,
    rgba(19, 42, 19, 0.05) 100%
  );
  z-index: 0;
}

/* Asegura que todo el contenido quede por encima del overlay */
.hero > .container {
  position: relative;
  z-index: 1;
}

/* ================= TÍTULOS ================= */
.h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.accent {
  color: #A4E100;
}

/* ================= TEXTO ================= */
.lead {
  color: #fff;
  font-size: 1.08rem;
  margin: 14px 0 28px;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Badge */
.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: .9rem;
  font-weight: 500;
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* ================= TARJETA SECUNDARIA ================= */
.hero-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  color: #fff;
}

/* ================= KPIs ================= */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.kpi {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
}

.kpi .n {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ECF39E;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.kpi .t {
  font-size: .88rem;
  color: #e0e0e0;
}

/* ================= BOTÓN OUTLINE (Hero) ================= */
.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  transition: background .3s, color .3s, transform .2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ECF39E;
  transform: translateY(-2px);
}

/* Sombra global para mejorar legibilidad */
.hero h1, .hero .h1,
.hero p, .hero .lead,
.hero .badge,
.hero .kpi,
.hero .btns {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===================== HERO RESPONSIVE ===================== */

/* Laptop / Tablets horizontales */
@media (max-width: 1200px) {
  .hero {
    padding: 70px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 60% 40%;
    gap: 24px;
  }

  .hero-left {
    max-width: 550px;
  }

  .h1 {
    font-size: clamp(26px, 4vw, 42px);
  }
}

/* Tablets verticales */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Mover los KPIs debajo y centrados */
  .kpis {
    justify-content: center;
  }

  .hero-left {
    padding-right: 0;
    margin: 0 auto;
    max-width: 600px;
  }

  .hero-right {
    display: none; /* ocultamos la columna derecha */
  }

  /* Botones centrados */
  .btns {
    justify-content: center;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {

  .hero {
    padding: 65px 0;
    background-position: right center;
  }

  .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .h1 {
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.25;
  }

  .lead {
    font-size: 1rem;
  }

  .kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .kpi {
    padding: 12px;
  }
}

/* Móviles medianos */
@media (max-width: 600px) {

  .h1 {
    font-size: 26px;
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi:last-child {
    grid-column: span 2; /* El último KPI ocupa toda la fila */
  }

  .btns {
    flex-direction: column;
    gap: 12px;
  }

  .btn, .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Móviles pequeños */
@media (max-width: 420px) {

  .hero {
    padding: 50px 0;
  }

  .badge {
    font-size: 0.75rem;
  }

  .h1 {
    font-size: 22px;
  }

  .lead {
    font-size: 0.95rem;
  }

  .kpi .n {
    font-size: 1.1rem;
  }
}

