/* Hero variants universales — compartido por todos los temas via themes/_base. Carousel scoped .hero-c; split-editorial scoped .hero--split. */
/* Reglas portadas VERBATIM de dawn.css (carousel) y cielo.css (las otras 9 variantes).
   Cambios permitidos: prefijos de scoping (.hero-c / .hero--split) y fallbacks var()
   para tokens que solo existen en uno de los dos temas. Task 4 elimina las copias
   locales de cada tema; mientras tanto las reglas duplicadas idénticas son inocuas. */

/* ── Tipografía de heroes (de cielo.css :46-51; .hero-car__* no portado, excluido) ── */
.hero--split .hero__title, .hero-fb__title, .hero-typo__word,
.hero-diag__title, .hero-sh__title,
.hero-vi__title, .hero-pf__name,
.hero-cd__headline { font-family: var(--font-heading, var(--font-sans, system-ui)); }
.hero-typo__tagline, .hero-tg__title { font-family: var(--font-subheading, var(--font-sans, system-ui)); }

/* ── Hero: carousel (de dawn.css; hijos genéricos .hero__* scoped bajo .hero-c) ── */
.hero.hero-c { background: var(--color-bg-alt); padding: 5rem 0; text-align: center; }
.hero-c .hero__inner { max-width: 640px; margin: 0 auto; }
.hero-c .hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: var(--fw-semibold, 600); color: var(--color-accent); margin-bottom: 1rem; }
.hero-c .hero__title { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: var(--fw-extra, 800); color: var(--color-primary, #1a1a2e); line-height: 1.05; }
.hero-c .hero__lead { font-size: 1.15rem; color: var(--color-text-light, #6b7280); margin: 1rem 0 2rem; }
/* (.hero-c original de dawn.css:436 — mismo selector .hero.hero-c, después del root,
   para preservar la cascada padding:0 sobre el padding:5rem del rule anterior) */
.hero.hero-c { padding: 0; position: relative; overflow: hidden; }
.hero-c__track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-c__slide { flex: 0 0 100%; min-height: 460px; display: flex; align-items: center; position: relative; }
.hero-c__slide--light { background: var(--color-bg-alt); }
.hero-c__slide .hero__inner { position: relative; z-index: 2; padding-block: 3.5rem; }
.hero-c__slide .hero__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-c__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-c__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(18,16,32,.74), rgba(18,16,32,.34)); }
.hero-c__slide--dark .hero__title { color: #fff; }
.hero-c__slide--dark .hero__lead { color: rgba(255,255,255,.84); }
.hero-c__slide--dark .hero__eyebrow { color: #c7c8ff; }
.hero-c__slide--solid { background: linear-gradient(120deg, var(--color-primary, #1a1a2e), #2c2a48); }
.hero-c__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--color-primary, #1a1a2e); display: grid; place-items: center; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06)); border: 1px solid var(--color-border); cursor: pointer; transition: background .15s, transform .15s; }
.hero-c__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.hero-c__arrow svg { width: 22px; height: 22px; }
.hero-c__arrow--prev { left: 18px; }
.hero-c__arrow--next { right: 18px; }
.hero-c__dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5; display: flex; gap: 8px; justify-content: center; }
.hero-c__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(150,150,170,.5); border: none; cursor: pointer; transition: all .2s; padding: 0; }
.hero-c__dot.active { background: var(--color-accent); width: 26px; border-radius: 5px; }

/* ── Hero: split-editorial (de cielo.css; hijos genéricos .hero__* scoped bajo .hero--split) ── */
.hero.hero--split {
  background: linear-gradient(135deg, #FEF3E8 0%, #F0F4FF 50%, #EDE9FE 100%);
  padding: 56px 0 48px;
  overflow: hidden;
}
.hero--split .hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero--split .hero__content { max-width: 520px; }
.hero--split .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft, #475569);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(99,102,241,.2);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.hero--split .hero__dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero--split .hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}
.hero--split .hero__title em {
  font-style: italic;
  color: var(--color-accent);
}
.hero--split .hero__sub {
  font-size: 16px;
  color: var(--color-text-soft, #475569);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 400px;
}
.hero--split .hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero--split .hero__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero--split .hero__avatars {
  display: flex;
}
.hero--split .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  flex-shrink: 0;
}
.hero--split .avatar:first-child { margin-left: 0; }
.hero--split .avatar--tone-0 { background: var(--color-accent); }
.hero--split .avatar--tone-1 { background: #7C3AED; }
.hero--split .avatar--tone-2 { background: var(--color-success); }
.hero--split .avatar--tone-3 { background: var(--color-amber, #D97706); }
.hero--split .hero__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hero--split .hero__stars-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-soft, #475569);
  margin-left: 4px;
}

/* Hero images (split-editorial) */
.hero--split .hero__images {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.hero--split .hero__img-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #C7D2FE;
  aspect-ratio: 3/4;
}
.hero--split .hero__img-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.15) 0,
    rgba(255,255,255,.15) 1px,
    transparent 1px,
    transparent 8px
  );
}
.hero--split .hero__img-placeholder--main { min-height: 300px; }
.hero--split .hero__img-secondary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 140px;
}
.hero--split .hero__img-sm {
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.hero--split .hero__img-sm--amber { background: linear-gradient(160deg, #FDE68A, #F59E0B); }
.hero--split .hero__img-sm--red   { background: linear-gradient(160deg, #FECACA, #F87171); }
.hero--split .hero__img-sm-photo  { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--split .hero__img-main img  { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.hero--split .hero__img-placeholder--sm-1,
.hero--split .hero__img-placeholder--sm-2 {
  width: 100%;
  height: 100%;
  min-height: 120px;
}
.hero--split .hero__img-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: #fff;
}
.hero--split .hero__img-label-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 2px;
}
.hero--split .hero__img-label-title { font-size: 14px; font-weight: 700; }
.hero--split .hero__img-label-sub   { font-size: 12px; opacity: .75; }

/* ── Hero: full-bleed (de cielo.css) ── */
.hero--full-bleed {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-fb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-fb__overlay {
  position: absolute;
  inset: 0;
  background: #000;
}
.hero-fb__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 32px 24px;
  max-width: 700px;
}
.hero-fb__eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 16px;
}
.hero-fb__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
  white-space: pre-line;
  margin-bottom: 16px;
}
.hero-fb__sub {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero: typographic (de cielo.css) ── */
.hero--typo {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  overflow: hidden;
}
.hero-typo__tagline {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .6;
}
.hero-typo__word {
  font-size: clamp(100px, 14vw, 200px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.04em;
  margin-left: -4px;
}
.hero-typo__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-typo__est {
  font-size: 11px;
  opacity: .5;
}
.hero-typo__cta {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .15s;
}
.hero-typo__cta:hover { opacity: .75; }

/* ── Hero: diagonal (de cielo.css) ── */
.hero--diagonal {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-diag__img-wrap {
  position: absolute;
  inset: 0;
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 62% 100%);
}
.hero-diag__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-diag__img-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 1px, transparent 8px);
}
.hero-diag__content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 52%;
}
.hero-diag__eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-diag__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero-diag__sub {
  font-size: 15px;
  opacity: .7;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 360px;
}
.hero-diag__btn { border-radius: 99px; }

/* ── Hero: tri-grid (de cielo.css) ── */
.hero--trigrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 420px;
}
.hero-tg__card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
}
.hero-tg__card:hover .hero-tg__img { transform: scale(1.04); }
.hero-tg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-tg__img--placeholder {
  position: absolute;
  inset: 0;
}
.hero-tg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55) 100%);
}
.hero-tg__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}
.hero-tg__eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 4px;
}
.hero-tg__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-tg__cta {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: #1A1A2E;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Hero: search-hub (de cielo.css) ── */
.hero--search-hub { padding: 56px 24px; }
.hero-sh__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-sh__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  color: #1A1A2E;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero-sh__form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
}
.hero-sh__icon { color: var(--color-text-faint, #94A3B8); flex-shrink: 0; }
.hero-sh__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-text);
  background: none;
}
.hero-sh__btn { border-radius: 99px; height: 36px; padding: 0 18px; font-size: 13px; }
.hero-sh__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-sh__chip {
  padding: 5px 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--color-text-soft, #475569);
  text-decoration: none;
  transition: background .15s;
}
.hero-sh__chip:hover { background: #fff; color: var(--color-text); }

/* ── Hero: countdown (de cielo.css) ── */
.hero--countdown {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px 24px;
}
.hero-cd__label { font-size: 12px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }
.hero-cd__headline { font-size: clamp(42px, 7vw, 80px); font-weight: 800; line-height: .9; letter-spacing: -.03em; }
.hero-cd__subline { font-size: 15px; opacity: .7; }
.hero-cd__timer { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.hero-cd__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 0;
  width: 72px;
}
.hero-cd__num {
  font-size: 36px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  line-height: 1;
}
.hero-cd__unit { font-size: 10px; letter-spacing: 1px; opacity: .6; margin-top: 3px; }
.hero-cd__sep { font-size: 28px; font-weight: 700; opacity: .4; margin-bottom: 12px; }

/* ── Hero: video (de cielo.css) ── */
.hero--video { position: relative; overflow: hidden; min-height: 540px; display: flex; align-items: flex-end; background: #0F172A; }
.hero-vi__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-vi__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%); }
.hero-vi__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  color: #fff;
  font-size: 10px;
  letter-spacing: .5px;
  z-index: 2;
}
.hero-vi__dot { width: 7px; height: 7px; background: #EF4444; border-radius: 50%; animation: pulse 1.5s infinite; }
.hero-vi__content { position: relative; z-index: 2; padding: 40px 48px; color: #fff; }
.hero-vi__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  white-space: pre-line;
  margin-bottom: 22px;
}
.hero-vi__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.hero-vi__cta:hover { background: rgba(255,255,255,.25); }

/* ── Hero: product-feature (de cielo.css) ── */
.hero--product-feature { background: #FBF6EC; padding: 48px 0; }
.hero-pf__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero-pf__badge { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #7C5A2E; margin-bottom: 14px; }
.hero-pf__name { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #2A1F10; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px; }
.hero-pf__stars { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hero-pf__star-icons { color: #F59E0B; font-size: 14px; }
.hero-pf__star-label { font-size: 13px; color: var(--color-text-soft, #475569); }
.hero-pf__pricing { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.hero-pf__price { font-size: 32px; font-weight: 800; color: #2A1F10; }
.hero-pf__compare { font-size: 15px; color: var(--color-text-faint, #94A3B8); text-decoration: line-through; }
.hero-pf__media { position: relative; }
.hero-pf__img { width: 100%; border-radius: var(--radius-lg); display: block; }
.hero-pf__img-placeholder {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, #EFE7D6 0, #EFE7D6 1px, #FBF6EC 1px, #FBF6EC 8px);
}

/* ── Responsive (de cielo.css) ── */
@media (max-width: 768px) {
  .hero-diag__img-wrap { clip-path: none; opacity: .15; }
  .hero-diag__content { max-width: 100%; padding: 32px 24px; }
  .hero--typo { padding: 32px 24px; }
  .hero-typo__word { font-size: clamp(72px, 20vw, 120px); }
  .hero--trigrid { grid-template-columns: 1fr; min-height: auto; }
  .hero-tg__card { min-height: 200px; }
  .hero-pf__inner { grid-template-columns: 1fr; }
  .hero-vi__content { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero--split .hero__images { display: none; }
}
