/*
Theme Name: Mira Casinos
Description: Tema para Mira Casinos (CL / es-CL). Paleta chilena: azul cordillera, rojo copihue, cobre y blanco nieve sobre papel cálido. Bloques permitidos: encabezados, texto, tablas, listas, pros/contras, imagen ancha, cita del autor.
Version: 1.0.0
Author: WP-generator
Text Domain: wpgen
*/

/* Nunito Sans, variable, self-hosted. Two files cover every weight from 300 to 800. */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var-italic.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* Chilean flag palette with fixed jobs: cordillera navy = structure,
   azul = action and links, cobre = emphasis, copihue red = alerts only.
   They never swap roles. */
:root {
  --cordillera: #0B2050;
  --cordillera-2: #12294F;
  --cordillera-3: #1B3F82;
  --heroe: linear-gradient(152deg, #1B3F82 0%, #12294F 52%, #081633 100%);
  --cobre: #C1662F;
  --cobre-fondo: #9A4E20;
  --cobre-claro: #E08A4A;
  --accion: #1946A8;
  --accion-fuerte: #12327A;
  --copihue: #D42A21;
  --nieve: #F7F5F1;

  --tipo: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --texto: #141C2B;
  --suave: #5A6577;
  --linea: #DCE1EA;
  --linea-clara: #ECEFF5;
  --tarjeta: #ffffff;
  --pagina: #F5F4F1;
  --tono: #FAF9F6;
  --positivo: #E8F1EA;
  --positivo-linea: #1F7A45;
  --negativo: #FBEBEA;
  --negativo-linea: #C4322A;

  --radio: 12px;
  --radio-lg: 20px;
  --ancho: 1200px;

  /* Icon for the note box: the site mascot.
     The path MUST be absolute: the browser resolves url() inside a custom
     property relative to the file where the property is USED, not declared. */
  --nota-icono: url('/wp-content/themes/wpgen-CL/assets/mascota.svg');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pagina);
  color: var(--texto);
  font: 400 18px/1.66 var(--tipo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.35px; }

img { max-width: 100%; height: auto; }
a { color: var(--accion); }

.mrc-contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */

.mrc-cabecera { background: var(--cordillera); }

/* Logo sits on the left and the nav below it: a centred wordmark is what every
   competitor does, and the brand should not look borrowed. */
.mrc-cabecera-linea {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.mrc-hamburguesa {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  cursor: pointer;
}
.mrc-hamburguesa span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.mrc-hamburguesa span + span { margin-top: 5px; }
.mrc-hamburguesa:hover { border-color: var(--cobre); }
.mrc-hamburguesa:hover span { background: var(--cobre); }
/* open state: the three bars fold into a cross */
.mrc-hamburguesa.mrc-abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mrc-hamburguesa.mrc-abierto span:nth-child(2) { opacity: 0; }
.mrc-hamburguesa.mrc-abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mrc-marca { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.mrc-marca-ico {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--cobre);
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
}
.mrc-marca-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }

.mrc-marca-txt { display: block; line-height: 1; }
.mrc-marca-txt .mrc-marca-l1 {
  display: block; color: #9FBAAA; font-size: 12px; font-weight: 700;
  letter-spacing: 2.6px; margin-right: -2.6px; text-transform: uppercase;
  margin-bottom: 5px;
}
/* Wordmark: "Mira" solid white, "Casinos" light copper, one line, no italics. */
.mrc-marca-txt .mrc-marca-l2 { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.mrc-marca-txt .mrc-marca-l2 b { color: #fff; font-weight: 500; }
.mrc-marca-txt .mrc-marca-l2 i { color: var(--cobre); font-weight: 800; font-style: normal; }

/* The nav carries no accent stripe of its own: the flag already runs along the
   bottom of the hero, and a second one here made the header read as two bands. */
.mrc-menu {
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.mrc-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.mrc-menu a {
  display: block; color: #CFE0D4; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 13px 14px;
}
.mrc-menu a:hover { color: #fff; }
.mrc-menu .current-menu-item > a { color: var(--cobre); }

/* Dropdown: opens on click (assets/nav.js), never on hover. */
.mrc-menu li { position: relative; }

/* Metrics copied from `.mrc-menu a`: otherwise the item with a caret sits lower
   than its neighbours and the whole row shifts. */
.mrc-menu-boton {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  color: #CFE0D4; font: 600 15px/1.66 var(--tipo);
  padding: 13px 14px;
}
.mrc-menu-boton:hover, .menu-item-has-children.mrc-abierto > .mrc-menu-boton { color: #fff; }

.mrc-menu-flecha {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
/* The caret belongs to its own toggle: a descendant selector would flip every
   caret inside an open dropdown as well. */
.menu-item-has-children.mrc-abierto > .mrc-menu-boton .mrc-menu-flecha { transform: rotate(-135deg) translate(-2px, -2px); }

.mrc-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 236px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
  background: var(--cordillera-2);
  border: 1px solid var(--cordillera-3);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
}
.menu-item-has-children.mrc-abierto > .sub-menu { display: block; }

.mrc-menu .sub-menu a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.mrc-menu .sub-menu a:hover { background: var(--cordillera-3); color: var(--cobre); }

/* ---------------- menu on narrow screens ---------------- */

@media (max-width: 900px) {
  .mrc-hamburguesa { display: block; }

  /* The panel is opened by the button; closed, it takes up no space at all. */
  .mrc-menu {
    display: none;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mrc-menu.mrc-abierto { display: block; animation: mrc-abrir .22s ease-out; }

  .mrc-menu ul { display: block; }
  .mrc-menu li { position: static; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .mrc-menu li:last-child { border-bottom: 0; }
  .mrc-menu a, .mrc-menu .mrc-menu-boton { display: block; width: 100%; padding: 14px 4px; font-size: 16px; text-align: left; }
  .mrc-menu .mrc-menu-boton { display: flex; justify-content: space-between; }
  .mrc-menu .current-menu-item > a { color: var(--cobre); }

  /* Inside the panel the submenu expands in place, without absolute positioning. */
  .mrc-menu .sub-menu {
    position: static;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .25);
    margin: 0 -22px;
    padding: 4px 22px 8px;
  }
  .mrc-menu .sub-menu a { padding: 11px 12px; font-size: 15px; }

  /* While the menu is open the page underneath does not scroll. */
  body.mrc-menu-trabado { overflow: hidden; }
}

@keyframes mrc-abrir {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- hero ---------------- */

.mrc-vitrina { position: relative; overflow: hidden; background: var(--heroe); color: #fff; padding: 34px 0 44px; }
.mrc-vitrina .mrc-contenedor { position: relative; z-index: 2; }

/* Mascot on the right of the first screen.
   Three rules keep it from reading as "someone peeking round a corner": it sits
   entirely inside the dark area, fades out downwards through a mask, and has
   almost no contrast. This is background, not illustration. */
.mrc-vitrina::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 26px;
  width: 236px;
  height: 236px;
  background: url("assets/mascota.svg") no-repeat center / contain;
  opacity: .09;
  transform: rotate(4deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .25) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .25) 90%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  animation: mrc-mascota-entrada 1s ease-out both;
}
/* On an author page the portrait stands on the right: two faces side by side is one too many. */
.mrc-vitrina-autor::before { display: none; }

@keyframes mrc-mascota-entrada {
  from { opacity: 0; transform: translate(18px, 10px) rotate(12deg); }
  to   { opacity: .09; transform: rotate(4deg); }
}

/* Flat tricolour baseline instead of a diagonal cut: a straight edge is easier
   to read and does not eat 60px of vertical space on a phone. */
.mrc-vitrina::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--accion) 0 38%, var(--cobre) 38% 72%, var(--copihue) 72%);
  pointer-events: none;
}

.mrc-vitrina .mrc-migas { font-size: 14px; color: #8FA89A; margin-bottom: 18px; }
.mrc-vitrina .mrc-migas a { color: #8FA89A; text-decoration: none; }
.mrc-vitrina .mrc-migas a:hover { color: var(--cobre); }

.mrc-vitrina-plana .mrc-vitrina-grid { grid-template-columns: 1fr; }
.mrc-vitrina-plana h1 { max-width: 22ch; }
.mrc-vitrina-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; }
.mrc-vitrina h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08; margin: 0 0 16px; font-weight: 800; letter-spacing: -1px;
}
.mrc-vitrina p.mrc-introduccion { max-width: 64ch; font-size: clamp(16px, 1.35vw, 19px); font-weight: 400; color: #DDEBE0; margin: 0 0 22px; }
.mrc-vitrina p.mrc-introduccion strong { color: #fff; font-weight: 700; }
.mrc-vitrina-imagem { border-radius: var(--radio-lg); overflow: hidden; }

.mrc-atajos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.mrc-atajos-item {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radio); padding: 16px 12px; text-align: center;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.mrc-atajos-item:hover { background: rgba(255, 255, 255, .11); border-color: var(--cobre); }
.mrc-atajos-item .mrc-atajos-ico { display: block; font-size: 24px; margin-bottom: 8px; }

/* ---------------- author blocks ---------------- */

.mrc-firma { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 22px; }
.mrc-firma .mrc-firma-persona { display: flex; align-items: center; gap: 11px; }
.mrc-firma img, .mrc-autor img {
  border-radius: 50%; background: var(--cordillera-3); object-fit: cover; flex: 0 0 auto;
}
.mrc-firma img { width: 42px; height: 42px; border: 2px solid rgba(239, 180, 26, .45); }
.mrc-autor img { width: 74px; height: 74px; }
.mrc-firma .mrc-firma-meta { font-size: 13.5px; line-height: 1.4; color: #E6F0E8; }
.mrc-firma .mrc-firma-meta .mrc-firma-cargo { color: #8FA89A; }
.mrc-firma .mrc-firma-meta a { color: #fff; font-weight: 700; text-decoration: none; }
.mrc-firma .mrc-firma-meta a:hover { color: var(--cobre); }

.mrc-autor {
  position: relative;
  overflow: hidden;
  background: var(--tarjeta); border: 1px solid var(--linea); border-left: 4px solid var(--cobre);
  border-radius: var(--radio);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin: 34px 0;
}
/* The same mascot as in the hero, only fainter: the author card stops being a
   blank rectangle and rhymes with the first screen. */
.mrc-autor::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 168px;
  height: 168px;
  background: url("assets/mascota.svg") no-repeat center / contain;
  opacity: .06;
  transform: rotate(6deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
  pointer-events: none;
}
@media (max-width: 640px) {
  /* In a narrow card the mascot eats the space the text needs. */
  .mrc-autor::after { display: none; }
}
.mrc-autor > * { position: relative; z-index: 1; }
.mrc-autor .mrc-autor-cuerpo { flex: 1; }
.mrc-autor h2 { margin: 0 0 6px; font-size: 20px; padding-left: 0; border-left: 0; }
.mrc-autor .mrc-firma-cargo { color: var(--suave); font-size: 14px; margin: 0 0 10px; }
.mrc-autor p { margin: 0 0 10px; }
.mrc-autor .mrc-autor-enlace { font-weight: 700; text-decoration: none; }
.mrc-autor .mrc-autor-enlace:hover { text-decoration: underline; }

/* Pull quote: gold rule on top, not a left border — the quote reads as a
   separate voice in the text rather than as an indented aside.
   Two selectors on purpose: .mrc-cita is what wpgen_author_quote() prints,
   while a quote written in the page text arrives from the block converter as a
   plain blockquote.wp-block-quote and has to get the same treatment. */
.mrc-cita,
.mrc-texto blockquote {
  border: 0;
  border-top: 3px solid var(--cobre);
  background: var(--tono);
  border-radius: 0 0 var(--radio) var(--radio);
  padding: 20px 24px; margin: 30px 0; font-size: 19px; font-style: italic; color: #16332A;
}
.mrc-texto blockquote p { margin: 0; }
.mrc-texto blockquote p + p { margin-top: 12px; }
.mrc-cita footer, .mrc-texto blockquote cite {
  display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--suave);
}

/* ---------------- content ---------------- */

.mrc-cuerpo { padding: 30px 0 10px; }
.mrc-panel { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 30px 32px; }

/* H2 with a gold bar to its left instead of an underline: the section starts at
   a visible edge, which also survives being read at a glance on a phone. */
.mrc-texto h2 {
  font-size: 27px; margin: 38px 0 14px; letter-spacing: -.5px;
  padding-left: 16px; border-left: 5px solid var(--cobre);
  line-height: 1.22;
}
.mrc-texto h3 { font-size: 21px; margin: 28px 0 10px; }
.mrc-texto h2:first-child, .mrc-texto h3:first-child { margin-top: 0; }
.mrc-texto p { margin: 0 0 17px; }
.mrc-texto > *:first-child { margin-top: 0; }
.mrc-texto > *:last-child { margin-bottom: 0; }
.mrc-texto figure.wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.mrc-texto figure.wp-block-table table { margin: 0; }
.mrc-texto ul.wp-block-list, .mrc-texto ol.wp-block-list { margin: 0 0 18px; padding-left: 22px; }
.mrc-texto ul, .mrc-texto ol { margin: 0 0 18px; padding-left: 22px; }
.mrc-texto li { margin-bottom: 8px; }
.mrc-texto li::marker { color: var(--cobre-fondo); font-weight: 700; }

/* Table with an ink header row: the first row is a label strip, not another
   shaded cell, so a wide comparison stays readable while scrolling sideways. */
.mrc-texto table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.mrc-texto th, .mrc-texto td { border: 1px solid var(--linea); padding: 12px 14px; text-align: left; }
.mrc-texto th { background: var(--cordillera); color: #fff; font-weight: 700; border-color: var(--cordillera); }
.mrc-texto tr:nth-child(even) td { background: var(--tono); }

/* Images in the text share the radius of the cards and tables:
   .mrc-figura is the classic editor, .wp-block-image is Gutenberg. */
.mrc-texto figure.mrc-figura,
.mrc-texto figure.wp-block-image { margin: 30px 0; }
.mrc-texto figure.mrc-figura img,
.mrc-texto figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radio);
  border: 1px solid var(--linea);
  box-shadow: 0 8px 20px rgba(23, 20, 15, .09);
  transition: box-shadow .25s ease, transform .25s ease;
}
.mrc-texto figure.mrc-figura img:hover,
.mrc-texto figure.wp-block-image img:hover {
  box-shadow: 0 14px 30px rgba(23, 20, 15, .17);
  transform: translateY(-2px);
}
.mrc-balanza { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.mrc-balanza > div { border-radius: var(--radio); padding: 18px 20px; }
.mrc-balanza .mrc-pro { background: var(--positivo); border: 1px solid var(--positivo-linea); }
.mrc-balanza .mrc-contra { background: var(--negativo); border: 1px solid var(--negativo-linea); }
.mrc-balanza h3 { margin: 0 0 10px; font-size: 17px; }
.mrc-balanza .mrc-pro h3 { color: #0A7A3C; }
.mrc-balanza .mrc-contra h3 { color: #075C2D; }
.mrc-balanza ul { margin: 0; padding-left: 20px; }

.mrc-preguntas h3 { font-size: 19px; margin: 22px 0 8px; }
.mrc-preguntas p { margin: 0 0 14px; }

/* Accordion: H3 + paragraph in the content are turned into a clickable block by the script. */
.mrc-preguntas-item {
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.mrc-preguntas-item.mrc-abierto { border-color: var(--cobre); box-shadow: 0 2px 12px rgba(23, 20, 15, .07); }

.mrc-preguntas-boton {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 18px;
  font: 800 17px/1.4 var(--tipo);
  color: var(--texto);
  text-align: left;
  cursor: pointer;
}
.mrc-preguntas-boton:hover { background: var(--tono); }
.mrc-preguntas-boton-txt { flex: 1; }

.mrc-preguntas-ico {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 7px;
  background: var(--linea-clara);
  transition: transform .18s ease, background .18s ease;
}
.mrc-preguntas-ico::before, .mrc-preguntas-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  background: var(--cordillera);
  border-radius: 2px;
}
.mrc-preguntas-ico::after { transform: rotate(90deg); transition: opacity .18s ease; }
.mrc-preguntas-item.mrc-abierto .mrc-preguntas-ico { background: var(--cobre); }
.mrc-preguntas-item.mrc-abierto .mrc-preguntas-ico::after { opacity: 0; }

.mrc-preguntas-respuesta { display: none; padding: 0 18px 16px; }
.mrc-preguntas-item.mrc-abierto .mrc-preguntas-respuesta { display: block; }
.mrc-preguntas-respuesta p { margin: 0 0 10px; }
.mrc-preguntas-respuesta p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */

.mrc-pie { background: var(--cordillera); color: #BFD3C6; margin-top: 0px; padding: 36px 0 26px; font-size: 15px; }
/* Four columns: brand, sections, editorial and legal, outside help. The header
   menu is deliberately short, so the footer is what gives full access. */
.mrc-pie-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.mrc-pie h4 { color: var(--cobre); font-size: 14px; margin: 0 0 13px; text-transform: uppercase; letter-spacing: 1px; }
.mrc-pie ul { list-style: none; margin: 0; padding: 0; }
.mrc-pie li { margin-bottom: 8px; }
.mrc-pie a { color: #BFD3C6; text-decoration: none; }
.mrc-pie a:hover { color: var(--cobre); }
.mrc-pie-nota { border-top: 1px solid var(--cordillera-3); margin-top: 28px; padding-top: 18px; font-size: 13px; color: #7E958A; }
.mrc-edad {
  display: inline-block; border: 2px solid var(--cobre); color: var(--cobre); border-radius: 50%;
  width: 36px; height: 36px; line-height: 32px; text-align: center;
  font-weight: 800; font-size: 12px; margin-right: 10px; vertical-align: middle;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .mrc-vitrina { padding: 24px 0 34px; }
  /* On a tablet the mascot shrinks: at full size it takes over the first screen. */
  .mrc-vitrina::before { width: 168px; height: 168px; right: 16px; bottom: 20px; opacity: .08; }
  .mrc-vitrina-grid { grid-template-columns: 1fr; gap: 22px; }
  .mrc-vitrina-imagem { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .mrc-atajos { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .mrc-atajos-item { padding: 14px 10px; font-size: 12px; }
  .mrc-pie-grid { grid-template-columns: 1fr 1fr; }
  .mrc-vitrina-plana h1 { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .mrc-contenedor { padding: 0 16px; }

  .mrc-vitrina-imagem { max-width: 340px; }
  .mrc-vitrina p.mrc-introduccion { font-size: 16px; }
  /* On a phone the text takes the full width: a decorative mascot only gets in the way. */
  .mrc-vitrina::before { display: none; }
  .mrc-firma { gap: 14px; margin-top: 18px; }
  .mrc-firma .mrc-firma-persona { flex: 1 1 100%; }

  .mrc-cuerpo { padding: 22px 0 6px; }
  .mrc-panel { padding: 20px 16px; }
  .mrc-texto h2 { font-size: 22px; margin: 28px 0 10px; padding-left: 12px; border-left-width: 4px; }
  .mrc-texto h3 { font-size: 19px; }
  .mrc-balanza { grid-template-columns: 1fr; }
  .mrc-autor { flex-direction: column; }
  .mrc-pie-grid { grid-template-columns: 1fr; }
  .mrc-texto table { display: block; overflow-x: auto; }
}

/* ---------------- author profile pages ---------------- */

.mrc-perfil {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--tono); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 24px 26px; margin: 0 0 28px;
}
.mrc-perfil img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; background: var(--cordillera-3); flex: 0 0 auto;
  border: 4px solid #fff; box-shadow: 0 6px 18px rgba(23, 20, 15, .12);
}
.mrc-perfil .mrc-autor-cuerpo { flex: 1; min-width: 0; }
.mrc-perfil .mrc-firma-cargo { font-size: 16px; font-weight: 600; color: var(--texto); margin: 0 0 14px; }
.mrc-perfil ul.mrc-perfil-info { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.mrc-perfil ul.mrc-perfil-info li {
  padding: 8px 0; border-top: 1px solid var(--linea); margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.mrc-perfil ul.mrc-perfil-info li:first-child { border-top: 0; padding-top: 0; }
.mrc-perfil ul.mrc-perfil-info strong { flex: 0 0 210px; color: var(--suave); font-weight: 600; }

.mrc-perfil.mrc-perfil-mini { margin: 0 0 18px; padding: 20px 22px; }
.mrc-perfil.mrc-perfil-mini img { width: 120px; height: 120px; }
.mrc-perfil.mrc-perfil-mini h3 { margin: 0 0 4px; font-size: 20px; }
.mrc-perfil.mrc-perfil-mini h3 a { text-decoration: none; }
.mrc-perfil.mrc-perfil-mini .mrc-firma-cargo { font-size: 14px; color: var(--suave); font-weight: 600; margin: 0 0 10px; }
.mrc-perfil.mrc-perfil-mini p { margin: 0 0 10px; }
.mrc-perfil.mrc-perfil-mini .mrc-autor-enlace { font-weight: 700; text-decoration: none; }

/* ---------------- self-assessment test ---------------- */

.mrc-autotest { margin: 26px 0 32px; }
.mrc-autotest-app {
  border: 1px solid var(--linea); border-radius: var(--radio);
  background: var(--tono); padding: 26px 28px;
}
.mrc-autotest-head h3 { margin: 0 0 4px; font-size: 20px; }
.mrc-autotest-progreso { margin: 0 0 18px; font-size: 14px; color: var(--suave); }

/* The separator is drawn with ::before rather than border-top: a legend with
   display:flex stops "breaking" the fieldset border and the rule runs through the text. */
.mrc-autotest-pregunta { border: 0; margin: 0; padding: 0 0 4px; }
.mrc-autotest-pregunta + .mrc-autotest-pregunta::before {
  content: ""; display: block; height: 1px; background: var(--linea); margin: 18px 0;
}
.mrc-autotest-pregunta legend { display: flex; gap: 10px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.mrc-autotest-pregunta .mrc-autotest-opciones { clear: both; }
.mrc-autotest-pregunta legend .mrc-autotest-num {
  flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--linea-clara);
  color: var(--suave); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mrc-autotest-pregunta.mrc-autotest-lista legend .mrc-autotest-num { background: var(--cobre); color: var(--cordillera); }
.mrc-autotest-pregunta legend .mrc-autotest-txt { font-weight: 600; }

.mrc-autotest-pregunta .mrc-autotest-opciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mrc-autotest-pregunta .mrc-autotest-opciones input { position: absolute; opacity: 0; width: 0; height: 0; }
.mrc-autotest-pregunta .mrc-autotest-opciones label {
  display: block; text-align: center; cursor: pointer; user-select: none;
  border: 1px solid var(--linea); border-radius: 8px; background: #fff;
  padding: 10px 8px; font-size: 14px; line-height: 1.3;
}
.mrc-autotest-pregunta .mrc-autotest-opciones label:hover { border-color: var(--accion); }
.mrc-autotest-pregunta .mrc-autotest-opciones input:checked + label {
  background: var(--accion); border-color: var(--accion); color: #fff; font-weight: 600;
}
.mrc-autotest-pregunta .mrc-autotest-opciones input:focus-visible + label { outline: 2px solid var(--cobre); outline-offset: 2px; }

.mrc-autotest-enviar, .mrc-autotest-rehacer {
  margin-top: 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accion); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 800; padding: 13px 26px;
}
.mrc-autotest-enviar:hover:enabled, .mrc-autotest-rehacer:hover { background: var(--accion-fuerte); }
.mrc-autotest-enviar:disabled { background: #D3E0D6; color: #7E958A; cursor: not-allowed; }
.mrc-autotest-nota { margin: 12px 0 0; font-size: 13.5px; color: var(--suave); }

.mrc-autotest-resultado { display: none; }
.mrc-autotest-resultado.mrc-autotest-visible { display: block; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--linea); }
.mrc-autotest-insignia { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radio); color: #fff; }
.mrc-autotest-insignia .mrc-autotest-insignia-titulo { font-size: 21px; font-weight: 800; }
.mrc-autotest-insignia .mrc-autotest-insignia-score { font-size: 14px; opacity: .92; }
.mrc-autotest-insignia.mrc-n0 { background: #0A7A3C; }
.mrc-autotest-insignia.mrc-n1 { background: #7CA33F; }
.mrc-autotest-insignia.mrc-n2 { background: #D08A1E; }
.mrc-autotest-insignia.mrc-n3 { background: var(--accion); }

.mrc-autotest-escala-wrap { margin: 18px 0 6px; }
.mrc-autotest-escala { width: 100%; height: auto; display: block; }
.mrc-autotest-escala .mrc-autotest-g-score { font-family: var(--tipo); font-size: 21px; font-weight: 800; fill: var(--cordillera); }
.mrc-autotest-escala .mrc-autotest-g-franja { font-family: var(--tipo); font-size: 13px; fill: #4B6055; }
.mrc-autotest-escala .mrc-autotest-g-eje { font-family: var(--tipo); font-size: 12.5px; fill: #7E958A; }

.mrc-autotest-intro { margin: 6px 0 18px; }
.mrc-autotest-partes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 12px; }
.mrc-autotest-parte .mrc-autotest-parte-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.mrc-autotest-parte .mrc-autotest-parte-label { color: var(--suave); }
.mrc-autotest-parte .mrc-autotest-parte-valor { font-weight: 700; }
.mrc-autotest-parte .mrc-autotest-parte-riel { height: 12px; border-radius: 6px; background: var(--linea-clara); overflow: hidden; }
.mrc-autotest-parte .mrc-autotest-parte-relleno { height: 100%; border-radius: 6px; }
.mrc-autotest-partes-nota { font-size: 15px; color: var(--suave); margin: 0 0 20px; }
.mrc-autotest-resultado h4 { font-size: 18px; margin: 0 0 10px; }
.mrc-autotest-acciones { margin: 0 0 18px; padding-left: 22px; }
.mrc-autotest-acciones li { margin-bottom: 8px; }
.mrc-autotest-aviso { font-size: 14px; color: var(--suave); margin: 0; }

@media (max-width: 640px) {
  .mrc-perfil { flex-direction: column; padding: 18px 16px; }
  .mrc-perfil img { width: 120px; height: 120px; }
  .mrc-perfil ul.mrc-perfil-info li { display: block; }
  .mrc-perfil ul.mrc-perfil-info strong { display: block; flex: none; }

  .mrc-autotest-app { padding: 18px 14px; }
  .mrc-autotest-pregunta .mrc-autotest-opciones { grid-template-columns: 1fr 1fr; }
  .mrc-autotest-enviar, .mrc-autotest-rehacer { width: 100%; }
  .mrc-autotest-partes { grid-template-columns: 1fr; }
  /* The svg scales with its viewBox, so on a narrow screen the labels have to
     grow in user units, otherwise they become unreadable. */
  .mrc-autotest-escala .mrc-autotest-g-score { font-size: 30px; }
  .mrc-autotest-escala .mrc-autotest-g-franja { font-size: 19px; }
  .mrc-autotest-escala .mrc-autotest-g-eje { font-size: 17px; }
  .mrc-autotest-parte .mrc-autotest-parte-head { display: block; }
  .mrc-autotest-parte .mrc-autotest-parte-valor { display: block; margin-top: 2px; }
}

/* ---------- "Hoe wij testen": the site-wide method block ----------
   Three layout variants, chosen per site (config key: test_flow).
   The colours come from the variables, so the block always wears the palette
   of the domain it runs on instead of dragging a foreign one along.        */

.mrc-metodo { margin: 32px 0 0; padding: 26px 0 0; border-top: 1px solid var(--linea); }
.mrc-metodo-titulo { font-size: 22px; margin: 0 0 6px; letter-spacing: -.4px; }
.mrc-metodo-intro { color: var(--suave); font-size: 16px; margin: 0 0 22px; max-width: 78ch; }
.mrc-metodo-mas { margin: 18px 0 0; font-size: 15px; }
.mrc-metodo-ico { width: 24px; height: 24px; display: block; }

/* --- "rail" variant: four steps on a shared line --- */

.mrc-metodo-riel .mrc-metodo-etapas {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.mrc-metodo-riel .mrc-metodo-etapa { position: relative; padding: 0 14px; text-align: center; margin: 0; }
.mrc-metodo-riel .mrc-metodo-etapa::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 50%;
  border-top: 2px solid var(--linea);
}
.mrc-metodo-riel .mrc-metodo-etapa::after {
  content: ""; position: absolute; top: 27px; left: 50%; right: 0;
  border-top: 2px solid var(--linea);
}
.mrc-metodo-riel .mrc-metodo-etapa:first-child::before,
.mrc-metodo-riel .mrc-metodo-etapa:last-child::after { display: none; }
.mrc-metodo-riel .mrc-metodo-disco {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--cordillera); color: #fff;
}
/* White on gold misses the minimum contrast ratio, so that icon is dark. */
.mrc-metodo-riel .mrc-etapa-cronometro .mrc-metodo-disco { background: var(--cobre); color: var(--cordillera); }
.mrc-metodo-riel .mrc-metodo-num {
  position: absolute; right: -6px; bottom: -6px;
  width: 22px; height: 22px; border-radius: 7px;
  background: #fff; color: var(--cordillera);
  border: 2px solid var(--linea);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.mrc-metodo-riel .mrc-metodo-cuerpo { display: block; margin-top: 13px; }
.mrc-metodo-riel .mrc-metodo-etapa-titulo { display: block; font-size: 16px; line-height: 1.3; }
.mrc-metodo-riel .mrc-metodo-nota { display: block; color: var(--suave); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.mrc-metodo-riel .mrc-metodo-detalle { display: block; font-size: 14px; line-height: 1.5; margin-top: 8px; text-align: left; }

/* --- "tiles" variant: four dense tiles, no connecting line --- */

.mrc-metodo-bloques .mrc-metodo-etapas {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.mrc-metodo-bloques .mrc-metodo-etapa {
  position: relative; overflow: hidden; margin: 0;
  padding: 16px 16px 18px;
  background: var(--cordillera); color: #fff; border-radius: var(--radio);
}
.mrc-metodo-bloques .mrc-etapa-cronometro { background: linear-gradient(158deg, var(--cordillera-3) 0%, var(--cordillera) 70%); }
.mrc-metodo-bloques .mrc-metodo-disco { display: block; color: var(--cobre); }
.mrc-metodo-bloques .mrc-metodo-num {
  position: absolute; right: 10px; top: 2px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: #fff; opacity: .12;
}
.mrc-metodo-bloques .mrc-metodo-cuerpo { display: block; margin-top: 12px; }
.mrc-metodo-bloques .mrc-metodo-etapa-titulo { display: block; font-size: 16px; line-height: 1.3; }
.mrc-metodo-bloques .mrc-metodo-nota { display: block; color: #A9C2B4; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.mrc-metodo-bloques .mrc-metodo-detalle { display: block; color: #DDEBE0; font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* --- "stopwatch" variant: one solid SVG, labels inside the drawing --- */

.mrc-metodo-figura { margin: 0; }
.mrc-metodo-svg { width: 100%; height: auto; display: block; }
.mrc-metodo-svg-v { display: none; }

@media (max-width: 860px) {
  .mrc-metodo-riel .mrc-metodo-etapas, .mrc-metodo-bloques .mrc-metodo-etapas { grid-template-columns: 1fr 1fr; }
  .mrc-metodo-riel .mrc-metodo-etapa { padding-bottom: 20px; }
  .mrc-metodo-riel .mrc-metodo-etapa:nth-child(2)::after,
  .mrc-metodo-riel .mrc-metodo-etapa:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .mrc-metodo-riel .mrc-metodo-etapas, .mrc-metodo-bloques .mrc-metodo-etapas { grid-template-columns: 1fr; }
  .mrc-metodo-riel .mrc-metodo-etapa { display: flex; gap: 14px; text-align: left; padding: 0 0 18px; }
  .mrc-metodo-riel .mrc-metodo-etapa::before, .mrc-metodo-riel .mrc-metodo-etapa::after { display: none; }
  .mrc-metodo-riel .mrc-metodo-etapa:not(:last-child) .mrc-metodo-disco::after {
    content: ""; position: absolute; left: 50%; top: 54px; height: 34px;
    border-left: 2px solid var(--linea);
  }
  .mrc-metodo-riel .mrc-metodo-disco { flex: 0 0 54px; }
  .mrc-metodo-riel .mrc-metodo-cuerpo { margin-top: 2px; }
  .mrc-metodo-svg-h { display: none; }
  .mrc-metodo-svg-v { display: block; }
}

/* The "waar het misliep" box: a short log of what went wrong inside a review.
   The icon is the site mascot, set through --nota-icono, because every domain
   has its own. No JS: this is a static block that must behave identically
   across dozens of domains. */
.mrc-registro {
  position: relative;
  border: 1px solid var(--linea);
  border-left: 4px solid var(--accion);
  border-radius: var(--radio);
  background: var(--tono);
  padding: 16px 18px 14px 62px;
  margin: 24px 0;
}
.mrc-registro::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  background: var(--nota-icono, none) center/contain no-repeat;
  opacity: .95;
}
.mrc-registro h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--texto);
}
.mrc-registro p { margin: 0 0 10px; }
.mrc-registro p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .mrc-registro { padding: 14px 14px 12px 14px; }
  .mrc-registro::before { position: static; display: block; margin-bottom: 8px; }
}

/* Index of child pages on a hub. Rendered by the theme, so the styles live
   here: the mechanism is shared, the contents differ per site. */
.mrc-indice { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linea); }
.mrc-indice h2 { margin: 0 0 14px; }
.mrc-indice ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.mrc-indice li { line-height: 1.5; }
.mrc-indice a { font-weight: 700; text-decoration: none; }
.mrc-indice a:hover { text-decoration: underline; }
.mrc-indice span { display: block; color: var(--suave); font-size: 15px; }
@media (max-width: 720px) { .mrc-indice ul { grid-template-columns: 1fr; } }

/* Hub page that is nothing but a list of articles (wpgen_listing_hub) */
.mrc-listado { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mrc-listado-item { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.mrc-listado-rubrica { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accion); }
.mrc-listado-titulo { font-size: 20px; font-weight: 800; line-height: 1.3; text-decoration: none; color: var(--texto); }
.mrc-listado-titulo:hover { color: var(--accion); }
.mrc-listado-txt { margin: 0; color: var(--suave); line-height: 1.55; }
.mrc-listado-pie { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; color: var(--suave); font-size: 14px; }
.mrc-listado-vacia { color: var(--suave); margin: 0; }
@media (max-width: 720px) { .mrc-listado { grid-template-columns: 1fr; } }
/* On a listing hub the outer card is redundant: the article cards are the content. */
.mrc-texto:has(> .mrc-listado), .mrc-texto:has(> .mrc-listado-vacia) { background: none; border: 0; padding: 0; }

/* ---------------- disclaimer under the byline ---------------- */

.mrc-aviso {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  line-height: 1.55;
  color: #9FB6A8;
  max-width: 82ch;
}
.mrc-aviso-edad {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  border: 1px solid var(--cobre);
  border-radius: 6px;
  color: var(--cobre);
  font-weight: 800;
  font-size: 12px;
}

/* ---------------- portrait on the author page ---------------- */

.mrc-vitrina-autor .mrc-contenedor { position: relative; }
.mrc-retrato {
  position: absolute; right: 0; top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mrc-retrato img {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(239, 180, 26, .4);
  box-shadow: 0 14px 34px rgba(10, 8, 6, .5);
}
.mrc-retrato .mrc-retrato-ciudad { font-size: 13px; color: #8FA89A; letter-spacing: .3px; }
.mrc-vitrina-autor h1, .mrc-vitrina-autor p.mrc-introduccion { max-width: 30ch; }

@media (max-width: 900px) {
  .mrc-retrato { position: static; align-items: flex-start; margin-top: 18px; }
  .mrc-retrato img { width: 128px; height: 128px; }
  .mrc-vitrina-autor h1, .mrc-vitrina-autor p.mrc-introduccion { max-width: none; }
}

/* ---------------- trust badge strip above the footer ---------------- */

/* The strip sits flush against the footer: the footer's own top margin would
   otherwise leave a light gap and the strip would float on its own. */
.mrc-sellos + .mrc-pie { margin-top: 0; }

.mrc-sellos { background: var(--tono); border-top: 1px solid var(--linea); padding: 22px 0; }
.mrc-sellos ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.mrc-sellos a, .mrc-sellos .mrc-sello-fixo {
  display: flex; align-items: center; gap: 11px;
  min-width: 184px; padding: 11px 16px; background: #fff; border: 1px solid var(--linea);
  border-radius: var(--radio); text-decoration: none; color: var(--cordillera);
}
.mrc-sellos a:hover { border-color: var(--accion); }
.mrc-sellos a:hover .mrc-sello-ico { color: var(--accion); }
.mrc-sellos .mrc-sello-ico { flex: 0 0 auto; color: var(--cobre-fondo); }
.mrc-sellos .mrc-sello-txt { display: flex; flex-direction: column; min-width: 0; }
.mrc-sellos .mrc-sello-nome { font-weight: 800; font-size: 15px; letter-spacing: .3px; line-height: 1.2; }
.mrc-sellos .mrc-sello-nota { font-size: 12px; color: var(--suave); margin-top: 2px; }

@media (max-width: 720px) {
  .mrc-sellos { padding: 14px 0; }
  .mrc-sellos a, .mrc-sellos .mrc-sello-fixo { min-width: calc(50% - 5px); padding: 9px 12px; }
  .mrc-sellos .mrc-sello-nota { font-size: 11px; }
}

/* ---------------- in-content CTA banner and explanatory schemes ---------------- */

.mrc-franja { display: block; margin: 32px 0; }
.mrc-franja img {
  display: block; width: 100%; height: auto; border-radius: var(--radio-lg);
  box-shadow: 0 12px 28px rgba(23, 20, 15, .15);
}
.mrc-franja--claro img { box-shadow: 0 10px 24px rgba(23, 20, 15, .09); }

.mrc-esquema { margin: 30px 0; }
.mrc-esquema img { display: block; width: 100%; height: auto; border-radius: var(--radio-lg); }

@media (max-width: 640px) {
  .mrc-franja { margin: 22px 0; }
  .mrc-franja img { border-radius: var(--radio); }
  .mrc-esquema { margin: 20px 0; }
}

/* Eight top-level items do not fit a row at 15px with 14px padding, so the
   desktop header packs a little tighter. Submenus stay comfortable. */
@media (min-width: 981px) {
  .mrc-menu a, .mrc-menu .mrc-menu-boton { font-size: 14.5px; padding: 12px 11px; }
  .mrc-menu .sub-menu a { font-size: 14px; padding: 9px 16px; }
}

/* ---------------- motion: hover and entrance ----------------
   One rule: animation signals that something is clickable and never gets in the
   way of reading. So everything is short (0.2-0.3 s) and nothing shifts layout. */

.mrc-marca-ico img { transition: transform .3s ease; }
.mrc-marca:hover .mrc-marca-ico img { transform: rotate(-6deg) scale(1.06); }

.mrc-menu a, .mrc-menu .mrc-menu-boton { transition: color .18s ease, background .18s ease; }

.mrc-texto a { transition: color .18s ease; }
.mrc-texto p a { text-underline-offset: 3px; }
.mrc-texto p a:hover { color: var(--accion-fuerte); }

/* Cards: a slight lift and shadow, the border picks up the accent. */
.mrc-listado-item, .mrc-sellos a, .mrc-autor {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mrc-listado-item:hover {
  transform: translateY(-3px);
  border-color: var(--cobre);
  box-shadow: 0 10px 26px rgba(23, 20, 15, .09);
}
.mrc-sellos a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(23, 20, 15, .09); }

.mrc-franja img { transition: transform .25s ease, box-shadow .25s ease; }
.mrc-franja:hover img { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(23, 20, 15, .2); }

.mrc-texto tbody tr { transition: background .18s ease; }
.mrc-texto tbody tr:hover td { background: #EEF5EE; }

.mrc-metodo-riel .mrc-metodo-disco { transition: transform .22s ease, box-shadow .22s ease; }
.mrc-metodo-riel .mrc-metodo-etapa:hover .mrc-metodo-disco {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(23, 20, 15, .22);
}

.mrc-preguntas-boton { transition: background .18s ease; }
.mrc-preguntas-item { transition: border-color .2s ease, box-shadow .2s ease; }

/* The first screen appears with a minimal shift: heading, lead and byline. */
.mrc-vitrina h1,
.mrc-vitrina p.mrc-introduccion,
.mrc-vitrina .mrc-firma { animation: mrc-entrada .55s ease-out both; }
.mrc-vitrina p.mrc-introduccion { animation-delay: .08s; }
.mrc-vitrina .mrc-firma { animation-delay: .16s; }

@keyframes mrc-entrada {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Whoever turned animations off in their system does not see them here either. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .mrc-vitrina h1, .mrc-vitrina p.mrc-introduccion, .mrc-vitrina .mrc-firma { opacity: 1; transform: none; }
  .mrc-vitrina::before { opacity: .09; transform: rotate(4deg); }
}

/* ================= capa de marca: Mira Casinos =================
   Todo lo que convierte al tema en una marca propia y no en un repintado:
   la estrella solitaria, la silueta de la cordillera y los cortes de los que
   salen la cabecera, los títulos y las tarjetas. Va en un solo bloque para
   poder levantarlo sin tocar el layout de más arriba. */

/* Header: navy plate, flag-coloured rule under the brand row. */
.mrc-cabecera { background: var(--cordillera); }
.mrc-cabecera-linea { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mrc-marca-ico {
  border-radius: 12px;
  border: 0;
  background: none;
  width: 50px; height: 50px; flex: 0 0 50px;
  padding: 0;
  overflow: hidden;
}
.mrc-marca-txt .mrc-marca-l2 b { color: #fff; font-weight: 800; }
.mrc-marca-txt .mrc-marca-l2 i { color: var(--cobre-claro); font-weight: 300; font-style: normal; }
.mrc-marca-txt .mrc-marca-l2 { letter-spacing: -.3px; }

/* Flag rule: blue block, white gap and red band, at the foot of the header. */
.mrc-cabecera::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--cordillera-3) 0 22%,
    var(--nieve) 22% 30%,
    var(--copihue) 30% 100%);
  opacity: .9;
}

/* Hero: the Andes drawn with a clip-path silhouette, no image file, plus the
   lone star as a very quiet watermark. Recognisably Chilean without a flag. */
.mrc-vitrina { background: var(--heroe); }
.mrc-vitrina .mrc-contenedor::before {
  content: "";
  position: absolute;
  right: -30px; bottom: -6px;
  width: 460px; height: 190px;
  background: rgba(255, 255, 255, .05);
  clip-path: polygon(0 100%, 14% 46%, 24% 66%, 42% 18%, 58% 62%, 70% 34%, 86% 70%, 100% 40%, 100% 100%);
  pointer-events: none;
  z-index: 0;
}
.mrc-vitrina .mrc-contenedor::after {
  content: "";
  position: absolute;
  right: 54px; top: 26px;
  width: 128px; height: 128px;
  background: rgba(255, 255, 255, .07);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1080px) { .mrc-vitrina .mrc-contenedor::before, .mrc-vitrina .mrc-contenedor::after { display: none; } }

/* Headings: a navy bar tipped in copper instead of a plain rule. */
.mrc-texto h2 {
  border-left: 0;
  padding-left: 0;
  position: relative;
  padding-top: 16px;
}
.mrc-texto h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 58px; height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accion) 0 58%, var(--cobre) 58%);
}
.mrc-texto h3 { color: var(--cordillera-2); }

/* Cards and tables: navy header row, copper markers. */
.mrc-panel { border-radius: var(--radio-lg); }
.mrc-texto th { background: var(--cordillera-2); border-color: var(--cordillera-2); }
.mrc-texto tbody tr:hover td { background: #EFF2F8; }
.mrc-texto li::marker { color: var(--cobre); }

/* Quote: copper rule on top, paper-tinted body. */
.mrc-cita, .mrc-texto blockquote { background: #F3F1EC; color: #1A2436; border-top-color: var(--cobre); }
.mrc-texto blockquote { color: #1A2436; }

/* Buttons and accents inherited from the self-test and the offers table. */
.mrc-autotest-enviar, .mrc-autotest-rehacer { background: var(--accion); }
.mrc-autotest-enviar:hover:enabled, .mrc-autotest-rehacer:hover { background: var(--accion-fuerte); }
.mrc-autotest-pregunta .mrc-autotest-opciones input:checked + label { background: var(--accion); border-color: var(--accion); }
.mrc-autotest-pregunta .mrc-autotest-opciones label:hover { border-color: var(--accion); }
.mrc-autotest-insignia.mrc-n3 { background: var(--negativo-linea); }

/* Age badge: the lone star, cut with clip-path so the label stays upright. */
.mrc-edad {
  border: 0;
  border-radius: 0;
  background: var(--copihue);
  color: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 72%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  width: 46px; height: 44px; line-height: 40px;
  font-size: 12px;
  margin-right: 12px;
}

/* Trust strip: copper hover. */
.mrc-sellos a:hover { border-color: var(--cobre); }
.mrc-sellos a:hover .mrc-sello-ico { color: var(--cobre); }
.mrc-listado-rubrica { color: var(--cobre-fondo); }
.mrc-listado-titulo:hover { color: var(--accion); }
.mrc-listado-item:hover { border-color: var(--accion); }

/* ---------------- third menu level ----------------
   The header carries the whole page tree, so a dropdown can itself hold a
   dropdown. On desktop the third level flies out sideways; on the phone panel
   it simply indents, because there is no sideways to fly to. */

.mrc-menu .sub-menu .menu-item-has-children > .mrc-menu-boton {
  width: 100%;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}
.mrc-menu .sub-menu .mrc-menu-flecha { flex: 0 0 auto; }

@media (min-width: 901px) {
  .mrc-menu .sub-menu .sub-menu {
    top: -7px;
    left: 100%;
    border-radius: 10px;
    margin-left: 2px;
  }
  /* A flyout that would run off the right edge opens to the left instead. */
  .mrc-menu > .mrc-contenedor > ul > li:nth-last-child(-n+4) .sub-menu .sub-menu {
    left: auto;
    right: 100%;
    margin: 0 2px 0 0;
  }
  .mrc-menu .sub-menu .menu-item-has-children.mrc-abierto > .mrc-menu-boton { background: var(--cordillera-3); color: var(--cobre); }
}

@media (max-width: 900px) {
  .mrc-menu .sub-menu .sub-menu {
    margin: 0;
    padding: 0 0 4px 14px;
    background: none;
    border-left: 2px solid rgba(255, 255, 255, .12);
  }
  .mrc-menu .sub-menu .sub-menu a { padding: 10px 12px; font-size: 14.5px; }
  .mrc-menu .sub-menu .menu-item-has-children > .mrc-menu-boton { padding: 11px 12px; font-size: 15px; }
}


/* ================= home blocks: criterios, juegos, mosaico =================
   Three card families used on the front page. They share one grid rhythm and
   the same paper-on-navy contrast, so the page reads as one system. */

.mrc-bloque-home { margin: 46px 0 0; }
.mrc-bloque-home > h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  color: var(--cordillera);
}
.mrc-bloque-home > p.mrc-bloque-intro {
  margin: 0 0 22px;
  color: var(--suave);
  font-size: 17px;
  max-width: 70ch;
}

/* --- criterios: how the rating is built, one card per weighted criterion --- */
.mrc-criterios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}
.mrc-criterio {
  position: relative;
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .18s ease, transform .18s ease;
}
.mrc-criterio:hover { border-color: var(--accion); transform: translateY(-2px); }
.mrc-criterio-peso {
  align-self: flex-start;
  background: var(--cordillera);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 4px 10px;
  border-radius: 999px;
}
.mrc-criterio h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--cordillera);
}
.mrc-criterio p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--suave); }
.mrc-criterio-riel {
  margin-top: auto;
  height: 6px;
  border-radius: 3px;
  background: var(--linea-clara);
  overflow: hidden;
}
.mrc-criterio-relleno {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accion), var(--cobre));
}

/* --- juegos: game families, icon plate + label + hint --- */
.mrc-juegos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.mrc-juego {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.mrc-juego:hover { border-color: var(--accion); box-shadow: 0 8px 22px rgba(11, 32, 80, .09); }
.mrc-juego-plato {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--cordillera-3), var(--cordillera));
  color: #fff;
}
.mrc-juego-plato svg { width: 26px; height: 26px; }
.mrc-juego-cuerpo { min-width: 0; }
.mrc-juego-nombre {
  display: block;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--cordillera);
  line-height: 1.25;
}
.mrc-juego-pista {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--suave);
  line-height: 1.4;
}

/* --- mosaico: bonus types, wide tiles with a copper corner --- */
.mrc-mosaico {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.mrc-loza {
  position: relative;
  overflow: hidden;
  background: var(--cordillera);
  color: #fff;
  border-radius: var(--radio);
  padding: 22px 20px 20px;
  text-decoration: none;
  display: block;
  transition: transform .18s ease;
}
.mrc-loza:hover { transform: translateY(-2px); }
.mrc-loza::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -34px;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--cobre);
  opacity: .28;
}
.mrc-loza-eti {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cobre-claro);
}
.mrc-loza-nombre {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
}
.mrc-loza-nota {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #C7D2E8;
  max-width: 30ch;
}

/* --- boletín: newsletter strip in the footer --- */
.mrc-boletin {
  background: var(--cordillera-2);
  border-top: 4px solid var(--cobre);
}
.mrc-boletin-caja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 30px 0;
}
.mrc-boletin-txt { flex: 1 1 320px; min-width: 0; }
.mrc-boletin-txt h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}
.mrc-boletin-txt p { margin: 0; color: #BFCBE3; font-size: 15.5px; line-height: 1.55; }
.mrc-boletin-form { flex: 1 1 330px; display: flex; flex-wrap: wrap; gap: 10px; }
.mrc-boletin-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: 400 16px/1.3 var(--tipo);
}
.mrc-boletin-form input[type="email"]::placeholder { color: #94A4C4; }
.mrc-boletin-form input[type="email"]:focus {
  outline: 2px solid var(--cobre);
  outline-offset: 1px;
}
.mrc-boletin-form button {
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--cobre);
  color: #fff;
  font: 800 16px/1.3 var(--tipo);
  cursor: pointer;
}
.mrc-boletin-form button:hover { background: var(--cobre-fondo); }
.mrc-boletin-legal {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: #8F9FBE;
  line-height: 1.5;
}
.mrc-boletin-legal a { color: #C7D2E8; }
.mrc-boletin-gracias { color: var(--cobre-claro); font-weight: 700; font-size: 15px; }

@media (max-width: 640px) {
  .mrc-bloque-home > h2 { font-size: 24px; }
  .mrc-boletin-caja { padding: 24px 0; }
}

/* ================= menu: hover on desktop, arrow button on touch =================
   The parent item keeps its own link, so a click goes to the hub page. Opening
   the list is a separate gesture: hover (or keyboard focus) on desktop, a small
   arrow button next to the label everywhere else. Placed after the base menu
   rules so it wins without !important. */

.mrc-menu .menu-item-has-children { position: relative; }

.mrc-menu-flecha-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0 10px;
  margin: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}
.mrc-menu-flecha-btn:focus-visible { outline: 2px solid var(--cobre); outline-offset: -2px; }
.mrc-menu-flecha-btn .mrc-menu-flecha { pointer-events: none; }

@media (min-width: 901px) {
  /* the label and its arrow sit on one line */
  .mrc-menu > .mrc-contenedor > ul > li.menu-item-has-children { display: flex; align-items: center; }
  .mrc-menu > .mrc-contenedor > ul > li.menu-item-has-children > a { padding-right: 2px; }
  .mrc-menu-flecha-btn { padding: 0 12px 0 4px; }

  /* hover and keyboard focus open the list; the click stays with the link */
  .mrc-menu .menu-item-has-children:hover > .sub-menu,
  .mrc-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }

  /* second level: label left, arrow right, flyout to the side */
  .mrc-menu .sub-menu .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .mrc-menu .sub-menu .menu-item-has-children > a { flex: 1 1 auto; }
  .mrc-menu .sub-menu .menu-item-has-children > .mrc-menu-flecha-btn { flex: 0 0 auto; padding: 0 14px 0 6px; }
  .mrc-menu .sub-menu .menu-item-has-children > .sub-menu { flex: 1 0 100%; }
  .mrc-menu .sub-menu .menu-item-has-children:hover > .mrc-menu-flecha-btn,
  .mrc-menu .sub-menu .menu-item-has-children:focus-within > .mrc-menu-flecha-btn { color: var(--cobre); }
}

@media (max-width: 900px) {
  /* no hover on a phone: the arrow button is the only way to expand, and the
     label keeps working as a link to the hub */
  .mrc-menu .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .mrc-menu .menu-item-has-children > a { flex: 1 1 auto; width: auto; }
  .mrc-menu .menu-item-has-children > .mrc-menu-flecha-btn {
    flex: 0 0 auto;
    padding: 14px 10px;
  }
  .mrc-menu .menu-item-has-children > .sub-menu { flex: 1 0 100%; }
  .menu-item-has-children.mrc-abierto > .mrc-menu-flecha-btn .mrc-menu-flecha {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
}
