/* =========================================================
   STATUS · La Revista — Micrositio de Pulso SLP
   Bootstrap 5 + variables propias (estándar Tresite)
   ========================================================= */

/* ---------- Paleta y tipografía ---------- */
:root {
  --st-black: #0b0b0b;
  --st-ink: #1a1a1a;
  --st-white: #ffffff;
  --st-paper: #f6f3ec;          /* blanco cálido tipo papel */
  --st-gold: #d1b345;           /* dorado del logo */
  --st-gold-dark: #a88a2a;
  --st-muted: #6f6a60;
  --st-line: #e4ddcd;

  --st-serif: "Playfair Display", "Bodoni 72", Didot, Georgia, serif;
  --st-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bs-body-font-family: var(--st-sans);
  --bs-body-color: var(--st-ink);
  --bs-link-color-rgb: 11, 11, 11;
  --bs-link-hover-color-rgb: 168, 138, 42;
}

body { background: var(--st-white); color: var(--st-ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; transition: color .2s; }
img { max-width: 100%; }

.font-serif { font-family: var(--st-serif); }
.text-gold { color: var(--st-gold) !important; }
.bg-paper { background: var(--st-paper); }
.bg-ink { background: var(--st-black); color: var(--st-white); }

/* Kicker: texto pequeño espaciado tipo "LA REVISTA" */
.kicker {
  font-family: var(--st-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--st-gold-dark);
}
.bg-ink .kicker, .on-photo .kicker { color: var(--st-gold); }

/* ---------- Barra superior (liga a Pulso) ---------- */
.st-topbar {
  background: var(--st-black);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}
.st-topbar a { color: rgba(255,255,255,.75); }
.st-topbar a:hover { color: var(--st-gold); }

/* ---------- Cabezal ----------
   Mismas medidas que el cabezal de pulsoslp.com.mx:
   escritorio ≥1200px → logo de 435px de ancho a la izquierda, cabezal de 144px
   celular → logo de 180px de ancho, iconos a la derecha */
.st-header { background: var(--st-black); position: sticky; top: 0; z-index: 1030; transition: box-shadow .3s; }
.st-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.st-header-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 144px; transition: min-height .3s; }
.st-brand { display: block; flex: 0 0 auto; }
.st-brand img { display: block; width: 435px; height: auto; transition: width .3s; }
.st-header.is-scrolled .st-header-row { min-height: 84px; }
.st-header.is-scrolled .st-brand img { width: 260px; }

.st-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.st-header-tools { display: flex; align-items: center; gap: .75rem; color: var(--st-white); }
.st-social { gap: 1rem; }
.st-social a { color: var(--st-white); font-size: 1.05rem; }
.st-social a:hover { color: var(--st-gold); }
.st-sep { color: var(--st-gold); font-size: 1.2rem; }
.st-search { font-size: 1rem; display: inline-flex; align-items: center; text-decoration: none; }
.st-search span { font-size: .85rem; letter-spacing: .04em; }
.st-header.is-scrolled .st-header-tools { display: none; }

.st-nav .nav { justify-content: flex-end; flex-wrap: nowrap; }
.st-nav .nav-link {
  color: var(--st-white);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem .75rem;
  white-space: nowrap;
}
.st-nav .nav-item:last-child .nav-link { padding-right: 0; }
.st-nav .nav-link:hover, .st-nav .nav-link.active, .st-nav .show > .nav-link { color: var(--st-gold); }
.st-nav .dropdown-menu {
  background: var(--st-black);
  border: 1px solid rgba(209,179,69,.35);
  border-radius: 0;
  padding: .5rem 0;
  margin-top: .6rem !important;
}
.st-nav .dropdown-item { color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .06em; padding: .45rem 1.25rem; }
.st-nav .dropdown-item:hover { background: transparent; color: var(--st-gold); }
.st-nav .dropdown-toggle::after { border-top-color: var(--st-gold); vertical-align: .15em; }

/* Línea dorada inferior del cabezal */
.st-header::after { content: ""; display: block; height: 1px; background: rgba(209,179,69,.35); }

.st-icon-btn { color: var(--st-white); background: none; border: 0; font-size: 1.2rem; padding: .25rem .5rem; }
.st-icon-btn:hover { color: var(--st-gold); }

/* Menú móvil */
.st-offcanvas { background: var(--st-black); color: var(--st-white); }
.st-offcanvas .nav-link { color: var(--st-white); font-family: var(--st-serif); font-size: 1.35rem; padding: .4rem 0; }
.st-offcanvas .nav-link:hover { color: var(--st-gold); }
.st-offcanvas .sub a { color: rgba(255,255,255,.7); font-size: .9rem; display: inline-block; padding: .2rem .8rem .2rem 0; }
.st-offcanvas .sub a:hover { color: var(--st-gold); }

/* ---------- Divisor "pulso" (la línea del logo) ---------- */
.st-pulse { display: block; width: 100%; height: 28px; }
.st-pulse path { fill: none; stroke: var(--st-gold); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.section-title { display: flex; align-items: flex-end; gap: 1.25rem; margin-bottom: 2rem; }
.section-title h2 { font-family: var(--st-serif); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; line-height: 1; white-space: nowrap; }
.section-title .st-pulse { flex: 1; height: 26px; margin-bottom: .1rem; }
.section-title .more { white-space: nowrap; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--st-ink); }
.section-title .more:hover { color: var(--st-gold-dark); }
.bg-ink .section-title .more { color: var(--st-white); }

/* ---------- Mosaico (portada estilo galería) ---------- */
.st-mosaic {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
}
.st-mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.st-mosaic .tile:nth-child(4) { grid-row: span 2; }

.tile { position: relative; overflow: hidden; display: block; background: #222; color: var(--st-white); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.88) 100%);
}
.tile:hover img { transform: scale(1.05); }
.tile .tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; z-index: 2; }
.tile .tile-title { font-family: var(--st-serif); font-size: 1.15rem; line-height: 1.2; margin: .3rem 0 0; }
.tile:nth-child(1) .tile-title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.tile .tile-meta { font-size: .72rem; color: rgba(255,255,255,.75); margin-top: .4rem; letter-spacing: .04em; }
.tile:hover { color: var(--st-white); }
.tile:hover .tile-title { color: var(--st-gold); }

/* ---------- Portada en celular (stage) ---------- */
.m-hero {
  position: relative; display: block; overflow: hidden; background: #111; color: var(--st-white);
  height: calc(100svh - 214px); min-height: 440px; max-height: 620px;
}
.m-hero img { width: 100%; height: 100%; object-fit: cover; }
.m-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.92) 100%);
}
.m-hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem 1rem 1.75rem; }
.m-hero-body .kicker { color: var(--st-gold); }
.m-hero h2 { font-family: var(--st-serif); font-weight: 700; font-size: 2.1rem; line-height: 1.08; margin: .5rem 0 .6rem; }
.m-hero .m-meta { font-size: .8rem; color: rgba(255,255,255,.75); letter-spacing: .03em; }
.m-cta {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  padding: .75rem 1.25rem; background: var(--st-gold); color: var(--st-black);
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.m-hero:active .m-cta { background: var(--st-white); }

.m-rail-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1.5rem 1rem .75rem; }
.m-hint { font-size: .72rem; color: var(--st-muted); letter-spacing: .06em; }
.m-rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 1rem .5rem; scroll-padding: 0 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.m-rail::-webkit-scrollbar { display: none; }
.m-card { flex: 0 0 74%; scroll-snap-align: start; color: var(--st-ink); }
.m-card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; margin-bottom: .7rem; }
.m-card-img img { width: 100%; height: 100%; object-fit: cover; }
.m-card .ev-count {
  position: absolute; right: .5rem; bottom: .5rem; background: rgba(11,11,11,.8); color: var(--st-white);
  font-size: .7rem; padding: .3rem .5rem;
}
.m-card .ev-count i { color: var(--st-gold); }
.m-card h3 { font-family: var(--st-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin: .35rem 0 .25rem; }
.m-card .m-meta { font-size: .78rem; color: var(--st-muted); }

/* ---------- Tarjeta de evento ---------- */
.ev-card { display: block; color: var(--st-ink); }
.ev-card .ev-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.ev-card .ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ev-card:hover .ev-img img { transform: scale(1.05); }
.ev-card .ev-count {
  position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(11,11,11,.8); color: var(--st-white);
  font-size: .7rem; letter-spacing: .06em; padding: .3rem .55rem;
}
.ev-card .ev-count i { color: var(--st-gold); }
.ev-card h3 { font-family: var(--st-serif); font-size: 1.2rem; line-height: 1.25; margin: .5rem 0 .3rem; font-weight: 600; }
.ev-card:hover h3 { color: var(--st-gold-dark); }
.ev-card .ev-meta { font-size: .78rem; color: var(--st-muted); }
.bg-ink .ev-card { color: var(--st-white); }
.bg-ink .ev-card .ev-meta { color: rgba(255,255,255,.6); }

/* ---------- Banda QR ---------- */
.st-qr { position: relative; overflow: hidden; }
.st-qr .qr-art {
  width: 150px; height: 150px; border: 1px solid var(--st-gold); padding: 12px;
  display: grid; place-items: center; background: rgba(209,179,69,.06);
}
.st-qr h2 { font-family: var(--st-serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.st-code-form .form-control {
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); border-radius: 0;
  color: var(--st-white); font-size: 1.1rem; letter-spacing: .2em; text-transform: uppercase; padding-left: 0;
}
.st-code-form .form-control::placeholder { color: rgba(255,255,255,.35); letter-spacing: .12em; }
.st-code-form .btn { white-space: nowrap; }
.st-code-form .form-control:focus { box-shadow: none; border-bottom-color: var(--st-gold); }

/* ---------- Botones ---------- */
.btn-st {
  --bs-btn-bg: var(--st-black); --bs-btn-color: var(--st-white); --bs-btn-border-color: var(--st-black);
  --bs-btn-hover-bg: var(--st-gold); --bs-btn-hover-border-color: var(--st-gold); --bs-btn-hover-color: var(--st-black);
  --bs-btn-active-bg: var(--st-gold-dark); --bs-btn-active-border-color: var(--st-gold-dark);
  border-radius: 0; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .8rem 1.6rem;
}
.btn-st-gold {
  --bs-btn-bg: var(--st-gold); --bs-btn-color: var(--st-black); --bs-btn-border-color: var(--st-gold);
  --bs-btn-hover-bg: var(--st-white); --bs-btn-hover-border-color: var(--st-white); --bs-btn-hover-color: var(--st-black);
  border-radius: 0; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .8rem 1.6rem;
}
.btn-st-outline {
  --bs-btn-color: var(--st-ink); --bs-btn-border-color: var(--st-ink);
  --bs-btn-hover-bg: var(--st-ink); --bs-btn-hover-color: var(--st-white); --bs-btn-hover-border-color: var(--st-ink);
  border-radius: 0; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .7rem 1.4rem;
}
.bg-ink .btn-st-outline { --bs-btn-color: var(--st-white); --bs-btn-border-color: rgba(255,255,255,.5); --bs-btn-hover-bg: var(--st-white); --bs-btn-hover-color: var(--st-black); }

/* ---------- Categorías (chips / filtros) ---------- */
.st-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-chip {
  border: 1px solid var(--st-line); background: var(--st-white); color: var(--st-ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem 1rem; transition: all .2s;
}
.st-chip:hover { border-color: var(--st-ink); color: var(--st-ink); }
.st-chip.active { background: var(--st-black); border-color: var(--st-black); color: var(--st-gold); }

/* ---------- Tarjetas de categoría de galería ---------- */
.cat-tile { aspect-ratio: 4 / 3; }
.cat-tile .tile-body { text-align: center; bottom: 50%; transform: translateY(50%); }
.cat-tile::after { background: rgba(0,0,0,.45); transition: background .3s; }
.cat-tile:hover::after { background: rgba(0,0,0,.25); }
.cat-tile .tile-title { font-size: 1.5rem !important; }
.cat-tile .st-pulse { width: 70px; height: 16px; margin: .5rem auto 0; }

/* ---------- Editorial ---------- */
.note-card { display: block; color: var(--st-ink); }
.note-card .note-img { aspect-ratio: 3 / 2; overflow: hidden; background: #ddd; }
.note-card .note-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.note-card:hover .note-img img { transform: scale(1.04); }
.note-card h3 { font-family: var(--st-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: .55rem 0 .4rem; }
.note-card:hover h3 { color: var(--st-gold-dark); }
.note-card p { font-size: .9rem; color: var(--st-muted); margin: 0; }
.note-card.featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.note-card.featured .note-img { aspect-ratio: 16 / 10; }

.note-row { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--st-line); color: var(--st-ink); }
.note-row:first-child { padding-top: 0; }
.note-row img { width: 120px; height: 90px; object-fit: cover; }
.note-row h4 { font-family: var(--st-serif); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: .25rem 0 0; }
.note-row:hover h4 { color: var(--st-gold-dark); }

.sec-card {
  display: block; border: 1px solid var(--st-line); padding: 1.6rem 1.4rem; height: 100%; color: var(--st-ink);
  background: var(--st-white); transition: border-color .2s, transform .2s;
}
.sec-card:hover { border-color: var(--st-gold); transform: translateY(-3px); color: var(--st-ink); }
.sec-card h3 { font-family: var(--st-serif); font-size: 1.5rem; font-weight: 700; margin: 0 0 .4rem; }
.sec-card p { font-size: .88rem; color: var(--st-muted); margin: 0 0 1rem; }
.sec-card .go { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.sec-card .go i { color: var(--st-gold-dark); }

/* ---------- Revista impresa ---------- */
.mag-cover {
  position: relative; aspect-ratio: 948 / 1280; max-width: 420px; margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0,0,0,.45); background: var(--st-black); overflow: hidden;
}
.mag-cover img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-cover .mag-logo { position: absolute; top: 5%; left: 6%; right: 6%; }
.mag-cover .mag-foot { position: absolute; bottom: 5%; left: 6%; right: 6%; color: var(--st-white); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Encabezado de página interna ---------- */
.page-head { padding: 3.5rem 0 2.5rem; }
.page-head h1 { font-family: var(--st-serif); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.08; }
.page-head .lead { color: var(--st-muted); max-width: 640px; }
.bg-ink.page-head .lead { color: rgba(255,255,255,.7); }
.st-breadcrumb { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.st-breadcrumb a { color: inherit; opacity: .7; }
.st-breadcrumb a:hover { opacity: 1; color: var(--st-gold); }
.st-breadcrumb .sep { margin: 0 .5rem; color: var(--st-gold); }

/* ---------- Galería ---------- */
.gal-meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .85rem; color: rgba(255,255,255,.75); }
.gal-meta i { color: var(--st-gold); margin-right: .4rem; }
.gal-share a, .gal-share button {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); color: var(--st-white); background: none; margin-left: .35rem; transition: all .2s;
}
.gal-share a:hover, .gal-share button:hover { border-color: var(--st-gold); color: var(--st-gold); }
.gal-code { font-size: .72rem; letter-spacing: .2em; border: 1px solid rgba(209,179,69,.5); color: var(--st-gold); padding: .35rem .7rem; display: inline-block; }

.gal-grid { display: flex; gap: 8px; align-items: flex-start; }
.gal-col { flex: 1 1 0; min-width: 0; }
.gal-grid a { display: block; margin-bottom: 8px; position: relative; overflow: hidden; background: #eee; }
.gal-grid img { width: 100%; display: block; transition: transform .6s, opacity .3s; }
.gal-grid a:hover img { transform: scale(1.03); opacity: .92; }
.gal-grid a::after {
  content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; top: .6rem; right: .7rem;
  color: var(--st-white); opacity: 0; transition: opacity .3s; text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.gal-grid a:hover::after { opacity: 1; }

/* Lightbox */
.st-lightbox .modal-content { background: rgba(8,8,8,.97); border: 0; border-radius: 0; }
.st-lightbox .lb-stage { position: relative; height: calc(100vh - 120px); display: grid; place-items: center; }
.st-lightbox .lb-stage img { width: min(100%, 960px); height: auto; max-height: calc(100vh - 140px); object-fit: contain; }
.st-lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,.25); color: var(--st-white);
  width: 52px; height: 52px; font-size: 1.3rem; transition: all .2s;
}
.st-lightbox .lb-nav:hover { border-color: var(--st-gold); color: var(--st-gold); }
.st-lightbox .lb-prev { left: 1.25rem; } .st-lightbox .lb-next { right: 1.25rem; }
.st-lightbox .lb-bar { color: rgba(255,255,255,.75); font-size: .8rem; letter-spacing: .08em; }
.st-lightbox .lb-bar .btn-close { filter: invert(1); opacity: .8; }

/* ---------- Nota ---------- */
.article-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body { font-family: var(--st-serif); font-size: 1.2rem; line-height: 1.75; color: #262626; }
.article-body p:first-of-type::first-letter {
  float: left; font-size: 4.2rem; line-height: .85; padding: .35rem .6rem 0 0; color: var(--st-gold-dark); font-weight: 700;
}
.article-body blockquote {
  border-left: 3px solid var(--st-gold); padding: .4rem 0 .4rem 1.5rem; margin: 2rem 0;
  font-size: 1.55rem; font-style: italic; line-height: 1.4; color: var(--st-black);
}
.article-author { font-size: .85rem; color: var(--st-muted); }
.article-body .article-author { font-family: var(--st-sans); }
.article-list { padding-left: 1.2rem; }
.article-list li { margin-bottom: .6rem; }
.article-list li::marker { color: var(--st-gold-dark); }
.article-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.article-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .article-gal { grid-template-columns: repeat(2, 1fr); } }
.article-author strong { color: var(--st-ink); }

/* ---------- Pie ---------- */
.st-footer { background: var(--st-black); color: rgba(255,255,255,.65); font-size: .85rem; }
.st-footer img.logo { height: 70px; }
.st-footer h6 { color: var(--st-gold); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1rem; }
.st-footer a { color: rgba(255,255,255,.75); }
.st-footer a:hover { color: var(--st-gold); }
.st-footer .social a { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.2); margin-right: .4rem; }
.st-footer .social a:hover { border-color: var(--st-gold); }
.st-footer .legal { border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; letter-spacing: .05em; }

/* ---------- Utilidades ---------- */
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1200px) {
  /* Contenedor del cabezal con el mismo margen interno que Pulso (20px) */
  .st-header .container { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .st-header-row { min-height: 120px; }
  .st-brand img { width: 300px; }
  .st-nav .nav-link { padding: .4rem .55rem; letter-spacing: .1em; }
}
@media (max-width: 991.98px) {
  /* Celular/tablet: logo de 180px (como Pulso), buscador y menú a la derecha */
  .st-header-row { justify-content: flex-start; position: relative; min-height: 90px; }
  .st-brand { margin-left: 48px; } /* logo a 64px del borde, igual que Pulso en celular */
  .st-brand img { width: 180px; }
  .st-header-right { position: absolute; right: calc(var(--bs-gutter-x) * .5); top: 50%; transform: translateY(-50%); }
  .st-header-tools { gap: .25rem; }
  .st-header.is-scrolled .st-header-row { min-height: 64px; }
  .st-header.is-scrolled .st-brand img { width: 140px; }
  .st-header.is-scrolled .st-header-tools { display: flex; }
  .st-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .st-mosaic .tile:nth-child(4) { grid-row: span 1; }
  .st-mosaic .tile:nth-child(n+8) { display: none; }
  .py-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
@media (max-width: 767.98px) {
  /* En celular el cabezal se compacta: "Volver a Pulso" vive en el menú */
  .st-topbar { display: none; }
  /* Margen lateral de 16px y filas que no desbordan la pantalla */
  .container, .container-fluid { --bs-gutter-x: 2rem; }
  .row.g-5 { --bs-gutter-x: 2rem; }
  /* Filtros de secciones/categorías en una sola fila deslizable */
  .st-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start !important; margin: 0 -1rem; padding: 0 1rem 4px; scrollbar-width: none; }
  .st-chips::-webkit-scrollbar { display: none; }
  .st-chip { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 575.98px) {
  .st-mosaic { grid-auto-rows: 160px; gap: 4px; }
  .st-mosaic .tile:nth-child(1) { grid-row: span 2; }
  .tile .tile-body { padding: .75rem; }
  .tile .tile-title { font-size: .95rem; }
  .section-title { flex-wrap: wrap; gap: .5rem 1rem; }
  .section-title .st-pulse { order: 3; flex-basis: 100%; }
  .gal-grid { gap: 4px; }
  .gal-grid a { margin-bottom: 4px; }
  .st-lightbox .lb-nav { width: 40px; height: 40px; }
  .st-lightbox .lb-prev { left: .4rem; } .st-lightbox .lb-next { right: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Portada de la revista como acceso al lector */
a.mag-cover { transition: transform .4s ease, box-shadow .4s ease; }
a.mag-cover:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 40px 70px rgba(0,0,0,.55); }
a.mag-cover::after {
  content: "\F1D8  Leer ahora"; font-family: "bootstrap-icons", var(--st-sans); position: absolute; left: 50%; bottom: 6%;
  transform: translate(-50%, 10px); background: var(--st-gold); color: var(--st-black); padding: .55rem 1rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: all .3s; white-space: nowrap;
}
a.mag-cover:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Archivo de ediciones ---------- */
.ed-cover {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 595 / 818; background: linear-gradient(110deg, #1d1c1a 30%, #2a2825 50%, #1d1c1a 70%) 0 0 / 300% 100%;
  animation: edShimmer 1.4s linear infinite; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.ed-cover.loaded { animation: none; background: #111; }
.ed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s; }
.ed-cover.loaded img { opacity: 1; }
/* Lomo de la revista */
.ed-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12), rgba(0,0,0,0)); }
.ed-cover:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 60px rgba(0,0,0,.65); }
.ed-hover {
  position: absolute; left: 50%; bottom: 8%; transform: translate(-50%, 10px); z-index: 3; opacity: 0; transition: all .3s;
  background: var(--st-gold); color: var(--st-black); padding: .5rem .9rem; white-space: nowrap;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.ed-cover:hover .ed-hover, .ed-cover:focus-visible .ed-hover { opacity: 1; transform: translate(-50%, 0); }
.ed-badge {
  position: absolute; top: -11px; right: 10px; z-index: 3; background: #0b0b0b; color: var(--st-gold);
  border: 1px solid rgba(209,179,69,.6); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .5rem;
}
.ed-badge-new { background: var(--st-gold); color: var(--st-black); border-color: var(--st-gold); }
.ed-card h3 { font-family: var(--st-serif); font-size: 1.35rem; font-weight: 600; margin: .3rem 0 .4rem; color: var(--st-white); }
.ed-card-foot { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.12); padding-top: .5rem; }
.ed-card-foot a { color: var(--st-gold); font-weight: 600; letter-spacing: .06em; }
.ed-card-foot a:hover { color: var(--st-white); }
.ed-actual { border: 1px solid rgba(209,179,69,.25); padding: clamp(1.25rem, 3vw, 2.5rem); background: rgba(255,255,255,.02); }
@keyframes edShimmer { to { background-position: -300% 0; } }

/* Vista previa */
.ed-modal .modal-content { background: #121110; color: var(--st-white); border: 1px solid rgba(209,179,69,.25); border-radius: 0; overflow: hidden; }
.ed-close { position: absolute; top: 1rem; right: 1rem; z-index: 5; }
.ed-pv-cover { background: radial-gradient(ellipse at 50% 40%, #2a2724, #121110 75%); display: grid; place-items: center; padding: 2.5rem 2rem; }
.ed-cover-3d { display: block; width: min(100%, 340px); aspect-ratio: 595 / 818; background: #1d1c1a; box-shadow: 0 30px 60px rgba(0,0,0,.6); transform: perspective(1200px) rotateY(-8deg); transition: transform .5s; cursor: pointer; }
.ed-cover-3d:hover { transform: perspective(1200px) rotateY(0deg) scale(1.02); }
.ed-cover-3d img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-pv-info { padding: 2.5rem 3rem 2.5rem 2.5rem; }
.ed-pv-info h2 { font-family: var(--st-serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); margin: .4rem 0 .2rem; }
.ed-pv-meta { color: rgba(255,255,255,.6); font-size: .85rem; }
.ed-pv-list { list-style: none; padding: 0; margin: 0; }
.ed-pv-list li { font-family: var(--st-serif); font-size: 1.02rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.ed-pv-list li::before { content: "—"; color: var(--st-gold); margin-right: .6rem; }
.ed-pv-pages { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ed-pv-page { flex: 0 0 auto; width: 84px; text-align: center; color: rgba(255,255,255,.6); font-size: .7rem; }
.ed-pv-page img, .ed-pv-page .ph { display: block; width: 84px; aspect-ratio: 595 / 818; object-fit: cover; margin-bottom: 4px; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.ed-pv-page .ph { background: linear-gradient(110deg, #1d1c1a 30%, #2a2825 50%, #1d1c1a 70%) 0 0 / 300% 100%; animation: edShimmer 1.4s linear infinite; }
.ed-pv-page:hover img { border-color: var(--st-gold); transform: translateY(-3px); }
.ed-pv-page:hover { color: var(--st-gold); }
.ed-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: var(--st-white); font-size: 1.1rem; transition: all .2s;
}
.ed-arrow:hover { background: var(--st-gold); border-color: var(--st-gold); color: var(--st-black); }
.ed-arrow:disabled { opacity: .2; pointer-events: none; }
.ed-arrow-prev { left: 12px; } .ed-arrow-next { right: 12px; }
@media (max-width: 991.98px) {
  .ed-pv-cover { padding: 3.5rem 2rem 1.5rem; }
  .ed-cover-3d { width: min(60%, 260px); transform: none; }
  .ed-pv-info { padding: 1.5rem 1.25rem 2rem; }
  .ed-arrow { top: 160px; }
}


/* Imagenes del cuerpo de la nota en STATUS: el CMS trae style="width:100%;height:auto" en linea; se limita la altura para que las verticales se vean completas dentro de un marco */
.article-body p:has(> img), .article-body p:has(> a > img) {
  margin: 2.25rem 0; padding: 1rem; text-align: center;
  background: #f4f1ea; border-top: 2px solid var(--st-gold);
}
.article-body p > img, .article-body p > a > img {
  display: block; width: auto !important; max-width: 100%; height: auto !important; max-height: 80vh;
  margin: 0 auto; box-shadow: 0 8px 24px #0b0b0b26;
}
.article-body p > a:has(> img) { display: block; }
@media (max-width: 575.98px) {
  .article-body p:has(> img), .article-body p:has(> a > img) { margin-left: -12px; margin-right: -12px; padding: .65rem; }
  .article-body p > img, .article-body p > a > img { max-height: 70vh; }
}

/* Te puede interesar en STATUS: reusa ctrlNotaMetaDatoPrincipal.ascx; !important para pisar sus estilos en linea (borde gris, 25px, hover azul) */
/* Margen en .row y no en el wrapper: si no hay nota relacionada el wrapper queda vacio y no deja hueco */
.st-tepuede .row { margin: 3rem 0 1rem; padding: 0 !important; }
.st-tepuede .col-lg-12 {
  padding: 1.75rem 2rem !important; background: var(--st-black);
  border: 0 !important; border-top: 2px solid var(--st-gold) !important; border-radius: 0 !important;
}
.st-tepuede .section-heading {
  margin: 0 0 .75rem; color: var(--st-gold);
  font: 600 .72rem/1.4 var(--st-sans); letter-spacing: .22em;
}
/* Anula la letra capital de .article-body p:first-of-type */
.article-body .st-tepuede p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; font-weight: inherit; }
.st-tepuede ul { margin: 0; padding: 0; list-style: none; }
.st-tepuede .tepuedeinteresarnota {
  color: #fff !important; text-decoration: none !important;
  font-family: var(--st-serif); font-size: 1.5rem !important; font-weight: 600 !important; line-height: 1.3;
  transition: color .2s;
}
.st-tepuede .tepuedeinteresarnota::after { content: "\2192"; display: inline-block; margin-left: .5rem; color: var(--st-gold); transition: transform .2s; }
.st-tepuede .tepuedeinteresarnota:hover { color: var(--st-gold) !important; }
.st-tepuede .tepuedeinteresarnota:hover::after { transform: translateX(4px); }
.st-tepuede .tepuedeinteresarnota:focus-visible { outline: 2px solid var(--st-gold); outline-offset: 4px; }
@media (max-width: 575.98px) {
  .st-tepuede .col-lg-12 { padding: 1.25rem 1.25rem !important; }
  .st-tepuede .tepuedeinteresarnota { font-size: 1.25rem !important; }
}
