/* ==========================================================================
   MQM Bet Games
   Design replicated 1:1 from the Appyn-theme reference pages in
   /content/references/ (diwagames.win). Every colour, radius, shadow, font
   size and layout dimension below was read from the reference's computed
   styles, not estimated.

   Reference tokens
     accent (magenta) .......... #CC1CA8
     header / hero / footer .... #1D222D
     page background ........... #E6E9EF
     card ...................... #FFF, radius 20px, shadow 2px 2px 2px 0 #E3E3E3
     body text ................. #4C4C4C, Open Sans 13px
     article text .............. 14px / 25px
   ========================================================================== */

:root {
  --accent:        #CC1CA8;
  --accent-dark:   #A81589;
  --dark:          #1D222D;
  --dark-2:        #232834;
  --page-bg:       #E6E9EF;
  --card:          #FFFFFF;

  --text:          #4C4C4C;
  --text-strong:   #444444;
  /* These four greys are the reference's own values, kept for a 1:1 match.
     They sit below WCAG AA on white (2.4:1, 2.0:1, 2.3:1, 1.7:1 — AA wants 4.5:1
     for body text and 3:1 for large/secondary text). To make the site
     AA-compliant without changing anything else, swap in the commented values:
       --muted: #767676;  --muted-2: #6F6F6F;  --title-grey: #757575;  --crumb: #6E6E6E;
     Everything else in this palette already passes. */
  --muted:         #A7A7A7;   /* AA alternative: #767676 */
  --muted-2:       #BBBBBB;   /* AA alternative: #6F6F6F */
  --title-grey:    #ABABAB;   /* AA alternative: #757575 */
  --crumb:         #C6C6C6;   /* AA alternative: #6E6E6E */

  --line:          #F2F2F2;
  --line-2:        #EAEAEA;
  --install-bg:    #F8F8F8;
  --track:         #D4DAE2;

  --radius:        20px;
  --radius-pill:   50px;
  --shadow:        2px 2px 2px 0 #E3E3E3;

  --font: 'Open Sans', Arial, Helvetica, sans-serif;

  --header-h: 60px;
  --sidebar-w: 300px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
svg { flex: none; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent-dark); }
button, [role="button"], a, summary, label[for] { cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--text); margin: 0 0 .5em; font-weight: 700; line-height: 1.25; }

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

.clear { clear: both; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Reference container is fluid (max-width:100%) with 10px side padding. */
.container { width: 100%; padding: 0 10px; margin: 0 auto; }

/* --- header --------------------------------------------------------------- */
#header {
  background: var(--dark);
  height: var(--header-h);
  position: relative;
  z-index: 50;
}
#header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#header .logo { display: flex; align-items: center; gap: 10px; }
/* the logo artwork carries its own rounded frame — no extra radius */
#header .logo img { width: 40px; height: 40px; max-height: 40px; }
#header .logo .site-name {
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1.1;
  white-space: nowrap;
}
#header .logo .site-name small {
  display: block; color: #98A0B3; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

#header nav.menu ul { display: flex; align-items: center; gap: 2px; }
#header nav.menu a {
  display: block;
  padding: 0 15px;
  line-height: 35px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
}
#header nav.menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
#header nav.menu li.current-menu-item a { background: var(--accent); color: #fff; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; color: #fff; padding: 0;
}
.menu-toggle svg { width: 24px; height: 24px; }

#menu-mobile {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
#menu-mobile.is-open { display: block; }
#menu-mobile a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
#menu-mobile a:hover, #menu-mobile li.current-menu-item a { background: var(--accent); color: #fff; }

/* --- hero subheader (home) ------------------------------------------------ */
#subheader {
  position: relative;
  background: var(--dark);
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
}
#subheader .imgbg { position: absolute; inset: 0; overflow: hidden; }
#subheader .imgbg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .3;
}
#subheader .subcontainer {
  position: relative;
  width: 730px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
#subheader h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}
#subheader h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* slim white subheader on inner pages */
#subheader.np {
  background: var(--card);
  /* The reference tucks this bar 20px up under the dark header; the extra top
     padding keeps the 44px search field clear of it instead of being clipped. */
  padding: 35px 25px 15px;
  margin: -20px 0 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  overflow: visible;
}
#subheader.np .searchBox { margin: 0; flex: 1; min-width: 0; }
#subheader.np .social { margin: 0; }

/* --- search box ----------------------------------------------------------- */
.searchBox { width: 600px; max-width: 100%; margin: 30px auto 0; }
.searchBox form { display: flex; align-items: center; }
.sb_search {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: var(--line);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, .125);
  padding: 0 110px 0 20px;
  margin: 0 -70px 0 0;
  color: #43454B;
  font-family: Arial, sans-serif;
  font-size: 16px;
}
.sb_search::placeholder { color: #9A9DA6; }
.sb_submit {
  width: 70px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  padding: 0 25px;
}
.sb_submit:hover { background: var(--accent-dark); }
.sb_submit svg { width: 21px; height: 21px; }

/* --- social icons --------------------------------------------------------- */
ul.social { display: flex; justify-content: center; gap: 8px; margin: 30px 0 0; }
ul.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
}
ul.social a svg { width: 20px; height: 20px; fill: currentColor; }
ul.social a:hover { color: #fff; opacity: .85; }
ul.social .facebook  { background: #3B5998; }
ul.social .twitter   { background: #55ACEE; }
ul.social .instagram { background: #C13584; }
ul.social .youtube   { background: #BB0000; }
ul.social .pinterest { background: #CB2027; }
ul.social .telegram  { background: #0088CC; }

/* --- layout --------------------------------------------------------------- */
#main-site { display: block; padding-bottom: 30px; }
.content-wrap { display: flex; align-items: flex-start; gap: 20px; padding-top: 20px; }
.app-s { flex: 1; min-width: 0; }
#sidebar { width: var(--sidebar-w); flex: none; }

/* --- box (the universal white card) --------------------------------------- */
.box {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 25px;
  margin: 0 0 20px;
}
.box-title {
  position: relative;
  display: block;
  color: var(--title-grey);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px 0;
  margin: -20px 0 15px;
}
.box-title::before {
  content: "";
  position: absolute;
  left: -25px; bottom: -.5px;
  width: calc(100% + 50px); height: 1px;
  background: var(--line);
  display: block;
}
.box-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 45px; height: 5px;
  background: var(--accent);
  border-radius: var(--radius);
  display: block;
}

/* --- section headings (home) ---------------------------------------------- */
.section { margin-bottom: 10px; }
.title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 400;
  border-bottom: 1px solid var(--line-2);
  padding: 0 0 10px;
  margin: 3px 10px 10px;
}
.title-section .more { font-size: 13px; color: var(--accent); font-weight: 600; }

/* --- app grid (bav1) ------------------------------------------------------ */
.baps { display: flex; flex-wrap: wrap; }
.baps .bav1 { width: calc(100% / 6); padding: 10px; text-align: center; }

.bav a { display: block; color: inherit; }
.bav a:hover .title { color: var(--accent); }

/* The card surface itself lives on the <a>, exactly as in the reference:
   white, 20px radius, 2px magenta bottom border, 2px 2px 2px 0 #E3E3E3. */
.baps .bav1 > a,
.px-carousel .bav2 > a {
  background: var(--card);
  border-radius: var(--radius);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.baps .bav1 > a { padding: 15px; }
.px-carousel .bav2 > a { padding: 10px; overflow: hidden; }
.baps .bav1 > a:hover,
.px-carousel .bav2 > a:hover { box-shadow: 0 4px 10px 0 #D9D9D9; }
.bloque-imagen {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.bav1 .bloque-imagen { aspect-ratio: 1 / 1; }
.bloque-imagen img { width: 100%; height: 100%; object-fit: cover; }

.bav1 .title {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bav1 .version,
.bav1 .size,
.bav1 .app-date {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.bav1 .px-postmeta {
  display: block;
  color: var(--accent);
  font-size: 13px;
  margin: 5px 0 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* --- horizontal card (bav2) — carousel + sidebar -------------------------- */
.bav2 { width: 250px; }
.bav2 a { display: flex; align-items: center; gap: 10px; width: 100%; }
.bloque-imagen.w75 { width: 65px; height: 65px; flex: none; margin: 0 10px 0 0; border-radius: var(--radius); }
.bav2 .bav-txt { min-width: 0; }
.bav2 .title {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bav2 .version, .bav2 .size, .bav2 .app-date, .bav2 .dev {
  display: block; color: var(--muted); font-size: 12px;
}

/* --- carousel ------------------------------------------------------------- */
.px-carousel { position: relative; padding: 0 10px; }
.px-carousel-wrapper { overflow: hidden; }
.px-carousel-container {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}
.px-carousel-item { flex: none; width: calc(100% / 5); padding: 8px 10px 8px 0; }
.px-carousel-nav { position: absolute; inset: 0; pointer-events: none; }
.px-carousel-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 28px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: #333;
  padding: 0;
}
.px-carousel-nav button:hover { background: #fff; color: var(--accent); }
.px-carousel-nav button[disabled] { opacity: .3; cursor: default; }
.px-prev { left: -6px; }
.px-next { right: -6px; }
.px-carousel-nav svg { width: 16px; height: 16px; }

/* --- APK detail: header block --------------------------------------------- */
.app-icb.s1 { float: left; width: 150px; margin: 0 20px 0 0; text-align: center; }
.app-spe.s2 { float: right; width: 100%; padding: 0 0 0 170px; margin: 0 0 0 -170px; }

.app-s .app-icb.s1 .bloque-imagen { width: 150px; aspect-ratio: 1 / 1; }

/* block so the title starts on its own line, as in the reference */
#breadcrumbs { display: block; color: var(--crumb); font-size: 13px; margin: 0 0 4px; }
#breadcrumbs a { color: var(--crumb); }
#breadcrumbs a:hover { color: var(--accent); }
#breadcrumbs .sep { padding: 0 4px; }

.main-box-title {
  display: inline;
  color: var(--text);
  font-size: 38px;
  font-weight: 700;
  line-height: 48px;
  margin: 0;
}
.version-inline { color: var(--muted-2); font-size: 20px; font-weight: 600; margin-left: 8px; }

.meta-cats { margin: 12px 0 10px; }
ul.post-categories { display: flex; flex-wrap: wrap; gap: 6px; }
ul.post-categories a {
  display: inline-block;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 2px 10px 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
ul.post-categories a:hover { background: var(--accent-dark); color: #fff; }
.descripcion { font-size: 14px; line-height: 25px; margin: 0 0 10px; }
.page-lede { margin-top: 12px; }

.buttond {
  display: block;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 10px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  border: 0;
  width: 100%;
}
.buttond:hover { background: var(--accent-dark); color: #fff; }
.buttond svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; fill: currentColor; }

.box-rating { margin: 10px 0 0; text-align: center; }
.box-rating .rating-val { display: block; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.2; }
.box-rating .rating-val small { font-size: 12px; color: var(--muted); font-weight: 400; }
.box-rating .rating {
  display: block;
  width: 70px; height: 14px;
  background: var(--track);
  border-radius: 3px;
  margin: 7px auto;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}
.box-rating .rating span { display: block; height: 100%; background: var(--accent); }
.box-rating .votes { display: block; color: var(--muted); font-size: 12px; }
.link-report { margin: 10px 0 0; color: #4D535F; font-size: 13px; text-align: center; }
.link-report svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; fill: currentColor; }

.box-data-app { border-radius: var(--radius); margin: 6px 0 0; }
.data-app { display: flex; flex-wrap: wrap; }
.da-s { width: 25%; padding: 8px 10px 8px 0; font-size: 13px; }
.da-s b { display: block; color: var(--text); font-size: 13px; font-weight: 700; }
.da-s span { color: var(--muted); }
.da-s a { color: var(--accent); }

.box-social { margin-top: 10px; }
ul.botones_sociales { display: flex; flex-wrap: wrap; gap: 8px; }
ul.botones_sociales a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--line);
  border-radius: var(--radius);
  padding: 0 17px 0 12px;
  height: 31px;
  color: #6B6B6B;
  font-size: 11px;
}
ul.botones_sociales a:hover { background: #E8E8E8; color: var(--text); }
ul.botones_sociales svg { width: 13px; height: 13px; fill: currentColor; }

/* --- article body --------------------------------------------------------- */
.entry { font-size: 14px; line-height: 25px; color: var(--text); }
.entry p { margin: 0 0 15px; font-size: 14px; line-height: 25px; }
.entry h2, .entry .prose-title {
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 28px;
  margin: 25px 0 12px;
}
.entry h3 { color: var(--text); font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.entry h4 { color: var(--accent); font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.entry > :first-child { margin-top: 0; }
.entry strong { color: var(--text); font-weight: 700; }
.entry a { color: var(--accent); }
.entry ul.prose-list { margin: 0 0 15px; padding: 0 0 0 18px; }
.entry ul.prose-list li {
  list-style: disc;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 25px;
}
.entry ul.prose-list li::marker { color: var(--accent); }

/* --- download box --------------------------------------------------------- */
#download ul li { margin: 0 0 10px; }
#download ul li a {
  position: relative;
  display: block;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 8px 25px 8px 56px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
#download ul li a:hover { background: var(--accent-dark); color: #fff; }
#download ul li a svg {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  fill: currentColor;
}
.bx-info-install {
  background: var(--install-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  margin: 15px 0 0;
  font-size: 13px;
}
.bx-info-install h3 { font-size: 14px; margin: 0 0 8px; }
.bx-info-install ol { padding-left: 18px; }
.bx-info-install ol li { list-style: decimal; margin: 0 0 4px; }

/* --- related -------------------------------------------------------------- */
.rlat .baps .bav1 { width: calc(100% / 5); }

/* --- sidebar widgets ------------------------------------------------------ */
.widget { margin: 0 0 20px; }
.widget .widget-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  margin: 0;
}
.widget .widget-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 5px 10px 10px;
}
.widget .widget-content .bav2 { width: 100%; padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget .widget-content .bav2 > a { background: none; border: 0; box-shadow: none; padding: 0; }
.widget .widget-content .bav2:last-child { border-bottom: 0; }
.widget-cats li { border-bottom: 1px solid var(--line); }
.widget-cats li:last-child { border-bottom: 0; }
.widget-cats a { display: block; padding: 9px 5px; color: var(--text); font-size: 13px; }
.widget-cats a:hover { color: var(--accent); }
.widget-cats .cat-count { color: var(--muted); }
.widget-search { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin: 0 0 20px; }
.widget-search form { display: flex; gap: 8px; }
.widget-search input {
  flex: 1; min-width: 0; height: 36px;
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 0 10px; font-family: var(--font); font-size: 13px; color: var(--text);
}
.widget-search button {
  height: 36px; padding: 0 16px;
  background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
}
.widget-search button:hover { background: var(--accent-dark); }

/* --- footer --------------------------------------------------------------- */
footer.site-footer { background: var(--dark); color: #fff; padding: 35px 0 30px; margin-top: 20px; }
footer.site-footer a { color: #fff; }
footer.site-footer a:hover { color: var(--accent); }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-brand { max-width: 420px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .logo img { width: 40px; height: 40px; }
.footer-brand .site-name { color: #fff; font-size: 16px; font-weight: 700; }
.footer-brand p { color: #B9BFCC; font-size: 13px; line-height: 22px; margin: 0 0 10px; }
.footer-col h2 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: #B9BFCC; font-size: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 25px; padding-top: 18px;
  color: #98A0B3; font-size: 12px; line-height: 20px;
}
.footer-bottom p { margin: 0 0 6px; }
.age-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  border-radius: 20px; padding: 1px 9px;
  font-size: 11px; font-weight: 700; margin-right: 6px;
}

/* --- scroll to top -------------------------------------------------------- */
.scroll-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.scroll-top[hidden] { display: none; }
.scroll-top.is-visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--accent-dark); }
.scroll-top svg { width: 20px; height: 20px; }

/* --- search results ------------------------------------------------------- */
.search-summary { font-size: 14px; color: var(--text); margin: 0 0 15px; }
.search-summary strong { color: var(--accent); }
.no-results { padding: 20px 0; font-size: 14px; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1200px) {
  .baps .bav1 { width: calc(100% / 5); }
  .rlat .baps .bav1 { width: calc(100% / 4); }
  .px-carousel-item { width: calc(100% / 4); }
}

@media (max-width: 1024px) {
  .content-wrap { flex-direction: column; }
  #sidebar { width: 100%; }
  .baps .bav1 { width: calc(100% / 4); }
  .rlat .baps .bav1 { width: calc(100% / 4); }
  .px-carousel-item { width: calc(100% / 3); }
  .da-s { width: 33.333%; }
}

@media (max-width: 860px) {
  #header nav.menu { display: none; }
  .menu-toggle { display: inline-flex; }
  #subheader h1 { font-size: 30px; }
  #subheader.np { flex-direction: column; align-items: stretch; gap: 12px; }
  #subheader.np .social { justify-content: flex-start; }
  .baps .bav1, .rlat .baps .bav1 { width: calc(100% / 3); }
  .px-carousel-item { width: calc(100% / 2); }
  .da-s { width: 50%; }

  /* stack the app header block */
  .app-icb.s1 { float: none; width: 130px; margin: 0 auto 15px; }
  .app-spe.s2 { float: none; width: 100%; padding: 0; margin: 0; text-align: center; }
  .app-spe.s2 ul.post-categories, .app-spe.s2 ul.botones_sociales { justify-content: center; }
  .app-s .app-icb.s1 .bloque-imagen { width: 130px; margin: 0 auto; }
  .main-box-title { font-size: 28px; line-height: 36px; }
  .version-inline { font-size: 16px; }
  .data-app { text-align: left; }
}

@media (max-width: 600px) {
  .box { padding: 15px; border-radius: 15px; }
  .box-title { margin: -15px 0 12px; }
  .box-title::before { left: -15px; width: calc(100% + 30px); }
  .baps .bav1, .rlat .baps .bav1 { width: 50%; }
  .px-carousel-item { width: 100%; }
  .title-section { font-size: 18px; margin-inline: 5px; }
  #subheader { padding: 28px 0; }
  #subheader h1 { font-size: 24px; }
  #subheader h2 { font-size: 14px; }
  .searchBox { margin-top: 20px; }
  .sb_search { font-size: 16px; }
  .da-s { width: 50%; }
  .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 380px) {
  .baps .bav1, .rlat .baps .bav1 { width: 100%; }
  .da-s { width: 100%; }
}

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

@media print {
  #header, #subheader, #sidebar, footer.site-footer, .scroll-top { display: none !important; }
  body { background: #fff; }
  .box { box-shadow: none; border: 1px solid #ddd; }
}
