/*
Theme Name: Elegi Casino
Description: Theme for Elegi Casino (AR / es-AR). Argentine palette - night blue structure, celeste accent, sun gold for action - on a cool off-white page. Allowed blocks only: headings, text, tables, lists, pros/cons, full-width image, author quote.
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;
}

:root {
  /* Flag colours with fixed jobs that never swap: night blue = structure,
     celeste = link and action, sun gold = emphasis. */
  --tinta: #0C2233;
  --tinta-2: #123047;
  --tinta-3: #1A415E;
  --portada-bg: linear-gradient(158deg, #17415F 0%, #0E2A3F 55%, #071723 100%);
  --celeste: #6CB8E4;
  --celeste-hondo: #1B6FA8;
  --celeste-mas: #14567F;
  --sol: #F5B324;
  --sol-hondo: #B9840A;

  --tipo: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --texto: #16242E;
  --apagado: #5D707D;
  --linea: #DBE4EB;
  --linea-suave: #EDF2F6;
  --tarjeta: #ffffff;
  --pagina: #F1F5F9;
  --tinte: #F7FAFC;
  --pro: #E8F5EE;
  --pro-linea: #1F7A4D;
  --contra: #FCECEA;
  --contra-linea: #C0392B;

  --radio: 10px;
  --radio-lg: 16px;
  --ancho: 1180px;

  /* Icon for the "donde se cortó" 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. */
  --icono-nota: url('/wp-content/themes/wpgen-AR/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(--celeste-hondo); }

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

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

.elg-tope { background: var(--tinta); }

/* 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. */
.elg-tope-fila {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.elg-palanca {
  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;
}
.elg-palanca span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.elg-palanca span + span { margin-top: 5px; }
.elg-palanca:hover { border-color: var(--sol); }
.elg-palanca:hover span { background: var(--sol); }
/* open state: the three bars fold into a cross */
.elg-palanca.elg-abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.elg-palanca.elg-abierto span:nth-child(2) { opacity: 0; }
.elg-palanca.elg-abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.elg-marca-txt { display: block; line-height: 1; }
.elg-marca-txt .elg-marca-r1 {
  display: block; color: #8FB6CE; font-size: 12px; font-weight: 700;
  letter-spacing: 2.6px; margin-right: -2.6px; text-transform: uppercase;
  margin-bottom: 5px;
}
/* Wordmark: "Elegí" in sun gold, "Casino" in white, one line. The accent on the
   í is part of the mark and is never dropped. */
.elg-marca-txt .elg-marca-r2 { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.elg-marca-txt .elg-marca-r2 b { color: var(--sol); font-weight: 800; }
.elg-marca-txt .elg-marca-r2 i { color: #fff; font-weight: 400; 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. */
.elg-nav {
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.elg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.elg-nav a {
  display: block; color: #CFE0EC; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 13px 14px;
}
.elg-nav a:hover { color: #fff; }
.elg-nav .current-menu-item > a { color: var(--sol); }

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

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

.elg-nav-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;
}
.menu-item-has-children.elg-abierto .elg-nav-flecha { transform: rotate(-135deg) translate(-2px, -2px); }

.elg-nav .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(--tinta-2);
  border: 1px solid #1F4A6B;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
}
.menu-item-has-children.elg-abierto > .sub-menu { display: block; }

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

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

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

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

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

  /* Inside the panel the submenu expands in place, without absolute positioning. */
  .elg-nav .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;
  }
  .elg-nav .sub-menu a { padding: 11px 12px; font-size: 15px; }

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

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

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

.elg-portada {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 6% -30%, rgba(245, 179, 36, .22), transparent 62%),
    var(--portada-bg);
  color: #fff; padding: 34px 0 44px;
}
.elg-portada .elg-caja { 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. */
.elg-portada::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 26px;
  width: 236px;
  height: 236px;
  background: url("assets/mascota.svg") no-repeat center / contain;
  opacity: .13;
  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: elg-mascota-entra 1s ease-out both;
}
/* On an author page the portrait stands on the right: two faces side by side is one too many. */
.elg-portada-autor::before { display: none; }

@keyframes elg-mascota-entra {
  from { opacity: 0; transform: translate(18px, 10px) rotate(12deg); }
  to   { opacity: .13; 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. */
.elg-portada::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--celeste) 0 33.33%, #FFFFFF 33.33% 66.66%, var(--celeste) 66.66%);
  pointer-events: none;
}

.elg-portada .elg-migas { font-size: 14px; color: #93B2C6; margin-bottom: 18px; }
.elg-portada .elg-migas a { color: #93B2C6; text-decoration: none; }
.elg-portada .elg-migas a:hover { color: var(--sol); }

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

.elg-atajos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.elg-atajo {
  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;
}
.elg-atajo:hover { background: rgba(255, 255, 255, .11); border-color: var(--sol); }
.elg-atajo .elg-atajo-ico { display: block; font-size: 24px; margin-bottom: 8px; }

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

.elg-firma { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 22px; }
.elg-firma .elg-firma-persona { display: flex; align-items: center; gap: 11px; }
.elg-firma img, .elg-autor img {
  border-radius: 50%; background: var(--tinta-3); object-fit: cover; flex: 0 0 auto;
}
.elg-firma img { width: 42px; height: 42px; border: 2px solid rgba(245, 179, 36, .5); }
.elg-autor img { width: 74px; height: 74px; }
.elg-firma .elg-firma-meta { font-size: 13.5px; line-height: 1.4; color: #E6EFF5; }
.elg-firma .elg-firma-meta .elg-firma-rol { color: #9DBACC; }
.elg-firma .elg-firma-meta a { color: #fff; font-weight: 700; text-decoration: none; }
.elg-firma .elg-firma-meta a:hover { color: var(--sol); }

.elg-autor {
  position: relative;
  overflow: hidden;
  background: var(--tarjeta); border: 1px solid var(--linea); border-left: 4px solid var(--celeste-hondo);
  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. */
.elg-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. */
  .elg-autor::after { display: none; }
}
.elg-autor > * { position: relative; z-index: 1; }
.elg-autor .elg-autor-cuerpo { flex: 1; }
.elg-autor h2 { margin: 0 0 6px; font-size: 20px; padding-left: 0; border-left: 0; }
.elg-autor .elg-firma-rol { color: var(--apagado); font-size: 14px; margin: 0 0 10px; }
.elg-autor p { margin: 0 0 10px; }
.elg-autor .elg-autor-link { font-weight: 700; text-decoration: none; }
.elg-autor .elg-autor-link: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: .elg-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. */
.elg-cita,
.elg-texto blockquote {
  border: 0;
  border-top: 3px solid var(--celeste-hondo);
  background: var(--tinte);
  border-radius: 0 0 var(--radio) var(--radio);
  padding: 20px 24px; margin: 30px 0; font-size: 19px; font-style: italic; color: #1C2E3A;
}
.elg-texto blockquote p { margin: 0; }
.elg-texto blockquote p + p { margin-top: 12px; }
.elg-cita footer, .elg-texto blockquote cite {
  display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--apagado);
}

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

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

/* H2 sits above a two-tone rule, celeste into sun: the section reads as a new
   start without the heading being pushed off the text column. */
.elg-texto h2 {
  position: relative;
  font-size: 27px; margin: 42px 0 18px; padding-bottom: 12px;
  letter-spacing: -.5px; line-height: 1.22;
}
.elg-texto h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 92px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--celeste-hondo) 0 55%, var(--sol) 55%);
}
.elg-texto h3 { position: relative; padding-left: 15px; }
.elg-texto h3::before {
  content: ""; position: absolute; left: 0; top: .56em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sol);
}
.elg-texto h3 { font-size: 21px; margin: 28px 0 10px; }
.elg-texto h2:first-child, .elg-texto h3:first-child { margin-top: 0; }
.elg-texto p { margin: 0 0 17px; }
.elg-texto > *:first-child { margin-top: 0; }
.elg-texto > *:last-child { margin-bottom: 0; }
.elg-texto figure.wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.elg-texto figure.wp-block-table table { margin: 0; }
.elg-texto ul.wp-block-list, .elg-texto ol.wp-block-list { margin: 0 0 18px; padding-left: 22px; }
.elg-texto ul, .elg-texto ol { margin: 0 0 18px; padding-left: 22px; }
.elg-texto li { margin-bottom: 8px; }
.elg-texto li::marker { color: var(--sol-hondo); 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. */
.elg-texto table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.elg-texto th, .elg-texto td { border: 1px solid var(--linea); padding: 12px 14px; text-align: left; }
.elg-texto th { background: var(--tinta); color: #fff; font-weight: 700; border-color: var(--tinta); }
.elg-texto thead tr { border-bottom: 3px solid var(--sol); }
.elg-texto tr:nth-child(even) td { background: var(--tinte); }

/* Images in the text share the radius of the cards and tables:
   .elg-figura is the classic editor, .wp-block-image is Gutenberg. */
.elg-texto figure.elg-figura,
.elg-texto figure.wp-block-image { margin: 30px 0; }
.elg-texto figure.elg-figura img,
.elg-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(12, 34, 51, .09);
  transition: box-shadow .25s ease, transform .25s ease;
}
.elg-texto figure.elg-figura img:hover,
.elg-texto figure.wp-block-image img:hover {
  box-shadow: 0 14px 30px rgba(12, 34, 51, .17);
  transform: translateY(-2px);
}
.elg-balanza { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.elg-balanza > div { border-radius: var(--radio); padding: 18px 20px; }
.elg-balanza .elg-pro { background: var(--pro); border: 1px solid var(--pro-linea); }
.elg-balanza .elg-contra { background: var(--contra); border: 1px solid var(--contra-linea); }
.elg-balanza h3 { margin: 0 0 10px; font-size: 17px; }
.elg-balanza .elg-pro h3 { color: #17603B; }
.elg-balanza .elg-contra h3 { color: #A32C1E; }
.elg-balanza ul { margin: 0; padding-left: 20px; }

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

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

.elg-faq-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;
}
.elg-faq-boton:hover { background: var(--tinte); }
.elg-faq-boton-txt { flex: 1; }

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

.elg-faq-resp { display: none; padding: 0 18px 16px; }
.elg-faq-item.elg-abierto .elg-faq-resp { display: block; }
.elg-faq-resp p { margin: 0 0 10px; }
.elg-faq-resp p:last-child { margin-bottom: 0; }

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

.elg-pie { background: var(--tinta); color: #B9CCD9; margin-top: 44px; padding: 36px 0 26px; font-size: 15px; }
/* Five columns: brand, sections, games, editorial and legal, outside help. The
   header menu is deliberately short, so the footer is what gives full access. */
.elg-pie-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.elg-pie h4 { color: var(--sol); font-size: 14px; margin: 0 0 13px; text-transform: uppercase; letter-spacing: 1px; }
.elg-pie ul { list-style: none; margin: 0; padding: 0; }
.elg-pie li { margin-bottom: 8px; }
.elg-pie a { color: #B9CCD9; text-decoration: none; }
.elg-pie a:hover { color: var(--sol); }
.elg-pie-nota { border-top: 1px solid #1C3D56; margin-top: 28px; padding-top: 18px; font-size: 13px; color: #7C97A8; }
.elg-edad {
  display: inline-block; border: 2px solid var(--sol); color: var(--sol); 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) {
  .elg-portada { padding: 24px 0 34px; }
  /* On a tablet the mascot shrinks: at full size it takes over the first screen. */
  .elg-portada::before { width: 168px; height: 168px; right: 16px; bottom: 20px; opacity: .12; }
  .elg-portada-grid { grid-template-columns: 1fr; gap: 22px; }
  .elg-portada-arte { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .elg-atajos { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .elg-atajo { padding: 14px 10px; font-size: 12px; }
  .elg-pie-grid { grid-template-columns: 1fr 1fr 1fr; }
  .elg-portada-liso h1 { max-width: none; }
}

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

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

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

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

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

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

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

.elg-test { margin: 26px 0 32px; }
.elg-test-app {
  border: 1px solid var(--linea); border-radius: var(--radio);
  background: var(--tinte); padding: 26px 28px;
}
.elg-test-head h3 { margin: 0 0 4px; font-size: 20px; }
.elg-test-avance { margin: 0 0 18px; font-size: 14px; color: var(--apagado); }

/* 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. */
.elg-test-pregunta { border: 0; margin: 0; padding: 0 0 4px; }
.elg-test-pregunta + .elg-test-pregunta::before {
  content: ""; display: block; height: 1px; background: var(--linea); margin: 18px 0;
}
.elg-test-pregunta legend { display: flex; gap: 10px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.elg-test-pregunta .elg-test-opciones { clear: both; }
.elg-test-pregunta legend .elg-test-num {
  flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--linea-suave);
  color: var(--apagado); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.elg-test-pregunta.elg-test-lista legend .elg-test-num { background: var(--sol); color: var(--tinta); }
.elg-test-pregunta legend .elg-test-txt { font-weight: 600; }

.elg-test-pregunta .elg-test-opciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.elg-test-pregunta .elg-test-opciones input { position: absolute; opacity: 0; width: 0; height: 0; }
.elg-test-pregunta .elg-test-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;
}
.elg-test-pregunta .elg-test-opciones label:hover { border-color: var(--celeste-hondo); }
.elg-test-pregunta .elg-test-opciones input:checked + label {
  background: var(--celeste-hondo); border-color: var(--celeste-hondo); color: #fff; font-weight: 600;
}
.elg-test-pregunta .elg-test-opciones input:focus-visible + label { outline: 2px solid var(--sol); outline-offset: 2px; }

.elg-test-enviar, .elg-test-reiniciar {
  margin-top: 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--celeste-hondo); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 800; padding: 13px 26px;
}
.elg-test-enviar:hover:enabled, .elg-test-reiniciar:hover { background: var(--celeste-mas); }
.elg-test-enviar:disabled { background: #CCD8E0; color: #74899A; cursor: not-allowed; }
.elg-test-note { margin: 12px 0 0; font-size: 13.5px; color: var(--apagado); }

.elg-test-resultado { display: none; }
.elg-test-resultado.elg-test-visible { display: block; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--linea); }
.elg-test-badge { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radio); color: #fff; }
.elg-test-badge .elg-test-badge-titulo { font-size: 21px; font-weight: 800; }
.elg-test-badge .elg-test-badge-score { font-size: 14px; opacity: .92; }
.elg-test-badge.elg-n0 { background: #1F7A4D; }
.elg-test-badge.elg-n1 { background: #6FA046; }
.elg-test-badge.elg-n2 { background: #D39412; }
.elg-test-badge.elg-n3 { background: var(--celeste-hondo); }

.elg-test-escala-wrap { margin: 18px 0 6px; }
.elg-test-escala { width: 100%; height: auto; display: block; }
.elg-test-escala .elg-test-g-score { font-family: var(--tipo); font-size: 21px; font-weight: 800; fill: var(--tinta); }
.elg-test-escala .elg-test-g-banda { font-family: var(--tipo); font-size: 13px; fill: #4E6472; }
.elg-test-escala .elg-test-g-eje { font-family: var(--tipo); font-size: 12.5px; fill: #7E95A3; }

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

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

  .elg-test-app { padding: 18px 14px; }
  .elg-test-pregunta .elg-test-opciones { grid-template-columns: 1fr 1fr; }
  .elg-test-enviar, .elg-test-reiniciar { width: 100%; }
  .elg-test-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. */
  .elg-test-escala .elg-test-g-score { font-size: 30px; }
  .elg-test-escala .elg-test-g-banda { font-size: 19px; }
  .elg-test-escala .elg-test-g-eje { font-size: 17px; }
  .elg-test-parte .elg-test-parte-head { display: block; }
  .elg-test-parte .elg-test-parte-valor { display: block; margin-top: 2px; }
}

/* ---------- "Cómo analizamos": 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.        */

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

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

.elg-metodo-riel .elg-metodo-pasos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.elg-metodo-riel .elg-metodo-paso { position: relative; padding: 0 14px; text-align: center; margin: 0; }
.elg-metodo-riel .elg-metodo-paso::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 50%;
  border-top: 2px solid var(--linea);
}
.elg-metodo-riel .elg-metodo-paso::after {
  content: ""; position: absolute; top: 27px; left: 50%; right: 0;
  border-top: 2px solid var(--linea);
}
.elg-metodo-riel .elg-metodo-paso:first-child::before,
.elg-metodo-riel .elg-metodo-paso:last-child::after { display: none; }
.elg-metodo-riel .elg-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(--tinta); color: #fff;
}
/* White on gold misses the minimum contrast ratio, so that icon is dark. */
.elg-metodo-riel .elg-paso-reloj .elg-metodo-disco { background: var(--sol); color: var(--tinta); }
.elg-metodo-riel .elg-metodo-num {
  position: absolute; right: -6px; bottom: -6px;
  width: 22px; height: 22px; border-radius: 7px;
  background: #fff; color: var(--tinta);
  border: 2px solid var(--linea);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.elg-metodo-riel .elg-metodo-cuerpo { display: block; margin-top: 13px; }
.elg-metodo-riel .elg-metodo-paso-titulo { display: block; font-size: 16px; line-height: 1.3; }
.elg-metodo-riel .elg-metodo-nota { display: block; color: var(--apagado); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.elg-metodo-riel .elg-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 --- */

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

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

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

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

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

@media (max-width: 640px) {
  .elg-bitacora { padding: 14px 14px 12px 14px; }
  .elg-bitacora::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. */
.elg-indice { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linea); }
.elg-indice h2 { margin: 0 0 14px; }
.elg-indice ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.elg-indice li { line-height: 1.5; }
.elg-indice a { font-weight: 700; text-decoration: none; }
.elg-indice a:hover { text-decoration: underline; }
.elg-indice span { display: block; color: var(--apagado); font-size: 15px; }
@media (max-width: 720px) { .elg-indice ul { grid-template-columns: 1fr; } }

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

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

.elg-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: #A8C0D0;
  max-width: 82ch;
}
.elg-aviso-edad {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  border: 1px solid var(--sol);
  border-radius: 6px;
  color: var(--sol);
  font-weight: 800;
  font-size: 12px;
}

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

.elg-portada-autor .elg-caja { position: relative; }
.elg-retrato {
  position: absolute; right: 0; top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.elg-retrato img {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(245, 179, 36, .4);
  box-shadow: 0 14px 34px rgba(6, 20, 31, .5);
}
.elg-retrato .elg-retrato-ciudad { font-size: 13px; color: #9DBACC; letter-spacing: .3px; }
.elg-portada-autor h1, .elg-portada-autor p.elg-bajada { max-width: 30ch; }

@media (max-width: 900px) {
  .elg-retrato { position: static; align-items: flex-start; margin-top: 18px; }
  .elg-retrato img { width: 128px; height: 128px; }
  .elg-portada-autor h1, .elg-portada-autor p.elg-bajada { 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. */
.elg-sellos + .elg-pie { margin-top: 0; }

.elg-sellos { background: var(--tinte); border-top: 1px solid var(--linea); padding: 22px 0; }
.elg-sellos ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.elg-sellos a, .elg-sellos .elg-sello-fijo {
  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(--tinta);
}
.elg-sellos a:hover { border-color: var(--celeste-hondo); }
.elg-sellos a:hover .elg-sello-ico { color: var(--celeste-hondo); }
.elg-sellos .elg-sello-ico { flex: 0 0 auto; color: var(--sol-hondo); }
.elg-sellos .elg-sello-txt { display: flex; flex-direction: column; min-width: 0; }
.elg-sellos .elg-sello-nombre { font-weight: 800; font-size: 15px; letter-spacing: .3px; line-height: 1.2; }
.elg-sellos .elg-sello-nota { font-size: 12px; color: var(--apagado); margin-top: 2px; }

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

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

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

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

@media (max-width: 640px) {
  .elg-cartel { margin: 22px 0; }
  .elg-cartel img { border-radius: var(--radio); }

  /* Four labelled steps squeezed into 340px turn into 5px type. The scheme
     scrolls sideways instead, the same way a wide table does in this theme. */
  .elg-esquema {
    margin: 20px -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .elg-esquema img { width: 720px; max-width: none; }
}

/* 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) {
  .elg-nav a, .elg-nav .elg-nav-boton { font-size: 14.5px; padding: 12px 11px; }
  .elg-nav .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. */

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

.elg-nav a, .elg-nav .elg-nav-boton { transition: color .18s ease, background .18s ease; }

.elg-texto a { transition: color .18s ease; }
.elg-texto p a { text-underline-offset: 3px; }
.elg-texto p a:hover { color: var(--celeste-mas); }

/* Cards: a slight lift and shadow, the border picks up the accent. */
.elg-lista-item, .elg-sellos a, .elg-autor {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.elg-lista-item:hover {
  transform: translateY(-3px);
  border-color: var(--sol);
  box-shadow: 0 10px 26px rgba(12, 34, 51, .09);
}
.elg-sellos a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(12, 34, 51, .09); }

.elg-cartel img { transition: transform .25s ease, box-shadow .25s ease; }
.elg-cartel:hover img { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(12, 34, 51, .2); }

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

.elg-metodo-riel .elg-metodo-disco { transition: transform .22s ease, box-shadow .22s ease; }
.elg-metodo-riel .elg-metodo-paso:hover .elg-metodo-disco {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(12, 34, 51, .22);
}

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

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

@keyframes elg-asciende {
  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;
  }
  .elg-portada h1, .elg-portada p.elg-bajada, .elg-portada .elg-firma { opacity: 1; transform: none; }
  .elg-portada::before { opacity: .13; transform: rotate(4deg); }
}
