/* ==========================================================================
   Inicio
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  max-height: 900px;
  display: flex;
  align-items: center;
  padding: var(--space-8) 0;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: 0 0 0 30%;
  background: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1800&q=80') center / cover no-repeat;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(var(--bg-rgb), 0.92) 18%, rgba(var(--bg-rgb), 0.45) 55%, rgba(var(--bg-rgb), 0.25) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 35%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-pill);
  background: rgba(var(--bg-rgb), 0.6);
  font-size: var(--fs-sm);
  color: var(--on-dark-md);
  margin-bottom: var(--space-5);
}
.hero-badge b {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.hero-title { margin-bottom: var(--space-5); }
.hero-title .hl { color: var(--yellow); display: inline-block; }
.hero-lead { font-size: var(--fs-md); max-width: 540px; color: var(--on-dark-md); margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-7); }

.hero-info {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--on-dark-md);
}
.hero-info li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-info .ic { color: var(--yellow); }
.hero-info a { text-decoration: none; color: var(--white); font-weight: 600; }
.hero-info a:hover { color: var(--yellow); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--yellow), transparent);
  z-index: 2;
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding: var(--space-8) 0 var(--space-7); }
  .hero-media { inset: 0; opacity: 0.55; }
  .hero-media::after { background: linear-gradient(0deg, var(--black) 10%, rgba(var(--bg-rgb), 0.55) 100%); }
  .hero-scroll { display: none; }
  .hero-actions .btn-golden, .hero-actions .btn-dark { flex: 1 1 100%; }
}

/* --- Banda de datos ------------------------------------------------------ */
.stats-band { background: var(--yellow); color: var(--black); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid rgba(0, 0, 0, 0.14);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}
.stat-label { font-size: var(--fs-sm); font-weight: 500; margin-top: var(--space-2); color: rgba(0, 0, 0, 0.78); }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--space-5) var(--space-4); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(0, 0, 0, 0.14); }
}

/* --- Asesoría IA ---------------------------------------------------------- */
.ai-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.ai-feature h2 { margin: var(--space-3) 0 var(--space-4); }
.ai-feature > div > p { font-size: var(--fs-md); max-width: 520px; }

.ai-steps { list-style: none; margin: var(--space-6) 0; display: grid; gap: var(--space-2); }
.ai-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line-dark);
}
.ai-steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.ai-step-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--yellow);
}
.ai-steps strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2px; }
.ai-steps span { color: var(--on-dark-lo); font-size: var(--fs-sm); }
.ai-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.ai-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
}
.ai-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); }
.ai-visual::before {
  content: "";
  position: absolute;
  inset: 12% 18%;
  border: 1.5px dashed rgba(215, 152, 72, 0.75);
  border-radius: 44% 44% 40% 40%;
  z-index: 2;
}
.ai-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 20%;
  background: var(--yellow);
  box-shadow: 0 0 24px 4px rgba(215, 152, 72, 0.55);
  z-index: 3;
  animation: scanLine 3.6s var(--ease-out) infinite alternate;
}
@keyframes scanLine { from { top: 18%; } to { top: 78%; } }
.ai-visual-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--black);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
}
.ai-visual-chip b { font-family: var(--font-display); font-size: 1.25rem; color: var(--yellow); }
.ai-visual-chip.c1 { left: 16px; bottom: 16px; }
.ai-visual-chip.c2 { right: 16px; top: 16px; background: var(--yellow); color: var(--black); border-color: var(--yellow); font-weight: 600; }
.ai-visual-chip.c2 .ic { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .ai-feature { grid-template-columns: 1fr; gap: var(--space-7); }
  .ai-visual { aspect-ratio: 4 / 3; max-width: 560px; }
}

/* --- Equipo ----------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.team-card:hover { border-color: var(--yellow-line); transform: translateY(-4px); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-750); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out); }
.team-card:hover .team-photo img { filter: grayscale(0%); transform: scale(1.03); }
.team-body { padding: var(--space-4) var(--space-4) var(--space-5); }
.team-body h3 { font-size: 1.6rem; }
.team-body p { font-size: var(--fs-sm); color: var(--on-dark-lo); margin: 2px 0 var(--space-3); }
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.team-link .ic { transition: transform var(--dur) var(--ease-out); }
.team-link:hover .ic { transform: translateX(4px); }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-body h3 { font-size: 1.3rem; } .team-body { padding: var(--space-3); } }

/* Ajustes responsive adicionales */
@media (min-width: 761px) and (max-width: 1024px) {
  .hero-media { inset: 0 0 0 20%; }
  .hero-content { max-width: 600px; }
}
@media (max-width: 480px) {
  .hero { padding: var(--space-6) 0 var(--space-6); }
  .hero-badge { font-size: 0.8rem; gap: var(--space-2); }
  .hero-lead { font-size: var(--fs-base); margin-bottom: var(--space-5); }
  .hero-actions { margin-bottom: var(--space-5); }
  .hero-info { flex-direction: column; gap: var(--space-3); }
  .stat-value { font-size: 2rem; }
  .stat { padding: var(--space-4) var(--space-3); }
  .stat:nth-child(odd) { padding-left: 0; }
  .ai-steps li { grid-template-columns: 44px 1fr; gap: var(--space-3); }
  .ai-step-n { font-size: 1.6rem; }
  .ai-actions > * { width: 100%; justify-content: center; }
  .ai-visual-chip { font-size: 0.8rem; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .stat-value { font-size: 1.7rem; }
  .team-grid { grid-template-columns: 1fr; }
}
