/* =========================================================================
   Ayuda ES · tema del Help Center (base Copenhagen 4.53.2, Templating API v4)
   Mobile-first. Los colores de cada marca están en templates/document_head.hbs.
   ========================================================================= */

/* ---------- Tipografía (Roboto alojada en el propio tema) ---------- */
@font-face {
  font-family: "Roboto";
  src: url(/hc/theming_assets/01M7Y089YZMES3G67DZ92NG1YP) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url(/hc/theming_assets/01M7Y08CGS3SK269AC4R57JHKY) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url(/hc/theming_assets/01M7Y08CHN7DJ1PBMAH0BZD237) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Arial ajustada a las medidas de Roboto: evita saltos de maquetación (CLS) mientras carga la fuente */
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial");
  ascent-override: 92.49%;
  descent-override: 24.34%;
  line-gap-override: 0%;
  size-adjust: 100.3%;
}

/* ---------- Variables comunes a todas las marcas ---------- */
:root {
  --c-text: #231A2E;
  --c-muted: #5E5470;
  --c-bg: #F7F4FB;
  --c-surface: #FFFFFF;
  --c-border: #E4DCEF;
  --font: "Roboto", "Roboto Fallback", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(35, 26, 46, .06), 0 6px 20px rgba(35, 26, 46, .08);
  --bh-h: 58px;
  --gutter: 16px;
  --focus: var(--brand-primary);
  --gradient: linear-gradient(to top right, var(--brand-grad-from), var(--brand-grad-to));
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --bh-h: 105px; }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bh-h) + 12px); }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main { display: block; }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--brand-primary); }

h1, h2, h3 { line-height: 1.2; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

.icon { width: 24px; height: 24px; flex: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--c-text);
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Zonas oscuras (cabecera, degradado y footer): foco claro */
.bh, .hero, .band, .site-footer { --focus: var(--brand-focus-on-dark); }

/* ---------- Cabecera: clon del header de la web de la marca ----------
   Móvil (< 1024 px): barra de 58 px con icono de inicio, logo y otras marcas (sin menú desplegable).
   Escritorio (>= 1024 px): barra de 105 px con logo, otras marcas y menú en mayúsculas.
   Medidas y colores sacados de la web (20 nov 2026). */
.bh {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-header-bg);
  box-shadow: 0 4px 3.84px .16px rgba(0, 0, 0, .5);
  font-family: var(--font);
}
.bh ul { margin: 0; padding: 0; list-style: none; }
.bh img { display: block; max-width: none; }
.bh a { color: #FFFFFF; text-decoration: none; }

.bh__inner {
  display: flex;
  align-items: center;
  height: var(--bh-h);
}

.bh__home {
  display: flex;
  flex: none;
  align-items: center;
  width: 44px;
  height: 100%;
  padding-left: 8px;
}

.bh__brand {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding-left: 8px;
}
.bh__logo { display: flex; flex: none; align-items: center; min-height: 44px; }
.bh__logo img { width: 103px; height: 39px; }
/* v1.2.6: "Ayuda" igual en las cuatro marcas, en proporción al logo (alto visible del logo = L):
   negrita, palabra de 0,55 × L de alto; raya blanca al 60 % de 0,8 × L; 0,3 × L entre logo y raya y entre raya y texto.
   Aquí L = 38,5 px (móvil) y 47,8 px (escritorio). */
.bh__help {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 11.5px;
  padding-left: 11.5px;
  font-size: 1.375rem;   /* 22 px */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
}
.bh__help::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 31px;
  border-left: 1px solid rgba(255, 255, 255, .6);
  transform: translateY(-50%);
}

.bh__brands { display: flex; flex: none; align-items: center; padding-right: 9px; }
.bh__brands a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 11px;
}
.bh__brands li + li a { border-left: 1px solid rgba(255, 255, 255, .5); }
.bh__brands img { width: 22px; height: 22px; }

.bh__nav { display: none; }

@media (max-width: 359px) { /* v1.2.6: 320–359 px, el logo algo más pequeño (como en YoCasino) para que quepa "Ayuda" en negrita */
  .bh__logo img { width: 92px; height: 34.8px; }
  .bh__help { margin-left: 10px; padding-left: 10px; font-size: 1.2rem; } /* 19,2 px: L = 33,5 px */
  .bh__help::before { height: 27px; }
}

@media (min-width: 1024px) {
  .bh { box-shadow: none; }
  .bh__inner {
    position: relative;
    max-width: 1242px;
    margin: 0 auto;
  }
  .bh__home { display: none; }
  .bh__brand { flex: none; padding-left: 3%; }
  .bh__logo img { width: 135px; height: 48.6px; }
  .bh__help { margin-left: 14px; padding-left: 14px; font-size: 1.6875rem; } /* 27 px */
  .bh__help::before { height: 38px; }

  .bh__brands {
    position: absolute;
    top: 0;
    right: 0;
    gap: 14px;
    height: 60px;
    padding-right: 14px;
  }
  .bh__brands a { height: 60px; padding: 0; }
  .bh__brands li + li a { border-left: 0; }
  .bh__brands img { width: 100px; height: 41px; }

  /* Misma posición que en la web (texto centrado a 85 px); zona táctil de 44 px */
  .bh__nav {
    position: absolute;
    top: 63px;
    right: 40px;
    display: block;
    width: auto;        /* v1.2.8: crece hacia la izquierda si el usuario agranda el texto, en vez de salirse de la pantalla */
    min-width: 730px;   /* con el texto normal, igual que antes (730 px, como en la web) */
    max-width: calc(100% - 80px);
    padding-left: 7px;
  }
  .bh__menu { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .bh__menu a {
    display: block;
    height: 44px;
    padding: 0 15px;
    border-radius: 7px;
    color: rgba(255, 255, 255, .6); /* v1.2.3: un poco más visible (antes 50 %) */
    font-size: 1rem;
    line-height: 44px;
    white-space: nowrap;
    -webkit-font-smoothing: auto; /* v1.2.3: como en la web; el suavizado del resto del tema adelgaza la letra en Mac */
  }
  .bh__menu a:hover { color: #FFFFFF; font-weight: 700; } /* v1.2.3: en negrita al pasar el ratón */
  /* v1.2.3: reserva el ancho del texto en negrita (data-label) para que los enlaces no se muevan al pasar el ratón.
     Invisible y sin texto para los lectores de pantalla. */
  .bh__menu a::after {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 700;
  }
}

/* ---------- Degradado: hero de portada y banda de las páginas interiores ---------- */
.hero, .band {
  background: var(--brand-grad-from);
  background-image: var(--gradient);
  color: #FFFFFF;
}

.hero { padding: 36px 0 44px; }
.hero:focus { outline: none; }
.hero__title {
  max-width: 20ch;
  margin: 0 0 12px;
  font-size: clamp(1.875rem, 1.4rem + 2.3vw, 3.125rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero__subtitle {
  max-width: 36rem;
  margin: 0 0 28px;
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.375rem);
  font-weight: 300;
  line-height: 1.45;
}
@media (min-width: 768px) {
  .hero { padding: 72px 0 88px; }
}

.band { padding: 16px 0 24px; }
.band--min { padding: 0; height: 12px; }
@media (min-width: 768px) {
  .band { padding: 24px 0 32px; }
}

/* Mascota. Desde 768 px, a la izquierda del título (reglas de abajo).
   En móvil, centrada encima del título; el título y el subtítulo siguen a todo el ancho. */
.hero__mascot { display: none; }
@media (max-width: 767px) {
  .hero__main:has(.hero__mascot) { display: flex; flex-direction: column; }
  .hero__mascot {
    display: block;
    order: -1;
    align-self: center;
    margin-bottom: 4px;
  }
  .hero__mascot img { display: block; width: 92px; height: 133px; }
  .hero__main:has(.hero__mascot) .hero__title { align-self: center; text-align: center; }
}
@media (min-width: 768px) {
  .hero__main:has(.hero__mascot) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
  }
  .hero__main .hero__title, .hero__main .hero__subtitle { grid-column: 2; }
  .hero__main .search-box { grid-column: 1 / -1; }
  .hero__mascot {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 16px;
  }
  .hero__mascot img { display: block; width: 138px; height: 200px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__mascot img { width: 110px; height: 160px; }  /* con las preguntas al lado hay menos sitio */
}

/* Hero en dos columnas, solo en escritorio: preguntas frecuentes a la derecha */
.hero__faq { display: none; }
@media (min-width: 1024px) {
  .hero__inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: center;
  }
  .hero__inner--split .hero__faq {
    display: block;
    padding: 8px 0 4px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(28, 0, 48, .28);
    color: var(--c-text);
    --focus: var(--brand-primary);
  }
  .hero__faq-title { margin: 0; padding: 12px 20px 8px; font-size: 1.125rem; }
  .hero__faq .link-list a { min-height: 48px; padding: 10px 20px; font-size: .9375rem; }
  .hero__faq .link-list > li:nth-child(n+7) { display: none; } /* como mucho 6 */
  .home-faq { display: none; } /* en escritorio ya están en el hero */
}

/* ---------- Ruta de navegación ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: -8px 0 8px;
  padding: 0;
  list-style: none;
  font-size: .875rem;
}
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs li + li::before {
  content: "›";
  margin: 0 8px;
  opacity: .8;
}
.band .breadcrumbs a { color: #FFFFFF; text-decoration: none; }
.band .breadcrumbs a:hover { text-decoration: underline; }
.band .breadcrumbs li:last-child a { font-weight: 700; }

/* ---------- Buscador ---------- */
/* El formulario lo genera Zendesk con {{search}}: form.search > input[type=search] + input[type=submit]. */
.search-box { position: relative; max-width: 640px; }
.search-box__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--c-muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.search-box .search {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(28, 0, 48, .28);
}
.search-box input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 6px 0 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: 1rem; /* 16 px: evita el zoom automático en iOS */
  -webkit-appearance: none;
  appearance: none;
}
.search-box input[type="search"]::placeholder { color: var(--c-muted); opacity: 1; text-overflow: ellipsis; }
.search-box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.search-box input[type="search"]:focus-visible { outline-offset: -2px; --focus: var(--brand-primary); }
.search-box input[type="submit"] {
  flex: none;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-accent);
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .15s;
}
.search-box input[type="submit"]:hover { background: var(--brand-accent-hover); }
.search-box input[type="submit"]:focus-visible { --focus: var(--brand-focus-on-dark); }
@media (min-width: 768px) {
  .search-box--hero input[type="search"], .search-box--hero input[type="submit"] { min-height: 56px; }
  .search-box--hero input[type="submit"] { padding: 0 28px; }
  .search-box--hero input[type="search"] { font-size: 1.0625rem; padding-left: 44px; }
  .search-box--hero .search-box__icon { left: 20px; }
}
.search-box--compact { max-width: 560px; }
.search-box--compact .search { box-shadow: 0 6px 18px rgba(28, 0, 48, .22); }

/* ---------- Títulos de página y secciones ---------- */
.page { padding-top: 28px; padding-bottom: 48px; }
.page:focus { outline: none; }
.page--narrow, .container--narrow { max-width: calc(52rem + 2 * var(--gutter)); }
@media (min-width: 768px) {
  .page { padding-top: 40px; padding-bottom: 64px; }
}

.page-header { margin-bottom: 24px; }
.page-header__title {
  margin: 0 0 8px;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 700;
}
.page-header__title--small { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem); margin-bottom: 20px; }
.page-header__desc { max-width: 60ch; margin: 0; color: var(--c-muted); font-size: 1.0625rem; }

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  font-weight: 700;
}

/* ---------- Portada ---------- */
.home { padding-bottom: 48px; }
.home-section { padding-top: 32px; }
@media (min-width: 768px) {
  .home { padding-bottom: 64px; }
  .home-section { padding-top: 48px; }
}

.topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topics > li { display: flex; }
.topic {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.topic:hover { border-color: var(--brand-primary); box-shadow: var(--shadow); }
.topic__icon { /* v1.2.4: sin fondo, el icono en el color de la marca (--brand-icon; si no hay, el principal) */
  display: grid;
  flex: none;
  place-items: center start; /* alineado con el título */
  width: 48px;
  height: 48px;
  color: var(--brand-icon, var(--brand-primary));
}
.topic__icon .icon { width: 34px; height: 34px; stroke-width: 1.6; } /* sin fondo, algo más grande para que no se pierda */
.topic__icon:empty::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.topic__name { display: block; margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.topic__desc { display: block; margin-top: 4px; color: var(--c-muted); font-size: .875rem; line-height: 1.4; }

@media (min-width: 600px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .topics { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .topic { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; }
  .topic:hover { transform: translateY(-2px); }
  .topic__icon { width: 56px; height: 56px; }
  .topic__icon .icon { width: 40px; height: 40px; }
  .topic__name { font-size: 1.1875rem; }
  .topic__desc { font-size: .9375rem; }
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .faq { grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
}
.faq > li { display: flex; }

/* ---------- Listas de enlaces (artículos) ---------- */
.link-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  list-style: none;
}
.link-list > li + li { border-top: 1px solid var(--c-border); }
.link-list--flush { border: 0; border-radius: 0; background: none; }
.link-list--spaced { margin-bottom: 20px; }

.link-list a, .faq__link {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--c-text);
  text-decoration: none;
  line-height: 1.4;
}
.faq__link {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-weight: 700;
}
.link-list a::after, .faq__link::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
  transform: rotate(45deg);
}
.link-list a:hover, .faq__link:hover { color: var(--brand-primary); }
.faq__link:hover { border-color: var(--brand-primary); }

.more-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* ---------- Categoría ---------- */
.section-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  .section-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
}
.section-block {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}
.section-block__title {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 1.125rem;
}
.section-block__title a { display: block; padding: 12px 0; color: var(--c-text); text-decoration: none; }
.section-block__title a:hover { color: var(--brand-primary); text-decoration: underline; }
.section-block .more-link { margin: 0 0 6px; }

/* ---------- Artículo ---------- */
.article {
  padding: 24px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.article:focus { outline: none; }
@media (min-width: 768px) {
  .article { padding: 40px 48px; }
}
.article__title {
  margin: 0 0 8px;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 700;
}
.article__meta { margin: 0 0 24px; color: var(--c-muted); font-size: .875rem; }

.article__body {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.article__body > :first-child { margin-top: 0; }
.article__body > :last-child { margin-bottom: 0; }
.article__body h2 { margin: 1.8em 0 .5em; font-size: 1.375rem; }
.article__body h3 { margin: 1.5em 0 .4em; font-size: 1.1875rem; }
.article__body h4 { margin: 1.4em 0 .4em; font-size: 1.0625rem; }
.article__body p, .article__body ul, .article__body ol { margin: 0 0 1em; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li + li { margin-top: .35em; }
.article__body a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.article__body strong { font-weight: 700; }
.article__body img { border-radius: 8px; }
.article__body blockquote {
  margin: 1.5em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-primary-soft);
}
.article__body blockquote > :last-child { margin-bottom: 0; }
.article__body table {
  display: block;
  max-width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.5;
}
.article__body th, .article__body td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
.article__body th { background: var(--c-bg); font-weight: 700; }
.article__body iframe, .article__body video { max-width: 100%; }
.article__body iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

.attachments { margin: 24px 0 0; padding: 0; list-style: none; }
.attachments li { padding: 8px 0; border-top: 1px solid var(--c-border); }
.attachments__size { color: var(--c-muted); font-size: .875rem; }

.votes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.votes__question { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.votes__controls { display: flex; gap: 8px; }

.related { margin-top: 32px; }

/* ---------- Búsqueda ---------- */
.results { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.result {
  position: relative;
  padding: 16px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.result__title { margin: 0 0 4px; font-size: 1.125rem; }
.result__title a { text-decoration: none; }
.result__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* toda la tarjeta es pulsable */
.result:hover { border-color: var(--brand-primary); }
.result__title a:hover { text-decoration: underline; }
.result__path { margin: 0 0 8px; color: var(--c-muted); font-size: .8125rem; }
.result__path span + span::before { content: " › "; }
.result__text { margin: 0; color: var(--c-text); font-size: .9375rem; }
.result__text em { font-style: normal; font-weight: 700; }

.empty {
  padding: 24px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.empty p { margin: 0 0 12px; }
.empty .btn { margin-top: 8px; }
.empty--center { text-align: center; padding: 40px 20px; }
.empty--center .page-header__title { margin-bottom: 12px; }

/* Paginación generada por Zendesk con {{pagination}} */
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  text-decoration: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand-accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-accent-hover); }
.btn--outline { border-color: var(--brand-primary); background: var(--c-surface); color: var(--brand-primary); }
.btn--outline:hover { background: var(--brand-primary); color: #FFFFFF; }
.btn--vote {
  min-width: 80px;
  min-height: 44px;
  border-color: var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
}
.btn--vote:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn--vote.is-selected, .btn--vote[aria-pressed="true"] {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #FFFFFF;
}

/* ---------- Contacto (en todas las páginas, antes del footer) ---------- */
.contact {
  padding: 40px 0 44px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  text-align: center;
}
.contact__title { margin: 0 0 8px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.contact__lead { margin: 0 0 24px; color: var(--c-muted); }
.contact__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}
.contact-card__icon { /* v1.2.7: como los iconos de los temas: sin fondo, en el color de la marca (--brand-icon; si no hay, el principal) */
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: var(--brand-icon, var(--brand-primary));
}
.contact-card__icon .icon { width: 34px; height: 34px; stroke-width: 1.6; }
@media (min-width: 960px) {
  .contact-card__icon { width: 56px; height: 56px; }
  .contact-card__icon .icon { width: 40px; height: 40px; }
}
.contact-card__title { margin: 0; font-size: 1.125rem; }
.contact-card__hours { margin: 2px 0 14px; color: var(--c-muted); font-size: .9375rem; }
.contact-card__action { width: 100%; max-width: 260px; margin-top: auto; }
/* Ley 10/2025: tarjeta de correo postal, con el mismo estilo que teléfono y email. La dirección va en tres líneas. */
/* v1.2.8 (Ley 10/2025): enlace a la sección «Atención al cliente y reclamaciones», bajo las tarjetas. Solo sale con la URL del ajuste. */
.contact__more { margin: 20px 0 0; }
.contact__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-card__address { margin: 2px 0 0; color: var(--c-text); font-size: .9375rem; font-style: normal; line-height: 1.5; }
/* v1.2.10: «Puedes escribirnos a:» bajo «Correo postal», antes de la dirección, en letra normal y en el color del texto. */
.contact-card__lead { margin: 2px 0 0; color: var(--c-text); font-size: .9375rem; }
@media (min-width: 768px) {
  .contact { padding: 56px 0 60px; }
  .contact__options { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-card--postal { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); } /* debajo de teléfono y email, centrada y del mismo ancho */
  .contact-card { padding: 28px 20px; }
}

/* ---------- Footer legal (idéntico en contenido al de la web de la marca) ---------- */
.site-footer {
  padding: 36px 0 28px;
  background: var(--brand-footer-bg);
  color: #FFFFFF;
  font-size: .875rem;
  text-align: center;
}
.site-footer a { color: #FFFFFF; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__logo { display: block; width: auto; height: 40px; margin: 0 auto 16px; }

.social { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px !important; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.social img { width: 32px; height: 32px; }

.site-footer__rule {
  width: 30%;
  margin: 0 auto 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .7);
}
.site-footer__claim { margin: 0 0 8px; }
.site-footer__legal {
  max-width: 46rem;
  margin: 0 auto 20px;
  font-size: .75rem;
  line-height: 1.6;
}

.seals, .stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px !important;
}
.seals a, .stores a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.seal { display: block; width: auto; height: 36px; }
.seal--wide { height: 34px; }
.stores img { display: block; width: auto; height: 40px; }

.payments { display: block; max-width: 360px; margin: 0 auto 24px; }
.payments img { display: block; width: 100%; height: auto; }
@media (min-width: 640px) {
  .payments { max-width: 600px; }
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 12px;
  max-width: 480px;
  margin: 0 auto 16px !important;
  font-size: .8125rem;
  font-weight: 700;
}
.legal-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}
.legal-links a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 60rem;
    gap: 0;
  }
  .legal-links li { display: flex; align-items: center; }
  .legal-links li:not(:last-child)::after { content: "|"; margin: 0 8px; opacity: .8; }
}

.site-footer__copyright { margin: 0; color: #CACACA; font-size: .75rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Banner de avisos (v1.1) ----------
   Franja bajo la cabecera con el aviso publicado en la sección Avisos (la pinta script.js).
   Solo clases propias .hc-announcement*: no cambia ningún estilo del resto del tema.
   El contenedor #hc-announcement no tiene estilos: vacío, no ocupa sitio. */
.hc-announcement__link {
  display: block;
  border-left: 4px solid #E3A008;
  border-bottom: 1px solid #F2DA97;
  background: #FFF3D1;
  color: #3B2A05;
  font-family: var(--font, Arial, sans-serif);
  text-decoration: none;
}
.hc-announcement__link:hover { background: #FFE9AD; color: #3B2A05; }
.hc-announcement__link:focus-visible { outline: 3px solid #3B2A05; outline-offset: -3px; }
.hc-announcement__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  min-height: 47px; /* 48 px con el borde inferior */
  margin-inline: auto;
  padding: 10px var(--gutter, 16px) 10px calc(var(--gutter, 16px) - 4px); /* el borde de 4 px ya separa del lateral */
}
.hc-announcement__icon { flex: none; display: block; color: #A86A00; }
.hc-announcement__arrow { flex: none; display: block; margin-left: auto; color: #6B5A3A; }
.hc-announcement__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .9375rem;   /* 15 px */
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere; /* v1.2.8: el aviso se ve entero, sin recortar (antes, 2 líneas en móvil y 1 en escritorio) */
}
@media (min-width: 768px) {
  .hc-announcement__text { font-size: 1rem; } /* 16 px */
}

/* ---------- v1.2 ----------
   Solo añadidos. Cada bloque se activa con su propio elemento; sin ellos, nada cambia. */

/* 1. Botón de chat en artículos: enlaces a "#open-chat". script.js les añade .btn .btn--primary .hc-chat-btn
      (el botón principal del tema); aquí solo se anula el color y el subrayado de los enlaces del artículo. */
.article__body a.hc-chat-btn,
.article__body a.hc-chat-btn:hover { color: #FFFFFF; text-decoration: none; }

/* 2. Imágenes en artículos: borde fino y esquinas suaves (las esquinas ya venían). Las verticales,
      marcadas por script.js con .hc-img--portrait, a 360 px como mucho y centradas. */
.article__body img { border: 1px solid var(--c-border); }
.article__body img.hc-img--portrait {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  margin: 1.5em auto;
}

/* 3. Búsqueda sin resultados: reutiliza .page-header, .section-title, .topics y .btn. */
.hc-search-topics { margin-top: 4px; }

/* 4. Artículos internos (SOP): franja roja y estilo de manual. Todo cuelga de .hc-sop-flag,
      que solo existe en artículos internos; el cuerpo del texto mantiene la fuente normal. */
.hc-sop-flag {
  background: #B42318;
  color: #FFFFFF;
}
.hc-sop-flag__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  max-width: 1120px;
  min-height: 40px;
  margin: 0 auto;
  padding: 8px var(--gutter, 16px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
}
.hc-sop-flag__icon { flex: none; }
.hc-sop-flag__part { white-space: nowrap; } /* si no cabe en una línea, se parte entre las dos frases */
.hc-sop-flag ~ .page .article {
  border-color: #E3DCCB;
  background: #FAF8F2; /* tipo papel */
}
.hc-sop-flag ~ .page .article__title,
.hc-sop-flag ~ .page .article__meta,
.hc-sop-flag ~ .page .article__body h2,
.hc-sop-flag ~ .page .article__body h3,
.hc-sop-flag ~ .page .article__body h4,
.hc-sop-flag ~ .page .votes__question,
.hc-sop-flag ~ .page .related .section-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: -.01em;
}
.hc-sop-flag ~ .page .article__title { font-size: clamp(1.375rem, 1.15rem + 1.1vw, 1.875rem); }

/* Etiqueta INTERNAL en los listados de categoría y sección */
.hc-internal-title { min-width: 0; }
.hc-internal-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #B42318;
  border-radius: 4px;
  background: #FFF1F0;
  color: #B42318;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---------- v1.2.8 · Ley 10/2025 (art. 5.1): lectura fácil con pictogramas ----------
   Igual en las cuatro marcas. En el artículo solo van clases (el editor de Zendesk admite class):
   <div class="lectura-facil"><h2>Lectura fácil</h2><p class="lf lf-telefono">Llámanos al …</p>…</div>
   El tema pone la letra grande, la separación y el pictograma (decorativo: el significado va en el texto).
   Pictogramas propios en assets/lf-*.svg, de un solo color oscuro y sin texto. */
.article__body .lectura-facil {
  margin: 2em 0;
  padding: 20px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 1.25rem;   /* 20 px: más grande que el artículo (17 px) */
  line-height: 1.6;
  text-align: left;     /* alineado a la izquierda y sin justificar */
}
.article__body .lectura-facil h2 { margin: 0 0 20px; font-size: 1.5rem; line-height: 1.3; }
.article__body .lectura-facil p { margin: 0; }
.article__body .lectura-facil .lf { /* el pictograma va a la izquierda, centrado con el texto; el texto admite enlaces */
  position: relative;
  min-height: 40px;
  padding: 4px 0 4px 54px; /* una línea (32 px) queda centrada con el pictograma */
}
.article__body .lectura-facil .lf + .lf { margin-top: 24px; } /* separación clara entre ideas */
.article__body .lectura-facil .lf::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background: no-repeat center / contain;
}
.article__body .lectura-facil a[href^="tel:"] { white-space: nowrap; } /* el teléfono nunca se parte en dos líneas */
.article__body .lectura-facil .lf-persona::before { background-image: url(/hc/theming_assets/01M82T5KM21R7NNYTAMTRN7BJZ); }
.article__body .lectura-facil .lf-chat::before { background-image: url(/hc/theming_assets/01M82T5K3F81NEPW4A9BCXDECB); }
.article__body .lectura-facil .lf-telefono::before { background-image: url(/hc/theming_assets/01M82T5JXS0BF8GNNYA9EVPPQD); }
.article__body .lectura-facil .lf-email::before { background-image: url(/hc/theming_assets/01M82T5K3DSCBPGTDRSSTRBPME); }
.article__body .lectura-facil .lf-carta::before { background-image: url(/hc/theming_assets/01M82T5KMR2TC8WG32SF0895P7); }
.article__body .lectura-facil .lf-queja::before { background-image: url(/hc/theming_assets/01M82T5K129TKV0P73KNNA7B5F); }
.article__body .lectura-facil .lf-numero::before { background-image: url(/hc/theming_assets/01M82T5JXH91YHAKN9AV1PMGYQ); }
.article__body .lectura-facil .lf-reloj::before { background-image: url(/hc/theming_assets/01M82T5K19ZR2Z2YQZA97Z6Y13); }
.article__body .lectura-facil .lf-balanza::before { background-image: url(/hc/theming_assets/01M82T5K0G3Y4B3TYDG8V62QB9); }
.article__body .lectura-facil .lf-sordera::before { background-image: url(/hc/theming_assets/01M82T5K17QR6MCRT3PWW03ETE); }
@media (min-width: 768px) {
  .article__body .lectura-facil { padding: 32px; }
  .article__body .lectura-facil .lf { min-height: 48px; padding: 8px 0 8px 68px; }
  .article__body .lectura-facil .lf::before { width: 48px; height: 48px; margin-top: -24px; }
}
