/* =========================================================
   RESARSA REVIEWS & COMUNIDAD
   Prefijo: rrv-
========================================================= */

.rrv-community,
.rrv-community * {
    box-sizing: border-box;
}

.rrv-community {
    --rrv-blue: #246bd7;
    --rrv-navy: #0b477d;
    --rrv-text: #173f66;
    --rrv-muted: #6f7f8e;
    --rrv-border: #e4eaf0;
    --rrv-soft: #f5f8fb;
    --rrv-star: #f4a621;
    --rrv-green: #1b9a4a;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 88px 0 96px;
    background: #fff;

    font-family:
        "Manrope",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.rrv-community-inner {
    width: min(calc(100% - 112px), 1504px);
    margin: 0 auto;
}

.rrv-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 34px;
}

.rrv-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--rrv-blue);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rrv-section-head h2 {
    margin: 0;
    color: var(--rrv-navy);
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -1.5px;
}

.rrv-section-head p {
    max-width: 590px;
    margin: 12px 0 0;
    color: var(--rrv-muted);
    font-size: 13px;
    line-height: 1.7;
}

.rrv-summary {
    min-width: 230px;
    padding: 18px 20px;
    border: 1px solid var(--rrv-border);
    border-radius: 18px;
    background: var(--rrv-soft);

    display: flex;
    align-items: center;
    gap: 16px;
}

.rrv-summary > strong {
    color: var(--rrv-navy);
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
}

.rrv-summary > div > span {
    display: block;
    margin-top: 4px;
    color: var(--rrv-muted);
    font-size: 10px;
}

/* PHOTO STRIP */

.rrv-photo-strip-wrap {
    margin-bottom: 34px;
    overflow: hidden;
}

.rrv-photo-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.rrv-photo-strip::-webkit-scrollbar {
    display: none;
}

.rrv-photo-strip-item {
    position: relative;
    flex: 0 0 118px;
    width: 118px;
    height: 118px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #eef3f7;
    cursor: pointer;
    scroll-snap-align: start;
}

.rrv-photo-strip-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.rrv-photo-strip-item:hover img {
    transform: scale(1.04);
}

/* FEED */

.rrv-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
    align-items: start;
}

.rrv-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--rrv-border);
    border-radius: 20px;
    background: #fff;

    box-shadow: 0 8px 30px rgba(13,56,91,.045);

    transition: transform .22s ease, box-shadow .22s ease;
}

.rrv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(13,56,91,.08);
}

.rrv-card.is-hidden-review {
    display: none;
}

.rrv-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef3f7;
}

.rrv-card-media.has-multiple .rrv-card-photo:not(.is-main) {
    display: none;
}

.rrv-card-photo {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.rrv-card-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rrv-photo-count {
    position: absolute;
    right: 13px;
    bottom: 13px;

    min-width: 38px;
    height: 30px;
    padding: 0 10px;

    border-radius: 999px;
    background: rgba(7,40,72,.78);
    color: #fff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;

    backdrop-filter: blur(6px);
}

.rrv-card-body {
    padding: 18px 18px 21px;
}

.rrv-card-top {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
}

.rrv-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: linear-gradient(145deg, #eef5fb, #dfeaf4);
    color: var(--rrv-navy);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}

.rrv-card-author {
    min-width: 0;
}

.rrv-card-author > strong {
    display: block;
    color: var(--rrv-navy);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
}

.rrv-card-top time {
    align-self: start;
    padding-top: 3px;
    color: #96a1ab;
    font-size: 8px;
    white-space: nowrap;
}

.rrv-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.rrv-badge {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f0f3f6;
    color: #647484;

    font-size: 7px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .2px;
}

.rrv-badge--verified {
    background: #edf8f0;
    color: var(--rrv-green);
}

.rrv-badge--featured {
    background: #eef4fd;
    color: var(--rrv-blue);
}

.rrv-stars {
    margin-top: 14px;
    color: var(--rrv-star);
    font-size: 13px;
    line-height: 1;
    letter-spacing: .6px;
}

.rrv-stars--large {
    margin: 0;
    font-size: 15px;
}

.rrv-card-text {
    margin-top: 13px;
    color: #53687a;
    font-size: 12px;
    line-height: 1.75;
}

.rrv-card-text p {
    margin: 0 0 8px;
}

.rrv-card-text p:last-child {
    margin-bottom: 0;
}

.rrv-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.rrv-more-button {
    min-height: 48px;
    padding: 0 25px;

    border: 1px solid var(--rrv-navy);
    border-radius: 999px;
    background: transparent;
    color: var(--rrv-navy);

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}

.rrv-more-button:hover {
    background: var(--rrv-navy);
    color: #fff;
}

/* EMPTY */

.rrv-empty-community {
    min-height: 330px;
    padding: 50px 24px;
    border: 1px dashed #cfdbe6;
    border-radius: 22px;
    background: var(--rrv-soft);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.rrv-empty-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 17px;

    border-radius: 50%;
    background: #fff;
    color: var(--rrv-blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}

.rrv-empty-community h3 {
    margin: 0;
    color: var(--rrv-navy);
    font-size: 21px;
}

.rrv-empty-community p {
    margin: 10px 0 0;
    color: var(--rrv-muted);
    font-size: 12px;
}

.rrv-empty-community a {
    margin-top: 20px;
    color: var(--rrv-navy) !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 800;
}

/* LIGHTBOX */

.rrv-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;

    padding: 34px 70px;

    background: rgba(4,20,34,.93);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .2s ease, visibility .2s ease;
}

.rrv-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rrv-lightbox img {
    max-width: min(900px, 88vw);
    max-height: 88vh;
    display: block;
    object-fit: contain;
    border-radius: 14px;
}

.rrv-lightbox-close,
.rrv-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(7px);
}

.rrv-lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
}

.rrv-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 58px;
    border-radius: 12px;
    transform: translateY(-50%);
    font-size: 34px;
}

.rrv-lightbox-prev {
    left: 20px;
}

.rrv-lightbox-next {
    right: 20px;
}

/* =========================================================
   MY ACCOUNT
========================================================= */

.rrv-account {
    --rrv-blue: #246bd7;
    --rrv-navy: #0b477d;
    --rrv-muted: #6f7f8e;
    --rrv-border: #e4eaf0;
    --rrv-soft: #f6f9fb;
    --rrv-star: #f4a621;

    color: #173f66;
}

.rrv-account-head {
    margin-bottom: 30px;
}

.rrv-account-head > span {
    color: var(--rrv-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rrv-account-head h2 {
    margin: 7px 0 8px;
    color: var(--rrv-navy);
    font-size: 31px;
    line-height: 1.15;
}

.rrv-account-head p {
    margin: 0;
    color: var(--rrv-muted);
    font-size: 13px;
}

.rrv-account-section {
    margin-top: 36px;
}

.rrv-account-section > h3 {
    margin-bottom: 18px;
    color: var(--rrv-navy);
    font-size: 20px;
}

.rrv-pending-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
}

.rrv-pending-product {
    padding: 14px;
    border: 1px solid var(--rrv-border);
    border-radius: 15px;
    background: #fff;

    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 15px;
    align-items: center;
}

.rrv-pending-image {
    width: 104px;
    height: 104px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--rrv-soft);
}

.rrv-pending-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rrv-pending-order {
    color: #8b98a4;
    font-size: 9px;
    font-weight: 700;
}

.rrv-pending-product h4 {
    margin: 5px 0 10px;
    color: var(--rrv-navy);
    font-size: 14px;
}

.rrv-pending-button {
    color: var(--rrv-blue) !important;
    text-decoration: none !important;
    font-size: 9px;
    font-weight: 800;
}

.rrv-empty-box {
    padding: 25px;
    border: 1px dashed #cad6e1;
    border-radius: 14px;
    background: var(--rrv-soft);
}

.rrv-empty-box strong,
.rrv-empty-box span {
    display: block;
}

.rrv-empty-box strong {
    color: var(--rrv-navy);
}

.rrv-empty-box span {
    margin-top: 5px;
    color: var(--rrv-muted);
    font-size: 12px;
}

/* FORM */

.rrv-form-shell {
    overflow: hidden;
    border: 1px solid var(--rrv-border);
    border-radius: 20px;
    background: #fff;
}

.rrv-form-product {
    padding: 18px;
    background: var(--rrv-soft);

    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
}

.rrv-form-product-image {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.rrv-form-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rrv-form-product span {
    color: #83919d;
    font-size: 9px;
    font-weight: 700;
}

.rrv-form-product h3 {
    margin: 5px 0;
    color: var(--rrv-navy);
    font-size: 21px;
}

.rrv-form-product p {
    margin: 0;
    color: var(--rrv-muted);
    font-size: 11px;
}

.rrv-review-form {
    padding: 26px;
}

.rrv-form-field {
    margin-bottom: 25px;
}

.rrv-form-field > label {
    display: block;
    margin-bottom: 9px;
    color: var(--rrv-navy);
    font-size: 12px;
    font-weight: 750;
}

.rrv-review-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d9e2e9;
    border-radius: 12px;
    outline: none;
    box-shadow: none;
    resize: vertical;
    color: #334e65;
    font-size: 13px;
    line-height: 1.6;
}

.rrv-review-form textarea:focus {
    border-color: var(--rrv-blue);
}

/* STAR PICKER */

.rrv-rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rrv-rating-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rrv-rating-picker label {
    color: #d8dee5;
    cursor: pointer;
    font-size: 31px;
    line-height: 1;
    transition: color .12s ease, transform .12s ease;
}

.rrv-rating-picker label:hover,
.rrv-rating-picker label:hover ~ label,
.rrv-rating-picker input:checked ~ label {
    color: var(--rrv-star);
}

.rrv-rating-picker label:hover {
    transform: scale(1.08);
}

/* UPLOAD */

.rrv-upload-box {
    position: relative;
    min-height: 125px;
    padding: 22px;

    border: 1.5px dashed #cbd7e2;
    border-radius: 15px;
    background: var(--rrv-soft);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.rrv-upload-box input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rrv-upload-box strong {
    color: var(--rrv-navy);
    font-size: 13px;
}

.rrv-upload-box span {
    margin-top: 5px;
    color: var(--rrv-muted);
    font-size: 10px;
}

.rrv-upload-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.rrv-upload-preview img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
}

.rrv-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: start;
    margin: 4px 0 22px;
    color: #617486;
    font-size: 10px;
    line-height: 1.5;
}

.rrv-submit {
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--rrv-blue);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.rrv-submit:hover {
    background: var(--rrv-navy);
}

.rrv-form-note {
    margin: 10px 0 0;
    color: #8794a0;
    font-size: 9px;
}

/* MY REVIEWS */

.rrv-my-reviews {
    display: grid;
    gap: 10px;
}

.rrv-my-review {
    padding: 16px;
    border: 1px solid var(--rrv-border);
    border-radius: 13px;
    background: #fff;
}

.rrv-my-review-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.rrv-my-review-top strong {
    color: var(--rrv-navy);
}

.rrv-account-status {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
}

.rrv-account-status.is-approved {
    background: #edf8f0;
    color: #16803b;
}

.rrv-account-status.is-pending {
    background: #fff5dc;
    color: #94650d;
}

.rrv-my-review p {
    margin: 8px 0 0;
    color: var(--rrv-muted);
    font-size: 11px;
}

/* ORDER CTA */

.rrv-order-cta {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid #e4eaf0;
    border-radius: 18px;
    background: #f6f9fb;
}

.rrv-order-cta > div:first-child > span {
    color: #246bd7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.rrv-order-cta h3 {
    margin: 5px 0 16px;
    color: #0b477d;
    font-size: 20px;
}

.rrv-order-cta-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.rrv-order-cta-products a {
    padding: 10px;
    border: 1px solid #e1e8ee;
    border-radius: 12px;
    background: #fff;
    color: #173f66 !important;
    text-decoration: none !important;
}

.rrv-order-cta-products img {
    width: 70px;
    height: 70px;
    display: block;
    object-fit: contain;
}

.rrv-order-cta-products span,
.rrv-order-cta-products strong {
    display: block;
}

.rrv-order-cta-products span {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.4;
}

.rrv-order-cta-products strong {
    margin-top: 8px;
    color: #246bd7;
    font-size: 8px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .rrv-community {
        padding: 72px 0;
    }

    .rrv-community-inner {
        width: calc(100% - 60px);
    }

    .rrv-feed {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .rrv-community {
        padding: 58px 0 65px;
    }

    .rrv-community-inner {
        width: 100%;
    }

    .rrv-section-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        margin-bottom: 25px;
    }

    .rrv-section-head h2 {
        font-size: 31px;
    }

    .rrv-summary {
        width: 100%;
        min-width: 0;
    }

    .rrv-photo-strip-wrap {
        margin-bottom: 25px;
    }

    .rrv-photo-strip {
        padding: 2px 20px 10px;
    }

    .rrv-photo-strip-item {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }

    .rrv-feed {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 0 20px 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .rrv-feed::-webkit-scrollbar {
        display: none;
    }

    .rrv-card {
        flex: 0 0 80vw;
        max-width: 330px;
        scroll-snap-align: start;
    }

    .rrv-card.is-hidden-review {
        display: none;
    }

    .rrv-more-wrap {
        padding: 0 20px;
    }

    .rrv-more-button {
        width: 100%;
    }

    .rrv-empty-community {
        margin: 0 20px;
    }

    .rrv-lightbox {
        padding: 60px 18px;
    }

    .rrv-lightbox-nav {
        width: 40px;
        height: 48px;
        font-size: 28px;
    }

    .rrv-lightbox-prev {
        left: 8px;
    }

    .rrv-lightbox-next {
        right: 8px;
    }

    .rrv-pending-grid {
        grid-template-columns: 1fr;
    }

    .rrv-form-product {
        grid-template-columns: 90px 1fr;
    }

    .rrv-form-product-image {
        width: 90px;
        height: 90px;
    }

    .rrv-review-form {
        padding: 20px;
    }

    .rrv-order-cta-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .rrv-card {
        flex-basis: 84vw;
    }

    .rrv-pending-product {
        grid-template-columns: 82px 1fr;
    }

    .rrv-pending-image {
        width: 82px;
        height: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rrv-community *,
    .rrv-community *::before,
    .rrv-community *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   v1.0.1 · INTEGRACIÓN PDP RESARSA
   El child theme RESARSA usa una plantilla Woo personalizada.
   Cuando JS coloca las reseñas antes de productos relacionados,
   mantenemos el bloque dentro del ancho premium del PDP.
========================================================= */

.rmp-product .rrv-community {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding: 76px 0 82px;
    border-top: 1px solid #e4eaf0;
}

.rmp-product .rrv-community-inner {
    width: 100%;
    max-width: none;
}

@media (max-width: 1050px) {
    .rmp-product .rrv-community {
        padding: 66px 0 72px;
    }

    .rmp-product .rrv-community-inner {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .rmp-product .rrv-community {
        padding: 54px 0 62px;
    }
}
