/* Reseñas de clientes (inc/reviews.php) — sección encima del pie de página */
.tqr {
    --r-blue: #2e47ab; --r-navy: #0b1f33; --r-ink: #334155; --r-muted: #64748b; --r-line: #e6eaf2;
    --r-soft: #f4f7fc; --r-accent: #f7931e; --r-ta: #00aa6c; --r-g: #fbbc04; --r-tp: #00b67a;
    position: relative; padding: 76px 0 84px; overflow: hidden;
    background: radial-gradient(1200px 380px at 50% 0, #eef2fb 0, rgba(238, 242, 251, 0) 70%), #fff;
    font-family: 'Montserrat', sans-serif; color: var(--r-ink); text-align: left;
}
.tqr *, .tqr *::before, .tqr *::after { box-sizing: border-box; }
.tqr :where(ul) { margin: 0; padding: 0; list-style: none; }
.tqr :where(li) { margin: 0; padding: 0; list-style: none; }
.tqr li::before, .tqr li::marker { content: none; }
.tqr svg { display: block; width: 100%; height: 100%; }
.tqr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.tqr__wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

/* Encabezado */
.tqr__intro { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.tqr__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 170, 108, .1); color: #047857; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tqr .tqr__title { position: static; margin: 14px 0 10px; padding: 0; border: 0; font-family: 'Poppins', sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.5px; color: var(--r-navy); text-align: center; text-transform: none; }
.tqr .tqr__title::before, .tqr .tqr__title::after { content: none; }
.tqr__sub { margin: 0 !important; font-size: 16px; line-height: 1.6; color: var(--r-muted); text-align: center; }

.tqr__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }

/* Plataformas */
.tqr__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.tqr__plats { display: flex; flex-direction: column; gap: 12px; }
.tqr a.tqr-plat {
    position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-items: center;
    padding: 16px 16px 14px; border: 1px solid var(--r-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none;
    box-shadow: 0 6px 20px rgba(11, 31, 51, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tqr a.tqr-plat::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pc); }
.tqr-plat.is-tripadvisor { --pc: var(--r-ta); } .tqr-plat.is-google { --pc: #4285f4; } .tqr-plat.is-trustpilot { --pc: var(--r-tp); }
.tqr a.tqr-plat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pc) 45%, #fff); box-shadow: 0 12px 26px rgba(11, 31, 51, .09); }
.tqr a.tqr-plat:focus-visible { outline: 3px solid rgba(46, 71, 171, .35); outline-offset: 2px; }
.tqr-plat__logo { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 9px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(11, 31, 51, .1); }
.tqr-plat.is-tripadvisor .tqr-plat__logo { padding: 6px; }
/* Búho de Tripadvisor (SVG con currentColor): negro sobre el verde de la marca */
.tqr-ta { display: grid; place-items: center; width: 100%; height: 100%; padding: 16%; border-radius: 50%; background: #34e0a1; color: #000; }
.tqr-ta svg { width: 100%; height: 100%; }
.tqr-plat__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tqr-plat__name { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: var(--r-navy); }
.tqr-plat__score { display: flex; align-items: center; gap: 8px; }
.tqr-plat__score strong { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 800; line-height: 1; color: var(--r-navy); }
.tqr-plat__count { font-size: 12.5px; color: var(--r-muted); }
.tqr-plat__go { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--r-blue); }
.tqr-plat__go i { font-size: 10px; }
.tqr a.tqr__write { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 1.5px dashed rgba(46, 71, 171, .35); border-radius: 14px; color: var(--r-blue); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; transition: background .2s ease; }
.tqr a.tqr__write:hover { background: var(--r-soft); }

/* Iconos de valoración (relleno parcial para promedios) */
.tqr-rate { position: relative; display: inline-flex; flex: none; line-height: 0; }
.tqr-rate__base, .tqr-rate__fill { display: inline-flex; gap: 3px; white-space: nowrap; }
.tqr-rate__fill { position: absolute; left: 0; top: 0; overflow: hidden; }
.tqr-ic { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; font-style: normal; }
.tqr-ic.is-bubble { border-radius: 50%; border: 2px solid #c9d3cf; }
.tqr-rate__fill .is-bubble { border-color: var(--r-ta); background: var(--r-ta); }
.tqr-ic.is-star::before { content: "\f005"; font: 900 15px/1 "Font Awesome 6 Free"; color: #dadce0; }
.tqr-rate__fill .is-star::before { color: var(--r-g); }
.tqr-ic.is-square { width: 17px; height: 17px; border-radius: 2px; background: #dcdce6; }
.tqr-ic.is-square::before { content: "\f005"; font: 900 9px/1 "Font Awesome 6 Free"; color: #fff; }
.tqr-rate__fill .is-square { background: var(--r-tp); }

/* Tarjetas de reseña */
.tqr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tqr-card {
    position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 22px 18px;
    border: 1px solid var(--r-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(11, 31, 51, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tqr-card::after { content: "\201C"; position: absolute; right: 18px; bottom: 30px; font: 700 120px/1 Georgia, serif; color: rgba(46, 71, 171, .05); pointer-events: none; }
.tqr-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(11, 31, 51, .1); border-color: rgba(46, 71, 171, .2); }
.tqr-card__top { display: flex; align-items: center; gap: 12px; }
.tqr-card__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--av); color: #fff; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--r-line); }
.tqr-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tqr-card__name { overflow: hidden; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--r-navy); white-space: nowrap; text-overflow: ellipsis; }
.tqr-card__meta { font-size: 12.5px; color: var(--r-muted); }
.tqr-card__src { flex: none; width: 26px; height: 26px; }
.tqr-card__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tqr-card__tour { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--r-soft); color: var(--r-blue); font-size: 11.5px; font-weight: 700; }
.tqr .tqr-card__title { position: static; margin: 0; padding: 0; border: 0; font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--r-navy); text-transform: none; }
.tqr .tqr-card__title::before, .tqr .tqr-card__title::after { content: none; }
.tqr blockquote.tqr-card__text { position: relative; z-index: 1; margin: 0; padding: 0; border: 0; background: none; font-style: normal; font-weight: 400; }
.tqr-card__text p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 0 !important; font-size: 14.5px; line-height: 1.65; color: var(--r-ink); text-align: left; }
.tqr-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--r-line); }
.tqr-card__on { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--r-muted); }
.tqr-card__on i { color: var(--r-ta); }
.tqr-card.is-google .tqr-card__on i { color: #4285f4; }
.tqr a.tqr-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--r-blue); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.tqr a.tqr-card__more i { font-size: 11px; transition: transform .2s ease; }
.tqr a.tqr-card__more:hover { text-decoration: underline; }
.tqr a.tqr-card__more:hover i { transform: translateX(3px); }
/* Modo sin enlaces (landings): tarjeta de plataforma estática y «Leer más» que despliega el texto */
.tqr a.tqr-plat.is-static { cursor: default; }
.tqr a.tqr-plat.is-static:hover { transform: none; box-shadow: 0 6px 20px rgba(11, 31, 51, .05); border-color: var(--r-line); }
.tqr button.tqr-card__more { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--r-blue); font: 700 12.5px/1.4 'Montserrat', sans-serif; cursor: pointer; }
.tqr button.tqr-card__more:hover { text-decoration: underline; }
.tqr button.tqr-card__more i { font-size: 10px; transition: transform .2s ease; }
.tqr button.tqr-card__more[aria-expanded="true"] i { transform: rotate(180deg); }
.tqr-card.is-open .tqr-card__text p { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* Responsive */
@media (max-width: 1199.98px) {
    .tqr__layout { grid-template-columns: 1fr; }
    .tqr__side { position: static; }
    .tqr__plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tqr__write { align-self: center; }
}
@media (max-width: 991.98px) {
    .tqr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .tqr { padding: 56px 0 60px; }
    .tqr__intro { margin-bottom: 28px; }
    .tqr__sub { font-size: 15px; }
    /* Plataformas y reseñas: carrusel horizontal con scroll-snap (sin JS) */
    .tqr__plats, .tqr__grid {
        display: flex; flex-direction: row; gap: 12px; margin: 0 -20px !important; padding: 4px 20px 16px !important;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
    }
    .tqr__plats::-webkit-scrollbar, .tqr__grid::-webkit-scrollbar { display: none; }
    .tqr__plats > li { flex: 0 0 78%; min-width: 0; scroll-snap-align: start; }
    .tqr__plats > li > a { height: 100%; }
    .tqr__grid > li { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
    .tqr-card { padding: 18px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tqr a.tqr-plat, .tqr-card, .tqr a.tqr-card__more i { transition: none; }
    .tqr a.tqr-plat:hover, .tqr-card:hover { transform: none; }
}
