:root {
  --navy: #0f2540;
  --navy-dark: #0a1a2e;
  --orange: #e8602c;
  --cream: #f7f3ec;
  --ink: #1c1d1e;
  --ink-soft: #4a4f57;
  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --quote-serif: "Playfair Display", Georgia, serif;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(15, 37, 64, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--orange);
  z-index: 1000;
}

/* Header */
.site-header {
  background: #1f2123;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__inner.center {
  justify-content: center;
}

.mexbest-logotipo {
  height: 36px;
}

.site-header__section {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cdd6e0;
}

/* Hero — intacto */
.hero {
  position: relative;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 46, 0.35) 0%, rgba(10, 26, 46, 0.55) 55%, rgba(10, 26, 46, 0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero__lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: #e4e9ef;
  margin: 0 0 24px;
}

.badge-presenta {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 18px;
}

.badge-presenta strong {
  color: var(--orange);
}

/* Article rhythm */
.dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  border-bottom: 1px solid #e5e0d5;
  padding: 0 0 48px;
  margin: 56px 0 8px;
}

.section-block {
  position: relative;
  margin: 88px 0;
}

.section-block--band {
  padding: 56px 0;
  margin: 0;
}

.section-block--band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9999px;
  right: -9999px;
  background: var(--cream);
  z-index: -1;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 24px;
}

.ghost-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 37, 64, 0.18);
  flex-shrink: 0;
}

.ghost-num--light {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
}

.section-block h2,
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0;
}

.section-head--light h2 {
  color: #fff;
}

.section-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
  overflow-wrap: break-word;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-text--light p {
  color: #f1f3f5;
}

.section-text--full {
  margin-bottom: 32px;
}

.lead-cap::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.78;
  color: var(--navy);
  float: left;
  margin: 4px 8px 0 0;
}

/* Lead image — imagen protagonista a todo lo ancho de su columna */
.lead-figure {
  margin: 0 0 40px;
}

.lead-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-figure figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Imágenes de columna */
.section-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.6s ease;
}

.section-figure:hover img {
  transform: scale(1.035);
}

.section-figure--full img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.section-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.4;
}

/* Secciones a pantalla completa con imagen de fondo */
.section-block--full-bleed {
  position: relative;
  margin: 0;
  padding: 130px 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: #fff;
}

.section-block__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 46, 0.55), rgba(10, 26, 46, 0.82));
}

.section-block--full-bleed .container {
  position: relative;
  z-index: 1;
}

.pull-quote-section {
  position: relative;
  padding: 110px 0;
  background-size: cover;
  background-position: 50% 25%;
  background-repeat: no-repeat;
}

.pull-quote-section__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 46, 0.78), rgba(10, 26, 46, 0.92));
}

.pull-quote-section .container {
  position: relative;
  z-index: 1;
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

.glass-card--sm {
  padding: 18px 22px;
  border-radius: 14px;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 8px;
}

.timeline__line {
  position: absolute;
  top: 9px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(232, 96, 44, 0.15));
}

.timeline__marker {
  position: relative;
  margin-bottom: 16px;
}

.timeline__marker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--orange);
}

.timeline__marker span {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  padding-left: 24px;
}

.timeline__card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(15, 37, 64, 0.4);
}

.timeline__card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.timeline__card figcaption {
  padding: 12px 16px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}

/* Carrusel — Bootstrap */
.carousel-inner {
  border-radius: var(--radius);
}

.carousel-item img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.carousel-caption {
  text-align: left;
  left: 6%;
  right: auto;
  bottom: 8%;
  max-width: 420px;
  color: #fff;
}

.carousel-caption h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.carousel-caption p {
  margin: 0;
  font-size: 0.95rem;
  color: #e8ecef;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(10, 26, 46, 0.55);
  border-radius: 50%;
  background-size: 50%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--orange);
}

/* Pull quote */
.pull-quote {
  position: relative;
  color: #fff;
}

.pull-quote__mark {
  position: absolute;
  top: -40px;
  left: 20px;
  font-family: var(--quote-serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.pull-quote__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}

.pull-quote__portrait {
  width: 206px;
  height: 206px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--orange);
}

.pull-quote__text {
  min-width: 0;
}

.pull-quote blockquote {
  margin: 0 0 12px;
}

.pull-quote blockquote p {
  font-family: var(--quote-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  margin: 0;
  overflow-wrap: break-word;
}

.pull-quote figcaption {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #cdd6e0;
}

.closing {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--navy);
  text-align: center;
  margin: 48px 0 88px;
}

.closing strong {
  color: var(--orange);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mexbest-logotipo--footer {
  height: 40px;
}

.badge-presenta--footer {
  border-color: rgba(255, 255, 255, 0.35);
}

.back-to-top {
  font-size: 0.8rem;
  color: #b9c3cf;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.back-to-top:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .section-block--full-bleed,
  .pull-quote-section {
    padding: 80px 0;
  }

  .glass-card {
    padding: 30px 24px;
  }
}

@media (max-width: 767px) {
  .pull-quote__body {
    flex-direction: column;
    text-align: center;
  }

  .pull-quote__mark {
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
  }

  .carousel-caption {
    left: 6%;
    right: 6%;
    max-width: none;
    bottom: 6%;
  }

  .timeline__line {
    display: none;
  }
}

@media (max-width: 575px) {
  .ghost-num {
    font-size: 2.1rem;
  }

  .site-header__section {
    display: none;
  }

  .lead-figure img {
    aspect-ratio: 4 / 3;
  }
}
