@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ==========================================================================
   Bet939 - Appyn reference clone (body class: rounded sidg aprm-2 full-width)
   Palette: dark olive / brass card-room. Accent replaces reference #cc1ca8.
   ========================================================================== */

:root {
  --accent:        #4F6410;   /* fills carrying white text - 6.62:1 */
  --accent-ink:    #44560E;   /* accent text on white      - 8.05:1 */
  --accent-bright: #A8CC1A;   /* chrome on dark #1d222d    - 7.7:1  */
  --accent-hover:  #5F7814;
  --accent-soft:   #F1F5DF;

  --page:    #e6e9ef;
  --card:    #ffffff;
  --tint:    #f7f8fa;
  --chrome:  #1d222d;
  --deep:    #13161d;
  --ink:     #4c4c4c;
  --muted:   #a7a7a7;
  --muted-2: #767676;
  --line:    #eaeaea;
  --shadow:  2px 2px 2px 0 #e3e3e3;

  --download: #1B7F35;        /* white 5.02:1 - recoloured per D5 allowance */
  --telegram: #006fa7;
  --star:     #f9bd00;

  --measure: 1220px;
  --radius:  20px;
  --pill:    50px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  line-height: 25px;
  color: var(--ink);
  background: var(--page);
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent-ink); text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

button, input, select { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- the one shared measure (header, content, footer, disclaimer) ---------- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 10px;
}
.container::after { content: ''; display: table; clear: both; }
/* the clearfix would otherwise become a flex item and eat one gap */
.container.is-row::after { display: none; }

/* flex row: only blocks that genuinely sit beside the sidebar */
.container.is-row { display: flex; align-items: flex-start; gap: 20px; }
.container.is-row > .main-col { flex: 1 1 auto; min-width: 0; }
/* block container: long content, full measure, no dead sidebar gutter */
.container.is-block { display: block; }

/* ================================ HEADER ================================= */
#header {
  background: var(--chrome);
  border-bottom: 2px solid var(--accent-bright);
  position: sticky; top: 0; z-index: 100;
}
#header .container {
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; cursor: pointer; }
.brand img { height: 44px; width: auto; object-fit: contain; display: block; }

#header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2px;
}
#header nav a {
  display: block; padding: 0 12px; line-height: 58px;
  color: #cfd3da; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em;
  transition: color .2s ease, background-color .2s ease;
}
#header nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
#header nav li.is-active > a { color: var(--accent-bright); }
#header nav a.nav-cta {
  background: var(--accent); color: #fff;
  line-height: 36px; padding: 0 18px; margin-left: 8px;
  border-radius: var(--pill);
}
#header nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; color: #fff;
}

/* ================================= HERO ================================== */
#hero {
  position: relative; overflow: hidden;
  background: #000; padding: 90px 0 40px; text-align: center;
}
#hero .imgbg { position: absolute; inset: 0; pointer-events: none; }
#hero .imgbg img {
  width: 120%; height: 100%; object-fit: cover;
  opacity: .3; position: relative; left: -10%;
}
#hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.82) 100%);
}
#hero .subcontainer {
  position: relative; max-width: 730px; margin: 0 auto; padding: 0 15px;
}
#hero h1 {
  font-size: 40px; line-height: 46px; font-weight: 300;
  color: #fff; margin: 0 0 6px;
}
#hero h2 {
  font-size: 16px; line-height: 30px; font-weight: 300;
  color: #e8ebf0; margin: 0 0 22px;
}

/* search */
.searchbox { max-width: 600px; margin: 0 auto; position: relative; }
.searchbox form { display: flex; }
.searchbox input {
  flex: 1 1 auto; height: 44px; border: 0; border-radius: var(--pill);
  background: #f2f2f2; font-size: 16px; padding: 0 20px; color: #333;
  min-width: 0;
}
.searchbox input::placeholder { color: #888; }
.searchbox button {
  width: 70px; height: 44px; margin-left: 8px; border: 0;
  border-radius: var(--pill); background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease;
}
.searchbox button:hover { background: var(--accent-hover); }

/* live results */
.search-results {
  position: absolute; left: 0; right: 78px; top: 52px; z-index: 40;
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.3);
  overflow: hidden; text-align: left; display: none;
}
.search-results.is-open { display: block; }
.search-results a {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--accent-soft); }
.search-results img { width: 32px; height: 32px; border-radius: 8px; }
.search-results .empty { padding: 12px 14px; color: var(--muted-2); }

/* category icon row */
.cats { position: relative; margin-top: 22px; }
.cats ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
}
.cats a { display: block; text-align: center; color: #e8ebf0; font-size: 11px; }
.cats .ico {
  width: 40px; height: 40px; border-radius: 50%; opacity: .5;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 4px; color: #fff; transition: opacity .2s ease;
}
.cats a:hover { color: #fff; }
.cats a:hover .ico { opacity: 1; }
.cats .ico-all { background: #4F6410; }
.cats .ico-top { background: #B23A0E; }
.cats .ico-new { background: #1B7F35; }
.cats .ico-info { background: #006fa7; }
.cats .ico-mail { background: #8a5a1f; }

/* ============================== SECTIONS ================================= */
.section { padding: 18px 0 2px; }
.title-section {
  font-size: 22px; font-weight: 400; color: #444;
  margin: 3px 10px 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.title-section a { color: #444; }

/* grid */
.baps { display: flex; flex-wrap: wrap; margin: 0 -0px; }
.baps .bav { padding: 10px; }
.baps .bav1 { width: calc(100% / 6); }
.baps .bav2 { width: calc(100% / 3); }

.bav a {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border-bottom: 2px solid var(--accent);
  overflow: hidden; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bav a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.bav .thumb { display: block; padding: 15px 15px 8px; }
.bav .thumb img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; display: block; background: var(--tint);
}
.bav .px-postmeta { display: block; flex: 1 1 auto; padding: 0 15px 12px; border-radius: 0 0 var(--radius) var(--radius); }
.bav .title {
  display: block; font-size: 14px; font-weight: 600; color: #444;
  line-height: 20px; height: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav .meta {
  display: block; font-size: 12px; color: var(--muted);
  line-height: 18px; height: 18px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.bav .cardbtn {
  display: block; margin: 8px 10px 12px; text-align: center;
  background: var(--accent); color: #fff; border-radius: var(--pill);
  line-height: 30px; font-size: 11px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bav2 .cardbtn { font-size: 12px; padding: 0 16px; }

/* wide tile (top rated) */
.bav2 a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto;
  gap: 8px 14px; padding: 15px; align-items: center;
}
.bav2 .thumb { grid-row: 1 / 3; padding: 0; }
.bav2 .thumb img { width: 72px; height: 72px; border-radius: 16px; }
.bav2 .px-postmeta { padding: 0; min-width: 0; border-radius: 0; }
.bav2 .cardbtn { margin: 0; align-self: start; }

/* stars */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star {
  width: 11px; height: 11px; display: inline-block; background: #d4dae2;
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.star.is-on { background: var(--star); }
.star.is-half { background: linear-gradient(90deg, var(--star) 50%, #d4dae2 50%); }
.rating-line { display: flex; font-size: 12px; color: var(--muted); align-items: center; gap: 5px; line-height: 18px; height: 18px; }
.rating-line > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* VIEW MORE */
.viewmore { text-align: center; padding: 14px 0 6px; }
.viewmore a {
  display: inline-block; width: 225px; line-height: 40px;
  border-radius: var(--pill); background: var(--accent); color: #fff;
  text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: background-color .2s ease;
}
.viewmore a:hover { background: var(--accent-hover); color: #fff; }

/* =============================== SIDEBAR ================================= */
.sidebar {
  flex: 0 0 300px; width: 300px;
  position: sticky; top: 80px; align-self: flex-start;
}
.widget {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 15px; margin-bottom: 20px; border-bottom: 2px solid var(--accent);
}
.widget-title {
  font-size: 17px; text-transform: uppercase; color: #ababab;
  margin: 0 0 14px; position: relative; padding-bottom: 10px; font-weight: 700;
}
.widget-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background: var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); }
.widget li a:hover { color: var(--accent-ink); }
.widget li img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; }
.widget .w-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget .w-sub { font-size: 11px; color: var(--muted); }
.widget .cat-list a { display: inline-block; padding: 5px 12px; background: var(--accent-soft);
  color: var(--accent-ink); border-radius: var(--pill); font-size: 12px; margin: 0 4px 6px 0; }
.widget .cat-list { display: flex; flex-wrap: wrap; }
.widget .cat-list li { border: 0; }

/* ========================== APK SINGLE PAGE ============================== */
#subheader.np {
  background: var(--chrome); border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 0; margin-bottom: 18px;
}
#breadcrumbs { font-size: 12px; color: var(--muted-2); margin: 0 0 10px; padding: 0 10px; }
#breadcrumbs a { color: var(--accent-ink); }

.app-s .box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 25px; margin-bottom: 20px; border-bottom: 2px solid var(--accent);
}
.app-s .s-head { display: flex; gap: 25px; align-items: flex-start; flex-wrap: wrap; }
.app-s .s1 { order: -1; flex: 0 0 150px; text-align: center; }
.app-s .s1 img {
  width: 150px; height: 150px; border-radius: 25px; object-fit: cover; display: block;
  background: var(--tint);
}
.app-s .s2 { flex: 1 1 320px; min-width: 0; }

.cat-label { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
h1.main-box-title { font-size: 38px; line-height: 48px; font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.src-tag { font-size: 12px; color: var(--muted); }
.tags { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; padding: 4px 12px; background: var(--accent-soft);
  color: var(--accent-ink); border-radius: var(--radius); font-size: 12px; }
.short-desc { margin: 12px 0 0; }

/* badge - static, never absolute, on the detail page (C7) */
.badge {
  position: static; display: inline-block; vertical-align: middle;
  padding: 2px 12px; border-radius: var(--pill); font-size: 11px; font-weight: 700;
  text-transform: uppercase; color: #fff; background: var(--accent); margin-left: 8px;
}
.badge.is-hot { background: #B23A0E; }
.badge.is-new { background: var(--accent); }

/* info table */
.da-s { display: flex; flex-wrap: wrap; margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); }
.da-s > div { width: 33.333%; padding: 10px 14px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.da-s > div:nth-child(3n) { border-right: 0; }
.da-s b { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.da-s span { font-size: 13px; color: var(--ink); }

/* buttons */
.dl-wrap { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.buttond {
  display: flex; align-items: center; min-height: 33px; border-radius: var(--radius);
  font-size: 12px; font-weight: 700; color: #fff; overflow: hidden;
  padding: 0; text-transform: uppercase; letter-spacing: .04em;
  transition: filter .2s ease;
}
.buttond:hover { filter: brightness(1.08); color: #fff; }
.buttond .bico {
  flex: 0 0 30px; align-self: stretch; background: rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
}
.buttond .btxt { padding: 8px 6px; font-size: 11px; white-space: nowrap; flex: 1 1 auto; }
.buttond.is-download { background: var(--download); }
.buttond.is-telegram { background: var(--telegram); }

.rep-line { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

/* share row */
.botones_sociales { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.botones_sociales a {
  width: 104px; min-height: 31px; border-radius: var(--radius); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600;
}
.botones_sociales a:hover { color: #fff; filter: brightness(1.1); }
.sh-fb { background: #1877f2; } .sh-tw { background: #1b1f23; } .sh-pi { background: #bd081c; }
.sh-tg { background: #229ED9; } .sh-wa { background: #25D366; }

/* ============================== EDITORIAL ================================ */
.entry { color: var(--ink); }
.entry h2 {
  font-size: 21px; text-align: start; font-weight: 700; color: var(--ink);
  margin: 28px 0 10px; position: relative; padding-bottom: 8px;
}
.entry h2::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--accent);
}
.entry h3 { font-size: 15px; font-weight: 700; color: #3a3a3a; margin: 16px 0 4px; }
.entry p { margin: 0 0 12px; }
.entry ul { margin: 0 0 12px; padding-left: 20px; }
.entry li { margin-bottom: 4px; }
.entry a { color: var(--accent-ink); text-decoration: underline; }

.box-title {
  font-size: 17px; text-transform: uppercase; color: #ababab; font-weight: 700;
  margin: 0 0 16px; position: relative; padding-bottom: 10px;
}
.box-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--accent);
}

/* lede */
.lede p { font-size: 15px; line-height: 28px; }

/* C11 card grid - tinted, never white-on-white inside a white box */
.ed-grid { display: grid; gap: 14px; margin: 6px 0 4px; }
.ed-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.ed-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.ed-card {
  background: var(--tint); border: 1px solid #e7eaf0; border-radius: var(--radius);
  padding: 16px; border-bottom: 2px solid var(--accent);
}
.ed-card .ico {
  width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.ed-card h3 { margin: 0 0 6px; font-size: 14px; }
.ed-card p { margin: 0 0 8px; }
.ed-card p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--chrome); border-radius: var(--radius); padding: 34px 30px; margin: 28px 0 10px;
  text-align: center; position: relative; overflow: hidden;
  border-bottom: 2px solid var(--accent-bright);
}
.cta-band::before {
  content: ''; position: absolute; left: 50%; top: -60%; width: 420px; height: 420px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(168,204,26,.22), transparent 68%);
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff; text-align: center; font-size: 24px; margin: 0 0 10px; padding: 0;
}
.cta-band h2::after { display: none; }
.cta-band p { color: #ccd2dc; margin: 0 auto 18px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* out-specify .entry a (C11 specificity trap) */
.entry .hx-btn, a.hx-btn {
  display: inline-block; padding: 0 26px; line-height: 42px; border-radius: var(--pill);
  font-size: 13px; font-weight: 700; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.entry .hx-btn.is-primary, a.hx-btn.is-primary { background: var(--accent-bright); color: #1b2206; }
.entry .hx-btn.is-primary:hover, a.hx-btn.is-primary:hover { background: #b9dd2b; color: #1b2206; }
.entry .hx-btn.is-ghost, a.hx-btn.is-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.entry .hx-btn.is-ghost:hover, a.hx-btn.is-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* FAQ accordion */
.faq { margin: 6px 0 10px; }
.faq details {
  background: var(--tint); border: 1px solid #e7eaf0; border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 12px 46px 12px 16px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 14px; color: var(--ink); display: inline; }
.faq summary::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--accent-soft); }
.faq .faq-a { padding: 0 16px 14px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* related row - fills the full measure (5 up at 20%), not the reference 12.5% */
.rlat .baps .bav1 { width: 20%; }

/* warning / responsible gaming */
.warn {
  background: #fff8e6; border: 1px solid #f0dca8; border-radius: var(--radius);
  padding: 14px 16px; color: #6b5412; margin-bottom: 20px;
}
.warn strong { color: #5a4610; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.rg-chips li { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--pill);
  padding: 5px 14px; font-size: 12px; }

/* =============================== FOOTER ================================== */
#footer { background: var(--chrome); border-top: 2px solid var(--accent-bright); margin-top: 26px; color: #c3c8d2; }
.footer-promo { display: flex; gap: 26px; align-items: center; padding: 28px 0; flex-wrap: wrap; }
.footer-promo img { height: 64px; width: auto; }
.footer-promo .fp-txt { flex: 1 1 320px; min-width: 0; }
.footer-promo h2 { color: #fff; font-size: 18px; margin: 0 0 6px; }
.footer-promo p { margin: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-block; padding: 0 16px; line-height: 34px; border-radius: var(--pill);
  background: rgba(255,255,255,.08); color: #e4e7ec; font-size: 12px; font-weight: 600;
}
.footer-links a:hover { background: var(--accent); color: #fff; }

.footer-cols { display: flex; flex-wrap: wrap; gap: 30px; padding: 6px 0 26px; }
.footer-cols .fc { flex: 1 1 200px; min-width: 0; }
.footer-cols h3 { color: #fff; font-size: 13px; text-transform: uppercase; margin: 0 0 10px; letter-spacing: .06em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { color: #c3c8d2; font-size: 13px; line-height: 26px; }
.footer-cols a:hover { color: var(--accent-bright); }

.disclaimer { background: var(--deep); color: #9aa1ad; font-size: 12px; padding: 16px 0 78px; }
.disclaimer p { margin: 0 0 6px; }
.disclaimer p:last-child { margin-bottom: 0; }

/* floating CTA */
.float-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90;
  background: linear-gradient(135deg, #00c6ff, #0072ff, #8e2de2, #ff0080);
  background-size: 300% 300%; animation: floatgrad 9s ease infinite;
  color: #fff; border-radius: var(--pill); padding: 0 26px; line-height: 44px;
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 26px rgba(0,0,0,.3);
  display: inline-flex; align-items: center; gap: 8px;
}
.float-cta:hover { color: #fff; }
@keyframes floatgrad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

#toTop {
  position: fixed; right: 18px; bottom: 76px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; display: none;
  align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
#toTop.is-on { display: flex; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* 404 */
.e404 { text-align: center; padding: 60px 0; }
.e404 h1 { font-size: 64px; margin: 0; color: var(--accent-ink); }

/* ============================== RESPONSIVE =============================== */
@media (max-width: 1100px) {
  .baps .bav2 { width: calc(100% / 4); }
  .ed-grid[data-cols="4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .ed-grid[data-cols="4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .container.is-row { display: block; }
  .sidebar { position: static; width: 100%; flex: none; margin-top: 20px; }
  .rlat .baps .bav1 { width: 25%; }
}
@media (max-width: 950px) {
  .baps .bav1 { width: calc(100% / 4); }
  .baps .bav2 { width: calc(100% / 3); }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 27px; }
  .ed-grid[data-cols="4"], .ed-grid[data-cols="3"] { grid-template-columns: repeat(2, 1fr); }
  #hero { padding: 54px 0 30px; }
  #hero h1 { font-size: 30px; line-height: 36px; }
  .baps .bav1, .baps .bav2 { width: calc(100% / 3); }
  .rlat .baps .bav1 { width: 33.333%; }
  h1.main-box-title { font-size: 27px; line-height: 35px; }
  .da-s > div { width: 50%; }
  .da-s > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .da-s > div:nth-child(2n) { border-right: 0; }
  .bav .title, .bav .meta { font-size: 13px; }

  .nav-toggle { display: block; }
  #header nav {
    position: absolute; left: 0; right: 0; top: 60px; background: var(--chrome);
    display: none; border-bottom: 2px solid var(--accent-bright);
  }
  #header nav.is-open { display: block; }
  #header nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  #header nav a { line-height: 46px; padding: 0 16px; }
  #header nav a.nav-cta { margin: 10px 16px; text-align: center; }
}
@media (max-width: 519px) {
  .ed-grid[data-cols="4"], .ed-grid[data-cols="3"] { grid-template-columns: 1fr; }
  .baps .bav1, .baps .bav2, .rlat .baps .bav1 { width: 50%; }
  .app-s .box { padding: 16px; }
  .app-s .s1 { flex: 1 1 100%; }
  .app-s .s1 img { margin: 0 auto; }
  .botones_sociales a { flex: 1 1 calc(50% - 6px); width: auto; }
  #hero h1 { font-size: 25px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
