/* Página de Opiniones: se carga después de styles.css y madrid.css y solo añade lo que cambia */

/* Primera pantalla: foto fija (no hay vídeo) */
.op-hero__foto { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero--opiniones .hero__shade { background: linear-gradient(90deg, rgba(5,10,24,.92) 0%, rgba(5,10,24,.72) 42%, rgba(5,10,24,.15) 75%), linear-gradient(0deg, rgba(5,10,24,.85) 0%, rgba(5,10,24,0) 35%); }
@media (max-width: 820px) {
  .op-hero__foto { object-position: 72% 20%; }
  .hero--opiniones .hero__shade { background: linear-gradient(0deg, rgba(5,10,24,.97) 0%, rgba(5,10,24,.82) 52%, rgba(5,10,24,.35) 100%); }
}

/* Nota en Google */
.op-nota__grid { display: grid; grid-template-columns: minmax(300px, 1fr) 1.3fr; gap: 28px; align-items: stretch; }
.op-nota__panel {
  display: flex; flex-direction: column; gap: 8px; padding: 34px 36px; border-radius: 28px;
  background: var(--noche); color: #fff; text-decoration: none; border: 3px solid var(--noche);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.op-nota__panel:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(8,19,46,.7); }
.op-nota__k { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.op-nota__num { display: flex; align-items: baseline; gap: 6px; line-height: 1; margin-top: 6px; }
.op-nota__cifra { font-size: clamp(5rem, 11vw, 8.5rem); font-weight: 800; letter-spacing: -.05em; }
.op-nota__de { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #9fb0d3; }
.op-nota__st { font-size: 30px; letter-spacing: 4px; color: #f5a623; }
.op-nota__total { font-size: 18px; font-weight: 600; color: #d5ddef; }
.op-nota__total strong { color: #fff; }
.op-nota__ir { margin-top: auto; padding-top: 18px; font-weight: 800; font-size: 17px; color: var(--coral); }
.op-nota__datos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.op-nota__datos li { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 26px 26px; border-radius: 24px; border: 3px solid var(--noche); background: #fff; }
.op-nota__datos strong { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--noche); line-height: 1; }
.op-nota__datos span { font-size: 17px; font-weight: 600; color: var(--texto-2); }

/* Opiniones con filtro */
.op-lista__lead { margin: 18px 0 0; font-size: 20px; font-weight: 600; color: var(--texto-2); max-width: 52ch; }
.op-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 30px; }
.op-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: 999px;
  border: 3px solid var(--noche); background: #fff; color: var(--noche); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.op-chip span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #eaf6ff; font-size: 14px; }
.op-chip:hover { background: #eaf6ff; }
.op-chip.is-on { background: var(--noche); color: #fff; }
.op-chip.is-on span { background: var(--coral); color: var(--noche); }
.op-grid { list-style: none; margin: 0 0 8px; padding: 0; columns: 3 320px; column-gap: 18px; }
.op-card {
  break-inside: avoid; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; padding: 24px 24px 22px;
  border-radius: 24px; background: #fff; border: 3px solid var(--noche); animation: fade .45s both;
}
.op-card[hidden] { display: none; }
.op-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.op-card__tema { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--azul); background: #eaf6ff; padding: 5px 11px; border-radius: 999px; }
.op-card__txt { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--texto); white-space: pre-line; }
.op-card .resena__autor small { font-weight: 600; }

/* Cómo las elegimos */
.op-elegimos__lista { list-style: none; counter-reset: paso; margin: 36px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.op-elegimos__lista li { counter-increment: paso; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: 24px; border: 2px solid rgba(255,255,255,.22); }
.op-elegimos__lista li::before { content: "0" counter(paso); font-size: 15px; font-weight: 800; color: var(--coral); letter-spacing: .1em; }
.op-elegimos__lista strong { font-size: 22px; font-weight: 800; }
.op-elegimos__lista span { font-size: 17px; line-height: 1.55; color: #d5ddef; font-weight: 500; }

/* Pie: enlaces legales con zona táctil de 44 px */
.pag-opiniones .foot__legal { gap: 0 20px; }
.pag-opiniones .foot__legal a, .pag-opiniones .foot__legal .linklike { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 980px) {
  .op-nota__grid { grid-template-columns: 1fr; }
  .op-elegimos__lista { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .op-nota__panel { padding: 26px 24px; }
  .op-nota__datos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .op-nota__datos li { padding: 18px 16px; }
  .op-nota__datos strong { font-size: 1.7rem; }
  .op-nota__datos span { font-size: 15px; }
  .op-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .op-chips::-webkit-scrollbar { display: none; }
  .op-chip { flex: none; }
  .op-card__txt { font-size: 17px; }
}

/* Autor y fecha: la fecha baja de línea si no cabe */
.op-card .resena__autor { flex-wrap: wrap; row-gap: 2px; }
.op-card .resena__autor small { white-space: nowrap; }
.op-lista__pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 12px; }
.op-lista__pie .btn--navy { margin-top: 0; }
@media (max-width: 820px) {
  .op-hero__foto { object-position: 42% 25%; }
  .hero--opiniones .hero__shade { background: linear-gradient(0deg, rgba(5,10,24,.97) 0%, rgba(5,10,24,.85) 45%, rgba(5,10,24,.25) 80%, rgba(5,10,24,.45) 100%); }
  .op-lista__pie .btn { width: 100%; }
}
#opMas[hidden] { display: none; }

/* Aviso de selección y fecha de consulta */
.op-lista__lead a { color: var(--azul); font-weight: 800; }
.op-nota__fecha { font-size: 14px; font-weight: 600; color: #9fb0d3; }
.op-nota__datos { grid-template-columns: 1fr; }
.op-faq-t { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
@media (max-width: 560px) { .op-nota__datos { grid-template-columns: 1fr; } }
