/* opiniones.css — piezas propias de la página de Opiniones (rediseño 2026-10-22; origen: docs/maquetas/2026-10-22-rediseno/opiniones/).
   Solo clases zxo-* (y el selector de idioma); usa los tokens --zx-* de /vendor/zx-design.css y no redefine ninguna clase zx-* del sistema. */

/* ───── Cabecera de página ───── */
.zxo-hero { padding: 132px 0 0; text-align: center; position: relative; isolation: isolate; }
.zxo-crumb { display: flex; justify-content: center; }
.zxo-crumb ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--zx-fs-small); color: var(--zx-muted-2); }
.zxo-crumb li + li::before { content: "›"; margin-right: 8px; }
.zxo-crumb a { color: var(--zx-muted); transition: color var(--zx-dur-fast); }
.zxo-crumb a:hover { color: var(--zx-brand-2); }
.zxo-crumb [aria-current] { color: var(--zx-text); }
.zxo-hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin-top: 22px; }
.zxo-hero h1 .zx-grad-text { padding-right: .04em; }
.zxo-hero__sub { max-width: 600px; margin: 22px auto 0; color: var(--zx-muted); font-size: 1.08rem; }

/* ───── Estrellas que se rellenan (máscara + capa que crece) ───── */
.zxo-stars {
  --s: 18px; --w: 100%;
  position: relative; display: inline-block; flex: none;
  width: calc(var(--s) * 35 / 6); height: var(--s);
  background: rgba(255, 255, 255, .12);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.6l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.4 5.6 21l1.5-7.1L1.7 9l7.2-.8z'/%3E%3C/svg%3E") left center / calc(var(--s) * 7 / 6) var(--s) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.6l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.4 5.6 21l1.5-7.1L1.7 9l7.2-.8z'/%3E%3C/svg%3E") left center / calc(var(--s) * 7 / 6) var(--s) repeat-x;
}
.zxo-stars::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--zx-brand), var(--zx-brand-2));
  transition: width 1.3s var(--zx-ease); transition-delay: var(--d, .25s);
}
.is-in .zxo-stars::before, .zxo-stars.is-in::before { width: var(--w); }
.zxo-stars--xl { --s: 30px; --d: .5s; }
.zxo-stars--light { background: rgba(255, 255, 255, .28); }
.zxo-stars--light::before { background: #fff; }

/* ───── Resumen: media grande + distribución + datos ───── */
.zxo-summary {
  display: grid; grid-template-columns: 1fr 1.35fr .85fr; gap: 12px; margin-top: 64px; padding: 12px; text-align: left;
  border: 1px solid var(--zx-line); border-radius: var(--zx-r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
  box-shadow: 0 40px 120px -40px var(--zx-brand-glow);
}
.zxo-score { justify-items: start; align-content: space-between; }
.zxo-score__num { display: flex; align-items: baseline; gap: 10px; line-height: .9; }
.zxo-score__num b { font-size: clamp(5rem, 11vw, 8.4rem); font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.zxo-score__num span { font-size: 1.4rem; font-weight: 600; color: var(--zx-muted-2); }
.zxo-score p { font-size: var(--zx-fs-small); color: var(--zx-muted); }
.zxo-side { display: grid; gap: 12px; }
.zxo-side .zx-tile { min-height: 0; }
.zxo-side__ring { display: flex; gap: 14px; align-items: center; }

.zxo-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zxo-dist li { display: grid; grid-template-columns: 44px 1fr 32px; gap: 12px; align-items: center; font-size: var(--zx-fs-small); color: var(--zx-muted); font-variant-numeric: tabular-nums; }
.zxo-dist li > span:first-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--zx-text); }
.zxo-dist li > span:first-child i { width: 11px; height: 11px; background: var(--zx-brand-2); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.zxo-dist li > span:last-child { text-align: right; }
.zxo-dist__track { height: 10px; border-radius: var(--zx-r-pill); background: var(--zx-surface-2); border: 1px solid var(--zx-line); overflow: hidden; }
.zxo-dist__track i { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--zx-grad); box-shadow: 0 0 18px -2px var(--zx-brand-glow); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--zx-ease); transition-delay: calc(var(--i, 0) * 90ms + 350ms); }
.is-in .zxo-dist__track i { transform: none; }
.zxo-dist li.is-zero { color: var(--zx-muted-2); }
.zxo-dist li.is-zero > span:first-child { color: var(--zx-muted-2); }
.zxo-dist li.is-zero > span:first-child i { background: var(--zx-muted-2); }

/* ───── Filtros ───── */
.zxo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.zxo-bar h2 { font-size: var(--zx-fs-h2); }
.zxo-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.zxo-filter[aria-pressed="true"] { background: var(--zx-surface-2); border-color: rgba(192, 132, 252, .55); color: var(--zx-text); box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
.zxo-filter small { color: var(--zx-muted-2); font-weight: 600; }

/* ───── Rejilla masonry de reseñas ───── */
.zxo-masonry { columns: 3 300px; column-gap: 16px; }
.zxo-review { break-inside: avoid; margin-bottom: 16px; display: grid; gap: 14px; overflow: hidden; }
.zxo-review::after { /* comilla decorativa */
  content: "\201D"; position: absolute; right: 16px; top: -8px; font: 800 6.5rem/1 Georgia, serif;
  color: var(--zx-brand); opacity: .12; pointer-events: none; transition: opacity var(--zx-dur-fast), transform .5s var(--zx-ease);
}
.zxo-review:hover::after { opacity: .3; transform: translateY(6px); }
.zxo-review[hidden] { display: none; }
.zxo-review__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zxo-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--zx-grad); box-shadow: 0 0 0 3px var(--zx-bg), 0 0 0 4px rgba(192, 132, 252, .35); }
.zxo-review__who > div { min-width: 0; display: grid; }
.zxo-review__name { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zxo-review__date { font-size: .78rem; color: var(--zx-muted-2); }
.zxo-review__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zxo-verified { display: inline-flex; align-items: center; gap: 5px; font-size: var(--zx-fs-micro); font-weight: 600; letter-spacing: .04em; color: var(--zx-ok); }
.zxo-verified svg { width: 13px; height: 13px; }
.zxo-review blockquote { margin: 0; color: var(--zx-muted); font-size: .95rem; line-height: 1.65; }
.zxo-review--long blockquote { color: var(--zx-text); font-size: 1rem; }
.zxo-empty { text-align: center; padding: 56px 20px; color: var(--zx-muted-2); border: 1px dashed var(--zx-line-2); border-radius: var(--zx-r); }
.zxo-more { margin-top: 18px; text-align: center; font-size: var(--zx-fs-small); color: var(--zx-muted-2); }

/* ───── Llamada para opinar ───── */
.zxo-cta-code { font-family: var(--zx-mono); font-size: .95em; padding: 3px 10px; border-radius: 8px; color: var(--zx-brand-2); background: var(--zx-surface-2); border: 1px solid var(--zx-line-2); }
.zxo-cta-gift { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.zxo-cta-gift b { color: var(--zx-text); }
.zxo-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.zxo-cta-btns svg { width: 18px; height: 18px; }

/* ───── Bloque SEO «por qué confiar» ───── */
.zxo-trust { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(24px, 5vw, 64px); align-items: start; border-top: 1px solid var(--zx-line); padding-top: 56px; }
.zxo-trust h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.zxo-trust__txt { display: grid; gap: 16px; color: var(--zx-muted); line-height: 1.75; }
.zxo-trust__txt strong { color: var(--zx-text); font-weight: 600; }
.zxo-trust__txt a { color: var(--zx-brand-2); font-weight: 600; }

/* ───── Móvil ───── */
@media (max-width: 960px) {
  .zxo-summary { grid-template-columns: 1fr 1fr; }
  .zxo-side { grid-column: span 2; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .zxo-trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .zxo-hero { padding-top: 104px; }
  .zxo-summary { grid-template-columns: 1fr; margin-top: 44px; }
  .zxo-side { grid-column: auto; }
  .zxo-stars--xl { --s: 24px; }
  .zxo-bar { flex-direction: column; align-items: flex-start; }
}

/* ───── Captura estática (?static=1) y movimiento reducido ───── */
.zxo-static *, .zxo-static *::before, .zxo-static *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .zxo-stars::before { width: var(--w); }
  .zxo-dist__track i { transform: none; }
}

/* ───── Producción (web/opiniones/index.php, 2026-10-22) ───── */
/* Selector de idioma de la cabecera (mismas clases que zx-chrome.php del blog) */
.zx-lang-dd { position: relative; }
.zx-lang-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--zx-line); border-radius: var(--zx-r-pill); padding: 8px 11px; color: var(--zx-muted); font: 600 .82rem var(--zx-font); cursor: pointer; line-height: 1; transition: border-color var(--zx-dur-fast), color var(--zx-dur-fast); }
.zx-lang-btn:hover { color: var(--zx-text); border-color: var(--zx-line-2); }
.zx-flag { border-radius: 2px; object-fit: cover; flex: none; display: block; }
.zx-caret { opacity: .55; transition: transform .2s; flex: none; }
.zx-lang-dd.open .zx-caret { transform: rotate(180deg); }
.zx-lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 172px; background: rgba(12, 12, 18, .97); border: 1px solid var(--zx-line-2); border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); display: none; z-index: 60; }
.zx-lang-dd.open .zx-lang-menu { display: block; }
.zx-lang-menu .zx-lang { display: flex; border: 0; border-radius: 9px; padding: 9px 11px; gap: 10px; color: var(--zx-muted); font-size: .87rem; white-space: nowrap; }
.zx-lang-menu .zx-lang:hover, .zx-lang-menu .zx-lang.active { background: rgba(139, 92, 246, .16); color: var(--zx-text); }
.zx-nav__end #zx-account { display: flex; align-items: center; }
@media (max-width: 640px) {
  .zx-lang-btn span { display: none; }
  .zx-nav__end #zx-account .zx-nm { display: none; }
  /* «Iniciar sesión» de zx-session.js: solo el icono (el texto sigue para lectores de pantalla) */
  .zx-nav__end #zx-account .zx-login { font-size: 0; gap: 0; padding: 10px; }
}

/* Piezas de la página */
.zxo-avatar { object-fit: cover; }
.zxo-avatar[hidden] { display: none; }
.zxo-review blockquote p { margin: 0; }
.zxo-review blockquote p::before { content: "\00AB"; } .zxo-review blockquote p::after { content: "\00BB"; }
:lang(en) .zxo-review blockquote p::before, :lang(pt-BR) .zxo-review blockquote p::before { content: "\201C"; }
:lang(en) .zxo-review blockquote p::after, :lang(pt-BR) .zxo-review blockquote p::after { content: "\201D"; }
.zxo-review blockquote p { overflow-wrap: anywhere; }
.zxo-side__pct { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.zxo-sec--tight { padding-top: 0; }
.zxo-trust h2 { margin-top: 16px; }
.zxo-gift { color: var(--zx-text); }
.zxo-score__num span { color: rgba(255, 255, 255, .78); }

/* Entre 861 y 1180 px, como la portada y la tienda: fuera «Características» y del botón de entrar solo el icono; enlaces y botones sin partir. */
@media (min-width:861px){.zx-pillnav a,.zx-nav__end .zx-btn{white-space:nowrap}}
@media (min-width:861px) and (max-width:1180px){.zx-pillnav a[href$="#features"]{display:none}.zx-nav__end .zx-login{font-size:0;gap:0;padding:10px}}
/* Logo y menú nunca pegados (Alex, 2026-10-25): en escritorio el logo no encoge, siempre hay 24 px hasta la píldora (16 del hueco + 8) y los enlaces de la píldora van algo más juntos para que quepa todo. */
@media (min-width:861px){.zx-brand{flex-shrink:0;margin-right:8px}.zx-pillnav a{padding-left:10px;padding-right:10px}}
@media (min-width:861px) and (max-width:940px){.zx-nav__end .zx-btn{display:none}}
