.grs {
    --grs-oro: var(--canun-brand, #f08078);
    --grs-oro-fuerte: var(--trm-oro-fuerte, #175c60);
    --grs-tinta: var(--color1, #0f4246);
    --grs-texto: var(--neutro4, #666);
    --grs-papel: var(--papel-calido, #f7f5ef);
    --grs-tarjeta: #fff;
    --grs-borde: #ece6dc;

    font-family: var(--tipo1, "Nunito Sans"), system-ui, sans-serif;
    padding: 68px 20px 72px;
    position: relative;

   
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 56px 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
}

.grs-fondo-papel  {   background-color: var(--papel-calido); }
.grs-fondo-blanco { background: #fff; }

.grs-fondo-oscuro {
    --grs-tarjeta: #0f4246;
    --grs-borde: rgba(240, 128, 120, .22);
    --grs-tinta: #fff;
    --grs-texto: rgba(255, 255, 255, .74);
    background: var(--color1, #0f4246);
}

/* ── Intro ───────────────────────────────────────────── */

.grs-intro {
    max-width: 640px;
    margin: 0 auto 34px;
    text-align: center;
}

.grs-titulo {
    margin: 0;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
    line-height: 1.18;
    font-weight: 700;
    color: var(--grs-tinta);
    letter-spacing: -.01em;
}

.grs-titulo::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: var(--grs-oro);
}

.grs-subtitulo {
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--grs-texto);
}

/* ── Nota media ──────────────────────────────────────── */

.grs-nota {
    max-width: 1180px;
    margin: 0 auto 36px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px 38px;
    flex-wrap: wrap;
    background: var(--grs-tarjeta);
    border: 1px solid var(--grs-borde);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(15, 66, 70, .05);
}

.grs-nota-cifra {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.grs-nota-num {
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--grs-tinta);
    letter-spacing: -.02em;
}

.grs-nota-total {
    font-size: .95rem;
    color: var(--grs-texto);
}

.grs-nota-marca {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: var(--grs-texto);
    padding-left: 38px;
    border-left: 1px solid var(--grs-borde);
}

.grs-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--grs-oro-fuerte);
    color: #fff !important;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.grs-cta:hover,
.grs-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 92, 96, .34);
}

/* ── Estrellas ───────────────────────────────────────── */

.grs-estrellas {
    position: relative;
    display: inline-block;
    line-height: 0;
    flex: none;
}

.grs-estrellas-fondo,
.grs-estrellas-relleno {
    display: flex;
    gap: 3px;
}

.grs-estrellas svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.grs-estrellas-fondo svg     { fill: rgba(15, 66, 70, .14); }
.grs-fondo-oscuro .grs-estrellas-fondo svg { fill: rgba(255, 255, 255, .18); }

.grs-estrellas-relleno {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.grs-estrellas-relleno svg { fill: #f5a623; }

.grs-logo-g {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

/* ── Carril ──────────────────────────────────────────── */

.grs-carril {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.grs-pista-caja {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.grs-pista {
    list-style: none;
    margin: 0;
    padding: 6px 2px 18px;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.grs-pista::-webkit-scrollbar { display: none; }

.grs-flecha {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--grs-borde);
    border-radius: 50%;
    background: var(--grs-tarjeta);
    color: var(--grs-tinta);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 3px;
    transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.grs-flecha:hover:not(:disabled) {
    background: var(--grs-oro-fuerte);
    border-color: var(--grs-oro-fuerte);
    color: #fff;
}

.grs-flecha:disabled {
    opacity: .3;
    cursor: default;
}

/* ── Tarjeta ─────────────────────────────────────────── */

.grs-tarjeta {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 24px 24px 22px;
    background: var(--grs-tarjeta);
    border: 1px solid var(--grs-borde);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(15, 66, 70, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.grs-tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 66, 70, .1);
}

.grs-t-cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grs-avatar,
.grs-avatar-inicial {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.grs-avatar { object-fit: cover; }

.grs-avatar-inicial {
    display: grid;
    place-items: center;
    background: var(--grs-oro);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
}

.grs-avatar + .grs-avatar-inicial { display: none; }
.grs-avatar.grs-avatar-roto { display: none; }
.grs-avatar.grs-avatar-roto + .grs-avatar-inicial { display: grid; }

.grs-t-quien {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    margin-right: auto;
}

.grs-t-autor {
    font-size: .97rem;
    font-weight: 700;
    color: var(--grs-tinta);
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.grs-t-autor:hover { color: var(--grs-oro-fuerte); }

.grs-t-fecha {
    font-size: .82rem;
    color: var(--grs-texto);
}

.grs-texto {
    font-size: .95rem;
    line-height: 1.68;
    color: var(--grs-texto);
    /* Hay reseñas escritas en varios párrafos, y Google las devuelve con sus
       saltos dentro. Sin esto se quedan todas en un churro seguido. */
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.grs-tarjeta.grs-abierta .grs-texto {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.grs-mas {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--grs-oro-fuerte);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.grs-t-enlace {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--grs-borde);
    font-size: .84rem;
    color: var(--grs-texto) !important;
    text-decoration: none !important;
}

.grs-t-enlace:hover { color: var(--grs-oro-fuerte) !important; }

/* ── Pie ─────────────────────────────────────────────── */

.grs-pie {
    margin: 26px 0 0;
    text-align: center;
    font-size: .92rem;
}

.grs-pie a {
    color: var(--grs-oro-fuerte) !important;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.grs-fondo-oscuro .grs-pie a { color: var(--grs-oro) !important; }

.grs-aviso-admin {
    margin: 18px auto;
    max-width: 780px;
    padding: 12px 16px;
    border-left: 4px solid #d63638;
    background: #fcf0f1;
    color: #1a1a1a;
    font-size: 14px;
}

/* ── Adaptable ───────────────────────────────────────── */

@media (max-width: 1024px) {
    .grs-tarjeta { flex-basis: calc((100% - 22px) / 2); }
    .grs-nota-marca { padding-left: 0; border-left: 0; }
    .grs-cta { margin-left: 0; }
}

@media (max-width: 768px) {
    .grs { padding: 46px 16px 50px; }
    .grs-flecha { display: none; }
    .grs-carril { gap: 0; }
    .grs-pista-caja { overflow: visible; }
    .grs-pista {
        padding-inline: 4px;
        gap: 16px;
        scroll-padding-left: 4px;
    }
    .grs-tarjeta { flex-basis: min(84%, 330px); }
    .grs-nota {
        justify-content: flex-start;
        padding: 20px;
        gap: 16px;
    }
    .grs-nota-num { font-size: 2.4rem; }
    .grs-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .grs-pista { scroll-behavior: auto; }
    .grs-tarjeta,
    .grs-cta,
    .grs-flecha { transition: none; }
    .grs-tarjeta:hover,
    .grs-cta:hover { transform: none; }
}
