/* ==========================================================================
   Diwa King - Appyn clone (follow appyn mode).
   Every width, radius, size and colour below is measured from the saved
   reference in ~/Documents/AI Automation/references/ (Appyn theme running in
   `rounded sidg aprm-2 full-width` mode). Structure is NOT redesigned.
   The only customised layer is the accent colour (their #cc1ca8 -> vermilion).
   ========================================================================== */

:root {
  /* the one customised layer */
  --accent:       #e4572e;
  --accent-hover: #f26a41;

  /* reference values, kept as measured */
  --page:      #e6e9ef;   /* body / .wrapper-inside */
  --card:      #ffffff;
  --dark:      #1d222d;   /* header + footer */
  --dark-2:    #13161d;
  --ink:       #444444;   /* card titles */
  --ink-2:     #4c4c4c;   /* body copy, h1 */
  --muted:     #a7a7a7;   /* card meta */
  --muted-2:   #ababab;   /* box-title */
  --line:      #eaeaea;
  --gold:      #f9bd00;
  --dl:        #5edd1f;   /* reference Download APK green */
  --dl-hover:  #6ff02f;
  --tg:        #006fa7;   /* reference Telegram blue */
  --shadow:    2px 2px 2px 0 #e3e3e3;

  /* the reference radius system */
  --r:         20px;      /* cards, boxes, widgets, buttons, tables */
  --r-pill:    50px;      /* search field, search button, VIEW MORE, pagination */
  --r-icon:    25px;      /* single-page app icon */

  --sidebar:   300px;
  --cols:      6;
  --font: 'Open Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink-2);
  font-family: var(--font); font-size: 13px; line-height: 25px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6, li, ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, b, strong { font-weight: 700; }
p { margin: 0 0 15px; }
a { color: var(--accent); text-decoration: none; transition: .25s; }
a:hover { color: var(--accent-hover); }
button, a, [role="button"], summary, label[for] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* full-width mode: the container is the viewport, not a 1100px box */
.container { width: 100%; max-width: 100%; margin: auto; position: relative; padding: 0; }
.wrapper-inside { position: relative; z-index: 99; background: var(--page); overflow-x: hidden; }
.clear { clear: both; }

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

/* ============================== HEADER ============================== */
#header { background: var(--dark); width: 100%; height: 60px; border-bottom: 2px solid var(--accent); }
/* header, content, footer and disclaimer band all share one measure */
#header .container { display: flex; justify-content: space-between; align-items: center;
  height: 60px; padding: 0 10px; max-width: 1220px; margin: 0 auto; }
#header .logo { flex: none; }
#header .logo a img { display: block; max-height: 40px; height: 40px; width: auto; object-fit: contain; }
#header nav { margin-left: auto; flex: none; }
#header nav ul { display: flex; align-items: center; }
#header nav a { color: #fff; display: block; line-height: 35px; padding: 0 15px;
  font-size: 13px; font-weight: 600; white-space: nowrap; }
#header nav ul li.current-menu-item a { background: var(--accent); border-radius: var(--r); color: #fff; }
#header nav a:hover { color: #fff; opacity: .8; }

.nav-toggle { display: none; background: transparent; border: 0; color: #fff;
  width: 42px; height: 42px; align-items: center; justify-content: center; margin-left: auto; }

/* ============================== HERO ============================== */
#subheader { padding: 90px 0 40px; background: #000; color: #fff; text-align: center;
  position: relative; overflow: hidden; border-bottom: 2px solid var(--accent); }
#subheader .imgbg { overflow: hidden; position: absolute; inset: 0; width: 100%; height: 100%; }
#subheader .imgbg img { position: absolute; width: 120%; max-width: inherit; opacity: .3;
  left: 50%; top: 50%; transform: translate(-50%, -50%); height: auto; }
#subheader .subcontainer { width: 730px; max-width: 100%; margin: auto; position: relative; padding: 0 10px; }
#subheader h1 { font-size: 40px; padding-bottom: 20px; font-weight: 300; line-height: 46px; color: #fff; }
#subheader h2 { font-weight: 300; font-size: 16px; line-height: 30px; color: #fff; }

#searchBox { text-align: center; width: 600px; max-width: 100%; margin: 30px auto 0; position: relative; }
#searchBox form { position: relative; }
#searchBox input { width: 100%; height: 44px; border: 0; border-radius: var(--r-pill);
  padding: 0 90px 0 20px; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: #f2f2f2; }
#searchBox 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; }
#searchBox button:hover { background: var(--accent-hover); }
#searchBox ul { background: var(--dark); text-align: left; position: absolute; top: 50px;
  width: 100%; max-height: 255px; overflow-y: auto; z-index: 60; border-radius: var(--r);
  overflow-x: hidden; }
#searchBox ul li a { color: #fff; display: block; padding: 10px 16px; font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.1); font-size: 13px; }
#searchBox ul li a:hover { background: rgba(255,255,255,.1); color: #fff; }
#searchBox ul[hidden] { display: none; }

/* round category icon row */
#subheader .social { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
#subheader .social li a { color: #fff; background: #000; border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; opacity: .5; transition: .25s; }
#subheader .social li a:hover { opacity: 1; }
#subheader .social li a.c1 { background: #3b5998; } #subheader .social li a.c2 { background: #55acee; }
#subheader .social li a.c3 { background: #c13584; } #subheader .social li a.c4 { background: #bb0000; }
#subheader .social li a.c5 { background: #dd4b39; } #subheader .social li a.c6 { background: #0084c6; }

/* compact search band on interior pages */
#subheader.np { padding: 0; background: var(--card); box-shadow: var(--shadow); border-bottom: 0;
  border-radius: 0 0 var(--r) var(--r); margin-bottom: 20px; }
#subheader.np .subcontainer { width: 100%; padding: 12px 20px; display: flex;
  align-items: center; gap: 20px; }
#subheader.np #searchBox { margin: 0; flex: 1 1 auto; width: auto; }
#subheader.np .social { margin-top: 0; flex: none; }
#subheader.np .social li a { opacity: 1; width: 36px; height: 36px; }

/* ============================== BODY LAYOUT ============================== */
#main-site { padding: 20px 0 30px; }
/*
 * The reference runs full-width but reserves a ~257px ad gutter on the right, so its
 * content actually occupies ~1200px and its grid cells land at 147px. Rather than
 * reproduce an empty gutter, the content column is capped at that same measure and
 * centred, which reproduces the reference's cell size (880/6 = 146.7px) exactly.
 */
.sidg #main-site .container { display: flex; align-items: flex-start; padding: 0 10px; gap: 20px;
  max-width: 1220px; margin: 0 auto; }
.sidg .app-s, .sidg .sections { width: calc(100% - var(--sidebar)); min-width: 0; }
/* The article is far taller than the sidebar. Sticking the sidebar keeps the right
   column occupied for the whole scroll instead of leaving a long empty gutter, and
   aligning the row to the start stops a short main column from opening a dead hole
   under itself when the sidebar happens to be the taller of the two. */
#sidebar { width: var(--sidebar); flex: none; position: sticky; top: 20px; align-self: flex-start; }

/* full-width block below the sidebar row, on the shared 1220px measure */
.sidg #main-site .container.is-block { display: block; padding: 0 10px; max-width: 1220px;
  margin: 0 auto; }
.container.is-block > .box { background: var(--card); padding: 20px 25px; margin-bottom: 20px;
  border-radius: var(--r); box-shadow: var(--shadow); }

/* ============================== SECTIONS ============================== */
.section { margin-bottom: 20px; }
.section .title-section { font-size: 22px; padding-bottom: 10px; margin: 3px 10px 10px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  font-weight: 400; color: var(--ink-2); }
.section .baps { display: flex; flex-wrap: wrap; }

/* grid tile */
.section .bav1 { width: calc(100% / var(--cols)); padding: 10px; text-align: center; flex: none; }
.section .bav1 a { position: relative; display: block; padding: 15px; background: var(--card);
  border-radius: var(--r); border-bottom: 2px solid var(--accent); box-shadow: var(--shadow); }
.section .bav1 a::before { content: ''; position: absolute; inset: 0; background: rgba(29,34,45,.33);
  opacity: 0; z-index: 9; border-radius: var(--r); transition: .25s; }
.section .bav1 a::after { content: '+'; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 33px; line-height: 33px; color: #fff; opacity: 0;
  z-index: 10; background: var(--accent); width: 33px; height: 33px; border-radius: 50%;
  margin: auto; display: flex; align-items: center; justify-content: center; transition: .25s; }
.section .bav1 a:hover::before, .section .bav1 a:hover::after { opacity: 1; }
.bav1 .bloque-imagen { padding-bottom: 100%; position: relative; overflow: hidden;
  border-radius: var(--r); background: #f4f5f8; }
.bav1 .bloque-imagen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bav1 .px-postmeta { padding: 0 16px 10px; margin: 10px -15px -15px;
  border-radius: 0 0 var(--r) var(--r); }

.bav .title { height: 20px; margin: 0; white-space: nowrap; text-overflow: ellipsis;
  overflow: hidden; display: block; font-weight: 600; font-size: 14px; color: var(--ink); }
.bav a:hover .title { color: var(--accent); }
.bav .developer, .bav .version { color: var(--muted); font-size: 12px; margin: 2px 0 0; height: 18px;
  display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* wide tile, Top rated apps */
.baps .bav2 { padding: 10px; flex: none; width: 33.333333%; }
.section .bav2 > a { background: var(--card); overflow: hidden; border-bottom: 2px solid var(--accent);
  padding: 10px; display: flex; position: relative; border-radius: var(--r); width: 100%;
  box-shadow: var(--shadow); }
.section .bav2 > a::before { content: ''; position: absolute; inset: 0; background: rgb(57 61 69 / 10%);
  opacity: 0; z-index: 9; transition: .25s; }
.section .bav2 > a:hover::before { opacity: 1; }
.section .bav2 .bloque-imagen { width: 60px; height: 60px; flex: none; margin-right: 10px;
  border-radius: var(--r); overflow: hidden; padding-bottom: 0; position: relative; }
.section .bav2 .bloque-imagen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section .bav2 .meta { min-width: 0; text-align: left; flex: 1 1 auto; }

/* VIEW MORE pill */
.section a.more { background: var(--accent); color: #fff; font-weight: 600; width: 225px;
  max-width: 100%; padding: 0 20px; line-height: 40px; font-size: 14px; border-radius: var(--r-pill);
  display: block; margin: 10px auto 0; text-align: center; text-transform: uppercase; }
.section a.more:hover { background: var(--accent-hover); color: #fff; }

/* related row */
.rlat .baps { display: flex; flex-wrap: wrap; }
.rlat .bav1 { width: 20%; padding: 10px; text-align: center; flex: none; }
.container.is-block .rlat .baps { margin: 0 -10px; }
.rlat .bav1 a { position: relative; display: block; padding: 15px; background: var(--card);
  border-radius: var(--r); border-bottom: 2px solid var(--accent); box-shadow: var(--shadow); }
.rlat .bav1 a:hover .title { color: var(--accent); }

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

.app-head { display: flex; align-items: flex-start; }
.app-s .s1 { margin: 0 20px 0 0; width: 150px; flex: none; position: relative; z-index: 9; order: -1; }
.app-s .s2 { flex: 1 1 auto; min-width: 0; }

#breadcrumbs { color: #c6c6c6; overflow: hidden; padding: 0; display: block; font-size: 13px; }
#breadcrumbs li { float: left; margin-right: 5px; }
#breadcrumbs a { color: #c6c6c6; }
#breadcrumbs a:hover { color: #000; }

h1.main-box-title { font-size: 38px; line-height: 48px; color: var(--ink-2);
  display: inline-block; vertical-align: middle; margin-right: 7px; word-break: break-word; }
.app-spe .version { display: inline-block; vertical-align: middle; font-size: 20px;
  color: #bbb; font-weight: 600; }
.meta-cats { margin-top: 8px; }
.meta-cats ul { display: flex; flex-wrap: wrap; gap: 6px; }
.app-s .s2 .meta-cats a { background: var(--accent); color: #fff; font-size: 12px;
  border-radius: var(--r); padding: 2px 10px 3px; font-weight: 600; display: inline-block; }
.app-s .s2 .meta-cats a:hover { background: var(--accent-hover); color: #fff; }
.app-s .s2 .descripcion { text-align: justify; margin: 14px 0 6px; line-height: 21px;
  font-size: 13px; color: var(--ink-2); }

.bloque-imagen.image-single { width: 150px; height: 150px; border-radius: var(--r-icon);
  overflow: hidden; padding-bottom: 0; position: relative; background: #f4f5f8; }
.bloque-imagen.image-single img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.buttond { background: var(--dl); color: #fff; font-size: 12px; border-radius: var(--r);
  font-weight: 700; text-transform: uppercase; position: relative; display: flex;
  align-items: center; min-height: 33px; padding: 8px 5px 8px 38px; margin-top: 10px;
  white-space: nowrap; }
.buttond:hover { background: var(--dl-hover); color: #fff; }
.buttond i { height: 100%; background: rgba(0,0,0,.1); display: flex; position: absolute;
  left: 0; top: 0; align-items: center; padding: 0 8px; border-radius: var(--r) 0 0 var(--r);
  width: 30px; justify-content: center; }
.buttond.t { background: var(--tg); }
.buttond.t:hover { background: #0785c4; }

.box-rating { margin-top: 12px; }
.app-s .rating, .app-s .rating-average { display: inline-block; vertical-align: middle; }
.app-s .rating-average b { font-size: 19px; color: var(--accent); }
.rating { display: block; }
.rating .stars { display: block; height: 15px; background-color: var(--gold);
  -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1.6l1.8 3.7 4.1.6-3 2.9.7 4.1-3.6-1.9-3.6 1.9.7-4.1-3-2.9 4.1-.6z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1.6l1.8 3.7 4.1.6-3 2.9.7 4.1-3.6-1.9-3.6 1.9.7-4.1-3-2.9 4.1-.6z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 15px; mask-size: 15px; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; }
.link-report { color: #4d535f; cursor: pointer; margin-top: 10px; text-align: center;
  font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.link-report:hover { color: var(--ink); }

.box-data-app { margin-top: 18px; border-radius: var(--r); }
.data-app { display: flex; flex-wrap: wrap; }
.app-s .da-s { width: 33.333333%; margin-top: 8px; padding-right: 10px; font-size: 13px; }
.app-s .da-s b { color: var(--ink); font-size: 13px; }
.app-s .da-s a { text-decoration: underline; }
.da-s .gp { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  color: var(--ink-2); font-weight: 600; }

.box-social { width: 100%; padding: 0; clear: both; margin-top: 18px; }
.botones_sociales { margin: 0 -5px; overflow: hidden; clear: both; display: flex; flex-wrap: wrap; }
.botones_sociales li { margin: 5px 5px 0; flex: none; width: 104px; }
.botones_sociales a { background: #f2f2f2; color: #6b6b6b; display: flex; align-items: center;
  font-size: 11px; padding: 0 12px; min-height: 31px; border-radius: var(--r); gap: 5px; }
.botones_sociales.color a { color: #fff; }
.botones_sociales.color a.facebook  { background: #3b5998; }
.botones_sociales.color a.twitter   { background: #000000; }
.botones_sociales.color a.pinterest { background: #bd081c; }
.botones_sociales.color a.telegram  { background: #0084c6; }
.botones_sociales.color a.whatsapp  { background: #25d366; }
.botones_sociales a:hover { opacity: .85; }

/* article body */
.entry, .app-s .box-content { font-weight: 400; font-size: 14px; color: var(--ink-2); line-height: 25px; }
.entry h2 { font-size: 21px; line-height: 30px; margin: 26px 0 12px; color: var(--ink-2);
  text-align: start; font-weight: 700; }
.entry h3 { font-size: 17px; line-height: 26px; margin: 20px 0 8px; color: var(--ink); }
.entry h4 { font-size: 15px; margin: 16px 0 6px; color: var(--ink); }
.entry h1 { font-size: 26px; line-height: 34px; margin: 0 0 14px; color: var(--ink-2); }
.entry p { margin: 0 0 15px; }
.entry ul { margin: 0 0 15px; padding-left: 20px; }
.entry ul li { list-style: disc; margin-bottom: 6px; }
.entry a { color: var(--accent); }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 15px; font-size: 13px;
  border-radius: var(--r); overflow: hidden; }
.entry th, .entry td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.entry th { background: #f7f8fa; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ============ HOMEPAGE EDITORIAL LAYOUT (verbatim copy, richer presentation) ============ */
.hx-lede { font-size: 15px; line-height: 26px; margin-bottom: 26px; }
.hx-lede p { color: #5b6169; }

.hx-sec { margin: 0 0 30px; }
.hx-sec-head { margin-bottom: 16px; }
.hx-sec-head h2 { font-size: 21px; line-height: 30px; margin: 0 0 8px; color: var(--ink-2);
  text-align: start; font-weight: 700; position: relative; padding-left: 14px; }
.hx-sec-head h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: var(--r-pill); background: var(--accent); }
.hx-sec-head p { margin: 0 0 8px; color: #5b6169; }

.hx-grid { display: grid; gap: 14px; }
.hx-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hx-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hx-card { background: #f7f8fa; border: 1px solid #eceef2; border-bottom: 2px solid var(--accent);
  border-radius: var(--r); padding: 18px 16px;
  transition: transform .2s, box-shadow .2s, background .2s; }
.hx-card:hover { transform: translateY(-3px); background: #fff;
  box-shadow: 0 10px 22px rgba(29,34,45,.12); }
.hx-card-ic { display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(228,87,46,.1); color: var(--accent); }
.hx-card h3 { font-size: 15px; line-height: 22px; margin: 0 0 7px; color: var(--ink); }
.hx-card p { margin: 0; font-size: 13px; line-height: 22px; color: #61676f; }
.hx-card p + p { margin-top: 8px; }

/* FAQ block */
/* FAQ accordion, native <details> so keyboard and AT support come for free */
.hx-acc { display: grid; gap: 10px; }
.hx-qa { background: #f7f8fa; border: 1px solid #eceef2; border-radius: var(--r); overflow: hidden;
  transition: border-color .2s, background .2s; }
.hx-qa[open] { background: #fff; border-color: rgba(228,87,46,.35); }
.hx-qa > summary { list-style: none; cursor: pointer; padding: 15px 46px 15px 16px;
  position: relative; }
.hx-qa > summary::-webkit-details-marker { display: none; }
.hx-qa > summary h3 { font-size: 14px; line-height: 22px; margin: 0; color: var(--ink);
  font-weight: 700; }
.hx-qa[open] > summary h3 { color: var(--accent); }
.hx-qa > summary:hover h3 { color: var(--accent); }
.hx-qa > summary::after { content: ''; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg);
  transition: transform .2s; transform-origin: 70% 70%; }
.hx-qa[open] > summary::after { transform: rotate(-135deg); }
.hx-qa > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hx-acc-body { padding: 0 16px 15px; }
.hx-acc-body p { margin: 0; font-size: 13px; line-height: 22px; color: #61676f; }
.hx-acc-body p + p { margin-top: 8px; }

/* closing CTA band */
.hx-cta { background: var(--dark); border-radius: var(--r); padding: 28px 26px;
  text-align: center; margin: 0 0 30px; position: relative; overflow: hidden; }
.hx-cta::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(228,87,46,.30), transparent 55%); }
.hx-cta > * { position: relative; z-index: 1; }
.hx-cta h2 { color: #fff; font-size: 22px; line-height: 30px; margin: 0 0 12px;
  text-align: center; }
.hx-cta-body p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 24px;
  max-width: 780px; margin: 0 auto 12px; }
.hx-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
/* .entry a sets an accent colour, so these need equal-or-higher specificity
   or the primary button renders accent-on-accent and its label disappears. */
.entry .hx-btn, a.hx-btn { display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border-radius: var(--r-pill); padding: 12px 24px;
  font-weight: 700; font-size: 14px; text-transform: uppercase; }
.entry .hx-btn:hover, a.hx-btn:hover { background: var(--accent-hover); color: #fff; }
.entry .hx-btn.is-ghost, a.hx-btn.is-ghost { background: transparent;
  border: 1px solid rgba(255,255,255,.35); color: #fff; }
.entry .hx-btn.is-ghost:hover, a.hx-btn.is-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 1023px) {
  .hx-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hx-cols-3, .hx-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hx-cta { padding: 22px 16px; }
}
@media (max-width: 519px) {
  .hx-cols-3, .hx-cols-4 { grid-template-columns: 1fr; }
}

/* ============================== SIDEBAR ============================== */
.widget { background: var(--card); box-shadow: var(--shadow); border-radius: var(--r);
  margin-bottom: 20px; padding: 0 10px 10px; overflow: hidden; }
.widget .widget-title { text-transform: uppercase; font-size: 14px; color: var(--ink);
  padding: 12px 0 10px; margin: 0 0 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
.widget .widget-content ul li { border-bottom: 1px solid var(--line); }
.widget .widget-content ul li:last-child { border-bottom: 0; }
.widget .widget-content ul li a { color: var(--ink-2); display: block; padding: 9px 0;
  font-size: 13px; line-height: 20px; }
.widget .widget-content ul li a:hover { color: var(--accent); }
.widget form { display: flex; margin: 10px 0; position: relative; }
.widget form input { width: 100%; height: 38px; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0 84px 0 16px; font-family: var(--font);
  font-size: 13px; color: var(--ink); background: #f6f7f9; }
.widget form button { position: absolute; right: 0; top: 0; height: 38px; background: var(--accent);
  color: #fff; border: 0; border-radius: var(--r-pill); padding: 0 18px; font-weight: 600; font-size: 13px; }
.widget form button:hover { background: var(--accent-hover); }
.widget .wb { display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.widget .wb:last-child { border-bottom: 0; }
.widget .wb img { width: 46px; height: 46px; border-radius: 12px; flex: none; object-fit: cover; }
.widget .wb .title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 18px; }
.widget .wb .developer { color: var(--muted); font-size: 12px; }

/* sidebar promo panel: dark card, glowing accent border, as on the reference */
.promo-panel { background: #0b0d12; border: 3px solid var(--gold); border-radius: var(--r);
  padding: 18px; text-align: center; margin-bottom: 20px;
  box-shadow: 0 0 18px rgba(249,189,0,.35); }
.promo-panel img { margin: 0 auto 14px; max-height: 80px; width: auto; object-fit: contain; }
.promo-panel h3 { color: var(--gold); font-size: 22px; line-height: 28px; margin-bottom: 10px;
  text-transform: uppercase; }
.promo-panel p { color: rgba(255,255,255,.8); font-size: 13px; line-height: 21px; margin-bottom: 16px; }
.promo-panel .more { display: block; background: var(--gold); color: #1d222d; border-radius: var(--r-pill);
  padding: 12px 16px; font-weight: 800; text-transform: uppercase; font-size: 14px; }
.promo-panel .more:hover { background: #ffcf3a; color: #1d222d; }

/* ============================== FOOTER ============================== */
#footer { clear: both; background: var(--dark); color: #fff; border-top: 2px solid var(--accent);
  overflow: hidden; }
#footer .container { padding: 0 10px; max-width: 1220px; margin: 0 auto; }
.footer-promo { border: 3px solid var(--gold); border-radius: var(--r); margin: 30px 0 10px;
  padding: 26px 20px; text-align: center; background: var(--dark-2); }
.footer-promo h2 { color: var(--gold); font-size: 26px; margin-bottom: 10px; text-transform: uppercase; }
.footer-promo p { color: rgba(255,255,255,.75); font-size: 13px; max-width: 760px; margin: 0 auto 18px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-policies a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--gold);
  color: var(--gold); border-radius: var(--r-pill); padding: 9px 18px; font-size: 13px; font-weight: 600; }
.footer-policies a:hover { background: var(--gold); color: #1d222d; }
.footer-note { color: rgba(255,255,255,.45); font-size: 12px; line-height: 20px;
  margin: 20px auto 0; max-width: 900px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom { padding: 15px 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom .copy { line-height: 22px; font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom .logo { margin-left: auto; }
.footer-bottom .logo img { max-height: 40px; width: auto; filter: grayscale(100%); opacity: .2; }

.disclaimer-band { background: var(--dark-2); color: rgba(255,255,255,.6); font-size: 12px;
  line-height: 20px; padding: 18px 0; }
.disclaimer-band b { color: var(--gold); }
.disclaimer-band .container { padding: 0 10px; max-width: 1220px; margin: 0 auto; }
.disclaimer-band p { margin: 0 0 8px; }
.disclaimer-band p:last-child { margin: 0; }

/* floating centre pill, as on the reference */
.tg-float { position: fixed; left: 50%; transform: translateX(-50%); bottom: 15px; z-index: 999;
  display: flex; align-items: center; gap: 10px; padding: 13px 22px; color: #fff;
  background: linear-gradient(135deg, #00c6ff, #0072ff, #8e2de2, #ff0080);
  background-size: 300% 300%; font-size: 16px; font-weight: 800; border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(0,114,255,.45); white-space: nowrap;
  animation: gradientMove 5s ease infinite; }
.tg-float:hover { color: #fff; }
@keyframes gradientMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

#backtotop { position: fixed; right: 16px; bottom: 16px; z-index: 120; width: 40px; height: 40px;
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; display: flex;
  align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .25s; }
#backtotop.is-visible { opacity: 1; visibility: visible; }
#backtotop:hover { background: var(--accent-hover); }

.err-page { text-align: center; }
.err-code { font-size: 90px; line-height: 1; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1100px) { .baps .bav2 { width: 50%; } }
@media (max-width: 1023px) {
  .sidg #main-site .container { flex-direction: column; }
  .sidg .app-s, .sidg .sections { width: 100%; }
  #sidebar { width: 100%; position: static; }   /* stacked: must not stick */
  .section .bav1, .rlat .bav1 { width: 25%; }
  #header nav { position: fixed; left: 0; right: 0; top: 60px; background: var(--dark);
    transform: translateY(-130%); transition: transform .25s; max-height: calc(100dvh - 60px);
    overflow-y: auto; margin: 0; padding: 8px 10px 16px; border-bottom: 2px solid var(--accent); }
  #header nav.is-open { transform: translateY(0); }
  #header nav ul { flex-direction: column; align-items: stretch; }
  #header nav a { line-height: 44px; padding: 0 12px; font-size: 14px; }
  .nav-toggle { display: inline-flex; }
  #subheader.np .subcontainer { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 950px) { .section .bav1, .rlat .bav1 { width: 25%; } .baps .bav2 { width: 50%; } }
@media (max-width: 767px) {
  .section .bav1, .rlat .bav1 { width: 33.333333%; }
  .baps .bav2 { width: 100%; }
  #subheader { padding: 50px 0 30px; }
  #subheader h1 { font-size: 28px; line-height: 34px; padding-bottom: 14px; }
  #subheader h2 { font-size: 14px; line-height: 24px; }
  h1.main-box-title { font-size: 30px; line-height: 38px; }
  .app-head { flex-direction: column; }
  .app-s .s1 { width: 100%; margin: 0 0 16px; }
  .bloque-imagen.image-single { margin: 0 auto; }
  .app-s .da-s { width: 50%; }
  .app-s .box, .app-p .box, .sections .box { padding-left: 12px; padding-right: 12px; }
  .box .box-title::before { width: calc(100% + 24px); left: -12px; }
  .entry h2 { font-size: 19px; line-height: 27px; }
  .tg-float { font-size: 14px; padding: 11px 18px; }
}
@media (max-width: 519px) {
  .section .bav1, .rlat .bav1 { width: 50%; }
  .app-s .da-s { width: 100%; }
  .botones_sociales li { width: calc(50% - 10px); }
}
