/* ═══════════════════════════════════════════════════════════
   Sección Hero – e-dea · module.css
   ═══════════════════════════════════════════════════════════ */

.edea-hero {
  --c-bg:      #0b1e2d;
  --c-accent:  #fc4c02;
  --c-accent2: #ff8d28;
  --c-white:   #ffffff;
  --c-card-bd: rgba(252,76,2,0.18);
  --c-pill-bg: rgba(255,255,255,0.20);
  --c-pill-bd: rgba(255,255,255,0.09);

  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  position: relative;
  width: 100%;
  min-height: 600px;
  background-color: var(--c-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 5%;
  box-sizing: border-box;
  contain: layout paint;
  isolation: isolate;
}
.edea-hero *,
.edea-hero *::before,
.edea-hero *::after { box-sizing: border-box; }

/* ── Imagen de fondo ───────────────────────────────── */
.edea-hero__bg {
  position: absolute;
  inset: -5%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: block;
  animation: edeaHeroZoom 14s ease-in-out 1 forwards;
}
.edea-hero__bg img {
  width: 100%;
  height: 100%;
  max-width: none;               /* HubSpot aplica max-width:100% a img */
  object-fit: cover;
  object-position: center top;
  display: block;
}
.edea-hero--static .edea-hero__bg { animation: none; }

@keyframes edeaHeroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* ── Overlay y orb ─────────────────────────────────── */
.edea-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(11,30,45,0.82) 0%,
    rgba(11,30,45,0.55) 55%,
    rgba(11,30,45,0.10) 100%);
  pointer-events: none;
  z-index: 1;
}
.edea-hero__orb {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,76,2,0.12) 0%, rgba(252,76,2,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* ── Layout ────────────────────────────────────────── */
.edea-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 48px;
}
.edea-hero__content {
  flex: 1 1 auto;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.edea-hero__eyebrow {
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-accent) 0%, rgba(252,76,2,0) 100%);
}

/* Selectores con .edea-hero delante para ganar al h1/h2/p del tema */
.edea-hero .edea-hero__headline {
  margin: 0;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.5px;
  color: var(--c-white);
  text-transform: none;
}
.edea-hero .edea-hero__headline .accent-orange { color: var(--c-accent); }

.edea-hero .edea-hero__sub {
  margin: 0;
  font-family: 'Hind', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
}

/* ── Botones ───────────────────────────────────────── */
.edea-hero .edea-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.edea-hero .edea-hero-btn,
.edea-hero .edea-hero-btn:link,
.edea-hero .edea-hero-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 6px;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.22s ease, background-color 0.18s, border-color 0.2s;
}
.edea-hero .edea-hero-btn:focus-visible {
  outline: 2px solid var(--c-accent2);
  outline-offset: 3px;
}
.edea-hero .edea-hero-btn:active { transform: translateY(0); transition-duration: 0.08s; }

.edea-hero .edea-hero-btn--primary,
.edea-hero .edea-hero-btn--primary:link,
.edea-hero .edea-hero-btn--primary:visited {
  background-color: #ffffff;
  color: #143041;
  border: 1px solid #e5e7eb;
}
.edea-hero .edea-hero-btn--primary:hover,
.edea-hero .edea-hero-btn--primary:focus-visible {
  background-color: #f0f0f0;
  color: #143041;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  text-decoration: none;
}

.edea-hero .edea-hero-btn--secondary,
.edea-hero .edea-hero-btn--secondary:link,
.edea-hero .edea-hero-btn--secondary:visited {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}
.edea-hero .edea-hero-btn--secondary:hover,
.edea-hero .edea-hero-btn--secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.7);
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.12);
  text-decoration: none;
}

/* ── Pills ─────────────────────────────────────────── */
.edea-hero__alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edea-hero .edea-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid var(--c-pill-bd);
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background-color 0.22s, border-color 0.22s,
              transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .edea-hero .edea-pill {
    background-color: var(--c-pill-bg);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
.edea-hero .edea-pill:hover,
.edea-hero .edea-pill:focus-visible {
  background-color: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.22);
  transform: translateX(5px);
  box-shadow: -4px 0 18px rgba(252,76,2,0.18);
  text-decoration: none;
}
.edea-hero .edea-pill:focus-visible { outline: 2px solid var(--c-accent2); outline-offset: 2px; }
.edea-pill:hover .edea-pill__arrow { opacity: 1; transform: translateX(4px); }
.edea-pill:hover .edea-pill__tag   { transform: scale(1.06); }

.edea-pill__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background-color: var(--c-accent);
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #f5f5f5;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
}
.edea-pill__text {
  font-family: 'Hind', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--c-white);
  line-height: 1.4;
}
.edea-pill__arrow {
  font-size: 13px;
  color: var(--c-accent);
  opacity: 0.55;
  margin-left: 2px;
  transition: opacity 0.2s, transform 0.22s cubic-bezier(.34,1.56,.64,1);
}

/* ── Stats ─────────────────────────────────────────── */
.edea-hero__stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 200px;
  max-width: 220px;
}
.edea-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid var(--c-card-bd);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .edea-stat-card { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
}
.edea-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(252,76,2,0.16) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.edea-stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 15%;
  width: 70%; height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  pointer-events: none;
}
.edea-stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38), 0 0 0 1px rgba(252,76,2,0.32);
  border-color: rgba(252,76,2,0.48);
  background-color: rgba(255,255,255,0.07);
}
.edea-stat-card:hover::before { opacity: 1; }
.edea-stat-card:hover::after  { transform: scaleX(1); }
.edea-stat-card:hover .edea-stat-card__num   { color: var(--c-accent2); }
.edea-stat-card:hover .edea-stat-card__label { color: rgba(255,255,255,0.95); }

.edea-hero .edea-stat-card__num {
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--c-accent);
  margin: 0 0 2px;
  font-variant-numeric: tabular-nums;   /* evita saltos de ancho al contar */
  transition: color 0.22s ease;
}
.edea-stat-card__num.counted { animation: edeaNumPulse 0.4s ease-out; }
@keyframes edeaNumPulse {
  50% { transform: scale(1.12); color: var(--c-accent2); }
}

.edea-hero .edea-stat-card__label {
  font-family: 'Hind', Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
  margin: 0 0 10px;
  transition: color 0.22s ease;
}

.edea-stat-card__bar {
  width: 100%;
  height: 3px;
  background-color: rgba(252,76,2,0.15);
  border-radius: 2px;
  overflow: hidden;
}
/* Barra con scaleX (compositor) en vez de animar width */
.edea-stat-card__bar-fill {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #d94000 100%);
  transform-origin: left;
  transform: scaleX(var(--bar, 0.5));
  animation: edeaBarGrow 1.2s ease-out both;
}
@keyframes edeaBarGrow {
  from { transform: scaleX(0); }
}

/* ── Entrada ───────────────────────────────────────
   Se usa la propiedad `translate` (no `transform`) para que
   la animación con fill "forwards" no bloquee los hover
   que usan transform en las tarjetas. */
.edea-hero__eyebrow,
.edea-hero__headline,
.edea-hero__sub,
.edea-hero__actions,
.edea-hero__alerts,
.edea-stat-card {
  animation: edeaFadeUp 0.6s ease-out both;
}
.edea-hero__eyebrow  { animation-delay: 0.05s; }
.edea-hero__headline { animation-delay: 0.15s; }
.edea-hero__sub      { animation-delay: 0.25s; }
.edea-hero__actions  { animation-delay: 0.35s; }
.edea-hero__alerts   { animation-delay: 0.45s; }
.edea-stat-card:nth-child(1) { animation-delay: 0.35s; }
.edea-stat-card:nth-child(2) { animation-delay: 0.50s; }
.edea-stat-card:nth-child(3) { animation-delay: 0.65s; }

@keyframes edeaFadeUp {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .edea-hero        { padding: 72px 5%; min-height: 560px; }
  .edea-hero__inner { gap: 36px; }
  .edea-hero__stats { min-width: 180px; max-width: 200px; }
  .edea-stat-card   { padding: 16px 18px; }
}

@media (max-width: 900px) {
  .edea-hero { padding: 64px 6% 60px; min-height: 0; }
  .edea-hero::before {
    background: linear-gradient(to bottom,
      rgba(11,30,45,0.78) 0%,
      rgba(11,30,45,0.65) 60%,
      rgba(11,30,45,0.80) 100%);
  }
  .edea-hero__bg img  { object-position: 70% center; }
  .edea-hero__inner   { flex-direction: column; align-items: flex-start; gap: 36px; }
  .edea-hero__content { max-width: 100%; gap: 22px; }
  .edea-hero .edea-hero__sub { max-width: 100%; }
  .edea-hero__stats   { flex-direction: row; flex-wrap: wrap; width: 100%; max-width: 100%; min-width: 0; gap: 12px; }
  .edea-stat-card     { flex: 1 1 calc(33% - 8px); min-width: 160px; }
  .edea-stat-card:hover { transform: none; }
  .edea-hero .edea-pill { width: 100%; }
}

@media (max-width: 600px) {
  .edea-hero { padding: 56px 5% 52px; }
  .edea-hero__bg img { object-position: 65% center; }
  .edea-hero .edea-hero__headline { font-size: clamp(28px, 8vw, 38px); line-height: 1.05; }
  .edea-hero .edea-hero__sub      { font-size: 15px; line-height: 1.65; }
  .edea-hero .edea-hero__actions  { flex-direction: column; width: 100%; gap: 10px; }
  .edea-hero .edea-hero-btn       { width: 100%; height: 50px; }
  .edea-stat-card                 { flex: 1 1 calc(50% - 6px); }
  .edea-stat-card:nth-child(3)    { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .edea-hero { padding: 48px 5% 44px; }
  .edea-hero .edea-hero__headline { font-size: 26px; }
  .edea-hero .edea-hero__sub      { font-size: 14px; }
  .edea-hero .edea-hero-btn       { height: 46px; font-size: 14px; white-space: normal; }
  .edea-stat-card                 { flex: 1 1 100%; }
  .edea-hero .edea-stat-card__num { font-size: 30px; }
  .edea-pill__text                { font-size: 12px; }
}

/* ── Movimiento reducido ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .edea-hero *,
  .edea-hero__bg { animation: none !important; transition: none !important; }
  .edea-stat-card:hover,
  .edea-hero .edea-pill:hover,
  .edea-hero .edea-hero-btn:hover { transform: none; }
}