.lop-guides-page {
  --lop-guide-bg: #050914;
  --lop-guide-bg2: #08111d;
  --lop-guide-panel: rgba(6, 12, 22, .88);
  --lop-guide-panel2: rgba(9, 22, 36, .76);
  --lop-guide-line: rgba(78, 197, 214, .20);
  --lop-guide-line-strong: rgba(78, 197, 214, .46);
  --lop-guide-teal: #4ec5d6;
  --lop-guide-teal-soft: #8bdbe7;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(78,197,214,.06), transparent 26%),
    linear-gradient(135deg, var(--lop-guide-bg) 0%, var(--lop-guide-bg2) 42%, #03060c 100%);
  color: var(--text-l);
}

body.page-liesofp {
  --cursor-gold: #2a8a97;
  --cursor-gold-l: #4ec5d6;
  --cursor-gold-d: #1a5f6a;
}

.lop-guides-hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px 0 clamp(58px, 8vw, 104px);
}

.lop-guides-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lop-guides-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.34) contrast(1.16) saturate(0.78);
  transform: scale(1.04);
}

.lop-guides-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,23,0.4) 0%, rgba(10,14,23,0.1) 30%, rgba(10,14,23,0.55) 65%, rgba(10,14,23,0.96) 100%),
    radial-gradient(circle at 70% 35%, rgba(78,197,214,.12), transparent 38%),
    linear-gradient(90deg, rgba(10,14,23,0.75) 0%, transparent 50%, rgba(10,14,23,0.35) 100%);
}

.lop-guides-hero__inner {
  position: relative;
  z-index: 1;
}

.lop-guides-title {
  max-width: 880px;
  margin: 12px 0 14px;
  color: var(--white);
  font-family: var(--ff-d);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.lop-guides-title em {
  color: var(--lop-guide-teal);
  font-style: normal;
}

.lop-guides-lead {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.62;
  opacity: 0.9;
}

.lop-guides-page .pill-tag {
  border-color: rgba(78,197,214,.35);
  color: var(--lop-guide-teal-soft);
  background: rgba(78,197,214,.07);
}

.lop-guides-page > .sec-sep {
  position: relative;
  z-index: 4;
  display: block;
  height: 0;
  width: 100%;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.lop-guides-page > .sec-sep svg {
  display: block;
  width: min(1400px, 92vw);
  height: 92px;
  position: absolute;
  left: 50%;
  top: 0;
  margin: -46px 0 0;
  transform: translateX(-50%);
}

.lop-guides-page .sep-line,
.lop-guides-page .sep-flourish,
.lop-guides-page .sep-sword,
.lop-guides-page .sep-cross,
.lop-guides-page .sep-ring-outer,
.lop-guides-page .sep-ring-inner {
  stroke: rgba(78,197,214,.42);
}

.lop-guides-page .sep-dot,
.lop-guides-page .sep-diamond,
.lop-guides-page .sep-sword-fill {
  fill: rgba(78,197,214,.9);
}

.lop-guides-page .sep-glow {
  fill: rgba(78,197,214,.06);
}

.lop-guides-index,
.lop-guide-article,
.lop-guide-table-section,
.lop-guide-faq,
.lop-guides-next {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 4.5vw, 64px) 0;
}

.lop-guides-index {
  padding-top: clamp(74px, 7vw, 108px);
  padding-bottom: clamp(52px, 6vw, 86px);
}

.lop-guide-article {
  padding-top: clamp(26px, 3vw, 38px);
  padding-bottom: clamp(24px, 2.8vw, 36px);
  background:
    linear-gradient(90deg, rgba(78,197,214,.035), transparent 24%, transparent 76%, rgba(78,197,214,.035)),
    rgba(3, 6, 11, .50);
}

.lop-guide-table-section {
  padding-top: clamp(30px, 3.2vw, 46px);
}

.lop-guide-section-head {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}

.lop-guide-section-head h2 {
  margin: 12px 0 10px;
  color: var(--white);
  font-family: var(--ff-d);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
}

.lop-guide-section-head p {
  color: var(--text);
  line-height: 1.75;
}

.lop-guide-intro-copy {
  max-width: 980px;
  margin: 0 auto 28px;
  columns: 2 360px;
  column-gap: clamp(28px, 5vw, 70px);
  color: var(--text-l);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.75;
}

.lop-guide-intro-copy p {
  margin: 0 0 16px;
  break-inside: avoid;
}

.lop-guide-intro-copy a {
  color: var(--lop-guide-teal-soft);
  text-decoration: underline;
  text-decoration-color: rgba(78,197,214,.42);
  text-underline-offset: 4px;
  transition: color .25s ease, text-decoration-color .25s ease;
}

.lop-guide-intro-copy a:hover {
  color: var(--white);
  text-decoration-color: var(--lop-guide-teal-soft);
}

.lop-guides-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lop-guides-rec-card,
.lop-guides-next__card,
.lop-guide-side,
.lop-guide-preview,
.lop-guide-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lop-guide-line);
  background:
    linear-gradient(145deg, var(--lop-guide-panel2), var(--lop-guide-panel)),
    linear-gradient(90deg, rgba(78,197,214,.05), transparent);
  box-shadow: 0 18px 46px rgba(0,0,0,0.22);
  transition: transform .45s cubic-bezier(.19,1,.22,1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.lop-guides-rec-card::before,
.lop-guides-next__card::before,
.lop-guide-side::before,
.lop-guide-copy::before,
.lop-guide-faq article::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(78,197,214,.16), transparent 34%),
    linear-gradient(90deg, rgba(78,197,214,.08), transparent 42%);
  transition: opacity .35s ease;
}

.lop-guides-rec-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 6px;
  cursor: pointer;
}

.lop-guides-rec-card:hover {
  transform: translateY(-6px);
  border-color: var(--lop-guide-line-strong);
  box-shadow:
    0 22px 70px rgba(0,0,0,.34),
    0 0 42px rgba(78,197,214,.10);
}

.lop-guides-rec-card:hover::before,
.lop-guides-next__card:hover::before,
.lop-guide-side:hover::before,
.lop-guide-copy:hover::before,
.lop-guide-faq article:hover::before {
  opacity: 1;
}

.lop-guides-rec-card:hover h3,
.lop-guides-next__card:hover strong {
  color: var(--lop-guide-teal-soft);
}

.lop-guides-rec-card:hover strong {
  letter-spacing: .18em;
}

.lop-guides-rec-card span,
.lop-guide-kicker,
.lop-guides-next__card span,
.lop-guide-side strong,
.lop-guide-preview strong {
  color: var(--lop-guide-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lop-guides-rec-card h3 {
  margin: 12px 0 9px;
  color: var(--white);
  font-family: var(--ff);
  font-size: 21px;
  line-height: 1.15;
}

.lop-guides-rec-card p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.62;
}

.lop-guides-rec-card strong {
  margin-top: 18px;
  color: var(--lop-guide-teal-soft);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lop-guide-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.lop-guide-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border-radius: 6px;
}

.lop-guide-copy p:not(.lop-guide-kicker) {
  color: var(--text-l);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.62;
}

.lop-guide-preview {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 6px;
}

.lop-guide-preview a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid rgba(78,197,214,.12);
}

.lop-guide-preview span {
  grid-row: span 2;
  color: var(--lop-guide-teal);
  font-weight: 800;
  letter-spacing: .08em;
}

.lop-guide-preview em {
  color: var(--white);
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.lop-guide-preview small {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.lop-guide-side {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 6px;
}

.lop-guide-side a {
  color: var(--text-l);
  opacity: .82;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

.lop-guide-side a:hover {
  color: var(--lop-guide-teal-soft);
  opacity: 1;
  transform: translateX(4px);
}

.lop-guide-table-wrap {
  overflow-x: visible;
  border: 1px solid rgba(78,197,214,0.18);
  border-radius: 6px;
  background: rgba(5,9,16,0.92);
  box-shadow: 0 22px 70px rgba(0,0,0,.26);
}

.lop-guide-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.lop-guide-filterbar button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(78,197,214,.24);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(11,22,33,.88), rgba(5,10,17,.94));
  color: rgba(239,232,216,.78);
  font-family: var(--font-ui, inherit);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lop-guide-filterbar button:hover,
.lop-guide-filterbar button:focus-visible,
.lop-guide-filterbar button.is-active {
  border-color: rgba(78,197,214,.72);
  background: linear-gradient(145deg, rgba(28,131,148,.36), rgba(7,15,24,.98));
  color: var(--lop-guide-teal-soft);
  box-shadow: 0 0 18px rgba(78,197,214,.13), inset 0 1px 0 rgba(255,255,255,.06);
}

.lop-guide-filterbar button:hover {
  transform: translateY(-1px);
}

.lop-guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.lop-guide-table--wide {
  min-width: 0;
}

.lop-guide-table th,
.lop-guide-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  transition: color .2s ease, background .2s ease;
}

.lop-guide-table thead th {
  color: var(--lop-guide-teal);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(78,197,214,0.075);
}

.lop-guide-table tbody th {
  color: var(--white);
  font-weight: 700;
}

.lop-guide-table tbody tr {
  transition: background .2s ease, box-shadow .2s ease;
}

.lop-guide-table tbody tr:hover {
  background: rgba(78,197,214,.055);
  box-shadow: inset 3px 0 0 rgba(78,197,214,.6);
}

.lop-guide-table tbody tr:hover td,
.lop-guide-table tbody tr:hover th {
  color: var(--text-l);
}

.lop-guide-table a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(78,197,214,0.35);
  text-underline-offset: 4px;
}

.lop-guide-table a:hover {
  color: var(--lop-guide-teal-soft);
}

.lop-guide-faq__grid,
.lop-guides-next__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lop-guide-faq h2 {
  margin-bottom: 24px;
  color: var(--white);
  font-family: var(--ff-d);
  font-size: clamp(28px, 4vw, 46px);
  text-align: center;
}

.lop-guide-faq article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(78,197,214,0.16);
  border-top-color: rgba(78,197,214,0.34);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(8,17,31,.74), rgba(3,6,11,.9));
  transition: transform .35s cubic-bezier(.19,1,.22,1), border-color .3s ease, box-shadow .3s ease;
}

.lop-guide-faq article:hover {
  transform: translateY(-4px);
  border-color: var(--lop-guide-line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.25), 0 0 34px rgba(78,197,214,.08);
}

.lop-guide-faq h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 18px;
}

.lop-guide-faq p {
  color: var(--text);
  line-height: 1.7;
}

.lop-guides-next__card {
  padding: 20px;
  border-radius: 6px;
}

.lop-guides-next {
  padding-bottom: clamp(70px, 7vw, 104px);
}

.lop-guides-next__card:hover {
  transform: translateY(-4px);
  border-color: var(--lop-guide-line-strong);
  box-shadow: 0 18px 48px rgba(0,0,0,.28), 0 0 34px rgba(78,197,214,.08);
}

.lop-guides-next__card strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 20px;
}

@media (max-width: 900px) {
  .lop-guides-card-grid,
  .lop-guide-article__grid,
  .lop-guide-comparison-grid,
  .lop-guide-faq__grid,
  .lop-guides-next__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .lop-guides-hero {
    min-height: 560px;
    padding-top: 112px;
  }
  .lop-guides-title {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.02;
  }
  .lop-guides-rec-card {
    min-height: 0;
  }
  .lop-guide-table th,
  .lop-guide-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
  .lop-guides-page > .sec-sep svg {
    width: 110vw;
    height: 76px;
    margin-top: -38px;
  }
}

body.page-liesofp .ft {
  margin-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(5,9,16,.98), rgba(3,6,11,1)),
    radial-gradient(circle at 18% 0%, rgba(78,197,214,.07), transparent 30%);
  border-top: 1px solid rgba(78,197,214,.18);
}

body.page-liesofp .ft-logo-text,
body.page-liesofp .ft-col-title,
body.page-liesofp .ft-disclaimer strong,
body.page-liesofp .ft-col-list a:hover,
body.page-liesofp .ft-privacy-link:hover {
  color: var(--lop-guide-teal);
}

body.page-liesofp .sg-asset-notice {
  border-color: rgba(78,197,214,.32);
  background: rgba(3,8,14,.88);
  box-shadow: 0 12px 34px rgba(0,0,0,.34), 0 0 26px rgba(78,197,214,.08);
}

body.page-liesofp .sg-asset-notice span,
body.page-liesofp .sg-asset-notice a:hover {
  color: var(--lop-guide-teal-soft);
}

body.page-liesofp .sg-asset-notice a {
  text-decoration-color: rgba(78,197,214,.45);
}

/* ==============================================================
   Ranking interactivo (Fase 3b)
   Controles variante/nivel/stats que recalculan el ranking en vivo.
   ============================================================== */
.lop-guide-calc {
  background:
    radial-gradient(circle at 12% 0%, rgba(78,197,214,.07), transparent 42%),
    linear-gradient(145deg, rgba(10,17,29,.92), rgba(4,7,13,.96));
  border: 1px solid rgba(78,197,214,.16);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.lop-guide-calc-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.lop-guide-calc-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(239,232,216,.78);
}
.lop-guide-calc-hint em {
  font-style: normal;
  color: #4ec5d6;
  font-weight: 600;
}
.lop-guide-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lop-guide-calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lop-guide-calc-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #4ec5d6;
  opacity: .9;
  font-weight: 600;
}
.lop-guide-calc-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  background: linear-gradient(145deg, #0c1722, #07121c);
  border: 1px solid rgba(78,197,214,.25);
  color: #efe8d8;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 3px 10px rgba(0,0,0,.4);
}
.lop-guide-calc-field input[type="number"]:focus {
  border-color: rgba(126,220,232,.7);
  box-shadow: 0 0 0 2px rgba(78,197,214,.15), inset 0 1px 0 rgba(255,255,255,.04);
}

@media (max-width: 720px) {
  .lop-guide-calc { padding: 16px; }
  .lop-guide-calc-grid { grid-template-columns: 1fr 1fr; }
}

/* Loading state cuando se sirve la tabla skeleton */
.lop-guide-calc-loading {
  text-align: center;
  padding: 28px 12px;
  color: rgba(239,232,216,.55);
  font-style: italic;
}

/* Badges de escalado (D-S) reutilizados de la guía calc del inspector */
.lop-guide-grade {
  display: inline-block;
  min-width: 22px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-weight: 700;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 12px;
}
.lop-guide-grade--none { color: #5c5c5c; }
.lop-guide-grade--d    { color: #b29977; }
.lop-guide-grade--c    { color: #c9a76b; }
.lop-guide-grade--b    { color: #d9b86b; }
.lop-guide-grade--a    { color: #e7c976; }
.lop-guide-grade--s    { color: #f1d984; text-shadow: 0 0 6px rgba(241,217,132,.5); }
