:root {
  color-scheme: light dark;
  --bg: #f7f5f1; --surface: #ffffff; --text: #170b2e; --muted: #5b5870;
  --line: #e4dfd8; --accent: #d93a0b; --accent-ink: #ffffff; --link: #b82e06;
  --hero-a: #ffdcc9; --hero-b: #f7f5f1;
  --brand-bar: linear-gradient(90deg, #ff4a00, #e12600 40%, #8a0812 72%, #1a0533);
  --radius: 16px; --shadow: 0 6px 24px rgba(23, 11, 46, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100a24; --surface: #1a1236; --text: #f1ecf7; --muted: #b4abc9;
    --line: #2e2352; --accent: #ff5a1f; --accent-ink: #1a0a00; --link: #ff8a5c;
    --hero-a: #3a1633; --hero-b: #100a24; --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.05rem; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 3px; background: var(--brand-bar); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; padding: .35rem 0; }
.brand img { height: 44px; width: auto; display: block; }
.foot-logo { height: 30px; width: auto; display: block; margin-bottom: .5rem; }
@media (max-width: 720px) { .brand img { height: 38px; } }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .45rem .7rem; font-size: 1rem; cursor: pointer; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 61px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; }
}

/* Hero */
.hero { background: radial-gradient(900px 400px at 80% -10%, var(--hero-a), var(--hero-b)); padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero { border-bottom: 1px solid var(--line); }
.hero h1 { color: var(--text); }
.hero p { max-width: 62ch; font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--link); font-weight: 700; margin: 0 0 .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); color: var(--text); background: transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.08); }

/* Secciones y tarjetas */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.thumb { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--hero-a); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.5rem; background: linear-gradient(135deg, var(--hero-a), var(--surface)); }
.badge { position: absolute; left: .6rem; top: .6rem; background: rgba(10, 12, 30, .82); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.card .meta { padding: .9rem 1rem 1.1rem; }
.card h3 { margin: 0 0 .35rem; }
.card h3 a { color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a:hover { text-decoration: underline; }
.card time { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Redes */
.social { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.social a { display: block; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.social a:hover { border-color: var(--accent); }
.social strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.social span { color: var(--muted); font-size: .92rem; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }

/* Filtros */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1.75rem; align-items: center; }
.toolbar input { flex: 1 1 240px; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1rem; }
.chip { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: .95rem; font-family: inherit; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* Página de video */
.crumbs { font-size: .9rem; color: var(--muted); margin: 1.5rem 0 1rem; }
.crumbs a { color: var(--muted); }
.video-page { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); padding-bottom: 2rem; }
.embed { width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed.ratio { aspect-ratio: 16 / 9; }
.embed.ratio iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed.vertical { background: transparent; display: flex; justify-content: center; overflow: visible; }
.pub { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.desc p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .95rem; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--muted); margin-right: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Temas, oración del día, reflexiones, comunidad ===== */
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 1.5rem; }
.mt { margin-top: 2.5rem; }
.topics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.topics.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.topic-card { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.topic-card .emo { font-size: 1.7rem; line-height: 1.2; }
.topic-card strong { font-family: var(--serif); font-size: 1.08rem; }
.topic-card span:last-child { color: var(--muted); font-size: .88rem; }
.topic-head { padding: 1rem 0 2rem; }
.topic-head .emo { font-size: 2.4rem; display: block; margin-bottom: .25rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.chip-link { display: inline-block; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; }
.chip-link:hover { border-color: var(--accent); }
.season { background: var(--brand-bar); color: #fff; padding: .7rem 0; font-weight: 600; }
.season a { color: #fff; }
.pod { padding-top: 2.5rem; }
.pod-grid { display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.pod-grid h2 { margin-bottom: .5rem; }
@media (max-width: 820px) { .pod-grid { grid-template-columns: minmax(0, 1fr); } }
.btn.wa { border-color: #1a9d55; }
.card.art .meta { padding: 1.1rem 1.2rem 1.3rem; }
.card.art h3 { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.card.art p { margin: 0; color: var(--muted); font-size: .95rem; }
.article { max-width: 70ch; margin: 0 auto 2rem; }
.article-body { font-size: 1.12rem; }
.article-body h2 { margin-top: 2rem; }
.article-body p, .article-body ul { margin: 0 0 1.1rem; }
.article-body li { margin-bottom: .5rem; }
blockquote.oracion { margin: 1.5rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 1.2rem; }
blockquote.oracion p { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: calc(var(--radius) + 6px); background: radial-gradient(700px 300px at 100% 0, var(--hero-a), var(--surface)); border: 1px solid var(--line); }
.cta h2 { margin-bottom: .4rem; }
.cta p { margin: 0; color: var(--muted); max-width: 52ch; }

@media (max-width: 520px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .topic-card { padding: .9rem 1rem; }
  .topic-card strong { font-size: 1rem; }
}

.hero .follow { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.25rem 0 0; font-size: .95rem; color: var(--muted); }
.hero .follow span { margin-right: .25rem; }

.follow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; font-size: .95rem; color: var(--muted); }
.follow span { margin-right: .25rem; }

/* ===== Maristas, eventos y torneos ===== */
.mar-banner { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: calc(var(--radius) + 4px); background: var(--brand-bar); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.mar-banner .emo { font-size: 2rem; }
.mar-banner strong { display: block; font-family: var(--serif); font-size: 1.35rem; }
.mar-banner small { display: block; opacity: .92; font-size: .95rem; }
.mar-banner .go { margin-left: auto; font-size: 1.6rem; }
.mar-banner:hover { filter: brightness(1.08); }
.evts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.evt-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s; }
.evt-card:hover { transform: translateY(-3px); }
.evt-img { aspect-ratio: 16 / 9; background: var(--hero-a); overflow: hidden; display: block; }
.evt-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.evt-img.ph { display: grid; place-items: center; font-size: 2.6rem; }
.evt-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.evt-body strong { font-family: var(--serif); font-size: 1.2rem; }
.evt-body span:last-child { color: var(--muted); font-size: .92rem; }
.status { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.status.curso { background: #1a9d55; border-color: #1a9d55; color: #fff; }
.status.proximo { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.torneo-head { padding: .5rem 0 1rem; display: grid; gap: 1.5rem; }
.torneo-head.with-img { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .torneo-head.with-img { grid-template-columns: minmax(0, 1fr); } .cartel { max-width: 340px; } }
.cartel img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.torneo-head h1 { margin: .4rem 0 .25rem; }
.lema { font-family: var(--serif); font-size: 1.2rem; color: var(--link); margin: 0 0 .5rem; font-style: italic; }
.fechas { color: var(--muted); margin: 0 0 .35rem; }
.podio { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: 1.05rem; margin: .75rem 0; }
.dias { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dia { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow); }
.dia h3 { font-size: 1.15rem; padding-bottom: .5rem; border-bottom: 3px solid var(--accent); display: inline-block; margin-bottom: .75rem; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 7.2rem 1.6rem minmax(0, 1fr); gap: .5rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid var(--line); }
.agenda li:first-child { border-top: 0; }
.agenda .h { font-weight: 700; font-size: .92rem; color: var(--link); }
.agenda .a small { display: block; color: var(--muted); font-size: .85rem; }
.cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat-card { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.cat-card:hover { border-color: var(--accent); }
.cat-card .emo { font-size: 1.8rem; }
.cat-card strong { font-family: var(--serif); font-size: 1.1rem; }
.cat-card small, .cat-card span:not(.emo) { color: var(--muted); font-size: .88rem; }
.cat-card em { font-style: normal; font-weight: 600; margin-top: .3rem; }
.premio { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: radial-gradient(600px 240px at 100% 0, var(--hero-a), var(--surface)); border: 1px solid var(--line); }
.premio h2 { margin-bottom: .4rem; }
.premio p { margin: 0; }
.matches { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.match { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .9rem; }
.mmeta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; color: var(--muted); font-size: .85rem; margin-bottom: .3rem; }
.mmeta em { font-style: normal; font-weight: 600; color: var(--link); }
.mcat { color: var(--muted); }
.mteams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; align-items: center; }
.tm { font-weight: 600; overflow-wrap: anywhere; }
.tm.v { text-align: right; }
.tm.win { color: var(--link); }
.tm.pend { color: var(--muted); font-weight: 500; font-style: italic; }
.sc { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; min-width: 4.2rem; text-align: center; }
.sc.vs { font-size: .9rem; font-weight: 600; color: var(--muted); }
.mextra { color: var(--muted); font-size: .85rem; margin-top: .25rem; text-align: center; }
.match.suspendido, .match.aplazado { opacity: .8; border-style: dashed; }
.dia-t { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.tbls { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.tbl-wrap { overflow-x: auto; }
.tbl-wrap h3 small { color: var(--muted); font-weight: 400; font-family: var(--sans); font-size: .8rem; margin-left: .4rem; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.tbl th, .tbl td { padding: .5rem .55rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: .8rem; }
.tbl td.eq, .tbl th:nth-child(2) { text-align: left; white-space: normal; }
.tbl td.eq small { display: block; color: var(--muted); font-size: .78rem; }
.tbl tbody tr:first-child td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.nota-pos { color: var(--muted); font-size: .85rem; }
.bracket { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .75rem; }
.round { flex: 0 0 220px; display: flex; flex-direction: column; justify-content: space-around; gap: .8rem; }
.round h3 { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
.bm { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bm small { display: block; padding: .25rem .6rem; color: var(--muted); font-size: .78rem; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.bt { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.bt.win { font-weight: 700; color: var(--link); }
.bt.pend { color: var(--muted); font-style: italic; }
@media (max-width: 520px) {
  .agenda li { grid-template-columns: 6rem 1.4rem minmax(0, 1fr); gap: .4rem; }
  .mteams { gap: .4rem; font-size: .95rem; }
  .sc { min-width: 3.4rem; font-size: 1.2rem; }
}

/* ===== Administración ===== */
.admin h1 { margin-bottom: .5rem; }
.logout { text-align: right; margin: -2.4rem 0 1rem; }
.alogin { max-width: 360px; margin: 2rem auto; }
.admin label { display: block; margin: 0 0 .85rem; font-weight: 600; font-size: .95rem; }
.admin input:not([type=checkbox]):not([type=file]), .admin select, .admin textarea { display: block; width: 100%; margin-top: .3rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.admin textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.admin input[type=file] { display: block; margin: .4rem 0 .8rem; font-weight: 400; max-width: 100%; }
.admin .two { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.admin .chk { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.admin .chk input { width: auto; margin: 0; }
.agrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.acard h2 { font-size: 1.25rem; }
.acard.warn { border-color: var(--accent); }
.acard.danger summary { color: var(--link); cursor: pointer; }
.acard summary { cursor: pointer; }
.aflash { padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem; border: 1px solid #1a9d55; background: color-mix(in srgb, #1a9d55 14%, var(--surface)); }
.aflash.err { border-color: #c0261a; background: color-mix(in srgb, #c0261a 14%, var(--surface)); }
.alist { padding-left: 1.2rem; }
.mini { display: inline-block; height: 80px; width: auto; border-radius: 8px; vertical-align: middle; }
.btn.small { padding: .3rem .8rem; font-size: .88rem; }
.atbl td, .atbl th { text-align: left; }
.chip-link.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ah { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.amatch { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .6rem; }
.amatch.final { border-left: 4px solid #1a9d55; }
.amh { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.amh em { font-style: normal; opacity: .7; }
.amrow { display: grid; grid-template-columns: minmax(0, 1fr) 4rem auto 4rem minmax(0, 1fr); gap: .5rem; align-items: center; margin: .4rem 0; }
.amrow .at { font-weight: 600; overflow-wrap: anywhere; }
.amrow .at.r { text-align: right; }
.amrow .at.pend { color: var(--muted); font-style: italic; font-weight: 400; }
.admin .sc-in { width: 4rem; text-align: center; font-size: 1.2rem; font-weight: 700; padding: .5rem .25rem; margin: 0; display: inline-block; }
.apen { color: var(--muted); font-size: .9rem; }
.apen .sc-in { width: 3.4rem; font-size: 1rem; padding: .3rem; }
.amatch details { margin-top: .5rem; }
.amatch summary { cursor: pointer; color: var(--link); font-size: .9rem; }
.sticky-save { position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(transparent, var(--bg) 35%); text-align: center; }
@media (max-width: 520px) { .admin .two { grid-template-columns: 1fr; } .amrow { grid-template-columns: minmax(0, 1fr) 3.4rem auto 3.4rem minmax(0, 1fr); gap: .3rem; font-size: .9rem; } }
.admin .apen .sc-in { width: 3.6rem; display: inline-block; font-size: 1rem; padding: .3rem; margin: 0 .15rem; }

/* Tarjetas verticales (la mayoría de los videos son shorts) */
.card .thumb img { object-position: center; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .card .meta { padding: .65rem .7rem .8rem; } .card .meta h3 { font-size: .95rem; } }

/* Ecosistema Nahtsys */
.eco h2 { margin-bottom: .25rem; }
.eco-sub { color: var(--muted); margin: 0 0 1.25rem; }
.eco-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.eco-card { position: relative; display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 2rem 1rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.eco-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.eco-ico { flex: none; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; font-size: 1.4rem; border-radius: 12px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); border: 1px solid var(--line); }
.eco-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.eco-txt strong { font-size: 1rem; line-height: 1.25; }
.eco-txt small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.eco-go { position: absolute; top: .8rem; right: .9rem; color: var(--muted); font-size: .95rem; }
.eco-card:hover .eco-go { color: var(--accent); }
.foot-eco { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .25rem; }
.foot-eco-t { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.foot-eco-l { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.foot-eco-l a { margin: 0; }
.foot-eco-l span { color: var(--text); }
.nav-eco { display: none; }
@media (max-width: 720px) {
  .nav-eco { display: flex; flex-direction: column; margin-top: .6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
  .nav-eco span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .5rem 0 .1rem; }
  .nav-eco a { padding: .55rem 0 !important; font-weight: 400 !important; }
  .eco-grid { grid-template-columns: 1fr; }
}
