/* ============================================================
   Archivo del Carnaval del Campo de Gibraltar
   Sistema de diseño — editorial / museo digital
   ============================================================ */

:root {
  --brand: #3a86ff;
  --c-amarillo: #fcbe0e;
  --c-verde: #49bb76;
  --c-rosa: #f91768;
  --c-naranja: #fb5608;
  --c-morado: #8337ec;
  --c-azul-oscuro: #250ed6;
  --c-cian: #1ab1e4;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #101425;
  --ink-2: #3d4560;
  --ink-3: #6f7794;
  --line: #e3e7f0;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 20, 37, 0.06);
  --maxw: 1180px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.eyebrow { font-family: var(--font); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--brand); margin: 0 0 .4rem; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hd { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brandmark { white-space: nowrap; display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-family: var(--font); letter-spacing: -.02em; }
.brandmark:hover { text-decoration: none; }
.brandmark .dot { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); position: relative; flex: none; }
.brandmark .dot::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; background: var(--c-amarillo); }
.brandmark small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.nav { margin-left: auto; display: flex; gap: .15rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2); font-size: .84rem; font-weight: 600; white-space: nowrap;
  padding: .4rem .48rem; border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--brand); background: rgba(58,134,255,.09); }
.hd-actions { display: flex; align-items: center; gap: .5rem; }
.kbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  padding: .42rem .6rem; border-radius: var(--radius-sm); font-size: .82rem; cursor: pointer;
  font-family: var(--font);
}
.kbtn:hover { border-color: var(--brand); color: var(--brand); }
.kbtn kbd { font-family: var(--font); font-size: .7rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; background: var(--bg-soft); }
.burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: .4rem .55rem; cursor: pointer; font-size: 1rem; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; padding: .6rem 20px 1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .6rem .4rem; }
  .kbtn span { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: .68rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .92rem; cursor: pointer; font-family: var(--font);
}
.btn:hover { text-decoration: none; filter: brightness(.94); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn--sm { padding: .42rem .7rem; font-size: .82rem; }
.btn--danger { background: var(--c-rosa); border-color: var(--c-rosa); }

/* ---------- Forms ---------- */
input[type=text], input[type=search], input[type=email], input[type=url],
input[type=number], input[type=password], select, textarea {
  width: 100%; font-family: var(--font); font-size: .92rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem .7rem;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(58,134,255,.3); border-color: var(--brand); }
label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .3rem; }
.field { margin-bottom: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 52px; border-bottom: 1px solid var(--line); }
.hero .stripes { display: flex; height: 6px; border-radius: 3px; overflow: hidden; max-width: 260px; margin-bottom: 1.6rem; }
.hero .stripes i { flex: 1; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: .8rem; font-size: 1.16rem; }
.hero-search { margin-top: 1.8rem; display: flex; gap: .5rem; max-width: 620px; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.hero-stats div span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--brand); text-decoration: none; }
.card__media { aspect-ratio: 4/3; background: var(--bg-soft); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 0; }
.card__meta { font-size: .82rem; color: var(--ink-3); }
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

.ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.4rem; color: #fff; text-align: center; padding: 1rem; line-height: 1.1;
}

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: .22rem .5rem;
  border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.tag--brand { background: rgba(58,134,255,.1); border-color: rgba(58,134,255,.25); color: var(--brand); }
.tag--gold { background: rgba(252,190,14,.16); border-color: rgba(252,190,14,.45); color: #8a6400; }

.chipbar { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .34rem .8rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: var(--font);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr) auto; gap: .6rem; align-items: end; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
.filters .field { margin: 0; }
.results-count { font-size: .85rem; color: var(--ink-3); margin: 1.1rem 0; }

/* ---------- Medals ---------- */
.medals { display: flex; flex-direction: column; gap: .45rem; }
.medal {
  display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-2);
  border: 1px solid var(--line); border-left: 4px solid var(--c-amarillo);
  border-radius: var(--radius-sm); padding: .5rem .7rem; background: #fff;
}
.medal b { color: var(--ink); }
.medal.p1 { border-left-color: var(--c-amarillo); }
.medal.p2 { border-left-color: #9aa4bd; }
.medal.p3 { border-left-color: var(--c-naranja); }
.medal.px { border-left-color: var(--c-cian); }

/* ---------- Detail layout ---------- */
.detail-hero { border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1.95fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.cover { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .45rem 1rem; font-size: .93rem; }
.kv dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; padding-top: .2rem; }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: .1rem 0; } .kv dd { margin-bottom: .7rem; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: .8rem; }

.crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Stars ---------- */
.stars { display: flex; gap: 3px; flex-wrap: wrap; }
.star {
  width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--ink-3); font-family: var(--font);
}
.star.on { background: var(--c-amarillo); border-color: var(--c-amarillo); color: #4a3600; }
.rating-summary { display: flex; align-items: baseline; gap: .5rem; margin-top: .7rem; }
.rating-summary b { font-family: var(--serif); font-size: 1.9rem; }

/* ---------- Masonry ---------- */
.masonry { column-count: 4; column-gap: 14px; }
@media (max-width: 1000px) { .masonry { column-count: 3; } }
@media (max-width: 700px) { .masonry { column-count: 2; } }
@media (max-width: 430px) { .masonry { column-count: 1; } }
.masonry figure {
  break-inside: avoid; margin: 0 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in;
}
.masonry figcaption { padding: 9px 11px; font-size: .78rem; color: var(--ink-3); }
.masonry figcaption b { display: block; color: var(--ink); font-size: .86rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(16,20,37,.93); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox .lb-info { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: .88rem; }
.lightbox .lb-info a { color: var(--c-amarillo); }
.lb-btn {
  position: absolute; top: 18px; right: 20px; background: #fff; border: 0; border-radius: var(--radius-sm);
  width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer;
}
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }

/* ---------- Timeline ---------- */
.decade { border-top: 2px solid var(--ink); padding-top: 1rem; margin-top: 2.4rem; }
.decade h2 { display: flex; align-items: baseline; gap: .8rem; }
.decade h2 span { font-family: var(--font); font-size: .8rem; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tl { list-style: none; margin: 1rem 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 1rem 18px; }
.tl li::before { content: ""; position: absolute; left: -27px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.tl .y { font-family: var(--serif); font-weight: 700; margin-right: .5rem; }

/* ---------- Municipio cards ---------- */
.muni-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: block; }
.muni-card:hover { text-decoration: none; border-color: currentColor; }
.muni-card .bar { height: 8px; }
.muni-card .in { padding: 18px; }
.muni-card h3 { margin-bottom: .2rem; color: var(--ink); }
.muni-card .n { font-size: .82rem; color: var(--ink-3); }

/* ---------- Search modal ---------- */
.spot { position: fixed; inset: 0; z-index: 300; display: none; padding: 8vh 20px; background: rgba(16,20,37,.45); }
.spot.open { display: block; }
.spot-box { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(16,20,37,.28); }
.spot-box input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1rem 1.1rem; font-size: 1.05rem; }
.spot-box input:focus { outline: none; }
.spot-res { max-height: 56vh; overflow: auto; }
.spot-res a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.spot-res a:hover { background: var(--bg-soft); text-decoration: none; }
.spot-res small { color: var(--ink-3); text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; font-weight: 700; white-space: nowrap; }
.spot-empty { padding: 1.4rem 1.1rem; color: var(--ink-3); font-size: .9rem; }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* ---------- Notices ---------- */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; color: var(--ink-2); }
.notice--ok { border-left-color: var(--c-verde); }
.notice--warn { border-left-color: var(--c-naranja); }

/* ---------- Videos ---------- */
.video-card .thumb { aspect-ratio: 16/9; background: #101425; position: relative; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-card .thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem;
}
.embed { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 46px 0 34px; background: var(--bg-soft); }
.ft { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 800px) { .ft { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ft { grid-template-columns: 1fr; } }
.ft h4 { font-family: var(--font); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: .7rem; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: .35rem; }
.ft a { color: var(--ink-2); font-size: .9rem; }
.ft a:hover { color: var(--brand); }
.ft-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .84rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skeleton { background: linear-gradient(90deg, #eef1f7, #f7f9fc, #eef1f7); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   CAPA VISUAL 2.0 — más visual, moderna y responsive
   ============================================================ */
:root {
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 2px 6px rgba(16,20,37,.05), 0 12px 34px -18px rgba(16,20,37,.28);
  --shadow-lift: 0 10px 22px -8px rgba(16,20,37,.18), 0 30px 60px -30px rgba(37,14,214,.35);
  --maxw: 1240px;
}
body { font-size: 16.5px; }
@media (max-width: 560px) { body { font-size: 16px; } }
h1 { font-size: clamp(2.2rem, 7.4vw, 4.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); letter-spacing: -.02em; }
.section { padding: clamp(48px, 8vw, 92px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }

/* Header más aireado */
.site-header { background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(14px); }
.hd { height: 72px; }
.nav a { font-size: .86rem; padding: .45rem .6rem; border-radius: 999px; }
.nav a.active { box-shadow: inset 0 0 0 1px rgba(58,134,255,.28); }
.kbtn, .burger { border-radius: 999px; }
@media (max-width: 980px) {
  .nav { top: 72px; border-radius: 0 0 24px 24px; box-shadow: var(--shadow-soft); gap: .1rem; }
  .nav a { font-size: 1rem; padding: .7rem .8rem; }
}

/* ---------- Hero cinematográfico ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 0;
  padding: clamp(64px, 11vw, 130px) 0 clamp(56px, 9vw, 104px);
  background: #0b0f21; color: #fff; isolation: isolate;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 16s ease-in-out infinite alternate;
}
.hero::before { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; top: -22%; left: -12%;
  background: radial-gradient(circle at 30% 30%, #3a86ff, #250ed6 60%, transparent 70%); }
.hero::after { width: 55vw; height: 55vw; max-width: 640px; max-height: 640px; bottom: -28%; right: -10%;
  background: radial-gradient(circle at 60% 40%, #f91768, #fb5608 45%, #8337ec 75%, transparent 80%);
  animation-delay: -8s; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(3%, 5%, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--c-amarillo), var(--c-naranja) 45%, var(--c-rosa)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: var(--c-amarillo); }
.hero .lead { color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 2.4vw, 1.22rem); }
.hero .stripes { height: 8px; border-radius: 999px; max-width: 300px; }
.hero-search {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  padding: .5rem; border-radius: 999px; backdrop-filter: blur(8px); max-width: 660px; gap: .4rem;
}
.hero-search input {
  background: transparent; border: 0; color: #fff; font-size: 1rem; padding: .6rem 1rem;
}
.hero-search input::placeholder { color: rgba(255,255,255,.55); }
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 999px; padding: .7rem 1.4rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .8rem; margin-top: clamp(2rem, 5vw, 3rem);
}
.hero-stats div {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); padding: .9rem 1rem; backdrop-filter: blur(6px);
}
.hero-stats div strong { font-size: clamp(1.5rem, 4vw, 2.3rem); color: #fff; }
.hero-stats div span { color: rgba(255,255,255,.6); font-size: .68rem; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Tarjetas con más presencia ---------- */
.card, .muni-card { box-shadow: var(--shadow-soft); border-color: rgba(227,231,240,.9); }
.card { transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card__media img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(11,15,33,.35), transparent); opacity: 0; transition: opacity .3s;
}
.card:hover .card__media::after { opacity: 1; }
.card__title { font-size: 1.16rem; }
.muni-card { transition: transform .25s ease, box-shadow .25s ease; }
.muni-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.muni-card .bar { height: 10px; }
.muni-card .in { padding: 20px; }

/* Chips deslizables en móvil */
@media (max-width: 700px) {
  .chipbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chipbar::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .filters { grid-template-columns: 1fr; }
  .sec-head { align-items: flex-start; }
}
.chip.on { box-shadow: 0 6px 16px -8px var(--brand); }

/* Botones */
.btn { border-radius: 999px; box-shadow: 0 8px 20px -12px rgba(58,134,255,.9); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost { box-shadow: none; }
@media (max-width: 560px) { .btn { width: auto; } .hero-search { flex-direction: row; } }

/* Formularios redondeados */
input[type=text], input[type=search], input[type=email], input[type=url],
input[type=number], input[type=password], select, textarea { border-radius: 12px; padding: .7rem .85rem; }

/* Fototeca / masonry más visual */
.masonry figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); position: relative; }
.masonry figure img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; color: #fff; padding: 1.6rem .9rem .8rem;
  background: linear-gradient(to top, rgba(11,15,33,.85), transparent); font-size: .8rem;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }
.masonry figcaption b { display: block; font-size: .9rem; }

/* Secciones suaves con degradado */
.section--soft { background: linear-gradient(180deg, #f7f9fd, #eef3fb); border-color: rgba(227,231,240,.8); }

/* Footer */
.site-footer { background: #0b0f21; border-top: 0; color: rgba(255,255,255,.72); border-radius: 32px 32px 0 0; }
.site-footer h4 { color: rgba(255,255,255,.45); }
.site-footer a, .ft a { color: rgba(255,255,255,.78); }
.site-footer a:hover, .ft a:hover { color: var(--c-amarillo); }
.ft-bottom { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }

/* Aparición al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* Toques finales móviles */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-search { padding: .35rem; }
  .hero-search .btn { padding: .7rem 1rem; }
  .grid { gap: 14px; }
}

@media (min-width: 981px) and (max-width: 1400px) {
  .nav { gap: 0; }
  .nav a { font-size: .8rem; padding: .4rem .46rem; }
  .brandmark small { display: none; }
  .kbtn span { display: none; }
}

/* ============================================================
   TIPOGRAFÍA 3.0 + PÁGINAS MÁS RICAS
   ============================================================ */
:root {
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --serif: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
}
body { letter-spacing: -.005em; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 6.6vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.05; }
h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.card__title, .hero-stats div strong, .tl .y, .decade h2 { font-family: var(--serif); }
.eyebrow { font-size: .7rem; letter-spacing: .16em; }

/* Sin degradados en el texto */
.hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--c-amarillo); font-style: normal; }

/* ---------- Cabecera de página interna ---------- */
.pagehead {
  position: relative; overflow: hidden; background: #0b0f21; color: #fff;
  padding: clamp(44px, 7vw, 78px) 0 clamp(40px, 6vw, 66px);
}
.pagehead::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 150%;
  background:
    radial-gradient(45% 60% at 12% 20%, rgba(58,134,255,.55), transparent 70%),
    radial-gradient(40% 55% at 82% 30%, rgba(131,55,236,.45), transparent 70%),
    radial-gradient(35% 50% at 60% 95%, rgba(249,23,104,.4), transparent 70%);
  filter: blur(30px);
}
.pagehead > .wrap { position: relative; }
.pagehead .eyebrow { color: var(--c-amarillo); }
.pagehead h1 { color: #fff; margin-bottom: .6rem; }
.pagehead .lead { color: rgba(255,255,255,.76); }
.pagehead .headline-rule { display: flex; gap: 4px; max-width: 220px; margin-bottom: 1.3rem; }
.pagehead .headline-rule i { height: 6px; flex: 1; border-radius: 99px; }
.pagehead + main.section, main.pagehead-next { padding-top: clamp(30px, 4vw, 46px); }

/* ---------- Paneles ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow-soft);
}
.panel h3 { margin-bottom: .6rem; }
.panel--sticky { position: sticky; top: 88px; }
@media (max-width: 900px) { .panel--sticky { position: static; } }

/* Filtros más cuidados */
.filters { gap: .7rem; }
.results-count {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; color: var(--ink-2);
}

/* Tablas y listas */
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: var(--bg-soft); }
.kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.kv dd { margin: 0 0 .8rem; color: var(--ink-2); }

/* Cronología con más ritmo */
.decade { border-top: 0; padding-top: 0; }
.decade h2 { position: sticky; top: 80px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); padding: .5rem 0; z-index: 5; }
.tl li::before { box-shadow: 0 0 0 4px rgba(58,134,255,.14); }

/* Medallas / premios */
.medal { border-radius: 14px; box-shadow: var(--shadow-soft); border-left-width: 5px; }

/* Notice */
.notice { border-radius: 14px; }

/* Portadas tipográficas con textura (sin imagen) */
.card__media .ph { position: relative; font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.card__media .ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.6px);
  background-size: 14px 14px; opacity: .5; mix-blend-mode: overlay;
}
.card__media .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 45%, rgba(11,15,33,.28));
}
.card__media .ph > * { position: relative; z-index: 1; }

/* Estadísticas fuera del héroe (fondo claro) */
main .hero-stats div { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
main .hero-stats div strong { color: var(--ink); }
main .hero-stats div span { color: var(--ink-3); }
main .hero-stats { margin-top: 2rem; }

/* ============================================================
   Capa 4.0 — menú superior, subida masiva y catálogo enriquecido
   ============================================================ */

/* ---------- Menú superior ---------- */
.site-header { border-bottom: 1px solid rgba(15,23,42,.07); }
.hd { gap: .8rem; }
.brandmark .dot { box-shadow: 0 0 0 4px rgba(58,134,255,.14); }

.nav { margin-left: auto; align-items: center; gap: .1rem; }
.navgroup { position: relative; }
.navgroup > button {
  display: inline-flex; align-items: center; gap: .3rem;
  font: inherit; font-size: .86rem; font-weight: 650; color: var(--muted);
  background: none; border: 0; cursor: pointer; padding: .5rem .7rem; border-radius: 999px;
}
.navgroup > button::after { content: "▾"; font-size: .7rem; opacity: .6; transition: transform .2s ease; }
.navgroup:hover > button, .navgroup.open > button { background: var(--bg-soft); color: var(--ink); }
.navgroup.open > button::after { transform: rotate(180deg); }
.navdrop {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translate(-50%, 8px);
  min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -22px rgba(15,23,42,.35); padding: .5rem; z-index: 60;
  opacity: 0; visibility: hidden; transition: .18s ease;
}
.navgroup:hover .navdrop, .navgroup.open .navdrop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.navdrop a { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border-radius: 12px; color: var(--ink); font-weight: 650; font-size: .9rem; }
.navdrop a small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; letter-spacing: 0; }
.navdrop a i { font-style: normal; width: 1.4rem; text-align: center; }
.navdrop a:hover { background: var(--bg-soft); text-decoration: none; }
.nav .nav-cta {
  background: var(--brand); color: #fff; padding: .5rem .95rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem; box-shadow: 0 10px 22px -12px rgba(58,134,255,.9);
}
.nav .nav-cta:hover { background: #2f6fd8; color: #fff; }
.navbar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brand); transition: width .1s linear; }

@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; display: none; flex-direction: column;
    align-items: stretch; background: #fff; padding: 1rem 1.1rem 1.6rem;
    border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow: auto;
  }
  .nav.open { display: flex; }
  .navgroup > button { width: 100%; justify-content: space-between; font-size: 1rem; padding: .7rem .2rem; }
  .navdrop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .5rem; padding: 0 0 0 .4rem; display: none; }
  .navgroup.open .navdrop { display: block; transform: none; }
  .nav > a { padding: .7rem .2rem; font-size: 1rem; }
  .nav .nav-cta { text-align: center; margin-top: .6rem; }
}

/* ---------- Subida masiva (admin) ---------- */
.dropzone {
  margin-top: 1rem; display: flex; flex-direction: column; gap: .3rem; align-items: center; justify-content: center;
  min-height: 150px; padding: 1.4rem; text-align: center; cursor: pointer;
  border: 2px dashed rgba(58,134,255,.45); border-radius: 20px;
  background: linear-gradient(180deg, rgba(58,134,255,.06), rgba(58,134,255,.02));
  transition: .18s ease;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: rgba(58,134,255,.12); transform: translateY(-2px); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s ease; }

/* ---------- Catálogo de agrupaciones ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.4rem 0; }
.stats-strip div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; }
.stats-strip b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.stats-strip span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
@media (max-width: 720px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

.activos { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .4rem 0 0; }
.activos .pill {
  display: inline-flex; gap: .4rem; align-items: center; background: rgba(58,134,255,.1);
  color: var(--brand); border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 700;
}
.activos .pill button { border: 0; background: none; cursor: pointer; color: inherit; font-size: .9rem; line-height: 1; }

.lista-rows { display: flex; flex-direction: column; gap: .5rem; }
.row-ag {
  display: grid; grid-template-columns: 66px 1fr auto; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .6rem .9rem; color: inherit;
}
.row-ag:hover { border-color: var(--brand); text-decoration: none; transform: translateX(3px); }
.row-ag img, .row-ag .ph { width: 66px; height: 52px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .6rem; overflow: hidden; }
.row-ag b { font-family: var(--font-display); font-size: 1.02rem; }
.row-ag .muted { font-size: .82rem; }
@media (max-width: 560px) { .row-ag { grid-template-columns: 52px 1fr; } .row-ag > :last-child { grid-column: 1 / -1; } }
.hd { position: relative; }
@media (max-width: 1040px) { .burger { display: block; } .kbtn span { display: none; } }
.navgroup.has-active > button { color: var(--brand); background: rgba(58,134,255,.09); }
@media (max-width: 1040px) { .navgroup.has-active .navdrop { display: block; } }

/* ================= Capa 4.0: buscador, cronología y letras ================= */
.navdot { display: inline-block; width: .62rem; height: .62rem; border-radius: 3px; margin-top: .38rem; flex: 0 0 auto; }
.burger-ico { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger-ico::before, .burger-ico::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.burger-ico::before { top: -6px; } .burger-ico::after { top: 6px; }

.spot-box { display: flex; flex-direction: column; max-height: 84vh; }
.spot-filtros { padding: .6rem .8rem; border-bottom: 1px solid var(--line); gap: .35rem; }
.spot-filtros .chip { font-size: .78rem; padding: .25rem .65rem; }
.spot-res a.sel { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--brand); }
.spot-res mark { background: rgba(58,134,255,.18); color: inherit; border-radius: 3px; padding: 0 .1em; }
.spot-sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }
.spot-foot { display: flex; gap: 1.1rem; padding: .55rem .9rem; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .74rem; color: var(--ink-3); }
.spot-foot kbd { font-family: var(--font); border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0 .3rem; margin-right: .2rem; }

/* --- Cronología --- */
.cron-bar { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: .7rem 0; margin-bottom: 1.6rem; }
.cron-bar .wrap { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cron-jump { display: flex; gap: .3rem; flex-wrap: wrap; }
.cron-jump a { font-size: .78rem; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: .22rem .6rem; color: var(--ink-2); }
.cron-jump a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cron-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: .8rem; margin: 1.2rem 0 .4rem; }
.cron-stats div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; background: #fff; }
.cron-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.cron-stats span { font-size: .78rem; color: var(--ink-3); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin: 1rem 0 0; }
.spark i { flex: 1; background: rgba(58,134,255,.25); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.spark i.on { background: var(--brand); }
.decade { margin-top: 2.4rem; scroll-margin-top: 130px; }
.year-block { margin: 1.1rem 0 0; border-left: 2px solid var(--line); padding-left: 1rem; }
.year-block > h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 .5rem; display: flex; align-items: baseline; gap: .6rem; }
.year-block > h3 span { font-size: .75rem; color: var(--ink-3); font-family: var(--font); font-weight: 600; }
.tl li { position: relative; }
.cron-empty { padding: 1.2rem; }

/* --- Letras y libretos --- */
.letra-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .letra-grid { grid-template-columns: 1fr; } }
.letra-lista { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-height: 70vh; overflow-y: auto; background: #fff; }
.letra-lista button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: .7rem .85rem; cursor: pointer; font: inherit; }
.letra-lista button b { display: block; font-size: .92rem; }
.letra-lista button small { color: var(--ink-3); font-size: .78rem; }
.letra-lista button.on { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--brand); }
.letra-texto { white-space: pre-wrap; font-size: 1.02rem; line-height: 1.85; color: var(--ink-2); margin: 0; font-family: var(--font); }
.letra-cab { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: 1rem; }

/* ============================================================
   Buscador global (bsc) — reescrito
   ============================================================ */
.bsc { position: fixed; inset: 0; z-index: 400; display: none; padding: 7vh 18px 18px; background: rgba(11,15,33,.55); backdrop-filter: blur(6px); }
.bsc.open { display: block; animation: bscIn .18s ease; }
@keyframes bscIn { from { opacity: 0 } to { opacity: 1 } }
.bsc-panel { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; max-height: 82vh; box-shadow: 0 34px 80px rgba(11,15,33,.4); }
.bsc-top { display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.bsc-ico { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid var(--brand); border-radius: 50%; position: relative; }
.bsc-ico::after { content: ""; position: absolute; right: -6px; bottom: -3px; width: 8px; height: 2px; background: var(--brand); transform: rotate(45deg); border-radius: 2px; }
.bsc-top input { flex: 1; border: 0; padding: .65rem 0; font-size: 1.06rem; font-weight: 600; background: transparent; }
.bsc-top input:focus { outline: none; }
.bsc-cerrar { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 8px; padding: .2rem .5rem; font-size: .72rem; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.bsc-tipos { display: flex; gap: .35rem; overflow-x: auto; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.bsc-tipo { display: inline-flex; align-items: center; gap: .38rem; white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .28rem .7rem; font-size: .78rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.bsc-tipo i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.bsc-tipo.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bsc-res { overflow: auto; flex: 1; }
.bsc-grupo { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .6rem .95rem .3rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink-3); }
.bsc-grupo i { width: 7px; height: 7px; border-radius: 50%; }
.bsc-res a { display: block; padding: .55rem .95rem; color: var(--ink); border-left: 3px solid transparent; }
.bsc-res a:hover { text-decoration: none; }
.bsc-res a.sel { background: var(--bg-soft); border-left-color: var(--brand); }
.bsc-t { display: block; font-weight: 700; font-size: .96rem; }
.bsc-s { display: block; font-size: .8rem; color: var(--ink-3); }
.bsc-v { display: block; margin-top: .25rem; font-size: .82rem; color: var(--ink-2); font-style: italic; }
.bsc-res mark { background: rgba(252,190,14,.4); color: inherit; border-radius: 3px; padding: 0 .12em; }
.bsc-vacio { padding: 1.4rem 1.1rem; font-size: .9rem; }
.bsc-vacio-t { margin: 0 0 .5rem; font-weight: 700; }
.bsc-cuenta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; padding: 0; }
.bsc-cuenta li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-size: .76rem; color: var(--ink-2); }
.bsc-pie { display: flex; align-items: center; gap: 1rem; padding: .5rem .9rem; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .74rem; color: var(--ink-3); }
.bsc-pie a { margin-left: auto; font-weight: 700; }
.bsc-pie kbd { font-family: var(--font); border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0 .3rem; margin-right: .18rem; }
@media (max-width: 720px) {
  .bsc { padding: 0; }
  .bsc-panel { max-height: 100vh; height: 100vh; border-radius: 0; }
  .bsc-pie span:nth-child(-n+3) { display: none; }
}

/* Buscador de letras */
.lt-buscador { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .5rem .9rem; box-shadow: var(--shadow-lift); }
.lt-buscador input { border: 0; flex: 1; font-size: 1.02rem; font-weight: 600; padding: .45rem 0; }
.lt-buscador input:focus { outline: none; }
.lt-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.lt-res mark { background: rgba(252,190,14,.45); border-radius: 3px; padding: 0 .12em; }
.lt-frag { font-style: italic; color: var(--ink-2); font-size: .85rem; margin-top: .3rem; display: block; }
