/* ===== HERO OVIQA — sección principal de la landing ===== */

.hero {
  position: relative;
  border-bottom: 1px solid var(--c-divider);
  background: radial-gradient(
    circle at top left,
    #f1f5ff 0,
    #ffffff 55%,
    #f9fafb 100%
  );
  padding-block: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -40% auto auto;
  background: radial-gradient(
    circle at top,
    rgba(37, 99, 235, 0.18),
    transparent 60%
  );
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  max-width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
}

/* Kicker */
.hero-kicker,
.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin: 0;
}

/* H1 */
.hero h1,
.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-title-highlight {
  display: block;
}

.hero-question {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.hero-seo-bridge {
  margin: 0;
  font-size: 0.96rem;
  color: #4b5563;
  line-height: 1.5;
}

.hero-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}

.hero-benefits li {
  position: relative;
  padding-left: 1.4rem;
}

.hero-benefits li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.95rem;
}

.hero-ctas,
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.hero-primary,
.hero-ctas .btn-primary {
  font-size: 0.98rem;
  font-weight: 600;
  justify-content: center;
  padding-block: 0.8rem;
}

.hero-ctas-secondary,
.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-ctas-secondary .btn,
.hero-secondary-actions .btn {
  padding-inline: 0.9rem;
}

.hero-trust {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
}

/* Panel derecha
   IMPORTANTE: .hero-panel ya lleva clase .card en el HTML.
   No redefinimos bg/border/shadow/radius aquí para no romper el hover unificado de cards.css.
*/
.hero-panel {
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  align-self: center;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  background: radial-gradient(
    circle at top right,
    rgba(10, 102, 255, 0.12),
    transparent 60%
  );
  opacity: 0.9;
  pointer-events: none;
}

/* La animación flotante usa transform y puede anular el hover (que también usa transform).
   La dejamos solo en dispositivos sin hover (móvil), donde no hay conflicto. */
@media (prefers-reduced-motion: no-preference) and (hover: none) {
  .hero-panel {
    animation: heroPanelFloat 18s ease-in-out infinite;
  }
}

@keyframes heroPanelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.hero-panel-title,
.hero-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.hero-panel-text,
.hero-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4b5563;
}

.hero-panel-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #374151;
}

/* Imagen panel */
.hero-panel-visual {
  margin: 1rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.04),
    rgba(249, 250, 251, 1)
  );
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-panel-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;

  /* Neutralizamos el hover especial del img para que mande el hover unificado del contenedor */
  transform: none;

  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease-out;
}

/* Mantener regla explícita para evitar reintroducciones por cascada/overrides */
.hero-panel-visual:hover img {
  transform: none;
}

.hero-panel-caption {
  padding: 0.55rem 0.75rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #4b5563;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.05),
    rgba(15, 23, 42, 0)
  );
}

/* Métricas (solo layout/padding; “card look” lo da cards.css) */
.hero-metrics,
.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-card,
.hero-panel-card {
  padding: 0.75rem 0.85rem;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.metric-card-title,
.hero-panel-card h3 {
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.1rem;
}

.metric-card-value {
  color: #1d4ed8;
}

.metric-wide,
.hero-panel-card--wide {
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding-block: 2.25rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    max-width: min(640px, 100% - 2rem);
  }

  .hero h1,
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .hero-primary,
  .hero-ctas .btn-primary {
    width: 100%;
  }

  .hero-ctas-secondary,
  .hero-secondary-actions {
    flex-direction: column;
  }

  .hero-ctas-secondary .btn,
  .hero-secondary-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-metrics,
  .hero-panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-wide,
  .hero-panel-card--wide {
    grid-column: auto;
  }
}

/* Dark (solo diferencias reales del hero) */
[data-theme="dark"] .hero {
  background: radial-gradient(
    circle at top left,
    #020617 0,
    #020617 55%,
    #020617 100%
  );
  border-bottom-color: var(--c-divider);
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-benefits,
[data-theme="dark"] .hero-trust,
[data-theme="dark"] .hero-panel p,
[data-theme="dark"] .hero-panel-text,
[data-theme="dark"] .hero-panel-list,
[data-theme="dark"] .hero-question,
[data-theme="dark"] .hero-seo-bridge {
  color: #e5e7eb;
}

[data-theme="dark"] .metric-card-title,
[data-theme="dark"] .hero-panel-card h3 {
  color: #e5e7eb;
}

[data-theme="dark"] .metric-card-value,
[data-theme="dark"] .hero-panel-card p {
  color: #60a5fa;
}

[data-theme="dark"] .hero-panel-visual {
  border-color: #1f2937;
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.22),
    #020617
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .hero-panel-caption {
  color: #9ca3af;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.2)
  );
}

/* =========================
   HERO TEXT BLOCKS (OVIQA)
   Añadir al final de: src/css/sections/hero.css
   ========================= */

/* Subtítulo principal del hero (1er párrafo). Debe destacar pero seguir siendo legible. */
.hero-subtitle {
  margin: 0 0 14px 0;
  max-width: 62ch;
  line-height: 1.55;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  opacity: 0.92;
}

/* Párrafos de soporte: lectura rápida, densidad baja, coherencia visual */
.hero-text {
  margin: 0 0 12px 0;
  max-width: 62ch;
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.9;
}

/* Lista: misma “columna” de lectura, indent limpio, separación suficiente */
.hero-text-list {
  margin: 0 0 12px 1.25rem;
  padding: 0;
  max-width: 62ch;
  line-height: 1.6;
  opacity: 0.9;
}

/* Items: separación mínima para escaneo (sin “bloques” enormes) */
.hero-text-list li {
  margin: 0 0 6px 0;
}

/* “Puente SEO”/cierre: ligeramente más compacto para que no compita con el CTA */
.hero-seo-bridge {
  margin: 12px 0 0 0;
  max-width: 62ch;
  line-height: 1.6;
  font-size: 0.98rem;
  opacity: 0.88;
}

/* Resaltados dentro del bloque: evita “gritos” visuales; mantiene jerarquía */
.hero-subtitle strong,
.hero-text strong,
.hero-seo-bridge strong {
  font-weight: 700;
}