/* ==========================================================================
   Diwa King - diwakingapk.net
   Layout, radii and metrics are a 1:1 clone of the ALL DIWA GAME reference
   (body class "rounded sidg aprm-2 full-width"). The palette and the two
   typefaces are this site's own; the reference accent #cc1ca8 is replaced by
   the ember vermilion below everywhere it appeared.
   ========================================================================== */

:root {
  /* palette */
  --accent:        #d4351c;
  --accent-dark:   #b02a15;
  --accent-tint:   #fdecea;
  --ink:           #1d222d;
  --ink-deep:      #13161d;
  --page:          #e6e9ef;
  --surface:       #ffffff;
  --text:          #4c4c4c;
  /* the reference uses #a7a7a7 / #ababab here; both fall under 3:1 on white,
     so they are darkened to the nearest grey that clears WCAG AA (C10 > D5) */
  --text-soft:     #767676;
  --text-mid:      #767676;
  --rule:          #eaeaea;
  --shadow:        2px 2px 2px 0 #e3e3e3;
  --dl-green:      #5edd1f;   /* reference green; paired with ink text for AA */
  --tg-blue:       #006fa7;

  /* radius system */
  --r-card: 20px;
  --r-pill: 50px;
  --r-icon: 25px;

  /* type */
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --font-disp: 'Outfit', 'Helvetica Neue', sans-serif;

  /* shared measure: header, content, footer and the disclaimer band all use it */
  --measure: 1220px;
  --gutter:  15px;
  --sidebar: 300px;

  --t: 200ms cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 13px/25px var(--font-body);
}

@media (max-width: 767px) { body { font-size: 16px; line-height: 27px; } }

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; cursor: pointer; transition: color var(--t); }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }

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

.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;
}

.clear { clear: both; }

/* --------------------------------------------------------------- measure */
/* Every bounded block shares these two edges. Nothing inside gets a
   narrower max-width of its own. */
.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.container.is-block { display: block; }

/* ---------------------------------------------------------------- header */
#header {
  background: var(--ink);
  border-bottom: 2px solid var(--accent);
  height: 60px;
}
#header .container {
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font: 700 22px/1 var(--font-disp);
  letter-spacing: -.02em;
  color: #fff;
}
.wordmark b { color: var(--accent); font-weight: 700; }
#header .logo a { display: inline-flex; align-items: center; height: 44px; }

#header nav ul.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#header nav ul.menu a {
  display: block;
  padding: 0 12px;
  line-height: 34px;
  color: #cfd4de;
  font: 600 13px/34px var(--font-body);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
#header nav ul.menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
#header nav ul.menu li.current-menu-item > a { color: #fff; background: var(--accent); }
#header nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0 16px !important;
}
#header nav .nav-cta:hover { background: var(--accent-dark); }

.menu-open {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 6px;
  border-radius: 10px;
}

#menu-mobile {
  background: var(--ink-deep);
  border-bottom: 2px solid var(--accent);
}
#menu-mobile ul { list-style: none; margin: 0; padding: 8px var(--gutter); }
#menu-mobile a {
  display: block;
  padding: 11px 6px;
  color: #cfd4de;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
#menu-mobile li.current-menu-item > a { color: var(--accent); }

/* ------------------------------------------------------------------ hero */
#subheader {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 90px 0 40px;
  text-align: center;
}
#subheader .imgbg { position: absolute; inset: 0; }
#subheader .imgbg img {
  width: 120%;
  height: 100%;
  margin-left: -10%;
  object-fit: cover;
  opacity: .3;
}
#subheader::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .8) 100%);
}
#subheader .subcontainer {
  position: relative;
  z-index: 2;
  width: 730px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
}
#subheader h1 {
  margin: 0 0 6px;
  font: 300 40px/46px var(--font-disp);
  color: #fff;
}
#subheader h2 {
  margin: 0 0 22px;
  font: 300 16px/30px var(--font-body);
  color: #e6e9ef;
}

/* compact band on inner templates */
#subheader.np {
  padding: 18px 0;
  background: var(--ink);
  border-radius: 0 0 var(--r-card) var(--r-card);
}
#subheader.np::after { display: none; }
#subheader.np .subcontainer { width: 730px; }

#subheader.page-hero { padding: 54px 0 34px; background: #000; }
#subheader.page-hero::after { display: block; }
#subheader.page-hero h1 { font-size: 34px; line-height: 42px; font-weight: 300; }
#subheader.page-hero #breadcrumbs { justify-content: center; color: #c9cedb; }
#subheader.page-hero #breadcrumbs a { color: #fff; }

/* search */
#searchBox { width: 600px; max-width: 100%; margin: 0 auto; position: relative; }
#searchBox form { display: flex; gap: 8px; }
.sb_search {
  flex: 1 1 auto;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: #f2f2f2;
  color: #222;
  font: 400 16px/44px var(--font-body);
}
.sb_search::placeholder { color: #6d6d6d; }
.sb_submit {
  flex: 0 0 70px;
  width: 70px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--t);
}
.sb_submit:hover { background: var(--accent-dark); }

.sb-results, .w-results {
  position: absolute;
  z-index: 30;
  left: 0; right: 0;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  text-align: left;
  max-height: 320px;
  overflow: auto;
}
.sb-results a, .w-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #444;
  font-weight: 600;
}
.sb-results a:hover, .w-results a:hover { background: var(--accent-tint); color: var(--accent-dark); }
.sb-results img, .w-results img { width: 32px; height: 32px; border-radius: 8px; }
.sb-results .none, .w-results .none { padding: 9px 10px; color: var(--text-soft); }

/* category icon row */
.cat-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.cat-icons a { display: grid; justify-items: center; gap: 6px; color: #e6e9ef; }
.cat-icons .ci {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: .5;
  color: #fff;
  transition: opacity var(--t), transform var(--t);
}
.cat-icons a:hover .ci { opacity: 1; transform: translateY(-2px); }
.cat-icons em { font-style: normal; font-size: 12px; font-weight: 600; }
.ci-0 { background: #d4351c; } .ci-1 { background: #0e7c86; } .ci-2 { background: #b4841c; }
.ci-3 { background: #2d6a4f; } .ci-4 { background: #8a2846; } .ci-5 { background: #2b4b8f; }
.cat-icons .ic { width: 20px; height: 20px; }

/* ----------------------------------------------------------------- main */
#main-site { padding: 20px 0 30px; }
.sections { flex: 1 1 auto; min-width: 0; }
.app-s     { flex: 1 1 auto; min-width: 0; }

#sidebar {
  flex: 0 0 var(--sidebar);
  width: var(--sidebar);
  position: sticky;
  top: 20px;
  align-self: flex-start;
}
#sidebar > ul { list-style: none; margin: 0; padding: 0; }
.widget {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 20px;
}
.w-title {
  font: 400 17px/1.3 var(--font-disp);
  text-transform: uppercase;
  color: var(--text-mid);
  letter-spacing: .04em;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 10px;
}
.w-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background: var(--accent);
}
.w-search { display: flex; gap: 6px; }
.w-search input {
  flex: 1 1 auto; min-width: 0;
  height: 38px; padding: 0 14px;
  border: 1px solid #e2e5ec;
  border-radius: var(--r-pill);
  background: #f7f8fa;
  font: 400 14px/38px var(--font-body);
  color: #222;
}
.w-search button {
  flex: 0 0 44px; height: 38px;
  border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.w-search .ic { width: 18px; height: 18px; }
.widget { position: relative; }
.w-list, .w-cats { list-style: none; margin: 0; padding: 0; }
.w-list a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #444; font-weight: 600; }
.w-list img { width: 40px; height: 40px; border-radius: 12px; }
.w-cats a { display: block; padding: 7px 0; border-bottom: 1px solid var(--rule); color: #555; font-weight: 600; }
.w-cats li:last-child a { border-bottom: 0; }

/* -------------------------------------------------------------- sections */
.section { margin-bottom: 26px; }
.title-section {
  font: 400 22px/1.3 var(--font-disp);
  color: #3b3b3b;
  margin: 3px 10px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

/* 6-column grid. The reference uses no gutter: the 10px cell padding around a
   145px cell makes the gap, and the white surface sits on the inner wrapper. */
.baps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}
/* display:contents would beat the [hidden] attribute, so hide it explicitly */
.baps > .more-wrap { display: contents; }
.baps > .more-wrap[hidden] { display: none; }
.baps.top3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.baps.rel-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bav { padding: 10px; background: none; }
.bav-in {
  height: 100%;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.bav:hover .bav-in { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(29, 34, 45, .16); }
.bav1 > .bav-in > a { display: block; padding: 15px 15px 10px; text-align: center; color: inherit; }
.bav .bloque-imagen { border-radius: var(--r-card); overflow: hidden; }
.bav1 .bloque-imagen img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.bav .title {
  display: block;
  margin-top: 8px;
  height: 20px;
  font: 600 14px/20px var(--font-body);
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bav .version, .bav .developer {
  display: block;
  height: 18px;
  font: 400 12px/18px var(--font-body);
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-postmeta { margin-top: 6px; min-width: 0; }
/* the rating number and the vote count are siblings inside .box-rating, so the
   wrapping row lives here; without it they run together in a narrow cell */
.bav .box-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 6px;
  min-width: 0;
}
.card-cta {
  display: block;
  margin: 0 10px 12px;
  border-radius: var(--r-card);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font: 700 11px/30px var(--font-body);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-align: center;
  transition: background var(--t), color var(--t);
}
.card-cta:hover { background: var(--accent); color: #fff; }

/* wide top-rated tiles */
.bav2 > .bav-in > a { display: flex; gap: 12px; padding: 15px; align-items: center; color: inherit; }
.bav2 .bloque-imagen { flex: 0 0 75px; }
.bav2 .bloque-imagen img { width: 75px; height: 75px; object-fit: cover; display: block; }
.bav2 .bap-c { min-width: 0; flex: 1 1 auto; }
.bav2 .title { font-size: 15px; }
.bav2 .box-rating { justify-content: flex-start; }

/* star rating: a repeating star mask over a grey track and a gold fill */
.rating {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  width: 75px;
  height: 14px;
  background: #d5d8e0;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2l2.9 6.2 6.6.9-4.8 4.7 1.2 6.7L12 17.3 5.9 20.5l1.2-6.7L2.3 9.1l6.6-.9z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2l2.9 6.2 6.6.9-4.8 4.7 1.2 6.7L12 17.3 5.9 20.5l1.2-6.7L2.3 9.1l6.6-.9z"/></svg>');
  -webkit-mask-size: 15px 14px;
          mask-size: 15px 14px;
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
}
.rating .stars { position: absolute; inset: 0 auto 0 0; background: #f0a202; display: block; }
.rating-average, .rating-text { font-size: 11px; color: var(--text-soft); white-space: nowrap; }
.bav .rating-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rating-average b { color: #555; }

/* VIEW MORE */
.more-p { text-align: center; margin: 18px 0 0; }
.more {
  width: 225px;
  max-width: 100%;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font: 700 13px/40px var(--font-body);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background var(--t), transform var(--t);
}
.more:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------------------------------------------------------- single page */
.box {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 20px 25px;
  margin-bottom: 20px;
}
.app-s .box { display: flow-root; }

#breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.meta-cats ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.meta-cats a {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--r-card);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1.main-box-title {
  margin: 0 0 4px;
  font: 700 38px/48px var(--font-disp);
  color: var(--text);
}
.app-spe .version { display: block; font-size: 12px; color: var(--text-soft); text-transform: uppercase; }

/* detail-page badge: static, never absolute */
.b-type {
  position: static;
  display: inline-block;
  margin-top: 8px;
  padding: 2px 12px;
  border-radius: var(--r-card);
  font: 700 11px/20px var(--font-body);
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
}
.b-type.hot { background: #b4841c; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; }
.tags li {
  padding: 3px 12px;
  border-radius: var(--r-card);
  background: #f2f4f8;
  border: 1px solid #e2e5ec;
  font-size: 12px;
  color: #5a5a5a;
}
.descripcion { margin-bottom: 14px; }

/* icon column: emitted after the title block in the DOM, floated left */
.app-s .s1 {
  float: left;
  width: 150px;
  margin: 0 20px 14px 0;
  order: -1;
}
.app-s .s2 { overflow: hidden; }
.app-s .image-single {
  width: 150px; height: 150px;
  border-radius: var(--r-icon);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
}
.buttond {
  position: relative;
  display: block;
  margin-top: 10px;
  min-height: 33px;
  padding: 8px 5px 8px 38px;
  border-radius: var(--r-card);
  font: 700 12px/17px var(--font-body);
  color: #fff !important;
  text-transform: uppercase;
  transition: filter var(--t), transform var(--t);
}
.buttond:hover { filter: brightness(1.07); transform: translateY(-1px); }
.buttond .ic {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 30px; height: auto;
  padding: 6px;
  background: rgba(0, 0, 0, .1);
  border-radius: var(--r-card) 0 0 var(--r-card);
}
.downloadAPK { background: var(--dl-green); color: var(--ink) !important; }
.downloadAPK .ic { background: rgba(0, 0, 0, .12); }
.buttond.t   { background: var(--tg-blue); }
.app-s .box-rating { margin-top: 12px; display: block; font-size: 11px; }
.link-report { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--text-soft); }
.ic.sm { width: 14px; height: 14px; }

/* info table: three cells per row */
.box-data-app {
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 14px;
}
.data-app { display: flex; flex-wrap: wrap; }
.da-s {
  width: 33.333%;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-size: 12px;
}
.da-s b { display: block; color: var(--text-mid); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.da-get { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }

/* share row */
.botones_sociales { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.botones_sociales a {
  display: block;
  width: 104px;
  min-height: 31px;
  border-radius: var(--r-card);
  color: #fff !important;
  font: 600 11px/31px var(--font-body);
  text-align: center;
  transition: filter var(--t);
}
.botones_sociales a:hover { filter: brightness(1.1); }
.botones_sociales .facebook  { background: #1877f2; }
.botones_sociales .twitter   { background: #14171a; }
.botones_sociales .pinterest { background: #bd081c; }
.botones_sociales .telegram  { background: var(--tg-blue); }
.botones_sociales .whatsapp  { background: #128c4a; }

.box-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font: 700 17px/1.3 var(--font-disp);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-mid);
}
.box-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background: var(--accent);
}

/* ------------------------------------------------------------- editorial */
.entry { color: var(--text); }
.entry h2, .entry .ed-head {
  margin: 26px 0 10px;
  font: 700 21px/1.35 var(--font-disp);
  color: #3b3b3b;
  text-align: start;
}
.entry .ed-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.entry .ed-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 44px; height: 2px; background: var(--accent);
}
.entry h3 { margin: 18px 0 6px; font: 600 16px/1.4 var(--font-disp); color: #444; }
.entry h4 { margin: 14px 0 6px; font: 600 14px/1.4 var(--font-disp); color: #555; }
.entry p  { margin: 0 0 12px; }
.entry ul { margin: 0 0 14px; padding-left: 20px; }
.entry li { margin-bottom: 6px; }
.entry a  { color: var(--accent); text-decoration: underline; }

.ed-lede p:first-child { font-size: 15px; line-height: 27px; color: #3f3f3f; }
.ed-lede h2 { margin-top: 0; }

.tbl-wrap { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--rule); margin: 0 0 18px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 13px; }
.entry th {
  text-align: left;
  background: #f4f6fa;
  color: #3b3b3b;
  font: 700 12px/1.4 var(--font-body);
  text-transform: uppercase;
  padding: 10px 14px;
}
.entry td { padding: 10px 14px; border-top: 1px solid var(--rule); }

/* editorial card grid: tinted so it does not vanish on the white box */
.ed-grid { display: grid; gap: 14px; margin: 0 0 20px; }
.ed-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ed-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ed-card {
  background: #f7f8fa;
  border: 1px solid #e4e7ee;
  border-bottom: 2px solid var(--accent);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 16px;
}
.ed-ic {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.ed-ic .ic { width: 20px; height: 20px; }
.ed-card h3 { margin: 0 0 8px; font-size: 15px; }
.ed-card p:last-child, .ed-card ul:last-child { margin-bottom: 0; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; margin: 0 0 20px; }
.faq-i {
  background: #f7f8fa;
  border: 1px solid #e4e7ee;
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-i > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.faq-i > summary::-webkit-details-marker { display: none; }
.faq-i > summary::marker { content: ""; }
.faq-i summary h3 { margin: 0; flex: 1 1 auto; font-size: 15px; color: #3b3b3b; }
.faq-chev {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  color: var(--accent);
  transform: rotate(90deg);
  transition: transform var(--t);
}
.faq-i[open] .faq-chev { transform: rotate(-90deg); }
.faq-i[open] > summary { background: var(--accent-tint); }
.faq-a { padding: 0 16px 14px; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }

/* CTA band */
.ed-cta {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-radius: var(--r-card);
  padding: 34px 30px;
  text-align: center;
  color: #d7dbe4;
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
}
.ed-cta::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 420px; height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 53, 28, .55) 0%, transparent 68%);
  pointer-events: none;
}
.ed-cta > * { position: relative; }
.ed-cta h2 {
  margin: 0 0 10px;
  font: 600 26px/1.3 var(--font-disp);
  color: #fff;
  text-align: center;   /* .entry h2 sets text-align:start; override explicitly */
  border: 0;
}
.ed-cta h2::after { display: none; }
.ed-cta p { margin: 0 auto 8px; }
.ed-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* scoped so .entry a cannot win and paint the label accent-on-accent */
.entry a.hx-btn, a.hx-btn, .ed-cta a.hx-btn {
  display: inline-block;
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font: 700 13px/42px var(--font-body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background var(--t), transform var(--t);
}
.entry a.hx-btn:hover, a.hx-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.entry a.hx-btn.ghost, a.hx-btn.ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.entry a.hx-btn.ghost:hover, a.hx-btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.nf-box { text-align: center; }
.nf-box h1.main-box-title { font-size: 72px; line-height: 1.1; color: var(--accent); }
.nf-box .box-title::after { left: 50%; transform: translateX(-50%); }

/* ---------------------------------------------------------------- footer */
#footer {
  background: var(--ink);
  border-top: 2px solid var(--accent);
  color: #aeb5c2;
  padding: 34px 0 26px;
  margin-top: 10px;
}
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.f-brand .wordmark { display: block; margin-bottom: 10px; }
.f-brand p { margin: 0 0 14px; }
.f-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-trust li { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.f-trust .ic { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; }
.f-title {
  font: 600 13px/1.4 var(--font-disp);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  margin-bottom: 12px;
}
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links a { display: block; padding: 4px 0; color: #aeb5c2; font-size: 13px; }
.f-links a:hover { color: var(--accent); }

#disclaimer-band { background: var(--ink-deep); color: #7d8496; padding: 20px 0 26px; }
#disclaimer-band p { margin: 0 0 8px; font-size: 12px; line-height: 22px; }
#disclaimer-band b { color: var(--accent); }
.f-copy { color: #616776; }

#backtotop {
  position: fixed;
  right: 18px; bottom: 90px;
  z-index: 40;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
#backtotop.on { opacity: 1; visibility: visible; transform: none; }

.tg-center-btn {
  position: fixed;
  z-index: 40;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #00c6ff, #0072ff, #d4351c, #ff0080);
  background-size: 300% 300%;
  animation: ctaflow 8s ease infinite;
  color: #fff !important;
  font: 700 13px/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}
.tg-center-btn .ic { width: 18px; height: 18px; }
@keyframes ctaflow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* card reveal */
.js .bav.reveal .bav-in { opacity: 0; transform: translateY(12px); }
.js .bav.reveal.in .bav-in { opacity: 1; transform: none; transition: opacity 320ms ease, transform 320ms ease; }

/* ----------------------------------------------------------- breakpoints */
@media (max-width: 1200px) {
  .baps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  /* only the content row stacks; the header bar stays a row */
  #main-site .container { flex-direction: column; }
  #sidebar { position: static; width: 100%; flex: 1 1 auto; }
  #sidebar > ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .widget { margin-bottom: 0; }
  .baps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .baps.rel-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  #header nav ul.menu { display: none; }
  #header nav ul.menu.on {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 60px;
    z-index: 50;
    background: var(--ink-deep);
    border-bottom: 2px solid var(--accent);
    padding: 8px var(--gutter);
    gap: 0;
  }
  #header nav ul.menu.on a { line-height: 42px; border-radius: 10px; }
  #header { position: relative; }
  .menu-open { display: grid; place-items: center; }
  h1.main-box-title { font-size: 28px; line-height: 36px; }
  #subheader h1 { font-size: 32px; line-height: 40px; }
}
@media (max-width: 767px) {
  #subheader { padding: 48px 0 30px; }
  .baps, .baps.top3, .baps.rel-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-grid.cols-3, .ed-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  #sidebar > ul { grid-template-columns: 1fr; }
  .box { padding: 16px; }
  .da-s { width: 50%; }
  .app-s .s1 { float: none; width: 100%; margin: 0 0 14px; display: grid; justify-items: center; }
  .app-s .image-single { margin: 0 auto; }
  .buttond { max-width: 260px; margin-left: auto; margin-right: auto; width: 100%; }
  .botones_sociales a { width: calc(50% - 3px); }
  .f-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 519px) {
  .ed-grid.cols-3, .ed-grid.cols-4 { grid-template-columns: 1fr; }
  .baps.top3 { grid-template-columns: 1fr; }
  .cat-icons { gap: 12px; }
  .tg-center-btn { font-size: 12px; padding: 10px 18px; }
}

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