/* =========================================================================
   diwaplaygame.net
   Appyn-reference clone (body class: rounded / sidg / full-width),
   re-coloured to the Diwa Play cyan palette.
   Measured against the reference at 1440: 13px/25 Open Sans, #e6e9ef ground,
   white cards, 2px 2px 2px #e3e3e3 shadow, 20px / 50px / 25px radius system.
   ========================================================================= */

:root {
  /* surfaces */
  --page:        #e6e9ef;
  --surface:     #ffffff;
  --tint:        #f7f8fa;
  --line:        #eaeaea;
  --line-soft:   #e3e6ec;
  --shadow:      2px 2px 2px 0 #e3e3e3;
  --shadow-lift: 0 6px 18px 0 rgba(20, 28, 44, .14);

  /* ink */
  --ink:         #4c4c4c;
  --ink-strong:  #333840;
  --muted:       #63666c;   /* 4.73:1 on the page ground, 5.42 on tint, 5.76 on white */

  /* chrome */
  --chrome:      #1d222d;
  --chrome-deep: #13161d;
  --chrome-ink:  #d8dbe2;
  --chrome-line: #2a3140;

  /* accent — indigo / periwinkle (hue 247)
     Two stops, because one indigo cannot both read on the #1d222d chrome and
     carry white text: --accent is the light periwinkle used for decorative
     chrome (4.87:1 on the header, 3.27:1 on white for 2-3px rules), while
     --accent-fill / --accent-text are the dark stops that carry or are text. */
  --accent:      #8b7cff;   /* decorative chrome: rules, borders, glows */
  --accent-fill: #5346d6;   /* any surface that carries white text — 6.53:1 */
  --accent-deep: #3b2fb8;
  --accent-soft: #edebfe;
  --accent-text: #4338ca;   /* accent text on white — 7.9:1 */

  /* action colours carried over from the reference */
  --dl:          #5edd1f;
  --dl-ink:      #0b3d08;
  --dl-deep:     #4cbb16;
  --tg:          #006fa7;
  --tg-deep:     #005b8a;

  /* radius system */
  --r-box:       20px;
  --r-pill:      50px;
  --r-icon:      25px;
  --r-meta:      0 0 20px 20px;

  --measure:     1220px;
  --gutter:      10px;
  --side:        300px;
  --t:           200ms cubic-bezier(.4, 0, .2, 1);
}

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

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

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

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--t); cursor: pointer; }
a:hover { color: var(--accent-deep); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); }

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

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent-fill); color: #fff; padding: 10px 18px;
  border-radius: var(--r-pill); font-weight: 700; transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }

.ic { width: 24px; height: 24px; display: block; flex: none; }

/* ------------------------------------------------------------- the measure
   Header, content, footer and the disclaimer band share one container, so
   every bounded block on every template lines up on the same two edges. */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =============================================================== header === */
#header {
  background: var(--chrome);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 60;
}
#header .container {
  height: 58px;   /* + the 2px accent border = the reference's 60px header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#header .logo a { display: block; line-height: 0; }
#header .logo img {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  border-radius: 10px;
}
#header nav { display: flex; align-items: center; }
#header nav ul.menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
#header nav ul.menu > li > a {
  display: block;
  position: relative;
  padding: 0 14px;
  line-height: 56px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: color var(--t);
}
#header nav ul.menu > li > a::before {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--t);
}
#header nav ul.menu > li > a:hover { color: var(--accent); }
#header nav ul.menu > li > a:hover::before,
#header nav ul.menu > li.current-menu-item > a::before { transform: scaleX(1); }
#header nav ul.menu > li.current-menu-item > a { color: var(--accent); }

#header .menu-cta a {
  background: var(--accent-fill);
  color: #fff;
  border-radius: var(--r-pill);
  line-height: 34px;
  padding: 0 18px;
  margin-left: 8px;
  font-weight: 700;
}
#header .menu-cta a::before { display: none; }
#header .menu-cta a:hover { background: var(--accent-deep); color: #fff; }
#header nav ul.menu > li.menu-cta.current-menu-item > a,
#header nav ul.menu > li.menu-cta > a { color: #fff; }
#header nav ul.menu > li.menu-cta.current-menu-item > a { background: var(--accent-deep); }

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

/* ============================================================ hero band === */
#subheader {
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid var(--accent);
  padding: 90px 0 40px;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}
#subheader .imgbg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#subheader .imgbg img {
  width: 120%;
  height: 100%;
  margin-left: -10%;
  object-fit: cover;
  opacity: .3;
}
#subheader::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 15%, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .78) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .8));
}
#subheader .subcontainer {
  position: relative;
  z-index: 2;
  width: 730px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
#subheader h1,
#subheader .hero-title {
  margin: 0;
  padding: 0 0 20px;
  font-size: 40px;
  line-height: 46px;
  font-weight: 300;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .7);
}
#subheader h1 b,
#subheader .hero-title b { font-weight: 700; color: var(--accent); }
#subheader h2 {
  margin: 0;
  font-size: 16px;
  line-height: 30px;
  font-weight: 300;
  color: #fff;
}

/* compact band on inner templates */
#subheader.np {
  padding: 26px 0 26px;
  margin-bottom: 20px;
  border-radius: var(--r-meta);
  border-bottom: 0;
}
#subheader.np h1,
#subheader.np .np-title {
  font-size: 26px;
  line-height: 34px;
  font-weight: 300;
  letter-spacing: .5px;
  color: #fff;
  padding: 0 0 10px;
  margin: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .7);
}
#subheader.np #searchBox { margin-top: 16px; }

/* search box */
#searchBox {
  position: relative;
  width: 600px;
  max-width: 100%;
  margin: 30px auto 0;
  display: flex;
}
#searchBox form { display: flex; width: 100%; }
.sb_search {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0 90px 0 20px;
  margin-right: -70px;
  font-family: inherit;
  font-size: 16px;
  color: #43454b;
  background: #f2f2f2;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
}
.sb_search::placeholder { color: #8a8f98; }
.sb_submit {
  width: 70px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.sb_submit:hover { background: var(--accent-deep); }

/* live search results */
#searchBox .sb-results {
  position: absolute;
  top: 52px; left: 0; right: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border-radius: var(--r-box);
  box-shadow: var(--shadow-lift);
  text-align: left;
  max-height: 340px;
  overflow: auto;
}
#searchBox .sb-results[hidden] { display: none; }
#searchBox .sb-results li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 13px;
}
#searchBox .sb-results li a:hover,
#searchBox .sb-results li a:focus-visible { background: var(--accent-soft); color: var(--accent-deep); }
#searchBox .sb-results img { width: 34px; height: 34px; border-radius: 9px; }
#searchBox .sb-results .sb-empty { padding: 10px 12px; color: var(--muted); }

/* category icon row */
.cat-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 26px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}
.cat-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.cat-row .cat-ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: .5;
  transition: opacity var(--t), transform var(--t);
  color: #fff;
}
.cat-row a:hover .cat-ic,
.cat-row a:focus-visible .cat-ic { opacity: 1; transform: translateY(-2px); }
.cat-row a:hover, .cat-row a:focus-visible { color: var(--accent); }
.cat-row .c1 { background: #5346d6; }
.cat-row .c2 { background: #f5a300; }
.cat-row .c3 { background: #e0457b; }
.cat-row .c4 { background: #5e5ce6; }
.cat-row .c5 { background: #2fb344; }
.cat-row .c6 { background: #ef6c3a; }
.cat-row .c7 { background: #0f9bd7; }

/* ============================================================== layout === */
#main-site { display: block; padding-bottom: 10px; }
#main-site .container { display: flex; align-items: flex-start; }
#main-site .container.is-block { display: block; }
.sections, .app-s { flex: 1 1 auto; min-width: 0; }

#sidebar {
  width: var(--side);
  flex: 0 0 var(--side);
  margin-left: 20px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

/* ======================================================= section heads === */
.title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 10px 10px;
  padding: 0 0 10px;
  font-size: 22px;
  line-height: 31px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.title-section > span:not(.ts-count), .title-section > h1 { position: relative; padding-bottom: 10px; }
.title-section > h1 {
  margin: 0;
  font-size: 22px;
  line-height: 31px;
  font-weight: 400;
  color: var(--ink);
}
.title-section > span:not(.ts-count)::after, .title-section > h1::after {
  content: '';
  position: absolute;
  left: 0; bottom: -11px;
  width: 34px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.title-section .ts-count { font-size: 12px; color: var(--muted); font-weight: 600; }

.section { margin-bottom: 26px; }

/* ================================================================ cards === */
.baps { display: flex; flex-wrap: wrap; }

.bav1 { width: 16.6667%; padding: 10px; }
.bav-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--r-box);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.bav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.bav-main {
  display: block;
  padding: 15px 15px 12px;
  text-align: center;
  color: var(--ink);
  flex: 1 1 auto;
}
.bav1 .bloque-imagen { display: block; }
.bav1 .bloque-imagen img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.bav1 .title {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  min-height: 40px;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bav1 .version, .bav1 .developer {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bav1 .version span { color: var(--accent-text); font-weight: 700; }
.bav1 .developer { margin-top: 2px; }
.bav-main:hover .title { color: var(--accent-text); }

.px-postmeta {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 30px;
  white-space: nowrap;
  color: #fff;
  background: var(--accent-fill);
  border-radius: var(--r-meta);
  transition: background var(--t);
}
.px-postmeta:hover { background: var(--accent-deep); color: #fff; }

/* wide "Top rated" tile */
.bav2 { width: 33.3333%; padding: 10px; }
.bav2 > a {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
  padding: 15px;
  background: var(--surface);
  border-radius: var(--r-box);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform var(--t), box-shadow var(--t);
}
.bav2 > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.bav2 .bloque-imagen.w75 { flex: none; }
.bav2 .bloque-imagen.w75 img {
  width: 75px; height: 75px;
  border-radius: var(--r-box);
  object-fit: cover;
  display: block;
}
.bav2 .bap-c { min-width: 0; display: block; }
.bav2 .title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bav2 .version, .bav2 .developer {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.bav2 .version span { color: var(--accent-text); font-weight: 700; }
.bav2 > a:hover .title { color: var(--accent-text); }

/* VIEW MORE pill */
.viewmore { text-align: center; padding: 6px 10px 20px; }
.viewmore a {
  display: inline-block;
  width: 225px;
  max-width: 100%;
  line-height: 40px;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: background var(--t), transform var(--t);
}
.viewmore a:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }

/* ============================================================== boxes ==== */
.box {
  background: var(--surface);
  border-radius: var(--r-box);
  box-shadow: var(--shadow);
  padding: 20px 25px;
  margin: 0 0 20px;
}
.box-title {
  position: relative;
  display: block;
  margin: -20px 0 15px;
  padding: 15px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}
.box-title::before {
  content: '';
  position: absolute;
  left: -25px; bottom: -.5px;
  width: calc(100% + 50px);
  border-bottom: 1px solid var(--line);
}
.box-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 34px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ================================================= APK single template === */
.app-head { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.app-head-main { flex: 1 1 320px; min-width: 0; order: 1; }
.app-icb.s1 { order: -1; width: 150px; flex: 0 0 150px; }

.image-single {
  width: 150px; height: 150px;
  border-radius: var(--r-icon);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
#breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}
#breadcrumbs a { color: var(--muted); }
#breadcrumbs a:hover { color: var(--accent-text); }
#breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: #c6c6c6; }

h1.main-box-title {
  display: block;
  margin: 0 7px 0 0;
  font-size: 38px;
  line-height: 48px;
  font-weight: 700;
  color: var(--ink);
}
.app-spe .version {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}
.meta-cats { margin: 8px 0 0; }
.meta-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.meta-cats a {
  display: inline-block;
  padding: 2px 10px 3px;
  border-radius: var(--r-box);
  background: var(--accent-fill);
  color: #fff;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  transition: background var(--t);
}
.meta-cats a:hover { background: var(--accent-deep); color: #fff; }
.descripcion {
  margin: 14px 0 6px;
  font-size: 13px;
  line-height: 21px;
  text-align: justify;
  color: var(--ink);
}

.buttond {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-height: 33px;
  margin-top: 10px;
  padding: 8px 5px 8px 38px;
  border-radius: var(--r-box);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
}
.buttond .bd-ic {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .1);
  border-radius: var(--r-box) 0 0 var(--r-box);
}
.buttond .bd-ic .ic { width: 16px; height: 16px; }
.buttond.downloadAPK { background: var(--dl); color: var(--dl-ink); }
.buttond.downloadAPK:hover { background: var(--dl-deep); color: var(--dl-ink); transform: translateY(-2px); }
.buttond.t { background: var(--tg); color: #fff; }
.buttond.t:hover { background: var(--tg-deep); color: #fff; transform: translateY(-2px); }

.app-badge {
  position: static;              /* C7: never absolute on the detail page */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.app-badge .ic { width: 14px; height: 14px; }

.link-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.link-report .ic { width: 14px; height: 14px; }

.box-data-app {
  margin-top: 16px;
  border-radius: var(--r-box);
  background: var(--tint);
  border: 1px solid var(--line-soft);
  padding: 6px 14px 14px;
  display: flex;
  flex-wrap: wrap;
}
.da-s {
  width: 33.3333%;
  margin-top: 8px;
  padding: 0 10px 0 0;
  font-size: 13px;
  line-height: 18px;
}
.da-s b { display: block; font-weight: 700; color: var(--ink); }
.da-s span, .da-s a { color: var(--muted); }
.da-s a { color: var(--accent-text); }
.da-s .gp { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.da-s .gp .ic { width: 18px; height: 18px; }

.box-social { margin-top: 16px; }
.botones_sociales {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.botones_sociales a {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 104px;
  min-height: 31px;
  padding: 0 10px;
  border-radius: var(--r-box);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  color: #fff;
  transition: filter var(--t), transform var(--t);
}
.botones_sociales a .ic { width: 15px; height: 15px; }
.botones_sociales a:hover { filter: brightness(1.12); color: #fff; transform: translateY(-2px); }
.botones_sociales .facebook  { background: #3b5a9b; }
.botones_sociales .twitter   { background: #14171a; }
.botones_sociales .pinterest { background: #b2071d; }
.botones_sociales .telegram  { background: #1a6f9f; }
.botones_sociales .whatsapp  { background: #157b40; }

/* ============================================================== entry ==== */
.entry { font-size: 14px; line-height: 25px; color: var(--ink); }
.entry > *:first-child { margin-top: 0; }
.entry h2 {
  margin: 20px 0;
  font-size: 21px;
  line-height: 29px;
  font-weight: 700;
  text-align: start;
}
.entry h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  line-height: 25px;
  font-weight: 700;
  text-align: start;
}
.entry h4 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; }
.entry p { margin: 0 0 15px; }
.entry ul { margin: 0 0 20px 15px; padding-left: 18px; }
.entry ul li { margin-bottom: 5px; }
.entry ul li::marker { color: var(--accent); }
.entry a { color: var(--accent-text); text-decoration: underline; }

/* ==================================================== editorial engine === */
.ed { font-size: 14px; line-height: 25px; }
.ed-lede { margin-bottom: 8px; }
.ed-lede h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 40px;
  font-weight: 800;
  color: var(--ink-strong);
}
.ed-lede p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 27px;
  color: var(--ink);
}
.ed-section, .ed-faq { margin: 30px 0; }
.ed-head { margin-bottom: 14px; }
.ed-head h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 29px;
  font-weight: 700;
  text-align: start;
}
.ed-rule {
  display: block;
  width: 34px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.ed-intro p { margin: 0 0 12px; }
.ed-intro ul { margin: 0 0 14px; padding-left: 20px; }

.ed-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.ed-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ed-card {
  background: var(--tint);              /* tinted, never white-on-white */
  border: 1px solid var(--line-soft);
  border-bottom: 2px solid var(--accent);
  border-radius: var(--r-box);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform var(--t), box-shadow var(--t);
}
.ed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.ed-badge .ic { width: 20px; height: 20px; }
.ed-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 23px;
  font-weight: 700;
  color: var(--ink-strong);
}
.ed-card-body p { margin: 0 0 10px; }
.ed-card-body p:last-child { margin-bottom: 0; }
.ed-card-body ul { margin: 0 0 6px; padding-left: 18px; }

/* CTA band */
.ed-cta {
  position: relative;
  overflow: hidden;
  margin: 34px 0 10px;
  padding: 32px 28px;
  border-radius: var(--r-box);
  background: var(--chrome);
  color: var(--chrome-ink);
  text-align: center;
}
.ed-cta::before {
  content: '';
  position: absolute;
  left: 50%; top: -110px;
  width: 420px; height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 124, 255, .45), transparent 70%);
  pointer-events: none;
}
.entry .ed-cta h2, .ed-cta h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 33px;
  font-weight: 800;
  color: #fff;
  text-align: center;          /* .entry h2 sets text-align:start — override here */
}
.ed-cta p {
  position: relative;
  margin: 0 auto 10px;
  color: var(--chrome-ink);
}
.ed-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
/* out-specify `.entry a` so the label never renders accent-on-accent */
.entry a.hx-btn, a.hx-btn, .ed-cta a.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t), transform var(--t), color var(--t);
}
.entry a.hx-btn .ic, a.hx-btn .ic { width: 18px; height: 18px; }
.entry a.hx-btn-primary, a.hx-btn-primary { background: var(--accent); color: #0d0a3a; }
.entry a.hx-btn-primary:hover, a.hx-btn-primary:hover {
  background: #a79bff; color: #0d0a3a; transform: translateY(-2px);
}
.entry a.hx-btn-ghost, a.hx-btn-ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .45);
}
.entry a.hx-btn-ghost:hover, a.hx-btn-ghost:hover {
  background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; transform: translateY(-2px);
}

/* FAQ accordion */
.faq-list { margin-top: 14px; }
.faq-item {
  background: var(--tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-box);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item[open] { border-bottom: 2px solid var(--accent); }
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }
.faq-item > summary h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  font-weight: 700;
  color: var(--ink-strong);
  text-align: start;
}
.faq-chevron {
  flex: none;
  display: flex;
  color: var(--accent-deep);
  transition: transform var(--t);
}
.faq-item[open] > summary .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 18px 14px; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 8px; padding-left: 20px; }

/* ============================================================ sidebar ==== */
.widget {
  background: var(--surface);
  border-radius: var(--r-box);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  left: 18px; bottom: -2px;
  width: 34px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.widget-content { padding: 14px 18px 16px; }

.side-search { display: flex; gap: 8px; }
.side-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--tint);
}
.side-search button {
  flex: none;
  width: 44px; height: 40px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.side-search button:hover { background: var(--accent-deep); }

.w-list, .w-cats { list-style: none; margin: 0; padding: 0; }
.w-list li + li { margin-top: 4px; }
.w-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px;
  border-radius: 14px;
  color: var(--ink);
  transition: background var(--t);
}
.w-list a:hover { background: var(--accent-soft); }
.w-list img { width: 45px; height: 45px; border-radius: 12px; object-fit: cover; flex: none; }
.w-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-list em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.w-list a:hover strong { color: var(--accent-text); }

.w-cats li + li { margin-top: 3px; }
.w-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t);
}
.w-cats a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.w-cat-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.w-cat-ic .ic { width: 16px; height: 16px; }
.w-cats em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }

/* ======================================================== related row === */
.rlat { padding: 20px 25px 5px; }
.rlat .baps { margin: 0 -10px; }
.rlat .bav1 { width: 20%; }

/* ============================================================= footer === */
#footer {
  background: var(--chrome);
  border-top: 2px solid var(--accent);
  color: var(--chrome-ink);
  margin-top: 10px;
  padding: 36px 0 26px;
}
#footer .container { display: block; }
.footer-promo { text-align: center; }
.footer-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; }
.footer-promo h2 {
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}
.footer-promo p { margin: 0 auto; color: var(--chrome-ink); font-size: 14px; line-height: 25px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.footer-links a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  background: var(--chrome-deep);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t), color var(--t);
}
.footer-links a:hover { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--chrome-line);
  font-size: 13px;
}
.footer-trust span { display: inline-flex; align-items: center; gap: 8px; }
.footer-trust .ic { width: 18px; height: 18px; color: var(--accent); }

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--chrome-line);
  text-align: center;
}
.footer-bottom .copy { margin: 0; font-size: 13px; }
.footer-bottom .copy-note { margin: 6px 0 0; font-size: 12px; line-height: 21px; color: #9aa0ab; }

.disclaimer-band { background: var(--chrome-deep); color: #9aa0ab; padding: 22px 0 26px; }
.disclaimer-band .container { display: block; }
.disclaimer-band p { margin: 0 0 10px; font-size: 12px; line-height: 21px; }
.disclaimer-band p:last-child { margin-bottom: 0; }
.disclaimer-band strong { color: var(--accent); }

/* float CTA + back to top */
.float-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #8b7cff, #5346d6, #7c6bff, #b3a6ff);
  background-size: 300% 300%;
  animation: floatpulse 9s ease infinite;
  color: #0d0a3a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
  box-shadow: 0 8px 26px rgba(59, 47, 184, .45);
  transition: transform var(--t);
}
.float-cta:hover { transform: translateX(-50%) translateY(-3px); color: #0d0a3a; }
.float-cta .ic { width: 18px; height: 18px; }
@keyframes floatpulse {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

#backtotop {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 70;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
#backtotop.show { opacity: 1; visibility: visible; transform: none; }
#backtotop:hover { background: var(--accent-deep); }

/* ============================================================ misc pages */
.page-note {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--r-box);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}
.warn-box {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-box);
  background: #fff6e5;
  border: 1px solid #f3dcae;
  color: #6b4a06;
  font-size: 13px;
  line-height: 22px;
}
.warn-box strong { color: #8a5e05; }

.err-box { text-align: center; padding: 60px 25px; }
.err-box h1 { font-size: 64px; line-height: 70px; margin: 0; color: var(--accent-text); }
.err-box h2 { font-size: 22px; margin: 6px 0 12px; }
.err-box .viewmore { padding-top: 18px; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 14px;
}
.filter-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t), color var(--t);
}
.filter-row a .ic { width: 16px; height: 16px; color: var(--accent-deep); }
.filter-row a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.filter-row a.is-on { background: var(--accent-fill); color: #fff; }
.filter-row a.is-on .ic { color: #fff; }

.no-results { padding: 30px 10px; color: var(--muted); }

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

/* ======================================================== breakpoints === */
@media (max-width: 1439px) {
  .bav1 { width: 20%; }
}
@media (max-width: 1199px) {
  #main-site .container { flex-wrap: wrap; }
  #sidebar {
    width: 100%;
    flex: 1 1 100%;
    margin: 10px 0 0;
    position: static;
  }
  .bav1 { width: 25%; }
  .rlat .bav1 { width: 25%; }
}
@media (max-width: 1023px) {
  .ed-grid[data-cols="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bav2 { width: 50%; }
  h1.main-box-title { font-size: 30px; line-height: 40px; }
}
@media (max-width: 900px) {
  #header nav ul.menu {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--chrome-deep);
    border-bottom: 2px solid var(--accent);
    padding: 8px 0 14px;
    max-height: calc(100vh - 60px);
    overflow: auto;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  #header nav ul.menu.active { opacity: 1; visibility: visible; transform: none; }
  #header nav ul.menu > li > a { line-height: 46px; padding: 0 20px; font-size: 15px; }
  #header nav ul.menu > li > a::before { left: 0; width: 4px; right: auto; top: 8px; bottom: 8px; height: auto; border-radius: 0 3px 3px 0; }
  #header .menu-cta a { margin: 10px 20px 0; text-align: center; }
  .menu-open { display: flex; }
  #subheader { padding: 56px 0 34px; }
  #subheader h1 { font-size: 30px; line-height: 38px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 26px; }
  .container { padding: 0 16px; }
  .entry, .ed { font-size: 16px; line-height: 27px; }
  .bav1 { width: 33.3333%; }
  .rlat .bav1 { width: 33.3333%; }
  .bav2 { width: 100%; }
  .ed-grid[data-cols="3"], .ed-grid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box { padding: 18px 16px; }
  .box-title::before { left: -16px; width: calc(100% + 32px); }
  .rlat { padding: 18px 16px 5px; }
  .da-s { width: 50%; font-size: 14px; }
  .descripcion { font-size: 15px; line-height: 25px; }
  .app-icb.s1 { width: 100%; flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; }
  .app-head-main { order: 0; }
  h1.main-box-title { font-size: 26px; line-height: 36px; }
  .buttond { width: 100%; max-width: 320px; }
  .image-single { margin: 0 auto; }
  .bav1 .title, .bav2 .title { font-size: 15px; }
  .bav1 .version, .bav1 .developer, .bav2 .version, .bav2 .developer { font-size: 13px; }
  .float-cta { font-size: 12px; padding: 10px 18px; }
  #backtotop { bottom: 70px; right: 12px; }
}
@media (max-width: 519px) {
  .bav1 { width: 50%; padding: 7px; }
  .rlat .bav1 { width: 50%; }
  .ed-grid[data-cols="2"], .ed-grid[data-cols="3"], .ed-grid[data-cols="4"] { grid-template-columns: minmax(0, 1fr); }
  .da-s { width: 100%; }
  #subheader h1 { font-size: 26px; line-height: 34px; }
  .sb_search { font-size: 16px; padding-right: 80px; }
  .botones_sociales a { width: calc(50% - 4px); }
  .ed-cta { padding: 26px 18px; }
  .ed-cta h2 { font-size: 20px; line-height: 29px; }
}
@media (max-width: 374px) {
  .bav1 { width: 100%; }
  .rlat .bav1 { width: 100%; }
}

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