/* =========================================================================
   Diwa Rummy - Appyn-reference clone, palette "Peacock & Papaya".
   Measured against alldiwagame.com (body class: rounded ... full-width):
   13/25 Open Sans, #e6e9ef ground, 20/50/25px radius system, 60px header,
   300px right sidebar, 6-column 147px grid, .box 20px/20px 25px.
   ========================================================================= */

:root {
  /* Palette */
  --accent:        #116a96;
  --accent-dark:   #0c4f70;
  --accent-deep:   #083a53;
  --accent-soft:   #e6f1f7;
  --cta-download:  #c74712;   /* surfaces carrying white text, and papaya text on white: 4.84:1 */
  --cta-download-d:#a63a0d;
  --cta-download-lt:#e2581f;  /* decorative only: the gradient pill and the CTA-band glow */
  --cta-telegram:  #1f2a44;
  --star:          #e8a33c;

  /* Reference chrome */
  --page-bg:    #e6e9ef;
  --surface:    #ffffff;
  --surface-2:  #f7f8fa;
  --chrome:     #1d222d;
  --chrome-deep:#13161d;
  --chrome-black:#000000;
  --ink:        #4c4c4c;
  --ink-strong: #2d3340;
  --muted:      #656565;   /* reference #a7a7a7 is 2.41:1 on white; AA needs 4.5:1 */
  --muted-2:    #656565;
  --rule:       #eaeaea;
  --field:      #f2f2f2;

  --r-card: 20px;
  --r-pill: 50px;
  --r-icon: 25px;
  --shadow: 2px 2px 2px 0 #e3e3e3;

  --measure: 1220px;
  --gutter: 10px;
  --sidebar: 300px;
  --sidebar-gap: 20px;

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

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

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font: 400 13px/25px 'Open Sans', 'Segoe UI', Helvetica, sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); cursor: pointer; }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }

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

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

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

/* ---------- One shared measure for header, content, footer, disclaimer --- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
#main-site > .container { display: flex; align-items: flex-start; }
#main-site > .container.is-block { display: block; }
.content { flex: 1 1 auto; min-width: 0; }

/* ---------- Header ------------------------------------------------------ */
#header {
  background: var(--chrome-black);
  border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 90;
}
#header .container {
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#logo { display: flex; align-items: center; }
#logo img { height: 42px; width: auto; object-fit: contain; display: block; }

#menu ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
#menu a {
  display: block; padding: 8px 12px; border-radius: var(--r-pill);
  color: #d7dbe4; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background var(--t), color var(--t);
}
#menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
#menu a.active { background: var(--accent); color: #fff; }
#menu a.nav-cta {
  background: var(--cta-download); color: #fff; margin-left: 6px;
  padding: 8px 18px; text-transform: uppercase; letter-spacing: .4px; font-size: 12px;
}
#menu a.nav-cta:hover { background: var(--cta-download-d); }
#menu a.nav-cta.active { background: var(--cta-download-d); }

.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff; padding: 6px;
  border-radius: var(--r-card);
}
.nav-toggle .nt-close { display: none; }
.nav-toggle[aria-expanded="true"] .nt-close { display: block; }
.nav-toggle[aria-expanded="true"] .nt-open { display: none; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: #000; color: #fff;
  padding: 90px 0 40px;
  border-bottom: 2px solid var(--accent);
}
.hero .imgbg { position: absolute; inset: 0; overflow: hidden; }
.hero .imgbg img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 120%; max-width: none; opacity: .3; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 50% 38%, rgba(0,0,0,.25), rgba(0,0,0,.82) 100%);
}
.hero .subcontainer {
  position: relative; z-index: 2;
  width: 730px; max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto; text-align: center;
}
.hero h1 { font-size: 40px; line-height: 46px; font-weight: 300; color: #fff; margin-bottom: 8px; }
.hero h2 { font-size: 16px; line-height: 30px; font-weight: 300; color: #e2e7ef; margin-bottom: 22px; }

.sb_search { position: relative; width: 600px; max-width: 100%; margin: 0 auto; }
.sb_search input {
  width: 100%; height: 44px; border: 0; border-radius: var(--r-pill);
  background: var(--field); color: #43454b; font: 400 16px/44px 'Open Sans', sans-serif;
  padding: 0 86px 0 20px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}
.sb_search input::placeholder { color: #6b6e77; }
.sb_search button {
  position: absolute; right: 0; top: 0; width: 70px; height: 44px;
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.sb_search button:hover { background: var(--accent-dark); }

.search-results {
  position: absolute; left: 0; right: 0; top: 52px; z-index: 20;
  background: #fff; border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(0,0,0,.28);
  padding: 8px; text-align: left; max-height: 320px; overflow: auto; display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 14px; color: var(--ink); font-size: 13px; font-weight: 600;
}
.search-results a:hover, .search-results a:focus { background: var(--accent-soft); }
.search-results img { width: 32px; height: 32px; border-radius: 8px; }
.search-results .sr-cat { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); }
.search-results .sr-none { padding: 10px; color: var(--muted); font-size: 13px; }

.cats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 26px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #d7dbe4; font-size: 12px; font-weight: 600; }
.cats .cat-ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: .5; color: #fff; transition: opacity var(--t), transform var(--t);
}
.cats a:hover { color: #fff; }
.cats a:hover .cat-ic { opacity: 1; transform: translateY(-2px); }
.cats .cat-ic .ic { width: 20px; height: 20px; }
.cats a:nth-child(1) .cat-ic { background: #116a96; }
.cats a:nth-child(2) .cat-ic { background: #e2581f; }
.cats a:nth-child(3) .cat-ic { background: #1f8f6a; }
.cats a:nth-child(4) .cat-ic { background: #8d3f8f; }
.cats a:nth-child(5) .cat-ic { background: #c9a227; }
.cats a:nth-child(6) .cat-ic { background: #2f5aa8; }

/* ---------- Section heads ----------------------------------------------- */
#main-site { padding: 20px 0 30px; }

.title-section {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 3px 10px 10px; padding: 0 0 10px;
  border-bottom: 1px solid var(--rule);
}
.title-section h2 { font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--ink); }
.ts-link { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }

/* ---------- Catalogue grids --------------------------------------------- */
.grid-6, .grid-3 { display: grid; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.bav { padding: 10px; text-align: center; }
.bav .item {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent); padding: 15px 15px 0;
  height: 100%; display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.bav .item:hover { transform: translateY(-3px); box-shadow: 4px 6px 12px 0 #d6dae2; }

.bloque-imagen { display: block; }
.bloque-imagen img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; display: block; }

.px-posttitle {
  display: block; margin-top: 10px; height: 20px; line-height: 20px;
  font-size: 14px; font-weight: 600; color: #444;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.px-posttitle:hover { color: var(--accent); }
.px-postmeta { font-size: 12px; line-height: 18px; color: var(--muted); }
.px-postmeta .developer { display: block; height: 18px; overflow: hidden; }
.px-postmeta .pm-b { display: block; height: 18px; overflow: hidden; color: var(--cta-download); font-weight: 600; }

.card-cta {
  display: block; margin: 10px -15px 0; padding: 9px 6px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 0 0 var(--r-card) var(--r-card);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0;
  white-space: nowrap; transition: background var(--t), color var(--t);
  margin-top: auto;
}
.card-cta:hover { background: var(--accent); color: #fff; }

/* Wide featured tile: logo + copy on one row, CTA spanning the card beneath */
.bav2 .item { flex-direction: column; text-align: left; padding: 15px 15px 0; }
.bav2 .wide-top { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; }
.bav2 .bloque-imagen { flex: 0 0 88px; }
.bav2 .bloque-imagen img { border-radius: 14px; }
.bav2 .wide-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bav2 .px-posttitle {
  margin-top: 0; height: auto; max-height: 40px; line-height: 20px;
  white-space: normal; text-overflow: clip; font-size: 15px;
}
.bav2 .developer { font-size: 12px; line-height: 18px; color: var(--muted); }
.bav2 .pm-b { font-size: 12px; line-height: 18px; color: var(--cta-download); font-weight: 600; }
.bav2 .card-cta {
  margin: 14px -15px 0; text-align: center;
  font-size: 11px; letter-spacing: .4px; white-space: nowrap;
}

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

/* ---------- Sidebar ----------------------------------------------------- */
#sidebar {
  flex: 0 0 var(--sidebar); width: var(--sidebar); margin-left: var(--sidebar-gap);
  position: sticky; top: 80px; align-self: flex-start;
}
.widget {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent); padding: 15px 18px; margin-bottom: 20px;
}
.title-widget {
  font-size: 15px; font-weight: 700; color: var(--ink-strong);
  padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--rule); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.widget li a:hover { color: var(--accent); }
.widget li img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.widget .w-cat { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); }
.widget .w-note { font-size: 12px; line-height: 20px; color: var(--muted); margin: 0; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 700;
}
.cat-pills a:hover { background: var(--accent); color: #fff; }
.cat-pills .ic { width: 15px; height: 15px; }

/* ---------- Boxes (single + static pages) ------------------------------- */
.box {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 20px 25px; margin-bottom: 20px;
}
.box-title {
  font-size: 17px; font-weight: 700; text-transform: uppercase; color: var(--muted-2);
  padding: 15px 0; position: relative;
}
.box-title::after {
  content: ""; display: block; width: 34px; height: 3px; background: var(--accent); margin-top: 8px;
}
.crumbs { font-size: 12px; color: var(--muted); padding: 0 0 10px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); }

.cat-label {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--accent); margin-bottom: 4px;
}

/* App header: icon column floated left, title block emitted first in the DOM */
.app-s { display: flex; flex-wrap: wrap; align-items: flex-start; }
.app-icb.s1 { order: -1; flex: 0 0 150px; width: 150px; margin-right: 20px; }
.app-spe.s2 { flex: 1 1 320px; min-width: 0; }
.app-icon {
  width: 150px; height: 150px; border-radius: var(--r-icon); object-fit: cover; display: block;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
h1.main-box-title { font-size: 38px; line-height: 48px; font-weight: 700; color: var(--ink); }
.source-tag { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

.badge {
  position: static; display: inline-block; vertical-align: middle;
  margin: 0 0 6px 12px; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; line-height: 15px;
  text-transform: uppercase; letter-spacing: .8px; color: #fff;
}
.badge-new { background: var(--accent); }
.badge-hot { background: var(--cta-download); }

.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tags-row a {
  padding: 3px 12px; border-radius: var(--r-card); background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
}
.tags-row a:hover { background: var(--accent-dark); color: #fff; }

.descripcion { font-size: 13px; line-height: 21px; text-align: justify; margin: 14px 0 0; }

.da-s-wrap { display: flex; flex-wrap: wrap; margin-top: 16px; }
.da-s {
  flex: 0 0 33.333%; width: 33.333%; padding: 0 10px 12px 0;
  font-size: 13px; line-height: 20px;
}
.da-s b { display: block; font-weight: 700; color: var(--ink); }
.da-s span { color: var(--muted); }
.da-note { font-size: 12px; line-height: 19px; color: var(--muted); margin: 4px 0 0; }

.botones_sociales { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.botones_sociales a {
  display: inline-flex; align-items: center; gap: 7px;
  width: 104px; min-height: 31px; padding: 0 10px 0 9px;
  border-radius: var(--r-card); color: #fff; font-size: 11px; font-weight: 600;
  transition: filter var(--t);
}
.botones_sociales a:hover { filter: brightness(1.12); color: #fff; }
.botones_sociales .ic { width: 15px; height: 15px; }
.sb-fb { background: #4864a0; }
.sb-tw { background: #1b1f23; }
.sb-pi { background: #bd081c; }
.sb-tg { background: #2f90c8; }
.sb-wa { background: #25824a; }

.buttond {
  display: flex; align-items: center; width: 150px; min-height: 33px; line-height: 17px;
  border-radius: var(--r-card); color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; overflow: hidden;
  transition: filter var(--t), transform var(--t);
}
.buttond:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.buttond .bd-i {
  width: 33px; min-height: 33px; flex: none; background: rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
}
.buttond .bd-i .ic { width: 16px; height: 16px; }
.buttond span { padding: 8px 5px 8px 7px; }
.downloadAPK { background: var(--cta-download); }
.buttond.t { background: var(--cta-telegram); }
.report-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.report-link .ic { width: 15px; height: 15px; }

/* ---------- Article body ------------------------------------------------ */
.entry { font-size: 14px; line-height: 25px; color: var(--ink); }
.entry h2 { font-size: 21px; line-height: 28px; font-weight: 700; text-align: start; margin: 26px 0 10px; }
.entry h3 { font-size: 17px; line-height: 26px; font-weight: 700; margin: 20px 0 8px; }
.entry h4 { font-size: 15px; line-height: 24px; font-weight: 700; margin: 16px 0 6px; }
.entry p { margin: 0 0 14px; }
.entry ul { margin: 0 0 16px; padding-left: 20px; }
.entry li { margin-bottom: 6px; }
.entry > *:first-child { margin-top: 0; }

.tbl-wrap { overflow-x: auto; margin: 0 0 18px; }
.ed-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r-card); overflow: hidden; font-size: 13px; }
.ed-table th { background: var(--accent); color: #fff; text-align: left; padding: 10px 14px; font-weight: 700; }
.ed-table td { padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.ed-table tr:last-child td { border-bottom: 0; }

/* ---------- Editorial engine (C11) -------------------------------------- */
.lede { font-size: 15px; line-height: 27px; }
.lede h1 { font-size: 30px; line-height: 40px; font-weight: 700; margin-bottom: 14px; }
.lede p { margin-bottom: 14px; }

.ed-sec { margin-top: 30px; }
.ed-sec:first-child { margin-top: 0; }
.entry .ed-head, .ed-head {
  font-size: 21px; line-height: 28px; font-weight: 700; text-align: start;
  padding-bottom: 0; margin: 0 0 14px; position: relative;
}
.entry .ed-head::after, .ed-head::after { content: ""; display: block; width: 46px; height: 3px; background: var(--accent); margin-top: 10px; }

.ed-grid { display: grid; gap: 16px; margin-top: 18px; }
.ed-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ed-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.ed-card {
  background: var(--surface-2); outline: 1px solid var(--rule);
  border-radius: var(--r-card); border-bottom: 2px solid var(--accent);
  padding: 18px; transition: transform var(--t), box-shadow var(--t);
}
.ed-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ed-badge {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 12px;
}
.ed-badge .ic { width: 20px; height: 20px; }
.ed-card-h { font-size: 15px; line-height: 23px; font-weight: 700; margin-bottom: 8px; }
.ed-card-b { font-size: 13px; line-height: 23px; }
.ed-card-b p:last-child, .ed-card-b ul:last-child { margin-bottom: 0; }

.ed-cta {
  margin-top: 32px; padding: 30px 28px; border-radius: var(--r-card);
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--chrome) 70%);
  color: #e7ecf3; position: relative; overflow: hidden; text-align: center;
}
.ed-cta::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(226,88,31,.38), transparent 68%); pointer-events: none;
}
.entry .ed-cta-h, .ed-cta .ed-cta-h, .ed-cta-h {
  text-align: center; color: #fff; font-size: 24px; line-height: 33px; font-weight: 700;
  margin: 0 0 12px; padding: 0; position: relative;
}
.entry .ed-cta-h::after, .ed-cta .ed-cta-h::after { content: none; }
.ed-cta-body { position: relative; font-size: 14px; line-height: 25px; }
.ed-cta-body p:last-child { margin-bottom: 0; }
.ed-cta-body a { color: #9fd4ef; }
.ed-cta-btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

.entry a.hx-btn, a.hx-btn, .ed-cta a.hx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 24px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  transition: background var(--t), color var(--t), transform var(--t);
}
.entry a.hx-btn-primary, a.hx-btn-primary, .ed-cta a.hx-btn-primary { background: var(--cta-download); color: #fff; }
.entry a.hx-btn-primary:hover, a.hx-btn-primary:hover, .ed-cta a.hx-btn-primary:hover { background: var(--cta-download-d); color: #fff; transform: translateY(-1px); }
.entry a.hx-btn-ghost, a.hx-btn-ghost, .ed-cta a.hx-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.entry a.hx-btn-ghost:hover, a.hx-btn-ghost:hover, .ed-cta a.hx-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- FAQ accordion ----------------------------------------------- */
.faq { margin-top: 16px; }
.faq-item {
  background: var(--surface-2); outline: 1px solid var(--rule);
  border-radius: var(--r-card); margin-bottom: 10px; overflow: hidden;
}
.faq-item > summary {
  display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
  padding: 14px 18px; cursor: pointer; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item summary h3 { font-size: 15px; line-height: 24px; font-weight: 700; margin: 0; color: var(--ink-strong); }
.faq-chev { color: var(--accent); flex: none; transition: transform var(--t); margin-top: 1px; }
.faq-chev .ic { width: 20px; height: 20px; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item[open] > summary { background: var(--accent-soft); }
.faq-a { padding: 4px 18px 14px; font-size: 13px; line-height: 23px; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }

/* ---------- Related row ------------------------------------------------- */
.box.rlat { padding: 20px 25px 5px; }
.rel-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.rel-item .item { border-bottom: 0; box-shadow: none; background: transparent; padding: 0; }
.rel-item .item:hover { transform: translateY(-3px); box-shadow: none; }
.rel-item .px-posttitle { font-size: 13px; }

/* ---------- Responsible play band --------------------------------------- */
.rg-box .rg-tips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rg-box .rg-tips span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 600;
}
.rg-box .rg-tips .ic { width: 16px; height: 16px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff6ef; outline: 1px solid #f3d9c6; border-radius: var(--r-card);
  padding: 14px 16px; font-size: 12px; line-height: 20px; color: #7c4524;
}
.notice .ic { color: var(--cta-download); width: 20px; height: 20px; }

/* ---------- Footer ------------------------------------------------------ */
#footer {
  background: var(--chrome); color: #c9cfdb; border-top: 2px solid var(--accent);
  margin-top: 10px; padding: 34px 0 10px;
}
#footer a { color: #c9cfdb; }
#footer a:hover { color: #fff; }
#footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: #fff; margin-bottom: 12px; }

.foot-promo {
  background: var(--chrome-black); border-radius: var(--r-card);
  padding: 24px 26px; text-align: center; margin-bottom: 28px;
}
.foot-logo { height: 46px; width: auto; object-fit: contain; display: inline-block; }
.foot-lead { font-size: 13px; line-height: 23px; margin: 12px 0 16px; color: #aeb6c5; }
.foot-policy { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.policy-btn {
  padding: 8px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07); color: #d7dbe4;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  transition: background var(--t), color var(--t);
}
.policy-btn:hover { background: var(--accent); color: #fff; }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; font-size: 13px; }
.foot-trust li { display: flex; gap: 10px; align-items: flex-start; line-height: 20px; color: #aeb6c5; }
.foot-trust .ic { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }

.disclaimer { background: var(--chrome-deep); color: #8e97a8; padding: 18px 0; }
.disclaimer p { font-size: 12px; line-height: 20px; margin: 0 0 8px; }
.disclaimer strong { color: #d7dbe4; }
.disclaimer .copy { margin: 0; font-size: 12px; }

/* ---------- Floating CTA + back to top ---------------------------------- */
.float-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 24px; border-radius: var(--r-pill); color: #fff;
  font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark), var(--cta-download-lt), #b8921f);
  background-size: 300% 300%;
  animation: fcta 9s ease infinite;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
.float-cta:hover { color: #fff; }
.float-cta .ic { width: 18px; height: 18px; }
@keyframes fcta { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

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

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


.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.entry a.hx-btn-ghost.hx-dark, a.hx-btn-ghost.hx-dark {
  color: var(--accent-dark); background: transparent; box-shadow: inset 0 0 0 2px var(--accent);
}
.entry a.hx-btn-ghost.hx-dark:hover, a.hx-btn-ghost.hx-dark:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Compact hero used on the app, archive and static templates */
.hero-compact { padding: 26px 0 26px; border-radius: 0 0 var(--r-card) var(--r-card); }
.hero-compact h1 { font-size: 32px; line-height: 42px; }
.hero-compact h2 { font-size: 15px; line-height: 26px; margin-bottom: 18px; }
.hero-compact .sb_search { margin-top: 0; }
.sb-side input { font-size: 14px; padding-right: 64px; }
.sb-side button { width: 54px; }

/* ---------- Breakpoints ------------------------------------------------- */
@media (max-width: 1439px) {
  .hero h1 { font-size: 36px; line-height: 44px; }
}
@media (max-width: 1199px) {
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .rel-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  #main-site > .container { display: block; }
  #sidebar { position: static; width: 100%; flex: none; margin: 24px 0 0; }
  .widget { margin-bottom: 16px; }
  .ed-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
  h1.main-box-title { font-size: 30px; line-height: 40px; }
  .app-icb.s1 { flex-basis: 120px; width: 120px; }
  .app-icon { width: 120px; height: 120px; }
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  #menu {
    position: absolute; left: 0; right: 0; top: 60px;
    background: var(--chrome-black); border-bottom: 2px solid var(--accent);
    max-height: 0; overflow: hidden; transition: max-height var(--t);
  }
  #menu.open { max-height: 460px; overflow: auto; }
  #menu ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 14px; }
  #menu a { padding: 12px 14px; border-radius: 14px; font-size: 15px; }
  #menu a.nav-cta { margin: 8px 0 0; text-align: center; font-size: 14px; }
  .hero { padding: 48px 0 30px; }
  .hero h1 { font-size: 27px; line-height: 36px; }
  .hero h2 { font-size: 14px; line-height: 24px; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
  .ed-grid.cols-3, .ed-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .box { padding: 18px 16px; }
  .box.rlat { padding: 18px 16px 4px; }
  .da-s { flex-basis: 50%; width: 50%; }
  .app-icb.s1 { margin-right: 16px; }
  body { font-size: 16px; }
  .entry, .descripcion, .faq-a, .ed-card-b { font-size: 16px; line-height: 27px; }
  .lede { font-size: 17px; line-height: 29px; }
  .px-posttitle { font-size: 13px; }
}
@media (max-width: 519px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-grid.cols-3, .ed-grid.cols-4 { grid-template-columns: 1fr; }
  .cats { gap: 14px; }
  h1.main-box-title { font-size: 24px; line-height: 33px; }
  .app-icb.s1 { flex-basis: 84px; width: 84px; margin-right: 14px; }
  .app-icon { width: 84px; height: 84px; border-radius: 18px; }
  .da-s { flex-basis: 100%; width: 100%; }
  .bav2 .item { flex-direction: column; }
  .bav2 .bloque-imagen { flex-basis: auto; width: 90px; }
  .float-cta { font-size: 12px; padding: 10px 16px; }
}
@media (max-width: 374px) {
  .foot-cols { grid-template-columns: 1fr; }
}

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