/* ==========================================================
   Rich Article · Amazon Ads × Maggi · Expansión
   Bootstrap 5.2 + estilos propios
   ========================================================== */

:root {
  --mag-red: #e30613;
  --mag-red-dark: #b0000e;
  --mag-yellow: #ffc20e;
  --ink: #1c1f2a;          /* azul marino Amazon Ads */
  --ink-soft: #3a3f4d;
  --cream: #f8f3ec;
  --line: #e6dfd5;
  --amz-orange: #ff9900;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink-soft);
  --bs-link-color: var(--mag-red);
  --bs-link-hover-color: var(--mag-red-dark);
}

body {
  background: #fff;
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: .2em; }

/* ---------- Header Expansión ---------- */
header.exp-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ed1c24;
  border-bottom: 3px solid #3d3d3d;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  transition: box-shadow .3s ease;
}
header.exp-topbar.is-scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.exp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
}
/* logo-exp-1.svg trae fondo rojo y margen propio: 48px ≈ letras de 30px */
.logoExpansion {
  height: 28px;
  width: auto;
  margin: .5rem 0;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Gradiente de izquierda a derecha: oscuro detrás del título, transparente a la derecha */
  background: linear-gradient(90deg, rgba(28,31,42,.95) 0%, rgba(28,31,42,.85) 45%, rgba(28,31,42,.55) 70%, rgba(28,31,42,.15) 100%);
}
.hero__content { position: relative; padding-top: 6rem; padding-bottom: 4rem; }
.hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

/* ---------- Intro ---------- */
.intro { padding-bottom: 0; }
.intro__text {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink);
}
.intro__text strong { color: var(--ink); }
.intro__byline {
  font-size: .9rem;
  color: #7a7f8c;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 2rem;
}
.intro__byline a { color: var(--mag-red); font-weight: 700; }

/* ---------- Bloques ---------- */
.block { padding: 5rem 0; }
.block--cream { background: var(--cream); }
.block__title {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1.75rem;
}
.block p { margin-bottom: 1.4rem; }

.media { margin: 2.5rem 0; }
.media img { border-radius: 6px; width: 100%; }
/* Dos imágenes verticales lado a lado con la misma altura (flex proporcional al ancho) */
.media-pair { display: flex; gap: 1.5rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.media-pair img { min-width: 0; height: auto; box-shadow: 0 10px 30px rgba(28,31,42,.15); }
@media (max-width: 575.98px) { .media-pair { gap: .75rem; } }

/* ---------- Citas ---------- */
.feature-quote {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 3.5rem 2rem 2.5rem;
  margin: 2rem 0 3rem;
}
.feature-quote::before {
  content: "“";
  position: absolute;
  top: -.35em; left: 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--mag-red);
}
.feature-quote p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}
.feature-quote footer { color: #c9ccd6; font-size: .95rem; }
.feature-quote footer strong { color: #fff; }
@media (min-width: 768px) {
  .feature-quote { padding: 4rem 4rem 3rem; }
}

/* ---------- Frase destacada ---------- */
.kicker {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--mag-red);
  margin-top: 2rem;
}

/* ---------- Etapas del funnel ---------- */
.stage {
  position: relative;
  background: #fff;
  border-left: 5px solid var(--mag-red);
  border-radius: 8px;
  padding: 2rem 2rem .75rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(28,31,42,.08);
}
.stage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--mag-yellow);
  color: var(--ink);
  margin-bottom: 1rem;
}
.stage__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}
.tactic {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mag-yellow);
  text-decoration-thickness: .2em;
  text-underline-offset: .15em;
}

/* ---------- Métricas ---------- */
.stats { margin: 2rem 0 0; }
.stat {
  height: 100%;
  background: var(--ink);
  color: #d5d8e1;
  border-radius: 10px;
  border-top: 5px solid var(--mag-yellow);
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(28,31,42,.18);
}
.stat p { margin-bottom: .75rem; }
.stat__label { color: #fff; font-size: 1.15rem; line-height: 1.35; }
.stat__num {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--mag-yellow);
  margin-bottom: .35rem;
}
.stat__text { font-size: 1rem; line-height: 1.55; }

/* ---------- Video ---------- */
.video-wrap { background: var(--ink); border-radius: 6px; overflow: hidden; }
.video-wrap iframe { border: 0; }

/* ---------- CTA ---------- */
.btn-cta {
  --bs-btn-bg: var(--mag-red);
  --bs-btn-border-color: var(--mag-red);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
  --bs-btn-focus-shadow-rgb: 214, 0, 28;
  font-weight: 700;
  padding: 1rem 1.25rem;
}

/* ---------- Footer ---------- */
.article-footer {
  background: var(--ink);
  padding: 1.5rem 0;
}
.article-footer .btn-cta {
  --bs-btn-hover-bg: var(--mag-yellow);
  --bs-btn-hover-border-color: var(--mag-yellow);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--mag-yellow);
  --bs-btn-active-border-color: var(--mag-yellow);
  --bs-btn-active-color: var(--ink);
}

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  body { font-size: 1.05rem; }
  .block { padding: 3.5rem 0; }
  .hero { min-height: min(92vh, 780px); }
  .hero__content { padding-bottom: 2.5rem; }
  /* En móvil el título ocupa todo el ancho: se suma un refuerzo inferior */
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(28,31,42,0) 25%, rgba(28,31,42,.85) 100%),
      linear-gradient(90deg, rgba(28,31,42,.9) 0%, rgba(28,31,42,.55) 100%);
  }
  .exp-topbar-inner { padding: 0 1rem; }
  .stage { padding: 1.5rem 1.25rem .5rem; }
}
