/* Fuerza Boliviana — estilos comunes
   Identidad "Pallay": el sitio como un aguayo. La franja de rombos escalonados (pallay) es la firma,
   las gradas andinas (escalones de Tiwanaku, que también son un podio) dan forma a botones y fotos,
   el fondo tiene color de lana y los títulos usan una letra ancha y atlética (Anybody).
   Cada sección tiene su color de acento, como los colores de un aguayo. */
:root {
  --rojo: #C81E2B;
  --rojo-t: #C81E2B;      /* rojo para textos */
  --amarillo: #F2B705;
  --verde: #087A3D;
  --turquesa: #08736F;
  --naranja: #B4500E;
  --fucsia: #C3185C;
  --oro: #8A5E00;
  --bg: #F6F1E8;
  --surface: #FFFDF8;
  --surface-2: #EFE7DA;
  --fg: #1A1411;
  --muted: #6C6056;
  --line: #E3D9C9;
  --on-dark: #FAF5EC;
  --hero-ink: #17120F;
  --tinta: #17120F;       /* negro andino: encabezado, cabeceras y pie (igual en claro y oscuro) */
  --font-display: "Anybody", "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 8px;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13100D; --surface: #1C1814; --surface-2: #28211B; --fg: #F4EDE2;
    --muted: #B2A595; --line: #372E26; --rojo: #E0303F; --rojo-t: #FF6B72; --amarillo: #F5C22E; --verde: #2BAE67;
    --turquesa: #2BB3AE; --naranja: #F28A40; --fucsia: #E8558F; --oro: #F5C22E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13100D; --surface: #1C1814; --surface-2: #28211B; --fg: #F4EDE2;
  --muted: #B2A595; --line: #372E26; --rojo: #E0303F; --rojo-t: #FF6B72; --amarillo: #F5C22E; --verde: #2BAE67;
  --turquesa: #2BB3AE; --naranja: #F28A40; --fucsia: #E8558F; --oro: #F5C22E;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Franja tricolor */
.tricolor { display: flex; height: 6px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--rojo); }
.tricolor span:nth-child(2) { background: var(--amarillo); }
.tricolor span:nth-child(3) { background: var(--verde); }

/* Encabezado */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 4px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand-name b { color: var(--rojo); font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; padding: 6px 12px; border-radius: 6px; color: var(--muted);
}
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -3px 0 var(--rojo); border-radius: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
.nav { align-items: center; }
.nav-account { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.nav .nav-login, .nav .nav-user { color: var(--fg); }
.nav .btn.btn-sm { padding: 6px 14px; font-size: 1rem; color: #fff; letter-spacing: .05em; }
.nav .btn.btn-sm:hover { background: var(--rojo); filter: brightness(1.08); }
.nav .btn.btn-sm[aria-current] { box-shadow: none; border-radius: 6px; }
.auth-wrap { max-width: 560px; display: grid; gap: 18px; padding-bottom: 56px; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.auth-tabs button { background: none; border: 0; padding: 10px 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: var(--fg); box-shadow: inset 0 -3px 0 var(--rojo); }
.social-login { display: grid; gap: 10px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 11px 16px; border-radius: 6px; cursor: pointer; font: 600 1rem var(--font-body); }
.btn-social svg { width: 20px; height: 20px; flex: none; }
.btn-social.google { background: #fff; color: #1F1F1F; border: 1px solid #747775; }
.btn-social.google:hover { background: #F2F2F2; }
.btn-social.facebook { background: #1877F2; color: #fff; border: 1px solid #1877F2; }
.btn-social.facebook:hover { background: #166FE5; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-msg.error.info { border-left-color: #1877F2; }
.auth-switch { font-size: .92rem; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--fg); text-decoration: underline; cursor: pointer; }
.auth-email { color: var(--muted); margin-top: 4px; word-break: break-all; }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { align-items: stretch; }
  .nav-account { margin: 8px 0 4px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav { display: none; width: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--rojo); }
}

/* Encabezado de página interior */
.page-head { padding-block: 44px 28px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); text-transform: uppercase; font-weight: 800; }
.page-head p.lead { margin-top: 10px; color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--rojo); }

.section { padding-block: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.link-more { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--rojo); }
.link-more:hover { text-decoration: underline; }

/* Aviso de datos de ejemplo */
.demo-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface);
}
.demo-note strong { color: var(--fg); }
.tag-demo { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--amarillo); color: #1b1600; }

/* Botones y chips */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 18px; border-radius: 6px; background: var(--rojo); color: #fff;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px;
  padding: 6px 14px; font: 600 .92rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.search {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 8px;
  padding: 9px 12px; font: inherit; min-width: 0; width: 260px; max-width: 100%;
}
.toolbar-der { display: flex; gap: 10px; flex-wrap: wrap; }
.club-filtro { width: 220px; cursor: pointer; }
@media (max-width: 560px) { .toolbar-der, .toolbar-der .search { width: 100%; } }

/* Avatar y escudo (marcadores de posición) */
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--verde);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.shield { width: 44px; height: 50px; flex: none; }
.shield text { font-family: var(--font-display); font-weight: 800; }

/* ---------- INICIO ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background: var(--hero-ink); min-height: min(78vh, 640px); display: flex; align-items: flex-end; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide .ghost-word {
  position: absolute; right: -2%; bottom: 8%; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(5rem, 18vw, 15rem); line-height: .85; color: rgba(255,255,255,.08); white-space: nowrap; pointer-events: none;
}
.hero-slide .silhouette { position: absolute; right: 6%; bottom: 0; height: 88%; opacity: .32; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,10,.82) 0%, rgba(8,12,10,.5) 45%, rgba(8,12,10,.15) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: 72px 56px; width: 100%; }
.hero h1 { font-size: clamp(3.6rem, 11vw, 8.5rem); font-weight: 800; text-transform: uppercase; line-height: .86; }
.hero h1 span { display: block; }
.hero h1 .b { color: var(--amarillo); }
.hero .tagline { margin-top: 18px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); max-width: 34ch; }
.hero .tagline em { font-style: normal; font-weight: 700; color: var(--amarillo); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn.ghost { color: var(--on-dark); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.75); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.hero-dots button.active { background: var(--amarillo); }

.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

/* ---------- ATLETAS ---------- */
.profile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.profile .photo { width: 150px; height: 150px; border-radius: 50%; font-size: 3rem; }
.profile h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.profile .sub { color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: .95rem; }
.contact .item { display: flex; gap: 6px; align-items: center; }
.contact .item b { font-weight: 600; }
.contact .copy { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 4px; font-size: .75rem; padding: 1px 6px; cursor: pointer; }
.club-box { text-align: center; min-width: 120px; }
.club-box .shield { width: 84px; height: 96px; margin-inline: auto; }
.crest { display: grid; place-items: center; }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest-preview { width: 96px; height: 96px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--line); font: 600 .8rem var(--font-body); color: var(--muted); padding: 6px; box-sizing: border-box; }
.crest-preview img { width: 100%; height: 100%; object-fit: contain; }
.club-box .club-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; margin-top: 6px; }
.club-box .club-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; justify-items: start; padding: 20px; }
  .profile .photo { width: 110px; height: 110px; }
  .club-box { display: flex; gap: 12px; align-items: center; text-align: left; }
  .club-box .shield { width: 52px; height: 60px; margin: 0; }
}

.athlete-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.athlete-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; font: inherit; color: inherit;
}
.athlete-card:hover { border-color: var(--muted); }
.athlete-card[aria-current="true"] { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.athlete-card .avatar { width: 84px; height: 84px; font-size: 1.8rem; }
.athlete-card .n { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.athlete-card .s { font-size: .82rem; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- NOTICIAS ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.news-layout .stack { display: grid; gap: 18px; }
@media (max-width: 860px) { .news-layout { grid-template-columns: 1fr; } }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16 / 9; max-width: 100%; position: relative; }
.news-card.side { flex-direction: row; }
.news-card.side .thumb { aspect-ratio: auto; width: 38%; flex: none; }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-card .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .06em; }
.news-card .meta .cat { color: var(--rojo); font-weight: 700; }
.news-card h3 { font-size: 1.5rem; }
.news-card.feature h3 { font-size: 2rem; }
.news-card p { color: var(--muted); }
.news-card details summary { cursor: pointer; font-weight: 600; color: var(--fg); margin-top: 4px; }
.news-card details p { margin-top: 8px; color: var(--fg); }
@media (max-width: 560px) { .news-card.side { flex-direction: column; } .news-card.side .thumb { width: 100%; aspect-ratio: 16 / 9; } }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ph-img { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.ph-img .ph-label { position: absolute; left: 10px; bottom: 10px; }
.ph-img .ph-word { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; opacity: .35; }

/* ---------- MERCADO ---------- */
.market { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.market-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1.4fr) auto; gap: 18px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.market-row:last-child { border-bottom: 0; }
.market-row .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.market-row .who .n { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.market-row .who .s { font-size: .85rem; color: var(--muted); }
.market-row .move { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.market-row .move svg { width: 64px; height: 14px; }
.market-row .dest { display: flex; gap: 10px; align-items: center; min-width: 0; }
.market-row .dest .from { font-size: .8rem; color: var(--muted); }
.market-row .dest .to { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.market-row .when { text-align: right; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; color: #fff; }
.badge.fichaje { background: var(--verde); }
.badge.intercambio { background: var(--amarillo); color: #1b1600; }
.badge.salida { background: var(--rojo); }
.badge.prestamo { background: var(--amarillo); color: #1b1600; }
.badge.compra { background: #1F4E9C; }
.badge.renovacion { background: #4B3A7A; }
.market-row .dest .shield.crest { width: 48px; height: 48px; flex: none; }
.market-row .pais { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); text-transform: none; }
.market-row .when .src { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
@media (max-width: 760px) {
  .market-row { grid-template-columns: 1fr; gap: 10px; }
  .market-row .move svg { width: 40px; }
  .market-row .when { text-align: left; }
}

/* ---------- EVENTOS ---------- */
.events-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.events-layout .stack { display: grid; gap: 18px; align-content: start; }
@media (max-width: 860px) { .events-layout { grid-template-columns: 1fr; } }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 18px; }
.event-card.tall { grid-template-columns: 1fr; }
.date-block { width: 78px; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); align-self: start; }
.date-block .m { background: var(--rojo); color: #fff; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; padding: 3px 0; }
.date-block .d { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date-block .y { font-size: .72rem; color: var(--muted); padding-bottom: 4px; }
.event-card .poster { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; position: relative; overflow: hidden; }
.event-card .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-card h3 { font-size: 1.55rem; }
.event-card .where { color: var(--muted); font-size: .95rem; }
.event-card .countdown { font-family: var(--font-display); font-weight: 700; color: var(--verde); text-transform: uppercase; letter-spacing: .05em; }
.event-list { display: grid; gap: 10px; }
.event-list .event-card { padding: 14px; }

/* ---------- COMUNIDAD ---------- */
.community-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .community-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .row > label { align-content: start; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%;
}
.form-msg { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border-left: 4px solid var(--verde); }
.wall { display: grid; gap: 12px; margin-top: 16px; }
.wall-item { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wall-item:last-child { border-bottom: 0; }
.wall-item .avatar { width: 40px; height: 40px; font-size: 1rem; }
.wall-item .who { font-weight: 700; }
.wall-item .who span { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pillar { padding-top: 14px; border-top: 4px solid var(--verde); }
.pillar:nth-child(2) { border-color: var(--amarillo); }
.pillar:nth-child(3) { border-color: var(--rojo); }
.pillar p { color: var(--muted); margin-top: 6px; }

/* Pie */
.site-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.site-footer .brand-name { font-size: 1.3rem; color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Portada: accesos a cada sección, uno al lado del otro */
.section-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .section-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .section-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section-tile {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--tile); border-radius: var(--radius); padding: 18px 16px;
}
.section-tile:hover { border-color: var(--muted); border-top-color: var(--tile); }
.tile-count { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.tile-name { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.tile-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.tile-go { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rojo); margin-top: 6px; }

/* Portada a pantalla completa (por ahora la portada es solo el hero) */
.is-home .hero { min-height: calc(100svh - 76px); }
.hero .motto {
  margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1.1; max-width: 26ch; color: var(--on-dark);
  padding-left: 14px; border-left: 4px solid var(--rojo);
}
.hero .tagline { margin-top: 14px; }


/* Atletas: añadir perfil */
.head-with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head-with-action > div { min-width: 0; }
.add-panel { margin-bottom: 24px; }
.photo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-field .avatar.photo { width: 96px; height: 96px; font: 600 .8rem var(--font-body); color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); }
.photo-actions { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.stats-fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.stats-fieldset legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.stats-fieldset legend small { font-weight: 400; color: var(--muted); }
.stat-fields { display: grid; gap: 8px; }
.stat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.stat-row input { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.stat-row input[readonly] { background: var(--surface-2); font-weight: 600; }
#add-stat { justify-self: start; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-msg.error { border-left-color: var(--rojo); }
.btn:disabled { opacity: .6; cursor: progress; }
.profile-tools { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip.danger { color: var(--rojo); border-color: var(--rojo); }
.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; justify-items: center; }
.empty-state p { color: var(--muted); }
#athletes-status { margin-bottom: 18px; }
.tag-star { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--verde); color: #fff; }
.profile-note { margin-top: 14px; max-width: 60ch; }
.profile-source { margin-top: 10px; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-source a { color: var(--fg); }

/* Trayectoria */
.btn-tray { margin-top: 16px; padding: 8px 16px; font-size: 1rem; }
.tray-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; min-width: 0; }
.tray-panel h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 76px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 8px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 71px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--verde); box-sizing: border-box; }
.tl-logro::before { border-color: var(--amarillo); background: var(--amarillo); }
.tl-club::before { border-color: var(--rojo); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-align: right; line-height: 1.6; overflow-wrap: anywhere; }
.tl-body p { margin: 2px 0 0; line-height: 1.45; }
.tl-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tl-logro .tl-tag { color: var(--fg); }
.tl-club .tl-tag { color: var(--rojo); }
.tray-row { display: grid; grid-template-columns: 90px 150px minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; border-radius: 10px; transition: box-shadow .15s, background .15s; }
.tr-mover { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: grab; touch-action: none; padding: 0; color: var(--muted); }
.tr-mover span { width: 14px; height: 18px; background: radial-gradient(circle, currentColor 1.6px, transparent 1.8px) 0 0 / 7px 6px; }
.tr-mover:hover, .tr-mover:focus-visible { color: var(--fg); border-color: var(--fg); }
.tray-row.arrastrando { background: var(--surface-2); box-shadow: 0 8px 24px rgba(0,0,0,.25); position: relative; z-index: 2; }
.tray-row.arrastrando .tr-mover { cursor: grabbing; color: var(--fg); border-color: var(--verde); }
#tray-fields.ordenando { user-select: none; cursor: grabbing; }
.tray-row input, .tray-row select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
@media (max-width: 560px) {
  .tray-row { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .tray-row .tr-mover { grid-column: 3; grid-row: 1; justify-self: end; }
  .tray-row .tr-t { grid-column: 1 / 3; grid-row: 2; }
  .tray-row .tr-del { grid-column: 3; grid-row: 2; }
  .tray-row + .tray-row { border-top: 1px solid var(--line); padding-top: 10px; }
  .timeline::before { left: 62px; }
  .tl-item { grid-template-columns: 52px minmax(0, 1fr); gap: 22px; }
  .tl-item::before { left: 57px; }
  .tl-year { font-size: .95rem; }
}
.tl-body.has-crest { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.tl-crest { width: 36px; height: 36px; object-fit: contain; margin-top: 2px; }
.market-sport { padding: 12px 20px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--c); }
.market-sport:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.market-sport span { font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--muted); margin-left: 6px; }

.market-filters { display: grid; gap: 10px; margin-bottom: 20px; }
.market-filters .chip .n { font-weight: 500; opacity: .65; margin-left: 2px; }
.chip.ghost { border-style: dashed; background: transparent; }
.adv-panel { display: grid; gap: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.adv-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.crest-xs { display: inline-block; width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 4px; }
.nowrap { white-space: nowrap; }

/* ---------- APOYA (patrocinios) ---------- */
.section-title { margin-bottom: 6px; }
.muted-line { color: var(--muted); max-width: 65ch; margin: 0 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.steps p { color: var(--muted); margin: 6px 0 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 10px;
  font: 800 1.2rem var(--font-display); background: var(--amarillo); color: #1b1600; }
.steps li:nth-child(2) .step-n { background: var(--verde); color: #fff; }
.steps li:nth-child(3) .step-n { background: var(--rojo); color: #fff; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.sponsor-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--amarillo); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.sponsor-card p { margin: 0; color: var(--muted); }
.sponsor-card .btn { justify-self: start; }
.sc-head { display: flex; gap: 12px; align-items: center; }
.sc-head .avatar { width: 52px; height: 52px; font-size: 1.2rem; flex: none; }
.sc-head .n { font: 700 1.2rem var(--font-display); }
.sc-head .s { color: var(--muted); font-size: .88rem; }
.sc-head .tag-demo { margin-left: auto; align-self: flex-start; }
.needs { display: flex; flex-wrap: wrap; gap: 6px; }
.need { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.tag-apoyo { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--amarillo); color: #1b1600; }
.apoyo-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--amarillo); background: var(--surface-2); display: grid; gap: 10px; justify-items: start; }
.apoyo-box p { margin: 0; color: var(--muted); }
.apoyo-detalle { display: grid; gap: 10px; }
.need-picks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.form .need-pick { font-size: .9rem; }
.benefits { margin-top: 8px; }
.support-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
.support-type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.support-type p { margin: 6px 0 0; color: var(--muted); }
.st-k { font: 800 1.25rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.allies-title { margin-top: 30px; }
.allies { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.ally { display: grid; place-items: center; min-height: 72px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 600; font-size: .9rem; }
.news-src { font-weight: 600; font-size: .9rem; color: var(--rojo); text-decoration: none; margin-top: auto; }
.news-src:hover { text-decoration: underline; }
.news-card .thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb { overflow: hidden; background: var(--surface-2); }
.photo-credit { position: absolute; right: 6px; bottom: 6px; font-size: .68rem; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 4px; text-decoration: none; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit:hover { text-decoration: underline; }

/* Menú más compacto y foto de perfil */
.nav { gap: 2px; }
.nav a { font-size: .95rem; padding: 5px 9px; letter-spacing: .04em; }
.nav .btn.btn-sm { font-size: .9rem; padding: 5px 12px; }
.nav-account { margin-left: 6px; padding-left: 10px; }
.user-menu { position: relative; }
.user-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: block; }
.user-btn:focus-visible { outline: 2px solid var(--rojo); outline-offset: 2px; }
.user-pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--line); }
.user-pic.no-pic { background: var(--verde); color: #fff; font: 700 .95rem var(--font-display); letter-spacing: .03em; }
.user-pic.lg { width: 44px; height: 44px; flex: none; }
.user-pic.xl { width: 88px; height: 88px; font-size: 1.8rem; }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px; display: grid; gap: 2px; z-index: 60; }
.up-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 0; }
.up-name { font-weight: 700; }
.up-mail { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .user-pop a, .user-pop button { display: block; text-align: left; padding: 8px; border-radius: 6px; font: 600 .92rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--fg); background: none; border: 0; cursor: pointer; box-shadow: none; }
.nav .user-pop a:hover, .user-pop button:hover { background: var(--surface-2); }
.account-head { display: flex; gap: 18px; align-items: center; }
.pic-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.btn-file { position: relative; font-size: .95rem; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 1000px) { .nav-account { position: relative; } .user-menu { position: static; } .user-pop { left: 0; right: 0; width: auto; top: calc(100% + 6px); } }

/* Menú centrado: logo a la izquierda, secciones al medio, cuenta a la derecha */
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
@media (min-width: 1001px) {
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .site-header .nav { display: contents; }
  .site-header .nav-links { grid-column: 2; justify-content: center; }
  .site-header .nav-account { grid-column: 3; justify-self: end; margin-left: 0; padding-left: 0; border-left: 0; }
}
@media (max-width: 1000px) { .nav-links { flex-direction: column; align-items: stretch; } }
.nav-account a { white-space: nowrap; }
#events-top.event-list { margin-bottom: 28px; }
.atleta-check { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--verde); border-radius: 8px; background: var(--surface-2); }
.atleta-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.atleta-panel:empty { display: none; }
.atleta-panel p { margin: 0; color: var(--muted); }
.ap-row { display: flex; gap: 12px; align-items: center; }
.ap-row .avatar { width: 52px; height: 52px; font-size: 1.2rem; flex: none; }
.ap-n { font: 700 1.2rem var(--font-display); }
.ap-s { color: var(--muted); font-size: .9rem; }

/* Botones de Google/Facebook todavía sin activar */
.btn-social.pronto { opacity: .55; }

/* Apoya: empresas de ejemplo */
.tag-ejemplo { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--amarillo); color: #1A1A1A; font: 700 .7rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.companies-note { color: var(--muted); margin: 6px 0 14px; max-width: 65ch; }
.companies { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.company-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.company-logo { position: relative; height: 96px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.company-logo img { position: absolute; inset: 14px 22px; width: calc(100% - 44px); height: calc(100% - 28px); object-fit: contain; }
.company-logo img[src*="sofia.com.bo"] { transform: scale(1.8); }
.company-logo img[src*="Mercantil"] { transform: scale(1.15); }
.company-logo.oscuro img { filter: brightness(0); }
.company-logo.sin-logo::after { content: attr(data-ini); font: 800 1.3rem var(--font-head, inherit); color: #1F2824; }
.company-body { min-width: 0; }
.company-body h4 { margin: 0; font-size: 1rem; line-height: 1.25; }
.company-sector { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 700; color: var(--verde); text-transform: uppercase; letter-spacing: .05em; }
.company-body p { margin: 6px 0 8px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.company-body a { font-weight: 600; font-size: .9rem; }

/* Apoya: llamada para atletas */
.cta-atleta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 8px; padding: 28px 32px; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1FA85A 0%, #0B6B39 45%, #0A3D24 100%); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-atleta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
  background: linear-gradient(#D52B1E 0 33.3%, #F9E300 33.3% 66.6%, #007934 66.6%); }
.cta-txt { min-width: 0; flex: 1 1 360px; }
.cta-kicker { display: inline-block; font: 700 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #F9E300; }
.cta-atleta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; margin: 6px 0 8px; color: #fff; }
.cta-atleta p { margin: 0; max-width: 56ch; color: rgba(255,255,255,.88); }
.btn-cta { background: #F9E300; color: #111; padding: 16px 26px; font-size: 1.25rem; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; transition: transform .15s; }
.btn-cta:hover { transform: translateY(-2px); filter: none; background: #FFEE40; }
.btn-cta span { margin-left: 6px; }
@media (max-width: 600px) { .cta-atleta { padding: 22px 20px 22px 26px; } .btn-cta { width: 100%; text-align: center; white-space: normal; } }

/* Panel de administración */
.adm-wrap { padding-bottom: 56px; }
.adm-aviso { max-width: 640px; }
.adm-aviso h2 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 8px; }
.adm-aviso p + p { margin-top: 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.adm-stat b { display: block; font: 800 2.2rem/1 var(--font-display); }
.adm-stat span { color: var(--muted); font-size: .9rem; }
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.adm-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--muted);
  font: 700 1.05rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.adm-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--rojo); }
#adm-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
#adm-body > .adm-nueva, #adm-body > .adm-chips, #adm-body > .adm-filtro, #adm-body > .adm-vacio { grid-column: 1 / -1; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.adm-row h3 { font-size: 1.3rem; min-width: 0; overflow-wrap: anywhere; }
.adm-fecha, .adm-sub { color: var(--muted); font-size: .85rem; margin: 0; }
.adm-sub a { color: inherit; }
.adm-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.adm-dl .sel { user-select: all; font-weight: 600; }
.adm-msg { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.adm-acc label, .adm-campos label, .adm-notas { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.adm-card select, .adm-card input, .adm-card textarea, .adm-nueva input {
  font: 500 .95rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; min-width: 0; width: 100%; }
.adm-card textarea { resize: vertical; }
.adm-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-borrar { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--rojo); border-radius: 6px; padding: 6px 12px; cursor: pointer; font: 600 .85rem var(--font-body); }
.adm-guardado { color: var(--verde); font-weight: 700; font-size: .85rem; }
.adm-vacio { color: var(--muted); padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }
.adm-nueva { display: grid; grid-template-columns: 2fr 1.2fr 2fr auto; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.adm-nueva .btn { white-space: nowrap; }
.adm-estado { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.adm-estado.est-interesada { background: #F9E300; color: #111; }
.adm-estado.est-acuerdo { background: var(--verde); color: #fff; }
.adm-estado.est-contactada { background: #1F4E9C; color: #fff; }
.adm-estado.est-no-interesada { opacity: .6; }
@media (max-width: 700px) { .adm-nueva { grid-template-columns: 1fr; } .adm-campos { grid-template-columns: 1fr; } #adm-body { grid-template-columns: 1fr; } }
.adm-nueva .btn { padding: 8px 16px; font-size: 1rem; }
.adm-filtro { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.adm-filtro input { width: auto; }

/* ================= Capa de pulido profesional ================= */
:root { --shadow-sm: 0 1px 2px rgba(16,24,20,.06), 0 1px 3px rgba(16,24,20,.05); --shadow-md: 0 8px 24px rgba(16,24,20,.10); --radius-lg: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 10px 28px rgba(0,0,0,.45); } }
:root[data-theme="dark"] { --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 10px 28px rgba(0,0,0,.45); }
body { overflow-x: clip; }
::selection { background: var(--amarillo); color: #111; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; border-radius: 4px; }

/* Encabezado: vidrio esmerilado */
.site-header { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }

/* Cabecera de cada página: banda suave a todo el ancho */
.page-head { position: relative; padding-block: 56px 36px; margin-bottom: 8px; isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--verde) 14%, transparent), transparent 70%),
    radial-gradient(40% 90% at 85% 100%, color-mix(in srgb, var(--amarillo) 12%, transparent), transparent 70%),
    linear-gradient(var(--surface), var(--bg));
  border-bottom: 1px solid var(--line); }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.page-head .eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--rojo) 0 33%, var(--amarillo) 33% 66%, var(--verde) 66%); }
.page-head h1 { letter-spacing: .005em; }

/* Títulos de sección con acento */
.section-title { position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--rojo); }

/* Tarjetas: bordes redondeados, sombra ligera y elevación al pasar el mouse */
.panel, .athlete-card, .news-card, .event-card, .sponsor-card, .company-card, .adm-card, .adm-stat {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.athlete-card, .news-card, .event-card, .sponsor-card, .company-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
@media (hover: hover) {
  .athlete-card:hover, .news-card:hover, .event-card:hover, .sponsor-card:hover, .company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.company-logo { border-radius: 10px; }

/* Botones */
.btn { border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease, filter .15s; }
.btn:not(.ghost):hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--rojo) 30%, transparent); transform: translateY(-1px); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--fg); }
.btn:active { transform: translateY(0); }

/* Formularios más cómodos */
.form input, .form select, .form textarea { background: var(--surface); padding: 11px 13px; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 22%, transparent); }
.form label { gap: 6px; }

/* Propuesta de empresas: cabecera destacada */
#propuesta { position: relative; overflow: hidden; padding-top: 34px; }
#propuesta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--rojo) 0 33.3%, var(--amarillo) 33.3% 66.6%, var(--verde) 66.6%); }
#propuesta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; }

/* Notas de ejemplo más discretas */
.demo-note { border-radius: var(--radius-lg); }

/* Pie de página profesional */
.site-footer { margin-top: 64px; background: #0E1311; color: #C9D3CD; border-top: 0; }
.site-footer .wrap { display: block; color: inherit; }
.footer-grid { display: grid !important; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 44px 28px !important; }
.footer-brand .brand-name { color: #fff; font-size: 1.6rem; }
.footer-brand p { margin: 10px 0 0; max-width: 34ch; color: #9AA7A0; font-size: .95rem; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer-col h4 { margin: 0 0 4px; font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #F5CB1F; }
.footer-col a { color: #C9D3CD; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex !important; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 28px !important; border-top: 1px solid #222C27; font-size: .85rem; color: #7D8A83 !important; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 340px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botón de tema (claro / oscuro) ---------- */
.nav-account-in { display: flex; align-items: center; gap: 8px; }
.tema-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; min-width: 36px; padding: 0 9px; border-radius: 999px;
  background: transparent; color: var(--fg); border: 1px solid var(--line);
  font: 600 .85rem var(--font-body); cursor: pointer; transition: background .15s, border-color .15s;
}
.tema-btn:hover { background: var(--surface-2); border-color: var(--muted); }
.tema-btn:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.tema-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tema-btn .tema-txt { display: none; }
@media (max-width: 1000px) {
  .tema-btn { align-self: flex-start; }
  .tema-btn .tema-txt { display: inline; }
  .nav-account { flex-wrap: wrap; }
}
.auth-gate-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--verde) 10%, var(--surface)); border-left: 4px solid var(--verde); color: var(--fg); line-height: 1.5; }
#hero-credit { min-width: 0; max-width: 100%; }
#hero-credit a { color: inherit; text-decoration: none; }
#hero-credit a:hover, #hero-credit a:focus-visible { text-decoration: underline; color: #fff; }
.ev-fuente { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--rojo); text-decoration: none; }
.ev-fuente:hover { text-decoration: underline; }

/* ---------- Apoya: diseño según el boceto del usuario ---------- */
.page-head-accion { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head-accion > div { min-width: 0; flex: 1 1 420px; }
.page-head-accion .btn-cta { flex: none; }
.sc-campos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.sc-campos:empty { display: none; }
.sc-campo { min-width: 0; }
.sc-campo h4 { margin: 0 0 4px; font: 700 .72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.sc-campo p { font-size: .95rem; }
.sc-necesidad { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 2px; font-size: .95rem; }
.sc-necesidad li::marker { content: "✱  "; color: var(--rojo); font-size: .8em; }
.sponsor-card.apoyado { border-top-color: var(--verde); }
.sc-empresas { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-empresas span { font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--verde); color: var(--fg); background: color-mix(in srgb, var(--verde) 8%, var(--surface)); }
.proceso-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); counter-reset: paso; }
.proceso-pasos li { counter-increment: paso; position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 58px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.proceso-pasos li::before { content: counter(paso); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--font-display); background: var(--verde); color: #fff; }
.proceso-pasos li:last-child::before { background: var(--amarillo); color: #1b1600; }
.proceso-pasos b { font-family: var(--font-display); font-size: 1.1rem; }
.proceso-pasos span { color: var(--muted); font-size: .92rem; }

/* Panel: proceso de apoyo por atleta */
.adm-apoyos { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.adm-apoyos h4 { margin: 0; font: 700 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.adm-apoyo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .92rem; }
.adm-apoyo b { min-width: 0; }
.adm-apoyo .adm-fecha { color: var(--muted); }
.adm-apoyo select { font: inherit; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.adm-apoyo.est-aceptado b { color: var(--verde); }
.adm-apoyo.est-rechazado b { text-decoration: line-through; color: var(--muted); }
.adm-apoyo-nuevo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-apoyo-nuevo select { font: inherit; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); min-width: 0; max-width: 100%; }
.adm-sugerencia { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--amarillo) 14%, var(--surface)); border-left: 4px solid var(--amarillo); font-size: .92rem; display: grid; gap: 8px; }
.adm-mensaje { width: 100%; font: .9rem/1.5 var(--font-body); padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); }

/* ---------- Eventos con fotos ---------- */
.ev-top { margin-bottom: 8px; }
.ev-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ev-card { --ev: var(--verde); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.ev-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ev), #0E1311); overflow: hidden; }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
@media (hover: hover) { .ev-card:hover .ev-media img { transform: scale(1.04); } }
.ev-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.ev-date { position: absolute; top: 12px; left: 12px; width: 58px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; color: #141A17; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ev-date .m { display: block; background: var(--rojo); color: #fff; font: 700 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 3px 0; }
.ev-date .d { display: block; font: 800 1.8rem/1.15 var(--font-display); padding-bottom: 2px; }
.ev-dep { position: absolute; top: 14px; right: 12px; font: 700 .72rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; border-left: 3px solid var(--ev); backdrop-filter: blur(4px); }
.ev-count { position: absolute; bottom: 12px; left: 12px; font: 700 .85rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--amarillo); color: #1b1600; }
.ev-count.live { background: var(--rojo); color: #fff; }
.ev-credito { position: absolute; bottom: 8px; right: 10px; font-size: .68rem; color: rgba(255,255,255,.8); text-decoration: none; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-credito:hover { color: #fff; text-decoration: underline; }
.ev-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; flex: 1; }
.ev-body h3 { font-size: 1.4rem; line-height: 1.15; text-wrap: balance; }
.ev-where { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .9rem; }
.ev-where span:nth-child(2) { text-transform: none; }
.ev-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.ev-body .ev-fuente { margin-top: 2px; }
/* Evento principal: foto grande con el texto encima */
.ev-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.ev-main .ev-media { aspect-ratio: auto; min-height: 340px; }
.ev-main .ev-shade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.8) 100%); }
.ev-main .ev-count { bottom: auto; top: 50px; right: 12px; left: auto; }
.ev-main-txt { position: absolute; left: 20px; right: 20px; bottom: 30px; color: #fff; display: grid; gap: 4px; }
.ev-kicker { font: 700 .75rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amarillo); }
.ev-main-txt h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; color: #fff; text-wrap: balance; }
.ev-main-txt .ev-where { color: rgba(255,255,255,.85); font-size: .98rem; }
.ev-main .ev-body { align-content: center; padding: 24px; gap: 12px; }
.ev-main .ev-body p { font-size: 1.05rem; color: var(--fg); }
@media (max-width: 760px) {
  .ev-main { grid-template-columns: 1fr; }
  .ev-main .ev-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Conexiones: red entre empresas y atletas ---------- */
.tipo-cuenta { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tipo-cuenta legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.form .tipo-op { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 400; }
.form .tipo-op input { width: auto; margin-top: 4px; accent-color: var(--verde); }
.tipo-op span { display: grid; gap: 2px; min-width: 0; }
.tipo-op b { font-weight: 700; }
.tipo-op small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.tipo-op:has(input:checked) { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); background: color-mix(in srgb, var(--verde) 8%, var(--surface)); }
@media (max-width: 560px) { .tipo-cuenta { grid-template-columns: 1fr; } }

#red-root { display: grid; gap: 18px; padding-bottom: 56px; }
.red-aviso h2, .red-invita h2, .red-form h2 { margin-bottom: 8px; }
.red-invita { display: grid; gap: 14px; }
.red-invita > p { color: var(--muted); max-width: 65ch; }
.red-form { margin-top: 0; }
.red-fs { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 14px; margin: 0; }
.red-fs legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.red-nota { color: var(--muted); font-size: .88rem; margin: 0; }
.red-sub { color: var(--muted); font-size: .92rem; margin: 0; overflow-wrap: anywhere; }
.red-empresa { display: grid; gap: 12px; }
.red-emp-head { display: flex; gap: 14px; align-items: center; }
.red-emp-head > div:not(.red-logo):not(.avatar) { flex: 1; }
.red-emp-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.red-emp-head .n { font: 700 1.2rem var(--font-display); }
.red-logo { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 800 1.2rem var(--font-display); letter-spacing: .04em; }
.red-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.red-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); font: 700 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.red-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--rojo); }
.red-tabs .n { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; text-align: center; }
.red-filtros { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 10px; align-items: center; }
.red-filtros input, .red-filtros select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; }
.red-filtros .check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: .92rem; justify-self: start; }
.red-filtros .check input { width: auto; margin: 0; }
@media (max-width: 860px) { .red-filtros { grid-template-columns: 1fr 1fr; } .red-filtros input[type="search"] { grid-column: 1 / -1; } }
@media (max-width: 480px) { .red-filtros { grid-template-columns: 1fr; } }
#red-count { margin: 0; }
.red-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.red-grid > .adm-vacio { grid-column: 1 / -1; }
.red-card, .red-fila { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.red-card { border-top: 4px solid var(--verde); }
.red-card.activa { box-shadow: 0 0 0 3px color-mix(in srgb, var(--amarillo) 70%, transparent); }
.red-card .sc-head > div:not(.avatar), .red-fila .sc-head > div:not(.avatar) { flex: 1; }
.red-busca { align-self: flex-start; flex: none; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--verde) 15%, transparent); color: var(--verde); font: 700 .72rem var(--font-body); letter-spacing: .05em; text-transform: uppercase; }
.red-razon { margin: 0; padding: 10px 12px; border-left: 3px solid var(--amarillo); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: .95rem; overflow-wrap: anywhere; }
.red-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.red-acc-der { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.red-estado { flex: none; align-self: center; padding: 3px 10px; border-radius: 999px; font: 700 .78rem var(--font-body); white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.red-estado.est-pendiente { background: color-mix(in srgb, var(--amarillo) 30%, transparent); color: var(--fg); }
.red-estado.est-aprobada { background: var(--verde); color: #fff; }
.red-estado.est-rechazada { color: var(--rojo); }
.red-conectar { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.red-conectar label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.red-conectar textarea, .red-escribir textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; resize: vertical; }
.red-lista { display: grid; gap: 12px; }
.red-sec { display: grid; gap: 4px; }
.red-sec .red-lista { margin-top: 8px; }
.red-tip { margin: 6px 0; }
.red-chat { display: grid; gap: 14px; max-width: 760px; width: 100%; justify-self: center; }
.red-chat .linkish { justify-self: start; }
.red-msgs { display: flex; flex-direction: column; gap: 10px; max-height: min(60vh, 520px); overflow-y: auto; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.red-msg { max-width: 80%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; overflow-wrap: anywhere; }
.red-msg b { display: block; font-size: .8rem; color: var(--muted); }
.red-msg p { margin: 2px 0; white-space: pre-wrap; }
.red-msg span { font-size: .72rem; color: var(--muted); }
.red-msg.mio { align-self: flex-end; background: var(--verde); border-color: var(--verde); color: #fff; border-radius: 14px 14px 4px 14px; }
.red-msg.mio b, .red-msg.mio span { color: rgba(255,255,255,.8); }
.red-msg.sistema { align-self: stretch; max-width: none; border-style: dashed; border-radius: 10px; }
.red-vacio { text-align: center; padding: 10px; }
.red-escribir { display: flex; gap: 10px; align-items: flex-end; }
.red-escribir .btn { flex: none; }
.adm-stat.alerta { border-color: var(--amarillo); box-shadow: inset 0 0 0 2px var(--amarillo); }
.adm-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: .8rem; text-align: center; }
#adm-body > .adm-intro, #adm-body > .adm-registradas { grid-column: 1 / -1; }
.adm-intro { margin: 0; }
.adm-alerta { margin: 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--amarillo) 25%, transparent); font-size: .9rem; font-weight: 600; }
.adm-con-acc { justify-content: flex-start; flex-wrap: wrap; }
.adm-chat { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding: 10px; background: var(--surface-2); border-radius: 8px; }
.adm-chat-msg p { margin: 2px 0 0; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-registradas { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--surface); }
.adm-registradas summary { cursor: pointer; font-weight: 700; }
.adm-registradas ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; overflow-wrap: anywhere; }
.apoya-empresas { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--verde); }
.apoya-empresas h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 4px; }
.apoya-empresas p { color: var(--muted); max-width: 60ch; }
.red-en-apoya { padding-top: 28px; scroll-margin-top: 80px; }
.red-en-apoya #red-root { padding-bottom: 0; scroll-margin-top: 80px; }

/* ---------- Comunidad: servidores, canales y publicaciones ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Comunidad: grupos, temas y publicaciones en tarjetas */
.tb { position: relative; padding-bottom: 40px; }
.tb-chip { display: inline-flex; align-items: center; gap: 7px; }
.tb-punto { width: 9px; height: 9px; border-radius: 50%; background: var(--g); flex: none; }
.tb-chip[aria-pressed="true"] .tb-punto { box-shadow: 0 0 0 2px var(--bg); }
.tb-temas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 2px; }
.tb-temas-fila { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; min-width: 0; }
.tb-tema { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); font: 700 .82rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.tb-tema:hover { color: var(--fg); }
.tb-tema[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--rojo); }
.tb-mas { color: var(--verde); }
.tb-nuevo-tema { display: flex; gap: 8px; align-items: center; }
.tb-nuevo-tema input { width: 170px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: .9rem; }
.tb-gestion { display: flex; gap: 14px; font-size: .85rem; }
.tb-gestion .linkish { font-weight: 600; color: var(--muted); }
.tb-gestion .tb-peligro, .tb-gestion .seguro { color: var(--rojo); }
.tb-escribir { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 12px; margin-bottom: 26px; border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--rojo) 0 33%, var(--amarillo) 33% 66%, var(--verde) 66%) 1 0 0 0; }
.tb-escribir-fila { display: flex; gap: 14px; align-items: flex-start; }
.tb-yo { width: 44px; height: 44px; flex: none; }
.tb-escribir textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1.08rem; padding: 10px 0; min-height: 52px; max-height: 240px; outline: none; }
.tb-escribir-pie { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.tb-foto { display: inline-flex; align-items: center; gap: 6px; }
.tb-foto svg { width: 18px; height: 18px; }
.tb-destino { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-left: auto; min-width: 0; }
.tb-destino select { min-width: 0; max-width: 340px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--fg); font: inherit; font-size: .9rem; }
.tb-adjunto { position: relative; justify-self: start; margin-left: 58px; }
.tb-adjunto img { max-height: 160px; border-radius: 10px; border: 1px solid var(--line); }
.tb-quitar { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--rojo); color: #fff; cursor: pointer; font-weight: 700; }
#tb-top:not(:empty) { margin-bottom: 18px; }
.tb-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.tb-grid > .empty { grid-column: 1 / -1; }
.tb-card { position: relative; }
.tb-card .ev-dep { max-width: calc(100% - 96px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-media { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.tb-main .tb-media { min-height: 360px; }
.tb-kicker { color: var(--rojo); }
.tb-cabeza { position: relative; min-height: 64px; padding: 64px 20px 20px; background: linear-gradient(135deg, var(--ev), color-mix(in srgb, var(--ev) 55%, #0E1311)); color: #fff; }
.tb-solo:not(.tb-cartel) .tb-cabeza { padding: 0; min-height: 62px; }
.tb-cabeza .ev-date { top: 12px; left: 12px; }
.tb-cabeza .ev-date, .tb-cabeza .ev-dep { position: absolute; }
.tb-solo:not(.tb-cartel) .ev-date { width: 46px; top: 8px; }
.tb-solo:not(.tb-cartel) .ev-date .d { font-size: 1.3rem; }
.tb-frase { margin: 0; font: 700 clamp(1.3rem, 2.2vw, 1.6rem)/1.2 var(--font-display); text-wrap: balance; overflow-wrap: anywhere; white-space: pre-wrap; }
.tb-frase a, .tb-cabeza a { color: #fff; }
.tb-autor { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-autor > div { display: grid; min-width: 0; line-height: 1.25; }
.tb-autor b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-autor span { color: var(--muted); font-size: .8rem; }
.tb-avatar { width: 36px; height: 36px; font-size: .85rem; flex: none; }
.ev-body .tb-texto { margin: 0; color: var(--fg); font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tb-texto a { color: #1F6FD0; }
.tb-borrar { justify-self: end; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--muted); font: 600 .8rem var(--font-body); }
.tb-borrar:hover, .tb-borrar.seguro { color: var(--rojo); }
.tb-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.tb-modal-caja { background: var(--surface); border-radius: 14px; padding: 22px; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 12px; }
.tb-modal-caja:has(.tb-img-grande) { width: min(1000px, 100%); }
.tb-modal-caja .form { margin-top: 0; }
.tb-modal-caja h3 { text-transform: none; font-size: 1.5rem; }
.tb-img-grande { max-height: 75vh; margin: 0 auto; border-radius: 10px; }
.tb-colores { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tb-colores legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.form .tb-color { display: block; cursor: pointer; }
.tb-color input { position: absolute; opacity: 0; }
.tb-color span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px var(--surface); border: 2px solid transparent; }
.tb-color input:checked + span { border-color: var(--fg); }
.tb-color input:focus-visible + span { outline: 3px solid var(--amarillo); }
@media (max-width: 860px) {
  .tb-filtros .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tb-filtros .chip { flex: none; }
  .tb-main { grid-template-columns: 1fr; }
  .tb-main .tb-media { min-height: 0; aspect-ratio: 4 / 3; }
  .tb-destino { margin-left: 0; flex: 1 1 100%; order: -1; }
  .tb-destino select { flex: 1; max-width: none; }
  .tb-escribir-pie .btn:last-child { margin-left: auto; }
  .tb-adjunto { margin-left: 0; }
}

/* Inicio: secciones debajo de la portada */
.home-sec { padding-block: 56px 8px; }
.home-atletas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.home-atleta { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--dep, var(--verde)), #0E1311); color: #fff; text-decoration: none; isolation: isolate; }
.home-atleta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s ease; }
.home-atleta:hover img { transform: scale(1.05); }
.home-atleta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); }
.home-atleta-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 800 4rem var(--font-display); opacity: .35; }
.home-atleta-txt { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; }
.home-atleta-txt b { font: 800 1.6rem/1.05 var(--font-display); text-transform: uppercase; }
.home-atleta-txt span { font-size: .88rem; opacity: .85; }
.home-atleta-txt .home-atleta-dep { justify-self: start; font: 700 .7rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.5); border-left: 3px solid var(--dep, var(--verde)); opacity: 1; margin-bottom: 4px; }
.home-cta { margin-top: 56px; background: #0E1311; color: #fff; padding-block: 48px; }
.home-cta-in { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.home-cta-card { border-radius: 16px; padding: 28px; display: grid; gap: 10px; align-content: start; justify-items: start; background: linear-gradient(135deg, rgba(0,132,61,.35), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); }
.home-cta-card:last-child { background: linear-gradient(135deg, rgba(200,16,46,.35), rgba(255,255,255,.04)); }
.home-cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.05; color: #fff; text-transform: uppercase; }
.home-cta-card p { margin: 0 0 6px; color: rgba(255,255,255,.8); max-width: 46ch; }
.home-cta-card .eyebrow { color: var(--amarillo); }
.home-cta-card .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.is-home main { padding-bottom: 56px; }

/* Quiénes somos */
.nos { display: grid; gap: 48px; padding-bottom: 56px; }
.nos-mision p { max-width: 68ch; font-size: 1.08rem; line-height: 1.65; }
.nos-pilares { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.nos-pilar { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--p); border-radius: 14px; padding: 24px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.nos-pilar h3 { font-size: 1.7rem; text-transform: uppercase; }
.nos-pilar p { margin: 0 0 8px; color: var(--muted); }
.nos-num { font: 800 .9rem var(--font-display); letter-spacing: .12em; color: var(--muted); }
.nos-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 72ch; }
.nos-lista li { padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--verde); line-height: 1.55; }
.nos-contacto { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.nos-contacto .form { margin-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .nos-contacto, .row2 { grid-template-columns: 1fr; } }
.permiso-tutor { padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--amarillo) 55%, var(--line)); background: color-mix(in srgb, var(--amarillo) 14%, var(--surface)); }
.permiso-tutor legend { padding: 0 6px; }
.menor-tag { display: inline-block; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--amarillo) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amarillo) 55%, var(--line)); }

/* Avisos (campanita) */
.avisos { position: relative; }
.avisos-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.avisos-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.avisos-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--rojo); color: #fff; font: 700 .7rem/18px var(--font-body); text-align: center; }
.avisos-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(340px, calc(100vw - 32px)); max-height: 420px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 8px; }
.avisos-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px 8px; }
.avisos-head .linkish { font-size: .8rem; }
.aviso { display: grid; gap: 2px; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--fg); font-size: .92rem; }
.aviso:hover { background: var(--surface-2); }
.aviso.nuevo { background: color-mix(in srgb, var(--verde) 10%, transparent); }
.aviso.nuevo span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); margin-right: 6px; vertical-align: middle; }
.aviso time { color: var(--muted); font-size: .75rem; }
.avisos-vacio { color: var(--muted); padding: 10px; margin: 0; }

/* Panel: visitas y mensajes */
.adm-nuevo { border-left: 4px solid var(--rojo); }
.adm-visitas-tot { margin-bottom: 14px; }
.adm-barras { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 180px; margin-top: 12px; }
.adm-barra { height: 100%; display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; gap: 4px; }
.adm-barra i { display: block; width: 100%; max-width: 28px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--verde); align-self: end; }
.adm-barra-n { font-size: .72rem; color: var(--muted); }
.adm-barra-d { font-size: .72rem; color: var(--muted); }
.adm-paginas { display: grid; gap: 8px; margin-top: 10px; }
.adm-pag { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: .92rem; }
.adm-pag i { display: block; height: 12px; border-radius: 6px; background: var(--rojo); }
.adm-pag b { text-align: right; }
.nav-account-in { display: flex; align-items: center; gap: 8px; }
.home-atleta-txt .home-atleta-cred { font-size: .66rem; opacity: .7; margin-top: 4px; }
.nos-mision p { margin: 12px 0 0; } .nos { padding-top: 12px; }
.nav .avisos-pop .aviso, .nav .avisos-pop .aviso time { text-transform: none; letter-spacing: normal; white-space: normal; font-family: var(--font-body); font-weight: 500; color: var(--fg); padding: 10px; height: auto; border: 0; }
.nav .avisos-pop .aviso { font-size: .92rem; line-height: 1.35; }
.nav .avisos-pop .aviso time { color: var(--muted); font-size: .75rem; padding: 0; }
.nav .avisos-pop .aviso::after { display: none; }
@media (max-width: 1000px) { .avisos-pop { position: fixed; left: 16px; right: 16px; top: 76px; width: auto; } }
#adm-body .adm-visitas { grid-column: 1 / -1; display: grid; gap: 14px; }
.adm-visitas .adm-stats { margin: 0; }
.adm-pag i { justify-self: start; }

/* Accesibilidad: foco visible con teclado y enlace para saltar el menú */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
main:focus { outline: none; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; transition: top .15s; }
.saltar:focus { top: 12px; }
/* Cuenta: título y recuadro de inicio de sesión al centro */
body[data-page="cuenta"] .page-head { text-align: center; padding-block: 40px 24px; }
body[data-page="cuenta"] .page-head .eyebrow { justify-content: center; }
body[data-page="cuenta"] .auth-wrap { margin: 28px auto 0; }
body[data-page="cuenta"] main { min-height: calc(100dvh - 76px); }

/* Panel: atletas destacados (quitar / volver a mostrar) */
.adm-dest { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; grid-column: 1 / -1; }
.adm-dest-head { display: flex; gap: 12px; align-items: center; }
.adm-dest-head .avatar { width: 56px; height: 56px; flex: none; }
.adm-dest-head h3 { margin: 0; }
.adm-dest-card.oculto { border-style: dashed; }
.adm-estado-dest { font-size: .85rem; color: var(--muted); }
.adm-borrar-dest { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--rojo); border-radius: 6px; padding: 6px 12px; cursor: pointer; font: 600 .85rem var(--font-body); }
.adm-dest-card .adm-mostrar { margin-left: auto; opacity: 1; }
.adm-dest-card.oculto .adm-dest-head { opacity: .55; }
.vistas-perfil { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.vistas-perfil b { font-family: var(--font-display); font-size: 18px; color: var(--verde); }
.adm-herr { display: flex; justify-content: flex-end; margin: 0 0 12px; }

/* ================= Identidad "Pallay" ================= */
:root {
  --pallay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' shape-rendering='crispEdges'%3E%3Crect width='48' height='12' fill='%2317120F'/%3E%3Cpath transform='translate(0 0)' fill='%23D52B1E' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3Crect x='6' y='4' width='4' height='4' fill='%2317120F'/%3E%3Crect x='7' y='5' width='2' height='2' fill='%23F4C20D'/%3E%3Cpath transform='translate(16 0)' fill='%23F4C20D' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3Crect x='22' y='4' width='4' height='4' fill='%2317120F'/%3E%3Crect x='23' y='5' width='2' height='2' fill='%23D52B1E'/%3E%3Cpath transform='translate(32 0)' fill='%230A8F47' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3Crect x='38' y='4' width='4' height='4' fill='%2317120F'/%3E%3Crect x='39' y='5' width='2' height='2' fill='%23F4C20D'/%3E%3Crect x='15' y='5' width='2' height='2' fill='%23F6F1E8'/%3E%3Crect x='31' y='5' width='2' height='2' fill='%23F6F1E8'/%3E%3Crect x='47' y='5' width='1' height='2' fill='%23F6F1E8'/%3E%3Crect x='0' y='5' width='1' height='2' fill='%23F6F1E8'/%3E%3C/svg%3E");
  --rombos3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='12' shape-rendering='crispEdges'%3E%3Cpath transform='translate(0 0)' fill='%23D52B1E' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3Cpath transform='translate(18 0)' fill='%23F4C20D' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3Cpath transform='translate(36 0)' fill='%230A8F47' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3C/svg%3E");
  --rombo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h2v2h2v2h2v4H9v2H7v2H5v-2H3V8H1V4h2V2h2z'/%3E%3C/svg%3E");
  --chakana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23000' stroke-linejoin='miter'%3E%3Cpolygon points='35,5 65,5 65,20 80,20 80,35 95,35 95,65 80,65 80,80 65,80 65,95 35,95 35,80 20,80 20,65 5,65 5,35 20,35 20,20 35,20' stroke-width='2.4'/%3E%3Cpolygon points='39.5,18.5 60.5,18.5 60.5,29 71,29 71,39.5 81.5,39.5 81.5,60.5 71,60.5 71,71 60.5,71 60.5,81.5 39.5,81.5 39.5,71 29,71 29,60.5 18.5,60.5 18.5,39.5 29,39.5 29,29 39.5,29' stroke-width='1.2'/%3E%3Ccircle cx='50' cy='50' r='8.5' stroke-width='2.4'/%3E%3C/svg%3E");
  --tejido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='48' shape-rendering='crispEdges' fill='%23FFFFFF' fill-opacity='0.035'%3E%3Cpath transform='translate(8 6) scale(1.5)' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3Cpath transform='translate(40 30) scale(1)' d='M6 0h4v2h2v2h2v4h-2v2h-2v2H6v-2H4V8H2V4h2V2h2z'/%3E%3C/svg%3E");
  --paso: 4px;   /* tamaño de cada grada en las esquinas escalonadas */
  --radius-lg: 10px;
}
/* Gradas andinas: esquina escalonada (tres escalones) arriba a la derecha */
.grada, .home-atleta {
  clip-path: polygon(0 0, calc(100% - 3 * var(--paso)) 0, calc(100% - 3 * var(--paso)) var(--paso), calc(100% - 2 * var(--paso)) var(--paso),
    calc(100% - 2 * var(--paso)) calc(2 * var(--paso)), calc(100% - var(--paso)) calc(2 * var(--paso)), calc(100% - var(--paso)) calc(3 * var(--paso)),
    100% calc(3 * var(--paso)), 100% 100%, 0 100%);
}

/* Acento de cada sección (como los colores de un aguayo) */
body { --acento: var(--rojo-t); --acento-claro: #FF7A80; }
body[data-page="noticias"] { --acento: var(--turquesa); --acento-claro: #52D8D2; }
body[data-page="mercado"] { --acento: var(--naranja); --acento-claro: #FFA766; }
body[data-page="eventos"] { --acento: var(--verde); --acento-claro: #52DB8E; }
body[data-page="comunidad"] { --acento: var(--fucsia); --acento-claro: #FF85B5; }
body:is([data-page="apoya"], [data-page="empresas"], [data-page="nosotros"], [data-page="terminos"], [data-page="privacidad"], [data-page="creditos"]) { --acento: var(--oro); --acento-claro: #F7C948; }
body:is([data-page="cuenta"], [data-page="admin"]) { --acento: var(--verde); --acento-claro: #52DB8E; }

/* Letras: títulos anchos y atléticos, texto limpio */
body { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
h2 { font-stretch: 112%; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; }
h3 { font-stretch: 92%; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: .76rem; letter-spacing: .16em; color: var(--acento); }
.eyebrow::before, .page-head .eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 0; background: currentColor; -webkit-mask: var(--rombo) center / contain no-repeat; mask: var(--rombo) center / contain no-repeat; }
.section-title { padding-bottom: 20px; }
.section-title::after { width: 52px; height: 12px; border-radius: 0; background: var(--rombos3) left center / 52px 12px no-repeat; }
.link-more, .tile-go { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; color: var(--acento); }
::selection { background: var(--amarillo); color: #17120F; }

/* Botones con gradas */
.btn { font-family: var(--font-display); font-stretch: 100%; font-weight: 800; font-size: .88rem; letter-spacing: .06em; padding: 13px 22px; border-radius: 3px; line-height: 1.1; }
.btn:not(.ghost):hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--rojo) 28%, transparent); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fg) 28%, transparent); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--fg); }
.btn-sm, .nav .btn.btn-sm { padding: 9px 14px; font-size: .76rem; border-radius: 3px; }
.btn-cta { border-radius: 3px; box-shadow: none; background: var(--amarillo); color: #17120F; }
.btn-cta:hover { background: #FFD43B; transform: translateY(-2px); }
.btn-tray { padding: 10px 16px; font-size: .82rem; }

/* Chips y etiquetas: formas rectas */
.chip { border-radius: 6px; font: 600 .9rem var(--font-body); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag-star, .tag-apoyo, .tag-demo, .badge, .adm-estado, .red-estado, .red-busca, .tag-ejemplo { border-radius: 3px; }
.search, .form input, .form select, .form textarea { border-radius: 6px; }

/* Tarjetas: esquinas más firmes */
.panel, .athlete-card, .news-card, .event-card, .sponsor-card, .company-card, .adm-card, .adm-stat, .ev-card, .stat, .nos-pilar, .steps li, .support-type, .market, .profile, .red-card, .red-fila, .tb-escribir, .empty-state, .proceso-pasos li { border-radius: var(--radius); }
.athlete-card .n, .ap-n, .sc-head .n, .red-emp-head .n, .market-row .who .n, .market-row .dest .to, .club-box .club-name { font-stretch: 92%; font-weight: 750; letter-spacing: -.005em; }
.stat .v, .adm-stat b, .tl-year, .ev-date .d, .date-block .d { font-family: var(--font-display); font-stretch: 100%; font-weight: 800; }

/* Fotos y avatares: medallón escalonado */
.avatar:not(.photo-field .avatar) { border-radius: 0; clip-path: polygon(22% 0, 78% 0, 78% 4%, 90% 4%, 90% 10%, 96% 10%, 96% 22%, 100% 22%, 100% 78%, 96% 78%, 96% 90%, 90% 90%, 90% 96%, 78% 96%, 78% 100%, 22% 100%, 22% 96%, 10% 96%, 10% 90%, 4% 90%, 4% 78%, 0 78%, 0 22%, 4% 22%, 4% 10%, 10% 10%, 10% 4%, 22% 4%); }
.avatar { font-family: var(--font-display); font-stretch: 100%; }

/* ---------- Encabezado: negro andino, el mismo en claro y oscuro ---------- */
.site-header, .site-footer, .page-head, .hero, .home-cta {
  --fg: #F4EDE2; --muted: #B9AD9F; --line: rgba(255, 255, 255, .13); --surface: #221C17; --surface-2: #2E2620; --bg: #17120F;
  color-scheme: dark;
}
body::before { background: var(--tinta); }
.site-header { background: color-mix(in srgb, var(--tinta) 95%, transparent); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--fg); }
.site-header > .tricolor { display: none; }
.site-header .wrap { padding-block: 12px; }
.brand-mark { width: 38px; height: 38px; border-radius: 0; }
.nav a { position: relative; font-family: var(--font-display); font-stretch: 100%; font-weight: 700; font-size: .76rem; letter-spacing: .09em; color: var(--muted); padding: 9px 11px; border-radius: 0; }
.nav a:hover { color: var(--fg); background: none; }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: none; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 8px; transform: translateX(-50%); background: var(--acento-claro); -webkit-mask: var(--rombo) center / contain no-repeat; mask: var(--rombo) center / contain no-repeat; }
.nav .nav-login { color: var(--fg); }
.nav .btn.btn-sm:hover { background: var(--rojo); }
.menu-btn { border-color: var(--line); color: var(--fg); font: 700 .8rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 0; }
@media (max-width: 1000px) {
  .nav a { font-size: .9rem; padding: 12px 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--acento-claro); }
  .nav-links a[aria-current="page"]::after { display: none; }
}

/* ---------- Cabecera de cada página: banda oscura con la franja del aguayo ---------- */
.page-head { padding-block: 60px 64px; margin-bottom: 36px; color: var(--fg); }
.page-head::before { background: var(--pallay) left bottom / 48px 12px repeat-x, var(--tejido), var(--tinta); border-bottom: 0; }
.page-head::after { content: ""; position: absolute; z-index: -1; right: max(16px, env(safe-area-inset-right, 0px)); top: 14px; bottom: 30px; aspect-ratio: 1; background: var(--acento-claro); opacity: .16; pointer-events: none;
  -webkit-mask: var(--chakana) center / contain no-repeat; mask: var(--chakana) center / contain no-repeat; }
.page-head .eyebrow { color: var(--acento-claro); }
.page-head h1 { color: var(--fg); font-stretch: 125%; font-weight: 900; font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: .95; letter-spacing: -.015em; }
.page-head p.lead { color: var(--muted); }

body[data-page="cuenta"] .page-head { padding-block: 48px 56px; }
body[data-page="cuenta"] .page-head::after { display: none; }
@media (max-width: 760px) { .page-head { padding-block: 44px 52px; } .page-head::after { top: 10px; bottom: auto; height: 120px; opacity: .13; } }

/* ---------- Portada: foto enmarcada por gradas andinas ---------- */
.hero { background: var(--tinta); align-items: center; isolation: isolate; }
.is-home .hero { min-height: calc(100svh - 63px); }
.hero-slide, .hero::after { left: max(42%, calc((100% - var(--max)) / 2 + 540px)); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 75%, 10% 75%, 10% 50%, 20% 50%, 20% 25%, 30% 25%); }
.hero::after { background: linear-gradient(0deg, rgba(23, 18, 15, .45) 0%, rgba(23, 18, 15, 0) 30%); }
.hero::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 12px; background: var(--pallay) left top / 48px 12px repeat-x; }
.hero-content { padding-block: 64px 72px; }
.hero h1 { font-stretch: 118%; font-weight: 900; font-size: clamp(2.4rem, 6.1vw, 5.6rem); line-height: .92; letter-spacing: -.02em; }
.hero h1 .b { color: var(--amarillo); }
.hero .eyebrow { color: var(--amarillo); margin-bottom: 18px; }
.hero .motto { font-family: var(--font-display); font-stretch: 100%; font-style: normal; font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.2; max-width: 24ch; border-left: 0; padding-left: 0; margin-top: 22px; color: #E9E0D3; }
.hero-actions { margin-top: 30px; }
.hero-actions .btn:not(.ghost) { background: var(--amarillo); color: #17120F; }
.hero-actions .btn:not(.ghost):hover { box-shadow: 0 6px 18px rgba(242, 183, 5, .3); }
.hero-actions .btn.ghost { color: #FAF5EC; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.hero-actions .btn.ghost:hover { box-shadow: inset 0 0 0 2px #FAF5EC; }
.hero-dots button { width: 10px; height: 10px; border-radius: 0; background: rgba(255, 255, 255, .28); }
.hero-dots button.active { width: 26px; background: var(--amarillo); }
@media (max-width: 760px) {
  .hero { --foto-h: min(52svh, 440px); flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .is-home .hero { min-height: 0; }
  .hero-slide, .hero::after { left: 0; bottom: auto; height: var(--foto-h);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 66% 100%, 66% 88%, 33% 88%, 33% 76%, 0 76%); }
  .hero::after { background: linear-gradient(0deg, rgba(23, 18, 15, .35) 0%, rgba(23, 18, 15, 0) 40%); }
  .hero-content { padding-block: calc(var(--foto-h) + 8px) 52px; }
}

/* Inicio: tarjetas de atletas con gradas */
.home-atleta { --paso: 10px; border-radius: 0; }
.home-atleta:focus-visible { outline: none; }
.home-atleta:focus-visible::before { content: ""; position: absolute; inset: 0; z-index: 3; box-shadow: inset 0 0 0 4px var(--amarillo); }
.home-atleta-txt b { font-stretch: 105%; font-weight: 850; font-size: 1.35rem; }
.home-atleta-txt .home-atleta-dep { border-radius: 3px; }
.home-cta { background: var(--tejido), var(--tinta); position: relative; }
.home-cta::before, .home-cta::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--pallay) left top / 48px 12px repeat-x; }
.home-cta::before { top: 0; } .home-cta::after { bottom: 0; }
.home-cta-card { border-radius: var(--radius); }
.home-cta-card h2 { font-stretch: 108%; }
.home-cta-card .eyebrow { color: var(--amarillo); }
.home-cta-card .btn.ghost { color: #FAF5EC; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.home-cta-card .btn.ghost:hover { box-shadow: inset 0 0 0 2px #FAF5EC; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--tejido), var(--tinta); color: #CFC4B6; }
.site-footer > .tricolor { height: 24px; background: var(--pallay) left top / 96px 24px repeat-x; }
.site-footer > .tricolor span { display: none; }
.footer-brand .brand-name { display: inline-flex; align-items: center; gap: 12px; font-stretch: 122%; font-weight: 900; font-size: 1.35rem; letter-spacing: -.01em; }
.footer-brand .brand-name .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-name b { color: var(--amarillo); }
.footer-col h4 { color: var(--amarillo); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); color: #9C9083 !important; }

/* ---------- Detalles por sección ---------- */
.ev-date { border-radius: 4px; }
.ev-dep, .home-atleta-txt .home-atleta-dep { border-radius: 3px; }
.ev-count { border-radius: 3px; font-family: var(--font-display); font-stretch: 100%; font-size: .74rem; }
#propuesta::before { height: 12px; background: var(--pallay) left top / 48px 12px repeat-x; }
#propuesta { padding-top: 40px; }
.cta-atleta { border-radius: var(--radius); }
.cta-atleta::before { background: linear-gradient(#D52B1E 0 33.3%, #F4C20D 33.3% 66.6%, #0A8F47 66.6%); }
.tb-escribir { border-image: none; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.tb-escribir::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #D52B1E 0 33.3%, #F4C20D 33.3% 66.6%, #0A8F47 66.6%); }
.tray-panel h3, .market-sport { font-family: var(--font-display); font-stretch: 100%; }
.adm-tabs button, .red-tabs button, .auth-tabs button { font-family: var(--font-display); font-stretch: 100%; font-size: .82rem; letter-spacing: .08em; }
.adm-tabs button[aria-selected="true"], .red-tabs button[aria-selected="true"], .auth-tabs button[aria-selected="true"] { border-bottom-color: var(--acento); box-shadow: inset 0 -3px 0 var(--acento); }
.tb-tema[aria-pressed="true"] { border-bottom-color: var(--acento); }
.vistas-perfil, .menor-tag { border-radius: 4px; }
.user-pic { border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .btn, .home-atleta img, .ev-media img { transition: none; } }

/* Textos de color: el acento de la sección, y el rojo claro en modo oscuro (contraste) */
.news-card .meta .cat, .news-src, .ev-fuente, .tb-kicker { color: var(--acento); }
.sc-necesidad li::marker { color: var(--acento); }
.tl-club .tl-tag, .chip.danger, .adm-borrar, .adm-borrar-dest, .red-estado.est-rechazada,
.tb-gestion .tb-peligro, .tb-gestion .seguro, .tb-borrar:hover, .tb-borrar.seguro { color: var(--rojo-t); }
.chip.danger { border-color: var(--rojo-t); }
/* La viñeta de rombo se queda en la primera línea cuando la etiqueta ocupa dos */
.eyebrow, .page-head .eyebrow { align-items: flex-start; }
.eyebrow::before, .page-head .eyebrow::before { margin-top: .42em; margin-top: calc((1lh - 10px) / 2); }

/* ================= Movimiento y detalles =================
   Guías de Emil Kowalski (curvas y tiempos), Impeccable (detalles y estados) y Taste (hover, pausa, celular).
   Curvas propias en lugar de "ease"; el hover que mueve cosas solo con mouse; menos movimiento si la persona lo pide. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sombra-alzada: 0 14px 28px -16px rgba(23, 18, 15, .45), 0 2px 6px -2px rgba(23, 18, 15, .12);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5.5 6.5 6.5L9 18.5'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
  scrollbar-color: color-mix(in srgb, var(--fg) 30%, var(--bg)) var(--bg);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sombra-alzada: 0 16px 30px -14px rgba(0, 0, 0, .75), 0 2px 6px -2px rgba(0, 0, 0, .5); } }
:root[data-theme="dark"] { --sombra-alzada: 0 16px 30px -14px rgba(0, 0, 0, .75), 0 2px 6px -2px rgba(0, 0, 0, .5); }

/* Detalles del navegador con los colores del sitio */
body { accent-color: var(--acento); caret-color: var(--acento); }
a { text-underline-offset: .2em; }
.ev-date, .ev-count, .stat .v, .adm-stat b, .tl-year, .avisos-n, .vistas-perfil b, .adm-barra-n, .adm-pag b, .tile-count, time { font-variant-numeric: tabular-nums; }

/* Íconos de línea (un solo juego, un solo trazo) */
.ico { display: inline-block; flex: none; width: 1.05em; height: 1.05em; vertical-align: -.17em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico-flecha, .ico-externo { transition: transform 160ms var(--ease-out); }
.adm-alerta .ico { margin-right: 2px; }
.adm-guardado .ico, .adm-sub .ico-check { color: var(--verde); }

/* Encabezado sólido (sin vidrio esmerilado) */
.site-header { background: var(--tinta); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Menú del celular: el ícono se vuelve una X y el menú baja suave */
.menu-btn { align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; }
.menu-btn .ico { width: 18px; height: 18px; vertical-align: 0; }
.ico-menu path { transform-box: fill-box; transform-origin: center; transition: transform 220ms var(--ease-out), opacity 150ms ease; }
.menu-btn[aria-expanded="true"] .ico-menu .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .ico-menu .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .ico-menu .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav.open { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .nav.open { opacity: 0; transform: translateY(-6px); } }
  /* La sección actual se marca con el rombo, no con una raya gruesa al costado */
  .nav a[aria-current="page"] { box-shadow: none; color: var(--fg); }
  .nav-links a[aria-current="page"]::after { display: block; left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* Ventanitas (cuenta y avisos): aparecen desde su botón */
.user-pop, .avisos-pop { transform-origin: top right; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
@starting-style { .user-pop, .avisos-pop { opacity: 0; transform: translateY(-4px) scale(.97); } }
@media (max-width: 1000px) { .user-pop, .avisos-pop { transform-origin: top center; } }

/* Botones: un solo estilo. Rojo sobre fondo claro, amarillo sobre las bandas oscuras.
   Al pasar el mouse suben 1 px; al presionar se hunden un poco. */
.btn, .btn-cta, .btn-social, .chip, .tema-btn, .avisos-btn, .menu-btn, .hero-pausa {
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover, .btn-cta:hover, .nav .btn.btn-sm:hover { filter: none; transform: none; }
.btn:not(.ghost):hover, .hero-actions .btn:not(.ghost):hover { box-shadow: none; }
.home-cta .btn:not(.ghost) { background: var(--amarillo); color: #17120F; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover, .btn-cta:hover { transform: translateY(-1px); }
  .btn:not(.ghost):not(:disabled):hover, .nav .btn.btn-sm:hover { background-color: color-mix(in srgb, var(--rojo) 86%, #fff); }
  .hero-actions .btn:not(.ghost):hover, .home-cta .btn:not(.ghost):hover, .btn.btn-cta:not(:disabled):hover { background-color: #FFD043; }
  .chip:not([aria-pressed="true"]):hover { border-color: color-mix(in srgb, var(--fg) 38%, var(--line)); }
  a:hover > .ico-flecha, button:hover > .ico-flecha { transform: translateX(2px); }
  a:hover > .ico-externo { transform: translate(1.5px, -1.5px); }
}
.btn:not(:disabled):active, .btn-cta:active, .btn-social:active, .chip:active, .tema-btn:active, .avisos-btn:active, .menu-btn:active, .hero-pausa:active { transform: scale(.97); }

/* Campos: el foco usa el color de la sección */
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); }

/* Tarjetas: una sola elevación. Planas con borde; solo las que se abren al hacer clic se elevan. */
.panel, .athlete-card, .news-card, .event-card, .sponsor-card, .company-card, .adm-card, .adm-stat, .ev-card { box-shadow: none; }
.news-card:hover, .event-card:hover, .sponsor-card:hover, .company-card:hover, .ev-card:hover { transform: none; box-shadow: none; }
.ev-card:hover .ev-media img, .home-atleta:hover img, .athlete-card:hover { transform: none; }
.athlete-card, .home-atleta { transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease; }
.home-atleta img { transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .athlete-card:hover { transform: translateY(-2px); box-shadow: var(--sombra-alzada); }
  .athlete-card[aria-current="true"]:hover { box-shadow: 0 0 0 1px var(--rojo), var(--sombra-alzada); }
  .home-atleta:hover { transform: translateY(-2px); }
  .home-atleta:hover img { transform: scale(1.03); }
}

/* Avisos con fondo de color suave en lugar de una raya gruesa a un costado */
.form-msg { border: 1px solid color-mix(in srgb, var(--verde) 40%, var(--line)); background: color-mix(in srgb, var(--verde) 9%, var(--surface)); }
.form-msg.error { border-color: color-mix(in srgb, var(--rojo) 42%, var(--line)); background: color-mix(in srgb, var(--rojo) 7%, var(--surface)); }
.form-msg.error.info { border-color: color-mix(in srgb, #1877F2 40%, var(--line)); background: color-mix(in srgb, #1877F2 7%, var(--surface)); }
.apoyo-box, .adm-sugerencia { border: 1px solid color-mix(in srgb, var(--amarillo) 55%, var(--line)); background: color-mix(in srgb, var(--amarillo) 10%, var(--surface)); }
.atleta-check, .auth-gate-note { border: 1px solid color-mix(in srgb, var(--verde) 38%, var(--line)); background: color-mix(in srgb, var(--verde) 8%, var(--surface)); }
.red-razon { border: 1px solid color-mix(in srgb, var(--amarillo) 50%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--amarillo) 9%, var(--surface)); }
.adm-nuevo { border-left-width: 1px; border-color: color-mix(in srgb, var(--rojo-t) 55%, var(--line)); background: color-mix(in srgb, var(--rojo) 5%, var(--surface)); }
.apoya-empresas { border-left-width: 1px; background: color-mix(in srgb, var(--verde) 7%, var(--surface)); border-color: color-mix(in srgb, var(--verde) 35%, var(--line)); }
/* Etiqueta de deporte sobre las fotos: rombo de color y fondo sólido (sin desenfoque) */
.ev-dep, .home-atleta-txt .home-atleta-dep { border-left: 0; display: inline-flex; align-items: center; gap: 6px; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23, 18, 15, .78); }
.ev-dep::before, .home-atleta-txt .home-atleta-dep::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ev, var(--dep, var(--verde))); -webkit-mask: var(--rombo) center / contain no-repeat; mask: var(--rombo) center / contain no-repeat; }
.home-atleta-txt .home-atleta-dep::before { background: var(--dep, var(--verde)); }
/* Viñetas de rombo en vez de símbolos de texto */
.sc-necesidad { list-style: none; padding-left: 0; }
.sc-necesidad li { position: relative; padding-left: 18px; }
.sc-necesidad li::before { content: ""; position: absolute; left: 2px; top: calc((1lh - 9px) / 2); width: 9px; height: 9px; background: var(--acento); -webkit-mask: var(--rombo) center / contain no-repeat; mask: var(--rombo) center / contain no-repeat; }

/* Noticias: "Leer más" con flecha que gira y el texto que se abre suave */
.news-card details summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.news-card details summary::-webkit-details-marker { display: none; }
.news-card details summary::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; transition: transform 200ms var(--ease-out); }
.news-card details[open] summary::before { transform: rotate(90deg); }
.news-card details::details-content { block-size: 0; overflow: hidden; transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
.news-card details[open]::details-content { block-size: auto; }

/* ---------- Portada ---------- */
.hero .hero-sub { margin-top: 12px; max-width: 42ch; color: rgba(250, 245, 236, .72); font-size: 1rem; line-height: 1.5; }
.hero-meta { justify-content: flex-start; gap: 2px; margin-top: 30px; }
.hero-pausa { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -13px; padding: 0; border: 0; border-radius: 4px; background: none; color: rgba(250, 245, 236, .78); cursor: pointer; }
.hero-pausa .ico { width: 18px; height: 18px; vertical-align: 0; }
.hero-dots { gap: 0; }
.hero-dots button { position: relative; flex: none; width: 28px; height: 44px; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.hero-dots button::before { content: ""; position: absolute; left: 9px; top: 17px; width: 10px; height: 10px; background: rgba(255, 255, 255, .3); transition: background-color 200ms ease; }
.hero-dots button.active { width: 44px; background: none; }
.hero-dots button.active::before { width: 26px; background: var(--amarillo); }
@media (hover: hover) and (pointer: fine) {
  .hero-pausa:hover { color: #FFFFFF; }
  .hero-dots button:not(.active):hover::before { background: rgba(255, 255, 255, .62); }
}
.hero-slide { transition: opacity 1.2s var(--ease-in-out); }
/* Entrada de la portada: el único momento animado de la página, una sola vez al cargar */
@keyframes fb-entra { from { opacity: 0; transform: translateY(16px); } }
@keyframes fb-aparece { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero .motto, .hero .hero-sub, .hero-actions, .hero-meta { animation: fb-entra 640ms var(--ease-out) both; }
  .hero h1 span + span { animation-delay: 70ms; }
  .hero .motto { animation-delay: 140ms; }
  .hero .hero-sub { animation-delay: 200ms; }
  .hero-actions { animation-delay: 260ms; }
  .hero-meta { animation-delay: 320ms; }
}

/* ---------- Quiénes somos: los tres públicos en un solo panel ---------- */
.nos-pilares { gap: 0; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nos-pilar { border: 0; border-top: 4px solid var(--p); border-radius: 0; background: none; padding: 26px 26px 28px; }
@media (min-width: 860px) {
  .nos-pilares { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nos-pilar + .nos-pilar { box-shadow: inset 1px 0 0 var(--line); }
}
.nos-lista { max-width: 68ch; }
.nos-lista li { position: relative; border-left: 1px solid var(--line); padding-left: 44px; }
.nos-lista li::before { content: ""; position: absolute; left: 17px; top: calc(14px + (1lh - 12px) / 2); width: 12px; height: 12px; background: var(--verde); -webkit-mask: var(--rombo) center / contain no-repeat; mask: var(--rombo) center / contain no-repeat; }

/* Marcadores como 5-1 sin partirse; lugar y hora de los eventos con íconos de línea */
.nw { white-space: nowrap; }
.ev-where span { display: inline-flex; align-items: center; gap: 5px; }
.ev-where .ico { width: 15px; height: 15px; vertical-align: 0; color: var(--acento); }
/* Botón principal sobre la cabecera oscura de cada página: amarillo, igual que en la portada */
.page-head .btn:not(.ghost) { background: var(--amarillo); color: #17120F; }
@media (hover: hover) and (pointer: fine) { .page-head .btn:not(.ghost):not(:disabled):hover { background-color: #FFD043; } }

/* Perfil: el deporte va debajo del nombre */
.profile .sub .perfil-dep { color: var(--acento); font-weight: 700; }

/* ---------- Celular: botones a todo el ancho y zonas táctiles de 44 px ---------- */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .home-cta-card .btn, .page-head-accion .btn-cta, .nos-pilar .btn, .form .btn[type="submit"] { width: 100%; justify-content: center; }
}
@media (max-width: 760px), (pointer: coarse) {
  .chip { min-height: 44px; }
  .tema-btn, .avisos-btn { min-width: 44px; height: 44px; }
  .user-btn { padding: 4px; }
}

/* Menos movimiento: se mantienen los cambios de color y opacidad, sin desplazamientos */
@media (prefers-reduced-motion: reduce) {
  .hero h1 span, .hero .motto, .hero .hero-sub, .hero-actions, .hero-meta { animation: fb-aparece 400ms ease both; }
  .btn, .btn-cta, .btn-social, .chip, .tema-btn, .avisos-btn, .menu-btn, .hero-pausa, .athlete-card, .home-atleta { transition-property: background-color, color, border-color, box-shadow; }
  .home-atleta img, .ico-flecha, .ico-externo, .ico-menu path, .news-card details summary::before, .news-card details::details-content { transition: none; }
  .user-pop, .avisos-pop, .nav.open { transition-property: opacity; }
  .hero-slide { transition: opacity 400ms ease; }
  .btn:hover, .btn:active, .btn-cta:hover, .btn-cta:active, .btn-social:active, .chip:active, .tema-btn:active, .avisos-btn:active, .menu-btn:active, .hero-pausa:active,
  .athlete-card:hover, .home-atleta:hover, .home-atleta:hover img, a:hover > .ico-flecha, button:hover > .ico-flecha, a:hover > .ico-externo { transform: none; }
}

/* ================= Estilo profesional (sin formas pixeladas ni escalonadas) =================
   Pedido del usuario el 2026-11-22: que no parezca un juego. Formas lisas, esquinas redondeadas,
   avatares redondos y una franja tricolor limpia en lugar de la franja pixelada. */
:root {
  --rombo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6'/%3E%3C/svg%3E");
  --tejido: none;
  --franja: linear-gradient(90deg, #D52B1E 0 33.34%, #F4C20D 33.34% 66.67%, #0A8F47 66.67%);
  --radius: 12px;
  --radius-lg: 16px;
}
/* Franja tricolor fina */
.page-head::before { background: var(--franja) left bottom / 100% 4px no-repeat, var(--tinta); }
.page-head::after { display: none; }
.hero::before, .home-cta::before, .home-cta::after, #propuesta::before { height: 4px; background: var(--franja); }
.site-footer > .tricolor { height: 4px; background: var(--franja); }
.site-footer, .home-cta { background: var(--tinta); }
.section-title::after { width: 48px; height: 4px; border-radius: 2px; background: var(--franja); }
.nav-links a[aria-current="page"]::after { width: 6px; height: 6px; }
/* Sin esquinas escalonadas */
.grada, .home-atleta { clip-path: none; }
.home-atleta { border-radius: var(--radius-lg); }
.avatar:not(.photo-field .avatar) { clip-path: none; border-radius: 50%; }
/* Portada: foto con borde recto que se funde con el fondo */
.hero-slide, .hero::after { clip-path: none; }
.hero::after { background: linear-gradient(90deg, var(--tinta) 0%, rgba(23, 18, 15, .55) 22%, rgba(23, 18, 15, 0) 55%), linear-gradient(0deg, rgba(23, 18, 15, .4) 0%, rgba(23, 18, 15, 0) 30%); }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(0deg, var(--tinta) 0%, rgba(23, 18, 15, .4) 25%, rgba(23, 18, 15, 0) 55%); }
}
.hero-dots button::before { border-radius: 5px; }
/* Botones, etiquetas y tarjetas con esquinas suaves */
.btn, .btn-sm, .nav .btn.btn-sm, .btn-cta, .menu-btn, .hero-pausa { border-radius: 8px; }
.chip, .search, .form input, .form select, .form textarea { border-radius: 8px; }
.tag-star, .tag-apoyo, .tag-demo, .badge, .adm-estado, .red-estado, .red-busca, .tag-ejemplo, .ev-dep, .ev-count, .home-atleta-txt .home-atleta-dep, .vistas-perfil, .menor-tag { border-radius: 999px; }
.ev-date { border-radius: 8px; }
.nos-pilar { border-top-width: 3px; }

/* ================= Letras sólidas y fluidas (sin aire de videojuego) =================
   Plus Jakarta Sans en títulos, sin letra extra ancha y con menos mayúsculas. */
:root { --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, h4, .btn, .nav a, .brand-name, .menu-btn, .link-more, .tile-go, .stat .v, .adm-stat b, .tl-year, .ev-date .d, .ev-date .m, .ev-count,
.athlete-card .n, .ap-n, .sc-head .n, .red-emp-head .n, .market-row .who .n, .market-row .dest .to, .club-box .club-name, .home-atleta-txt b,
.page-head h1, .hero h1, .hero .motto, .footer-brand .brand-name, .home-cta-card h2, .nos-pilar h3, .tray-panel h3, .market-sport,
.adm-tabs button, .red-tabs button, .auth-tabs button, .avatar, .home-atleta-ini, .proceso-pasos b { font-family: var(--font-display); font-stretch: 100%; }
h1, h2, h3 { letter-spacing: -.02em; }
h2, .page-head h1, .home-cta-card h2, .nos-pilar h3, .home-atleta-txt b, .news-card h3, .ev-body h3, #propuesta h2 { text-transform: none; }
.page-head h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.hero h1 { text-transform: none; font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.03em; }
.hero .motto { font-weight: 600; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.home-atleta-txt b { font-weight: 800; font-size: 1.3rem; }
.btn { font-weight: 700; font-size: .95rem; text-transform: none; letter-spacing: 0; }
.btn-sm, .nav .btn.btn-sm { font-size: .85rem; }
.nav a { font-weight: 600; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.menu-btn { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.link-more, .tile-go { text-transform: none; letter-spacing: 0; font-size: .92rem; }
.footer-brand .brand-name { text-transform: none; font-weight: 800; letter-spacing: -.01em; }
.adm-tabs button, .red-tabs button, .auth-tabs button { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.ev-date .m { letter-spacing: .06em; }
.brand-mark { border-radius: 0; }
.hero .motto { max-width: 30ch; }

/* ================= Franja ondulada: cinta roja, amarilla y verde que flamea como la bandera ================= */
:root { --cinta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='22' viewBox='0 0 240 22'%3E%3Cpath fill='%23D52B1E' d='M0,3.40 L3,3.65 L6,3.90 L9,4.15 L12,4.39 L15,4.62 L18,4.85 L21,5.07 L24,5.28 L27,5.48 L30,5.66 L33,5.83 L36,5.99 L39,6.13 L42,6.25 L45,6.36 L48,6.44 L51,6.51 L54,6.56 L57,6.59 L60,6.60 L63,6.59 L66,6.56 L69,6.51 L72,6.44 L75,6.36 L78,6.25 L81,6.13 L84,5.99 L87,5.83 L90,5.66 L93,5.48 L96,5.28 L99,5.07 L102,4.85 L105,4.62 L108,4.39 L111,4.15 L114,3.90 L117,3.65 L120,3.40 L123,3.15 L126,2.90 L129,2.65 L132,2.41 L135,2.18 L138,1.95 L141,1.73 L144,1.52 L147,1.32 L150,1.14 L153,0.97 L156,0.81 L159,0.67 L162,0.55 L165,0.44 L168,0.36 L171,0.29 L174,0.24 L177,0.21 L180,0.20 L183,0.21 L186,0.24 L189,0.29 L192,0.36 L195,0.44 L198,0.55 L201,0.67 L204,0.81 L207,0.97 L210,1.14 L213,1.32 L216,1.52 L219,1.73 L222,1.95 L225,2.18 L228,2.41 L231,2.65 L234,2.90 L237,3.15 L240,3.40 L240,9.20 L237,8.95 L234,8.70 L231,8.45 L228,8.21 L225,7.98 L222,7.75 L219,7.53 L216,7.32 L213,7.12 L210,6.94 L207,6.77 L204,6.61 L201,6.47 L198,6.35 L195,6.24 L192,6.16 L189,6.09 L186,6.04 L183,6.01 L180,6.00 L177,6.01 L174,6.04 L171,6.09 L168,6.16 L165,6.24 L162,6.35 L159,6.47 L156,6.61 L153,6.77 L150,6.94 L147,7.12 L144,7.32 L141,7.53 L138,7.75 L135,7.98 L132,8.21 L129,8.45 L126,8.70 L123,8.95 L120,9.20 L117,9.45 L114,9.70 L111,9.95 L108,10.19 L105,10.42 L102,10.65 L99,10.87 L96,11.08 L93,11.28 L90,11.46 L87,11.63 L84,11.79 L81,11.93 L78,12.05 L75,12.16 L72,12.24 L69,12.31 L66,12.36 L63,12.39 L60,12.40 L57,12.39 L54,12.36 L51,12.31 L48,12.24 L45,12.16 L42,12.05 L39,11.93 L36,11.79 L33,11.63 L30,11.46 L27,11.28 L24,11.08 L21,10.87 L18,10.65 L15,10.42 L12,10.19 L9,9.95 L6,9.70 L3,9.45 L0,9.20Z'/%3E%3Cpath fill='%23F4C20D' d='M0,9.00 L3,9.25 L6,9.50 L9,9.75 L12,9.99 L15,10.22 L18,10.45 L21,10.67 L24,10.88 L27,11.08 L30,11.26 L33,11.43 L36,11.59 L39,11.73 L42,11.85 L45,11.96 L48,12.04 L51,12.11 L54,12.16 L57,12.19 L60,12.20 L63,12.19 L66,12.16 L69,12.11 L72,12.04 L75,11.96 L78,11.85 L81,11.73 L84,11.59 L87,11.43 L90,11.26 L93,11.08 L96,10.88 L99,10.67 L102,10.45 L105,10.22 L108,9.99 L111,9.75 L114,9.50 L117,9.25 L120,9.00 L123,8.75 L126,8.50 L129,8.25 L132,8.01 L135,7.78 L138,7.55 L141,7.33 L144,7.12 L147,6.92 L150,6.74 L153,6.57 L156,6.41 L159,6.27 L162,6.15 L165,6.04 L168,5.96 L171,5.89 L174,5.84 L177,5.81 L180,5.80 L183,5.81 L186,5.84 L189,5.89 L192,5.96 L195,6.04 L198,6.15 L201,6.27 L204,6.41 L207,6.57 L210,6.74 L213,6.92 L216,7.12 L219,7.33 L222,7.55 L225,7.78 L228,8.01 L231,8.25 L234,8.50 L237,8.75 L240,9.00 L240,14.80 L237,14.55 L234,14.30 L231,14.05 L228,13.81 L225,13.58 L222,13.35 L219,13.13 L216,12.92 L213,12.72 L210,12.54 L207,12.37 L204,12.21 L201,12.07 L198,11.95 L195,11.84 L192,11.76 L189,11.69 L186,11.64 L183,11.61 L180,11.60 L177,11.61 L174,11.64 L171,11.69 L168,11.76 L165,11.84 L162,11.95 L159,12.07 L156,12.21 L153,12.37 L150,12.54 L147,12.72 L144,12.92 L141,13.13 L138,13.35 L135,13.58 L132,13.81 L129,14.05 L126,14.30 L123,14.55 L120,14.80 L117,15.05 L114,15.30 L111,15.55 L108,15.79 L105,16.02 L102,16.25 L99,16.47 L96,16.68 L93,16.88 L90,17.06 L87,17.23 L84,17.39 L81,17.53 L78,17.65 L75,17.76 L72,17.84 L69,17.91 L66,17.96 L63,17.99 L60,18.00 L57,17.99 L54,17.96 L51,17.91 L48,17.84 L45,17.76 L42,17.65 L39,17.53 L36,17.39 L33,17.23 L30,17.06 L27,16.88 L24,16.68 L21,16.47 L18,16.25 L15,16.02 L12,15.79 L9,15.55 L6,15.30 L3,15.05 L0,14.80Z'/%3E%3Cpath fill='%230A8F47' d='M0,14.60 L3,14.85 L6,15.10 L9,15.35 L12,15.59 L15,15.82 L18,16.05 L21,16.27 L24,16.48 L27,16.68 L30,16.86 L33,17.03 L36,17.19 L39,17.33 L42,17.45 L45,17.56 L48,17.64 L51,17.71 L54,17.76 L57,17.79 L60,17.80 L63,17.79 L66,17.76 L69,17.71 L72,17.64 L75,17.56 L78,17.45 L81,17.33 L84,17.19 L87,17.03 L90,16.86 L93,16.68 L96,16.48 L99,16.27 L102,16.05 L105,15.82 L108,15.59 L111,15.35 L114,15.10 L117,14.85 L120,14.60 L123,14.35 L126,14.10 L129,13.85 L132,13.61 L135,13.38 L138,13.15 L141,12.93 L144,12.72 L147,12.52 L150,12.34 L153,12.17 L156,12.01 L159,11.87 L162,11.75 L165,11.64 L168,11.56 L171,11.49 L174,11.44 L177,11.41 L180,11.40 L183,11.41 L186,11.44 L189,11.49 L192,11.56 L195,11.64 L198,11.75 L201,11.87 L204,12.01 L207,12.17 L210,12.34 L213,12.52 L216,12.72 L219,12.93 L222,13.15 L225,13.38 L228,13.61 L231,13.85 L234,14.10 L237,14.35 L240,14.60 L240,20.40 L237,20.15 L234,19.90 L231,19.65 L228,19.41 L225,19.18 L222,18.95 L219,18.73 L216,18.52 L213,18.32 L210,18.14 L207,17.97 L204,17.81 L201,17.67 L198,17.55 L195,17.44 L192,17.36 L189,17.29 L186,17.24 L183,17.21 L180,17.20 L177,17.21 L174,17.24 L171,17.29 L168,17.36 L165,17.44 L162,17.55 L159,17.67 L156,17.81 L153,17.97 L150,18.14 L147,18.32 L144,18.52 L141,18.73 L138,18.95 L135,19.18 L132,19.41 L129,19.65 L126,19.90 L123,20.15 L120,20.40 L117,20.65 L114,20.90 L111,21.15 L108,21.39 L105,21.62 L102,21.85 L99,22.07 L96,22.28 L93,22.48 L90,22.66 L87,22.83 L84,22.99 L81,23.13 L78,23.25 L75,23.36 L72,23.44 L69,23.51 L66,23.56 L63,23.59 L60,23.60 L57,23.59 L54,23.56 L51,23.51 L48,23.44 L45,23.36 L42,23.25 L39,23.13 L36,22.99 L33,22.83 L30,22.66 L27,22.48 L24,22.28 L21,22.07 L18,21.85 L15,21.62 L12,21.39 L9,21.15 L6,20.90 L3,20.65 L0,20.40Z'/%3E%3C/svg%3E"); }
.page-head::before { background: var(--cinta) left bottom / 240px 22px repeat-x, var(--tinta); }
.hero::before, .home-cta::before, .home-cta::after, #propuesta::before { height: 22px; background: var(--cinta) left center / 240px 22px repeat-x; }
.site-footer > .tricolor { height: 22px; background: var(--cinta) left center / 240px 22px repeat-x, var(--tinta); }
#propuesta { padding-top: 44px; }

/* ================= Franja elegida por el usuario: degradado suave rojo, amarillo y verde ================= */
:root { --degradado: linear-gradient(90deg, #D52B1E, #F4C20D 50%, #0A8F47); }
.page-head::before { background: var(--degradado) left bottom / 100% 6px no-repeat, var(--tinta); }
.hero::before, .home-cta::before, .home-cta::after, #propuesta::before { height: 6px; background: var(--degradado); }
.site-footer > .tricolor { height: 6px; background: var(--degradado); }
.section-title::after { background: var(--degradado); }
#propuesta { padding-top: 40px; }

/* ===== Para empresas, verificados, meta de apoyo y reporte (2026-11-22) ===== */
.tag-verif { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; vertical-align: middle; padding: 2px 8px 2px 5px; border-radius: 999px;
  font: 700 .7rem/1.4 var(--font-body, inherit); letter-spacing: .02em; color: var(--verde); background: color-mix(in srgb, var(--verde) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--verde) 40%, var(--line)); white-space: nowrap; }
.tag-verif .ico { width: 12px; height: 12px; }
.athlete-card .tag-verif { margin: 2px 0 0; justify-self: center; }
.profile h2 .tag-verif { font-size: .8rem; position: relative; top: -.2em; }

.meta-apoyo { display: grid; gap: 6px; margin: 4px 0 12px; width: 100%; max-width: 440px; justify-self: stretch; align-self: stretch; }
.meta-txt { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.meta-c { color: var(--muted); }
.meta-barra { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, var(--surface)); overflow: hidden; }
.meta-barra i { display: block; height: 100%; border-radius: inherit; background: var(--degradado, var(--verde)); min-width: 6px; transition: width .4s var(--ease-out, ease-out); }
.perfil-video { margin: 14px 0 12px; }

.emp { display: grid; gap: 8px; padding-bottom: 56px; }
.emp > .nos-pilares { margin-top: 8px; }
.lead-sec { max-width: 62ch; margin: 6px 0 22px; }
.paquetes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.paquete { --m: #A86B32; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.paquete-plata { --m: #8E979E; border-color: color-mix(in srgb, var(--amarillo) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amarillo) 55%, transparent) inset; }
.paquete-oro { --m: #D9A514; }
.paquete-top { display: flex; align-items: center; gap: 12px; }
.paquete-medalla { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--m) 35%, #fff), var(--m) 60%, color-mix(in srgb, var(--m) 70%, #000)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 25%, transparent); }
.paquete h3 { font-size: 1.6rem; }
.paquete-sub { margin: 0; font-weight: 700; color: var(--acento); }
.paquete > p { margin: 0; }
.paquete-lista { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; }
.paquete-lista li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.paquete-lista .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--verde); }
.paquete .btn { margin-top: auto; }

.historias { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.historia { display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.historia-txt { margin: 0; font-size: 1.05rem; }
.historia-pie { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.historia-n { font-weight: 700; }
.historia-n a { color: inherit; }
.historia-e { color: var(--acento); font-weight: 600; }

.emp-final { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.emp-final > div:first-child { flex: 1 1 360px; min-width: 0; }
.emp-final h2 { font-size: 1.7rem; }
.emp-final p { margin: 6px 0 0; }

.reporte-t { margin-top: 22px; }
.reporte { display: grid; gap: 6px; margin-top: 10px; }
.reporte-fila { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 2fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.reporte-n { display: grid; min-width: 0; font-weight: 700; }
.reporte-n small { font-weight: 500; color: var(--muted); }
.reporte-fila i { display: block; height: 8px; width: var(--w); border-radius: 999px; background: var(--verde); }
.reporte-fila b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .reporte-fila:hover { border-color: color-mix(in srgb, var(--verde) 50%, var(--line)); } }

.adm-historia { grid-template-columns: 1.3fr 1.3fr; }
.adm-historia textarea { grid-column: 1 / -1; }
.adm-historia .btn { justify-self: start; }
@media (max-width: 760px) { .adm-historia { grid-template-columns: 1fr; } }

/* Ficha impresa del atleta: solo el perfil, en papel blanco. */
@media print {
  body.imprime-ficha { background: #fff !important; color: #000; }
  body.imprime-ficha .site-header, body.imprime-ficha .site-footer, body.imprime-ficha .page-head, body.imprime-ficha .toolbar,
  body.imprime-ficha #athlete-grid, body.imprime-ficha #add-panel, body.imprime-ficha .profile-tools, body.imprime-ficha .vistas-perfil,
  body.imprime-ficha #tray-toggle, body.imprime-ficha #apoyar-btn, body.imprime-ficha .skip-link, body.imprime-ficha .chips, body.imprime-ficha #athletes-empty { display: none !important; }
  body.imprime-ficha .profile { border: 0; box-shadow: none; background: #fff; }
  body.imprime-ficha .profile::after { content: "fuerzaboliviana.com"; grid-column: 1 / -1; font-weight: 700; color: #555; }
  body.imprime-ficha .perfil-video a::after { content: " " attr(href); font-weight: 400; font-size: .8rem; }
}

/* ===== Tipografía deportiva elegida por el usuario (2026-11-22): Big Shoulders en títulos =====
   Menú, botones, pestañas y textos pequeños siguen en Plus Jakarta Sans para que se lean bien. */
:root { --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3 { letter-spacing: 0; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 6.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .95; }
.page-head h1 { font-size: clamp(2.8rem, 6.4vw, 4.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .95; }
h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-weight: 800; font-size-adjust: .5; }
.profile h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.athlete-card .n, .ap-n, .sc-head .n, .red-emp-head .n, .market-row .who .n, .market-row .dest .to, .club-box .club-name, .home-atleta-txt b, .stat .v, .adm-stat b { font-weight: 800; letter-spacing: 0; font-size-adjust: .5; }
.btn, .nav a, .menu-btn, .link-more, .tile-go, .brand-name, .footer-brand .brand-name, .hero .motto, .adm-tabs button, .red-tabs button, .auth-tabs button,
h4, .ev-count, .ev-date .m, .tl-year, .avatar, .home-atleta-ini, .proceso-pasos b, .market-sport, .tray-panel h3 { font-family: var(--font-ui); font-size-adjust: none; letter-spacing: 0; }
.tray-panel h3 { font-weight: 800; }

/* ===== Encabezado fijo y secciones que aparecen al bajar (2026-11-22) ===== */
.site-header { transition: box-shadow .25s var(--ease-out, ease-out), background-color .25s var(--ease-out, ease-out); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--degradado); opacity: 0; transition: opacity .25s var(--ease-out, ease-out); pointer-events: none; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--tinta) 98%, transparent); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .55); }
.site-header.is-scrolled::after { opacity: 1; }

.fb-rev { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out, ease-out), transform .6s var(--ease-out, ease-out); }
.fb-rev.fb-vis { opacity: 1; transform: none; }
/* Las tarjetas de cada sección llegan una tras otra. */
.fb-rev :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out, ease-out), transform .5s var(--ease-out, ease-out); }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > * { opacity: 1; transform: none; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(2) { transition-delay: 70ms; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(3) { transition-delay: 140ms; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(4) { transition-delay: 210ms; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(n+5) { transition-delay: 260ms; }
@media (prefers-reduced-motion: reduce) { .fb-rev, .fb-rev * { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media print { .fb-rev, .fb-rev * { opacity: 1 !important; transform: none !important; } }

/* ===== Movimiento más notorio (2026-11-22, a pedido del usuario) ===== */
/* Encabezado: barra de avance con los colores de la bandera, en vez de la línea fija. */
.site-header::after { display: none; }
.scroll-avance { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--degradado); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.site-header .wrap { transition: padding .3s var(--ease-out, ease-out); }
/* Secciones: suben más y se nota la entrada. */
.fb-rev { transform: translateY(44px) scale(.985); transition-duration: .8s; }
.fb-rev :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > * { transform: translateY(32px); transition-duration: .7s; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(2) { transition-delay: 110ms; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(3) { transition-delay: 220ms; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(4) { transition-delay: 330ms; }
.fb-rev.fb-vis :is(.paquetes, .ev-grid, .news-grid, .historias, .sponsor-grid, .athlete-grid, .home-atletas, .nos-pilares, .companies, .home-cta-in) > :nth-child(n+5) { transition-delay: 400ms; }
/* La rayita de colores bajo cada título se dibuja al aparecer. */
.fb-rev .section-title::after { transform: scaleX(0); transform-origin: left; transition: transform .7s .25s var(--ease-out, ease-out); }
.fb-rev.fb-vis .section-title::after { transform: none; }
/* Cabecera de cada página: el título y el texto entran al abrir la página. */
@media (prefers-reduced-motion: no-preference) {
  .page-head h1, .page-head .lead, .page-head .btn { animation: fb-entra 700ms var(--ease-out, ease-out) both; }
  .page-head .lead { animation-delay: 90ms; }
  .page-head .btn { animation-delay: 180ms; }
}
@media (prefers-reduced-motion: reduce) { .scroll-avance { display: none; } }

/* ===== Portada: Elige tu deporte + banda para empresas (2026-11-22, opción B elegida por el usuario) ===== */
.is-home main { padding-bottom: 0; }
.home-big { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: .005em; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.home-deportes { padding-block: 64px 0; }
.home-deportes .home-big { margin-bottom: 24px; }
.dep-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dep-tile { position: relative; height: clamp(300px, 34vw, 420px); border-radius: var(--radius-lg, 16px); overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; isolation: isolate; }
.dep-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease-out, ease-out); }
.dep-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 6, .88)); }
.dep-n { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 3.2vw, 2.8rem); text-transform: uppercase; line-height: 1; }
.dep-ver { display: inline-flex; align-items: center; font-weight: 700; font-size: .95rem; opacity: .9; }
.dep-ver .ico { transition: transform .25s var(--ease-out, ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dep-tile:hover img { transform: scale(1.05); }
  .dep-tile:hover .dep-ver .ico { transform: translateX(4px); }
}
.dep-tile:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.home-banda { margin-top: 64px; background: var(--tinta); color: #fff; padding-block: 56px; position: relative; }
.home-banda::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--degradado); }
.home-banda-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.home-banda .home-big { max-width: 16ch; color: #fff; }
.home-banda-acc { display: flex; gap: 12px; flex-wrap: wrap; }
.home-banda .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
@media (hover: hover) and (pointer: fine) { .home-banda .btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; } }
@media (max-width: 760px) {
  .dep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dep-tile { height: 230px; padding: 16px; }
  .home-deportes { padding-top: 44px; }
  .home-banda { margin-top: 44px; padding-block: 44px; }
}
@media (max-width: 480px) { .home-banda-acc { width: 100%; } .home-banda-acc .btn { flex: 1 1 100%; justify-content: center; } }
.is-home .site-footer { margin-top: 0; }

/* ===== Portada según el boceto del usuario (2026-11-22): 1 potencial, 2 cifra + mapa, 3 empresas, 4 comunidad ===== */
/* 1 · Mucho potencial: fondo de fotos difuminado, como la portada. */
.home-potencial { position: relative; overflow: hidden; background: var(--tinta); color: #fff; min-height: clamp(380px, 62vh, 620px); display: grid; align-items: center; isolation: isolate; }
.potencial-fondo { position: absolute; inset: -40px; z-index: -2; }
.potencial-slide { position: absolute; inset: 0; background-size: cover; filter: blur(14px) saturate(1.15); transform: scale(1.08); opacity: 0; transition: opacity 1.4s var(--ease-out, ease-out); }
.potencial-slide.active { opacity: .75; }
.home-potencial::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 12, 10, .88), rgba(15, 12, 10, .45) 70%, rgba(15, 12, 10, .3)); }
.potencial-in { padding-block: 72px; }
.potencial-t { font-size: clamp(3.4rem, 10vw, 8rem); color: #fff; }
.potencial-sub { margin: 10px 0 0; font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--amarillo); }

/* 2 · Cifra y mapa de Bolivia. */
.home-num { padding-block: 80px; }
.home-num-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.num-txt { display: grid; gap: 16px; justify-items: start; }
.num-txt .home-big { display: grid; gap: 4px; }
.num-cifra { font-size: clamp(4.4rem, 12vw, 9rem); line-height: .85; color: var(--rojo-t, var(--rojo)); font-variant-numeric: tabular-nums; }
.num-lbl { font-size: clamp(1.9rem, 4vw, 3rem); }
.num-txt p { margin: 0; font-size: 1.1rem; max-width: 40ch; }
.mapa-bo { margin: 0; justify-self: center; width: min(100%, 420px); }
.mapa-bo svg { display: block; width: 100%; height: auto; overflow: visible; }
.dpto { fill: color-mix(in srgb, var(--fg) 8%, var(--surface)); stroke: var(--bg); stroke-width: 2; stroke-linejoin: round; transition: fill .3s var(--ease-out, ease-out); }
.dpto.con { fill: color-mix(in srgb, var(--verde) calc(var(--k) * 100%), var(--surface)); }
@media (hover: hover) and (pointer: fine) { .dpto:hover { fill: var(--amarillo); } }
.dpto-n { font: 700 11px var(--font-ui, sans-serif); fill: var(--fg); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }

/* 3 · Facilita el patrocinio: empresas registradas. */
.home-patro { padding-block: 80px; background: var(--surface); border-block: 1px solid var(--line); }
.home-patro-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.patro-txt { display: grid; gap: 16px; justify-items: start; }
.patro-txt p { margin: 0; font-size: 1.1rem; max-width: 40ch; }
.patro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; position: relative; }
.patro-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: inherit; text-decoration: none; min-width: 0; }
.patro-ini { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--verde)); color: #fff; font: 800 1rem var(--font-ui, sans-serif); }
.patro-n { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patro-s { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patro-tuya { border-style: dashed; border-width: 2px; background: transparent; }
.patro-tuya .patro-ini { background: none; color: var(--rojo-t, var(--rojo)); border: 2px dashed currentColor; font-size: 1.4rem; }
@media (hover: hover) and (pointer: fine) { .patro-tuya:hover { border-color: var(--rojo); } }
/* Suben y aparecen, una tras otra. */
.patro-grid:not(.ver) .patro-tile { opacity: 0; }
.patro-grid.ver .patro-tile { animation: fb-sube .7s var(--ease-out, ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes fb-sube { from { opacity: 0; transform: translateY(28px); } }
/* Muchas empresas: la lista sube sola, con bordes que se desvanecen. */
.patro-grid.corre { display: block; height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.patro-grid.corre .patro-pista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; animation: fb-pista 40s linear infinite; }
.patro-grid.corre .patro-tile { animation: none; opacity: 1; }
.patro-grid.corre.pausada .patro-pista { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .patro-grid.corre:hover .patro-pista { animation-play-state: paused; } }
@keyframes fb-pista { to { transform: translateY(calc(-50% - 6px)); } }
.patro-pausa { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; }

/* 4 · Apoya nuestra comunidad. */
.home-comu { position: relative; background: var(--tinta); color: #fff; padding-block: 80px; text-align: center; }
.home-comu::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--degradado); }
.home-comu-in { display: grid; justify-items: center; gap: 18px; }
.home-comu .home-big { color: #fff; font-size: clamp(2.8rem, 7vw, 5.4rem); }
.home-comu p { margin: 0; max-width: 52ch; font-size: 1.15rem; color: #E6DDD0; }
.home-comu-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.home-comu .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
@media (hover: hover) and (pointer: fine) { .home-comu .btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; } }

@media (max-width: 860px) {
  .home-num-in, .home-patro-in { grid-template-columns: minmax(0, 1fr); }
  .mapa-bo { width: min(100%, 340px); }
  .home-num, .home-patro, .home-comu { padding-block: 56px; }
}
@media (max-width: 480px) {
  .patro-grid, .patro-grid.corre .patro-pista { grid-template-columns: minmax(0, 1fr); }
  .home-comu-acc { width: 100%; } .home-comu-acc .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .patro-grid .patro-tile { animation: none !important; opacity: 1 !important; } .potencial-slide { transition: none; } }

/* ===== Parte 1 como escena de cristal (estilo realidad aumentada, 2026-11-22) ===== */
.home-potencial.esc { display: block; min-height: 0; overflow: visible; background: #0B0912; }
.home-potencial.esc::after { display: none; }
.esc-viva { height: 260vh; }
.esc-pin { position: sticky; top: 63px; height: calc(100svh - 63px); overflow: hidden; display: grid; place-items: center; isolation: isolate; padding: 24px max(16px, 3vw); }
.esc-fija .esc-pin { position: relative; top: 0; height: auto; min-height: 640px; padding-block: 64px; }
.esc .potencial-fondo { z-index: -3; }
.esc .potencial-slide.active { opacity: calc(.35 + .4 * var(--luz, 0)); }
/* Cuarto oscuro con luz violeta que se ilumina. */
.esc-luz { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 40%, rgba(120, 110, 255, calc(.10 + .12 * var(--luz, 0))), transparent 70%),
              linear-gradient(rgba(14, 10, 32, calc(.86 - .5 * var(--luz, 0))), rgba(10, 8, 20, calc(.9 - .45 * var(--luz, 0)))); }
.esc-fija { --luz: 1; }
/* La ventana de cristal. */
.esc-vent { position: relative; width: min(1100px, 100%); max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; padding: 18px 22px 16px;
  border-radius: 28px; color: #fff; transform-origin: 50% 80%; will-change: transform, opacity;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 40px 120px -30px rgba(0, 0, 0, .8); }
/* Brillos en el borde de arriba y abajo, como en el cristal. */
.esc-vent::before, .esc-vent::after { content: ""; position: absolute; left: 50%; height: 2px; width: 34%; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent); transform: translateX(-50%); filter: blur(.5px); }
.esc-vent::before { top: -1px; left: 42%; }
.esc-vent::after { bottom: -1px; left: 62%; }
.esc-barra { display: flex; gap: 10px; align-items: center; }
.esc-punto { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.esc-pill { width: 64px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .28); }
.esc-pill.corta { width: 40px; background: rgba(255, 255, 255, .12); }
.esc-cuerpo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; min-height: 0; }
.esc-txt { padding-left: 12px; }
.esc .potencial-t { font-size: clamp(3rem, 7.4vw, 6.6rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
/* Mosaico de tarjetas. */
.esc-mos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(84px, 11vh, 120px); gap: 12px; }
.esc-tile { position: relative; grid-row: span 2; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; will-change: transform, opacity;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.esc-tile.alta { grid-row: span 3; }
.esc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.esc-chip { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; font: 700 .78rem var(--font-ui, sans-serif);
  background: rgba(20, 16, 30, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); }
.esc-dato { display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; grid-row: span 1;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, #fff 10%), color-mix(in srgb, var(--c) 70%, #000)); }
.esc-dato b { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.esc-dato span { font-size: .85rem; font-weight: 600; opacity: .9; }
@media (hover: hover) and (pointer: fine) { a.esc-tile:hover img { transform: scale(1.04); } a.esc-tile img { transition: transform .5s var(--ease-out, ease-out); } }
a.esc-tile:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
/* Barra flotante de abajo. */
.esc-dock { justify-self: center; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font: 600 .8rem var(--font-ui, sans-serif); }
.esc-dock span { padding: 5px 14px; border-radius: 999px; color: rgba(255, 255, 255, .7); }
.esc-dock .on { background: rgba(255, 255, 255, .9); color: #17120F; }
@media (max-width: 860px) {
  .esc-viva { height: 230vh; }
  .esc-pin { padding: 16px 12px; }
  .esc-vent { border-radius: 22px; padding: 14px; gap: 12px; }
  .esc-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
  .esc-txt { padding-left: 4px; }
  .esc-mos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(56px, 8.5vh, 84px); gap: 8px; }
  .esc-dato { padding: 10px; } .esc-dato b { font-size: 1.4rem; } .esc-dato span { font-size: .72rem; }
  .esc-chip { left: 6px; top: 6px; font-size: .68rem; padding: 2px 8px; }
}
@media (max-width: 999px) { .esc-pin { top: 59px; height: calc(100svh - 59px); } }
.esc-mos { grid-auto-flow: row dense; }
@media (max-width: 860px) { .esc-dato { grid-row: span 2; } .esc-dato b { font-size: 1.25rem; } }

/* ===== Ventana interactiva (2026-11-22): todo el inicio dentro del cristal, con pestañas arriba y barra lateral ===== */
.esc-viva { height: 190vh; }
.esc-vent { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: min(660px, 100%); padding: 16px 24px 22px; }
.esc-fija .esc-vent { height: auto; }
/* Barra de arriba: logo redondo + pestañas tipo píldora + número de parte. */
.esc-barra { gap: 12px; }
.esc-logo { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.esc-logo svg { width: 22px; height: 22px; }
.esc-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.esc-tabs::-webkit-scrollbar { display: none; }
.esc-tab { flex: none; border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .78); font: 700 .88rem var(--font-ui, sans-serif); transition: background-color .2s var(--ease-out, ease-out), color .2s var(--ease-out, ease-out); }
.esc-tab[aria-selected="true"] { background: #fff; color: #17120F; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .45); }
@media (hover: hover) and (pointer: fine) { .esc-tab[aria-selected="false"]:hover { background: rgba(255, 255, 255, .14); color: #fff; } }
.esc-tab:active { transform: scale(.97); }
.esc-tab:focus-visible, .esc-rail-b:focus-visible, .esc-sig:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.esc-paso { margin-left: auto; flex: none; font: 700 .82rem var(--font-ui, sans-serif); color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
/* Barra lateral de cristal con botones redondos (fuera de la ventana, como en visionOS). */
.esc-rail { position: absolute; left: -36px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; padding: 8px; border-radius: 999px; z-index: 2;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.esc-rail-b { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: transparent; color: rgba(255, 255, 255, .85); transition: background-color .2s var(--ease-out, ease-out), color .2s var(--ease-out, ease-out); }
.esc-rail-b svg { width: 22px; height: 22px; }
.esc-rail-b.on { background: rgba(10, 8, 18, .82); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 6px 16px -6px rgba(0, 0, 0, .6); }
@media (hover: hover) and (pointer: fine) { .esc-rail-b:not(.on):hover { background: rgba(255, 255, 255, .16); } }
.esc-rail-b:active { transform: scale(.94); }
/* Paneles: la parte activa entra deslizándose desde el lado al que vas. */
.esc-panel { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; display: grid; align-items: center; padding: 6px 4px 4px 10px; }
.esc-panel.entra { animation: esc-entra .5s var(--ease-out, ease-out) both; }
@keyframes esc-entra { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 36px)); } }
.esc-panel.entra :is(.esc-tile, .patro-tile, .mapa-bo, .home-comu-acc .btn) { animation: fb-sube .6s var(--ease-out, ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.esc-mos > :nth-child(2) { --i: 1; } .esc-mos > :nth-child(3) { --i: 2; } .esc-mos > :nth-child(4) { --i: 3; } .esc-mos > :nth-child(5) { --i: 4; } .esc-mos > :nth-child(6) { --i: 5; }
.home-comu-acc .btn:nth-child(2) { --i: 1; } .home-comu-acc .btn:nth-child(3) { --i: 2; }
.mapa-bo { --i: 2; }
/* Antes de que la ventana se acerque, el contenido espera. */
.esc-viva .esc-vent:not(.listo) .esc-panel > * { opacity: 0; }
.esc-sig { margin-top: 18px; }
/* Partes 2, 3 y 4 dentro del cristal: sin fondos propios, texto claro. */
.esc .home-num, .esc .home-patro, .esc .home-comu { padding-block: 6px; background: none; border: 0; color: #fff; }
.esc .home-comu::before { display: none; }
.esc .home-num-in, .esc .home-patro-in { gap: 32px; }
.esc .home-big { color: #fff; }
.esc .num-cifra { color: var(--amarillo); }
.esc .num-txt p, .esc .patro-txt p, .esc .home-comu p { color: rgba(255, 255, 255, .82); }
.esc .mapa-bo { width: min(100%, 340px); }
.esc .dpto { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.esc .dpto.con { fill: color-mix(in srgb, var(--verde) calc(var(--k) * 100%), rgba(255, 255, 255, .12)); }
.esc .dpto-n { fill: #fff; stroke: rgba(10, 8, 20, .7); }
.esc .patro-tile { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.esc .patro-s { color: rgba(255, 255, 255, .7); }
.esc .patro-tuya { background: transparent; border-color: rgba(255, 255, 255, .4); }
.esc .patro-tuya .patro-ini { color: var(--amarillo); }
.esc .patro-grid.corre { height: 340px; }
.esc .patro-pausa { background: rgba(20, 16, 30, .7); color: #fff; border-color: rgba(255, 255, 255, .3); }
.esc .home-comu { text-align: center; }
.esc .home-comu .home-big { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.esc .btn:not(.ghost):not(.amarillo) { background: var(--amarillo); color: #17120F; }
.esc .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
@media (pointer: coarse) { .esc-tab { min-height: 44px; } }
/* Pantallas medianas: la barra lateral entra dentro de la ventana. */
@media (max-width: 1180px) and (min-width: 861px) {
  .esc-vent { padding-left: 88px; }
  .esc-rail { left: 16px; }
}
/* Celular y tableta: ventana normal (sin quedarse fija), barra lateral en fila bajo las pestañas. */
@media (max-width: 860px) {
  .esc-viva { height: auto; }
  .esc-pin { position: relative; top: 0; height: auto; padding: 28px 12px 40px; }
  .esc-vent { height: auto; padding: 12px 12px 18px; grid-template-rows: auto auto auto; }
  .esc-logo { width: 40px; height: 40px; }
  .esc-paso { display: none; }
  .esc-tab { padding: 8px 12px; font-size: .82rem; }
  .esc-rail { position: static; transform: none; order: 2; display: flex; justify-content: center; justify-self: center; gap: 6px; padding: 5px; }
  .esc-barra { order: 1; } .esc-panel { order: 3; padding: 4px 2px; overflow: visible; }
  .esc-vent { display: flex; flex-direction: column; gap: 12px; }
  .esc-rail-b { width: 44px; height: 44px; }
  .esc .home-num-in, .esc .home-patro-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .esc .mapa-bo { width: min(100%, 300px); }
  .esc .patro-grid.corre { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .esc-panel.entra, .esc-panel.entra * { animation: none !important; } }
.esc-rail-b svg, .esc-logo svg.no-fill { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.esc-pin { grid-template-columns: minmax(0, 1fr); }
.esc-vent { min-width: 0; }
@media (min-width: 1181px) { .esc-vent { padding-left: 40px; } }
@media (max-width: 860px) { .esc .home-comu-acc .btn { flex: 1 1 100%; } .esc-mos { min-width: 0; } }

/* ===== La portada «Fuerza Boliviana» también dentro de la ventana (primera pestaña) ===== */
.esc-viva { height: auto; }
.esc-pin { position: relative; top: 0; height: calc(100svh - 63px); min-height: 600px; }
@media (max-width: 999px) { .esc-pin { height: calc(100svh - 59px); } }
.esc-p-hero { align-items: stretch; padding: 4px 0 0 6px; }
.esc .hero, .is-home .esc .hero { min-height: 0; height: 100%; background: none; color: #fff; border-radius: 20px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.esc .hero::before { display: none; }
.esc .hero-slide, .esc .hero::after { left: 46%; right: 0; top: 0; bottom: 0; height: auto; clip-path: inset(0 round 18px); }
.esc .hero-slide { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.esc .hero-content { padding-block: 16px; }
.esc .hero-in { max-width: 44%; padding-left: 8px; }
.esc .hero h1 { font-size: clamp(3rem, 6.2vw, 6.4rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.esc .hero-meta { margin-top: 22px; }
@media (max-width: 860px) {
  .esc-pin { height: auto; min-height: 0; }
  .esc-p-hero { padding: 0; }
  .esc .hero { --foto-h: 230px; height: auto; flex-direction: column; align-items: stretch; }
  .esc .hero-slide, .esc .hero::after { left: 0; bottom: auto; height: var(--foto-h); }
  .esc .hero-content { padding-block: calc(var(--foto-h) + 14px) 4px; }
  .esc .hero-in { max-width: none; padding-left: 2px; }
  .esc .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .esc .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ===== Al bajar, la ventana queda fija y recorre sus 5 partes (inicio más largo) ===== */
.esc-pasos { height: calc(100svh - 63px + 360svh); }
.esc-pasos .esc-pin { position: sticky; top: 63px; }
@media (max-width: 999px) { .esc-pasos { height: calc(100svh - 59px + 360svh); } .esc-pasos .esc-pin { top: 59px; } }
.esc-prog { position: absolute; left: 28px; right: 28px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--degradado); transform: scaleX(0); transform-origin: left; opacity: .9; pointer-events: none; }
.esc:not(.esc-pasos) .esc-prog { display: none; }

/* ===== Ajustes pedidos (2026-11-22): Potencial lleno de fotos, mapa más grande, foto de Inicio difuminada ===== */
/* Potencial: título que no choca con las fotos y mosaico de 4 columnas sin huecos. */
.esc .potencial-t { font-size: clamp(2.6rem, 5vw, 5.2rem); overflow-wrap: anywhere; }
.esc-tile:not(.esc-dato) { background: linear-gradient(150deg, #2B2340, #15111F); }
@media (min-width: 861px) {
  .esc-cuerpo { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 24px; }
  .esc-mos { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); grid-auto-rows: auto; height: min(520px, calc(100svh - 240px)); gap: 10px; }
  .esc-mos .m-fut { grid-area: 1 / 1 / 4 / 2; } .esc-mos .m-atl { grid-area: 4 / 1 / 7 / 2; }
  .esc-mos .m-perfil { grid-area: 1 / 2 / 2 / 3; } .esc-mos .m-bas { grid-area: 2 / 2 / 5 / 3; } .esc-mos .m-raq { grid-area: 5 / 2 / 7 / 3; }
  .esc-mos .m-vol { grid-area: 1 / 3 / 3 / 4; } .esc-mos .m-nueve { grid-area: 3 / 3 / 4 / 4; } .esc-mos .m-esc { grid-area: 4 / 3 / 7 / 4; }
  .esc-mos .m-bfem { grid-area: 1 / 4 / 4 / 5; } .esc-mos .m-kar { grid-area: 4 / 4 / 7 / 5; }
  .esc-dato b { font-size: clamp(1.2rem, 2vw, 1.7rem); }
  .esc-dato { padding: 10px 12px; }
}
@media (max-width: 860px) { .m-bfem, .m-raq, .m-esc, .m-kar { grid-row: span 2; } }
/* Jugadores: mapa más grande. */
.esc .home-num-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.esc .mapa-bo { width: min(100%, 540px, calc((100svh - 260px) * .86)); }
.esc .dpto-n { font-size: 13px; }
@media (max-width: 860px) { .esc .home-num-in { grid-template-columns: minmax(0, 1fr); } .esc .mapa-bo { width: 100%; } }
/* Inicio: la foto se funde con el cristal en vez de ser un recuadro. */
.esc .hero-slide { left: 30%; right: 0; top: 0; bottom: 0; clip-path: none; border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 22%, #000 45%, #000 88%, transparent 100%), linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 22%, #000 45%, #000 88%, transparent 100%), linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.esc .hero::after { display: none; }
.esc .hero-in { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .esc .hero-slide { left: 0; bottom: auto; height: var(--foto-h);
    -webkit-mask-image: linear-gradient(transparent 0, #000 12%, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 12%, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
}
/* Potencial: texto más grande y parejo (2026-11-22). */
@media (min-width: 861px) {
  .esc-cuerpo { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }
  .esc .potencial-t { font-size: clamp(3.2rem, 6.4vw, 6.6rem); line-height: .9; overflow-wrap: normal; }
  .esc .potencial-sub { font-size: clamp(1.2rem, 1.9vw, 1.6rem); white-space: nowrap; }
  .esc-chip { font-size: .8rem; }
  .esc-dato b { font-size: clamp(1.3rem, 2.1vw, 1.9rem); }
  .esc-dato span { font-size: .85rem; }
}
@media (min-width: 861px) {
  .esc-mos .esc-dato { padding: 8px 12px; justify-content: center; gap: 2px; overflow: hidden; }
  .esc-mos .esc-dato b { font-size: clamp(1rem, 1.6vw, 1.5rem); white-space: nowrap; }
  .esc-mos .esc-dato span { font-size: clamp(.68rem, .9vw, .82rem); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* Sin línea de avance dentro de la ventana: ya está la del encabezado. */
.esc-prog { display: none !important; }
/* «Perfil gratis» con más espacio (2 filas) y letra más grande. */
@media (min-width: 861px) {
  .esc-mos .m-perfil { grid-area: 1 / 2 / 3 / 3; } .esc-mos .m-bas { grid-area: 3 / 2 / 5 / 3; }
  .esc-mos .m-perfil b { font-size: clamp(1.5rem, 2.6vw, 2.4rem); white-space: normal; line-height: .95; }
  .esc-mos .m-perfil { justify-content: flex-end; padding: 12px 14px; }
}
/* Mapa interactivo. */
.mapa-bo { position: relative; }
.esc .dpto { cursor: pointer; transition: fill .25s var(--ease-out, ease-out), transform .25s var(--ease-out, ease-out), filter .25s var(--ease-out, ease-out); transform-box: fill-box; transform-origin: center; }
.esc .dpto.sel { fill: var(--amarillo); stroke: #fff; stroke-width: 2; transform: translateY(-4px) scale(1.04); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.esc .dpto:focus-visible { outline: none; stroke: var(--amarillo); stroke-width: 3; }
.esc .dpto-n { transition: fill .2s; }
.mapa-info { position: absolute; left: 0; bottom: 4%; display: grid; gap: 2px; min-width: 180px; max-width: 62%; padding: 12px 16px; border-radius: 16px; color: #fff;
  background: rgba(20, 16, 30, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); }
.mapa-info b { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.mapa-info span { font-size: .9rem; color: rgba(255, 255, 255, .82); }
.mapa-info a { margin-top: 6px; font: 700 .9rem var(--font-ui, sans-serif); color: var(--amarillo); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.mapa-info a:hover { text-decoration: underline; }
.mapa-info a .ico { width: 16px; height: 16px; }
@media (max-width: 860px) { .mapa-info { position: static; max-width: none; margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .esc .dpto.sel { transform: none; } }
.esc .dpto.sel { transform: none; filter: none; }
.dpto-arriba { pointer-events: none; fill: var(--amarillo); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.mapa-info { left: auto; right: 0; bottom: 0; max-width: 48%; }
@media (prefers-reduced-motion: reduce) { .dpto-arriba { transform: none; } }
.dpto-arriba { opacity: 0; transition: opacity .2s var(--ease-out, ease-out); }
.dpto-arriba.ver { opacity: 1; }
.esc .dpto:focus { outline: none; }

/* ===== Mensaje para empresas arriba (inicio) y «Quién está detrás» (empresas) ===== */
.hero-emp { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; max-width: 460px; padding: 12px 16px; border-radius: 14px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s var(--ease-out, ease-out); }
.hero-emp b { font: 800 .95rem var(--font-ui, sans-serif); color: var(--amarillo); }
.hero-emp span { grid-column: 1; font-size: .9rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.hero-emp .ico { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .hero-emp:hover { background: rgba(255, 255, 255, .18); } }
.hero-emp:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.esc .hero-meta { margin-top: 16px; }
.emp-quien { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; margin-block: 48px 64px; }
.emp-quien p { margin: 0 0 12px; max-width: 60ch; }
.emp-link { font-weight: 700; color: var(--acento, var(--rojo-t)); text-decoration: none; }
.emp-link:hover { text-decoration: underline; }
.emp-contacto { padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; justify-items: start; }
.emp-contacto h3 { margin: 0; }
.emp-contacto p { margin: 0; }
@media (max-width: 760px) { .emp-quien { grid-template-columns: minmax(0, 1fr); } .emp-contacto .btn { width: 100%; justify-content: center; } }
@media (min-width: 861px) and (max-height: 760px) { .esc .hero-sub { display: none; } .esc .hero h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); } .esc .hero .motto { margin-top: 12px; } .esc .hero-actions { margin-top: 18px; } }

/* ===== Inicio sin la ventana de cristal (2026-11-22, a pedido): mapa interactivo en la sección normal ===== */
.mapa-bo { width: min(100%, 500px); }
.dpto { cursor: pointer; }
.dpto:focus { outline: none; }
.dpto:focus-visible { stroke: var(--amarillo); stroke-width: 3; }
.home-num:not(.esc-panel) .mapa-info { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--fg); border-color: var(--line); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .35); }
.home-num:not(.esc-panel) .mapa-info span { color: var(--muted); }
.home-num:not(.esc-panel) .mapa-info a { color: var(--rojo-t, var(--rojo)); }
.home-num:not(.esc-panel) .dpto-arriba { stroke: var(--surface); }
.hero .hero-emp { max-width: 440px; }
