/* ===== ESTILOS DEL FRONTEND PARA VALORACIONES PERSONALIZADAS PRO ===== */

/* ===== RESUMEN DE RESEÑAS ===== */

/* Contenedor del resumen */
.vp-reviews-summary {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Título del resumen */
.vp-reviews-summary-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Contenido del resumen centrado verticalmente */
.vp-reviews-summary-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor centrado */
.vp-summary-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.vp-overall-rating {
    font-size: 64px;
    font-weight: 900;
    color: #212529;
    line-height: 1;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vp-overall-stars {
    margin-bottom: 0;
    display: flex;
    gap: 4px;
}

.vp-overall-stars .vp-star {
    font-size: 32px;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    transition: transform 0.2s ease;
}

.vp-overall-stars .vp-star:hover {
    transform: scale(1.1);
}

.vp-total-reviews {
    font-size: 16px;
    color: #6c757d;
    font-weight: 600;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 0;
}

/* Columna 2: Botón de acción */
.vp-summary-action {
    text-align: center;
}

.vp-add-review-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 20px 32px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 200px;
}

.vp-add-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea085);
}

.vp-add-review-btn:active {
    transform: translateY(0);
}

/* Responsive para el resumen */
@media (max-width: 1023px) {
    .vp-reviews-summary {
        padding: 20px;
    }
    
    .vp-reviews-summary-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .vp-summary-center {
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .vp-reviews-summary {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .vp-reviews-summary-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .vp-overall-rating {
        font-size: 48px;
    }
    
    .vp-overall-stars .vp-star {
        font-size: 24px;
    }
    
    .vp-add-review-btn {
        padding: 16px 24px;
        font-size: 16px;
        min-width: 180px;
    }
    
    .vp-total-reviews {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .vp-summary-center {
        gap: 12px;
    }
}

/* ===== MODAL DE AÑADIR VALORACIÓN ===== */

/* Modal principal */
.vp-add-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vp-add-review-modal.vp-show {
    opacity: 1;
    visibility: visible;
}

/* Formulario inline de añadir reseña */
.vp-add-review-form-container {
    margin: 30px 0;
    padding: 0;
    background: transparent;
}

.vp-add-review-form-wrapper {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.vp-add-review-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #28a745, #20c997);
}

.vp-form-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
}

.vp-form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 2px;
}

/* Contenido del modal */
.vp-add-review-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.vp-add-review-modal.vp-show .vp-add-review-content {
    transform: scale(1);
}

/* Header del modal */
.vp-add-review-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-add-review-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.vp-add-review-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.vp-add-review-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Formulario */
.vp-add-review-form {
    padding: 24px;
}

.vp-form-group {
    margin-bottom: 24px;
}

.vp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.vp-form-group input,
.vp-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.vp-form-group input:focus,
.vp-form-group textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.vp-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Rating input con contador */
.vp-rating-input {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-direction: row-reverse;
    position: relative;
}

.vp-rating-input input[type="radio"] {
    display: none;
}

.vp-rating-input label {
    font-size: 24px;
    color: #e9ecef;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0;
    padding: 4px;
    user-select: none;
}

.vp-rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.vp-rating-input label:hover,
.vp-rating-input label:hover ~ label {
    color: #ffc107;
}

/* Efecto hover para mostrar estrellas anteriores */
.vp-rating-input:hover label {
    color: #ffc107;
}

/* Estrellas seleccionadas */
.vp-rating-input label.vp-star-selected {
    color: #ffc107 !important;
}

/* Estrellas en hover */
.vp-rating-input label.vp-star-hover {
    color: #ffc107 !important;
}

/* Contador de rating */
.vp-rating-counter {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-left: 12px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Sección de media */
.vp-media-section {
    margin-top: 24px;
}

.vp-media-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vp-media-upload:hover {
    border-color: #28a745;
    background: #f0f8f0;
}

.vp-media-icons {
    display: flex;
    gap: 8px;
}

.vp-media-icon {
    font-size: 20px;
    padding: 8px;
    background: #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vp-media-icon:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.vp-media-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Preview de media */
.vp-media-preview {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.vp-media-preview-item {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.vp-media-preview-content {
    position: relative;
}

.vp-media-preview-img,
.vp-media-preview-video {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.vp-media-preview-video {
    background: #000;
    border: 1px solid #333;
}

/* Mejorar soporte para archivos .MOV y otros formatos de video */
.vp-media-preview-video[src*=".mov"],
.vp-media-preview-video[src*=".MOV"],
.vp-media-preview-video[src*=".avi"],
.vp-media-preview-video[src*=".AVI"] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #e9ecef;
}

.vp-media-preview-info {
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
}

.vp-media-preview-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.vp-media-preview-size {
    display: block;
    opacity: 0.8;
    font-size: 10px;
}

.vp-media-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vp-media-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Información de media */
.vp-media-info {
    margin-top: 12px;
    text-align: center;
}

.vp-media-info small {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

/* Botones de acción */
.vp-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.vp-btn-cancel,
.vp-btn-submit {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.vp-btn-cancel {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.vp-btn-cancel:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
}

.vp-btn-submit {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.vp-btn-submit:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.vp-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vp-btn-submit.vp-success {
    background: #28a745;
    border-color: #28a745;
}

/* Responsive del modal */
@media (max-width: 767px) {
    .vp-add-review-content {
        width: 95%;
        margin: 20px;
    }
    
    .vp-add-review-header {
        padding: 16px 20px;
    }
    
    .vp-add-review-header h3 {
        font-size: 18px;
    }
    
    .vp-add-review-form {
        padding: 20px;
    }
    
    .vp-form-actions {
        flex-direction: column;
    }
}

/* ===== MENSAJES DE ERROR Y ÉXITO ===== */

.vp-error-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.vp-error-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vp-error-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vp-error-icon {
    font-size: 16px;
}

.vp-error-text {
    flex: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ELIMINAR COMPLETAMENTE ESPACIOS VACÍOS - SOLUCIÓN DIRECTA */
.vp-review-card.no-media .vp-review-media {
    display: none !important;
}

/* TARJETAS SIN MEDIA - SIN ESPACIO */
.vp-review-card.no-media {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    align-self: start !important;
    flex-shrink: 1 !important;
}

.vp-review-card.no-media .vp-review-content {
    padding: 12px !important;
    gap: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Información del producto más compacta para tarjetas sin media */
.vp-review-card.no-media .vp-product-info {
    padding: 2px !important;
    margin-top: 2px !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
}

/* ESPACIADO COMPACTO */
.vp-review-content {
    padding: 8px;
    gap: 0;
}

.vp-review-author,
.vp-verified-badge,
.vp-review-date,
.vp-review-rating,
.vp-review-text {
    margin-bottom: 2px;
    line-height: 1.2;
}

/* Tamaños de fuente más compactos para tarjetas sin media */
.vp-review-card.no-media .vp-review-author {
    font-size: 15px !important;
}

.vp-review-card.no-media .vp-verified-badge {
    font-size: 12px !important;
}

.vp-review-card.no-media .vp-review-date {
    font-size: 12px !important;
}

.vp-review-card.no-media .vp-review-rating .vp-star {
    font-size: 18px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.vp-review-card.no-media .vp-review-rating .vp-rating-text {
    font-size: 10px !important;
}

.vp-review-card.no-media .vp-review-text {
    font-size: 14px !important;
}

.vp-review-card.no-media .vp-product-title {
    font-size: 12px !important;
}

/* Elementos más compactos para tarjetas sin media */
.vp-review-card.no-media .vp-review-author,
.vp-review-card.no-media .vp-verified-badge,
.vp-review-card.no-media .vp-review-date,
.vp-review-card.no-media .vp-review-rating,
.vp-review-card.no-media .vp-review-text,
.vp-review-card.no-media .vp-review-spacer {
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Espaciador específico para tarjetas sin media */
.vp-review-card.no-media .vp-review-spacer {
    height: 8px !important;
}

/* Rating para tarjetas sin media - posición normal */
.vp-review-card.no-media .vp-review-rating {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
}

/* ===== ESTILOS BÁSICOS DE LAS TARJETAS ===== */

/* Contenedor principal */
.vp-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid de reseñas - Base responsive */
.vp-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    grid-auto-rows: min-content;
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */

/* Desktop (1024px y superior) - 3 columnas */
@media (min-width: 1024px) {
    .vp-reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .vp-reviews-container {
        padding: 20px;
    }
}

/* Tablet (768px - 1023px) - 2 columnas */
@media (max-width: 1023px) and (min-width: 768px) {
    .vp-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .vp-reviews-container {
        padding: 16px;
    }
    
    .vp-review-media {
        height: 350px;
        flex: none;
    }
    
    .vp-review-content {
        padding: 8px;
        gap: 0;
    }
}

/* Mobile (hasta 767px) - 1 columna */
@media (max-width: 767px) {
    .vp-reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .vp-reviews-container {
        padding: 12px;
    }
    
    .vp-review-card {
        border-radius: 8px;
    }
    
    .vp-review-media {
        height: 300px;
    }
    
    .vp-review-content {
        padding: 8px;
        gap: 0;
    }
}

/* Tarjetas individuales */
.vp-review-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vp-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== ESTILOS DE MEDIA ===== */

/* Contenedor de media */
.vp-review-media {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    flex: none;
    margin-bottom: 0;
}

/* Nota: Evitamos ocultar el contenedor de media con selectores avanzados para no afectar compatibilidad */

/* Imágenes individuales */
.vp-review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
    border-radius: 0;
}

/* MÚLTIPLES IMÁGENES - YA NO NECESARIO (solo mostramos una imagen por reseña) */
/* 
.vp-review-media.vp-multiple-images {
    height: auto !important;
    max-height: none !important;
}

.vp-review-media.vp-multiple-images .vp-review-image.vp-multiple-image {
    display: block !important;
    width: 100% !important;
    object-fit: cover !important;
}

.vp-review-media.vp-multiple-images .vp-review-image.vp-multiple-image {
    height: 400px !important;
    margin-bottom: 8px !important;
    aspect-ratio: 4/5 !important;
}

.vp-review-media.vp-multiple-images .vp-review-image.vp-multiple-image:last-child {
    margin-bottom: 0 !important;
}

.vp-review-media:has(.vp-review-image:nth-child(2)) {
    height: auto !important;
    max-height: none !important;
}

.vp-review-media:has(.vp-review-image:nth-child(2)) .vp-review-image {
    height: 400px !important;
    margin-bottom: 8px !important;
    display: block !important;
    aspect-ratio: 4/5 !important;
}

.vp-review-media:has(.vp-review-image:nth-child(2)) .vp-review-image:last-child {
    margin-bottom: 0 !important;
}
*/

/* Videos */
.vp-review-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
}

/* Audio */
.vp-review-audio {
    width: 100%;
    height: 60px;
}

/* PDF */
.vp-review-pdf {
    width: 100%;
    height: 100%;
    position: relative;
}

.vp-review-pdf iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vp-pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-pdf-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: #007cba;
    border-radius: 6px;
    font-weight: bold;
}

/* Archivos genéricos */
.vp-review-file {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    height: 100%;
}

.vp-file-icon {
    font-size: 32px;
    margin-right: 16px;
}

.vp-file-info {
    flex: 1;
}

.vp-file-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.vp-file-type {
    color: #6c757d;
    font-size: 12px;
}

.vp-file-download {
    font-size: 24px;
    text-decoration: none;
    color: #007cba;
}

/* ===== ESTILOS DEL CONTENIDO ===== */

/* Contenido de la reseña */
.vp-review-content {
    padding: 12px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    margin-top: 0;
}

/* Autor */
.vp-review-author {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    text-align: left;
}

/* Badge verificado */
.vp-verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
}

.vp-check-icon {
    width: 14px;
    height: 14px;
}

/* Fecha */
.vp-review-date {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
}

/* Espaciador en blanco */
.vp-review-spacer {
    height: 8px;
    margin: 0;
    padding: 0;
}

/* Rating - Posicionado arriba a la derecha de la imagen */
.vp-review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    margin-top: 0;
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 10;
}

.vp-stars {
    display: flex;
    gap: 0;
}

.vp-star {
    font-size: 20px;
    color: #ddd;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vp-star-filled {
    color: #ffc107;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vp-rating-text {
    font-size: 10px;
    color: #6c757d;
    margin-left: 4px;
}

/* Texto de la reseña */
.vp-review-text {
    color: #333;
    line-height: 1.3;
    margin-top: 0;
    font-size: 13px;
    margin-bottom: 2px;
    text-align: left;
}



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

/* Desktop (1024px y superior) - 3 columnas */
@media (min-width: 1024px) {
    .vp-reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .vp-reviews-container {
        padding: 20px;
    }
    
    .vp-review-media {
        height: 400px;
        flex: none;
    }
    
    .vp-review-content {
        padding: 10px 10px 10px 10px;
        gap: 0;
        margin-top: 0;
    }
    
    /* Tarjetas SIN MEDIA - DESKTOP */
    .vp-review-card.no-media {
        height: auto;
        min-height: 200px;
    }
    
    .vp-review-card.no-media .vp-review-content {
        padding: 8px 8px 8px 8px;
        gap: 0;
        flex: 1;
        margin-top: 0;
    }
    
    .vp-review-card.no-media .vp-review-author {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .vp-review-card.no-media .vp-verified-badge {
        margin-bottom: 3px;
    }
    
    .vp-review-card.no-media .vp-review-date {
        margin-bottom: 3px;
    }
    
    .vp-review-card.no-media .vp-review-rating {
        margin-bottom: 4px;
    }
    
    .vp-review-card.no-media .vp-review-text {
        margin-bottom: 2px;
    }
    
    /* MÚLTIPLES IMÁGENES - YA NO NECESARIO */
    /*
    .vp-review-media.vp-multiple-images .vp-review-image.vp-multiple-image {
        height: 400px !important;
        margin-bottom: 8px !important;
    }
    
    .vp-review-media:has(.vp-review-image:nth-child(2)) .vp-review-image {
        height: 400px;
        margin-bottom: 8px;
    }
    */
}

/* Tablet (768px - 1023px) - 2 columnas */
@media (max-width: 1023px) and (min-width: 768px) {
    .vp-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .vp-reviews-container {
        padding: 16px;
    }
    
    .vp-review-media {
        height: 350px;
        flex: none;
    }
    
    .vp-review-content {
        padding: 14px 14px 14px 14px;
        gap: 6px;
        margin-top: 0;
    }
    
    /* Tarjetas SIN MEDIA - TABLET */
    .vp-review-card.no-media {
        height: auto;
        min-height: 180px;
    }
    
    .vp-review-card.no-media .vp-review-content {
        padding: 12px 12px 12px 12px;
        gap: 5px;
        flex: 1;
        margin-top: 0;
    }
    
    .vp-review-card.no-media .vp-review-author {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .vp-review-card.no-media .vp-verified-badge {
        margin-bottom: 3px;
    }
    
    .vp-review-card.no-media .vp-review-date {
        margin-bottom: 3px;
    }
    
    .vp-review-card.no-media .vp-review-rating {
        margin-bottom: 5px;
    }
    
    .vp-review-card.no-media .vp-review-text {
        margin-bottom: 1px;
    }
    
    /* MÚLTIPLES IMÁGENES - YA NO NECESARIO */
    /*
    .vp-review-media.vp-multiple-images .vp-review-image.vp-multiple-image {
        height: 350px !important;
        margin-bottom: 6px !important;
    }
    
    .vp-review-media:has(.vp-review-image:nth-child(2)) .vp-review-image {
        height: 350px;
        margin-bottom: 6px;
    }
    */
}

/* Mobile (hasta 767px) - 1 columna */
@media (max-width: 767px) {
    .vp-reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vp-reviews-container {
        padding: 20px;
    }
    
    .vp-review-card {
        border-radius: 12px;
    }
    
    .vp-review-media {
        height: 400px;
        flex: none;
    }
    
    .vp-review-content {
        padding: 16px 16px 16px 16px;
        gap: 8px;
        margin-top: 0;
    }
    
    /* Tarjetas SIN MEDIA - MOBILE */
    .vp-review-card.no-media {
        height: auto;
        min-height: 160px;
    }
    
    .vp-review-card.no-media .vp-review-content {
        padding: 14px 14px 14px 14px;
        gap: 6px;
        flex: 1;
        margin-top: 0;
    }
    
    .vp-review-card.no-media .vp-review-author {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .vp-review-card.no-media .vp-verified-badge {
        margin-bottom: 4px;
    }
    
    .vp-review-card.no-media .vp-review-date {
        margin-bottom: 4px;
    }
    
    .vp-review-card.no-media .vp-review-rating {
        margin-bottom: 6px;
    }
    
    .vp-review-card.no-media .vp-review-text {
        margin-bottom: 2px;
    }
    
    /* MÚLTIPLES IMÁGENES - YA NO NECESARIO */
    /*
    .vp-review-media.vp-multiple-images .vp-review-image.vp-multiple-image {
        height: 400px !important;
        margin-bottom: 8px !important;
    }
    
    .vp-review-media:has(.vp-review-image:nth-child(2)) .vp-review-image {
        height: 400px;
        margin-bottom: 8px;
    }
    */
}

/* Indicador de límite de reseñas */
.vp-reviews-limit-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    color: #1976d2;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.vp-reviews-limit-info p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.vp-reviews-limit-info code {
    background: rgba(33, 150, 243, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #1565c0;
}

/* Estados de carga y error */
.vp-reviews-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.vp-reviews-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.vp-reviews-empty {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vp-review-card {
    animation: fadeInUp 0.6s ease-out;
}

.vp-review-card:nth-child(1) { animation-delay: 0.1s; }
.vp-review-card:nth-child(2) { animation-delay: 0.2s; }
.vp-review-card:nth-child(3) { animation-delay: 0.3s; }
.vp-review-card:nth-child(4) { animation-delay: 0.4s; }
.vp-review-card:nth-child(5) { animation-delay: 0.5s; }
.vp-review-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects mejorados */
.vp-review-card:hover .vp-review-media img,
.vp-review-card:hover .vp-review-media video {
    transform: scale(1.05);
}

.vp-review-media img,
.vp-review-media video {
    transition: transform 0.3s ease;
}

/* Estilos para reseñas destacadas */
.vp-review-card.featured {
    border: 2px solid #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.vp-review-card.featured::before {
    content: "⭐ Destacada";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Estilos para reseñas con videos */
.vp-review-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.vp-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vp-video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Estilos para reseñas con calificaciones detalladas */
.vp-review-ratings-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.vp-rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
}

.vp-rating-label {
    color: #6c757d;
    font-weight: 500;
}

.vp-rating-value {
    color: #495057;
    font-weight: 600;
}

/* Estilos para reseñas con respuestas del vendedor */
.vp-seller-response {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.vp-seller-response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1976d2;
}

.vp-seller-response-text {
    font-size: 14px;
    color: #1565c0;
    line-height: 1.4;
    margin: 0;
}

/* Estilos para reseñas con likes/dislikes */
.vp-review-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.vp-action-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vp-action-button:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.vp-action-button.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.vp-action-button .vp-action-icon {
    font-size: 14px;
}

/* Estilos para reseñas con fecha relativa */
.vp-review-date-relative {
    font-size: 11px;
    color: #adb5bd;
    font-style: italic;
}

/* Estilos para reseñas con ubicación */
.vp-review-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
}

.vp-location-icon {
    font-size: 12px;
}

/* Estilos para reseñas con idioma */
.vp-review-language {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    z-index: 10;
}

/* Estilos para reseñas con moderación */
.vp-review-moderation {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    z-index: 10;
}

/* Estilos para reseñas con etiquetas personalizadas */
.vp-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.vp-review-tag {
    padding: 3px 8px;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

/* Estilos para reseñas con imágenes de perfil */
.vp-review-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.vp-review-author-info {
    display: flex;
    align-items: center;
}

/* Estilos para reseñas con nivel de usuario */
.vp-user-level {
    display: inline-block;
    padding: 2px 6px;
    background: #ffc107;
    color: white;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    margin-left: 8px;
}

.vp-user-level.vip {
    background: #e83e8c;
}

.vp-user-level.expert {
    background: #17a2b8;
}

.vp-user-level.beginner {
    background: #6c757d;
}

/* Estilos específicos para videos */
.vp-review-video {
    background-color: #000; /* Fondo negro para videos */
    object-fit: cover;
    pointer-events: none; /* Deshabilitar interacciones del usuario */
}

/* Ocultar completamente los controles de video en todos los navegadores */
.vp-review-video::-webkit-media-controls,
.vp-review-video::-webkit-media-controls-panel,
.vp-review-video::-webkit-media-controls-play-button,
.vp-review-video::-webkit-media-controls-volume-slider,
.vp-review-video::-webkit-media-controls-mute-button,
.vp-review-video::-webkit-media-controls-timeline,
.vp-review-video::-webkit-media-controls-current-time-display,
.vp-review-video::-webkit-media-controls-time-remaining-display,
.vp-review-video::-webkit-media-controls-fullscreen-button,
.vp-review-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Ocultar controles en Firefox */
.vp-review-video::-moz-media-controls {
    display: none !important;
}

/* Ocultar controles en Edge/IE */
.vp-review-video::-ms-media-controls {
    display: none !important;
}

/* Ocultar controles nativos del navegador */
.vp-review-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Asegurar que no haya controles visibles */
.vp-review-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Ocultar cualquier indicador de video que pueda aparecer */
.vp-review-video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

.vp-review-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Asegurar que el video se vea como una imagen en movimiento */
.vp-review-video {
    cursor: default !important;
}

/* Ocultar cualquier borde o outline que pueda aparecer */
.vp-review-video:focus {
    outline: none !important;
    border: none !important;
}

/* Asegurar que no haya scrollbars en el video */
.vp-review-video::-webkit-scrollbar {
    display: none !important;
}

.vp-review-video {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Fallback para videos que no se pueden reproducir */
.vp-video-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.vp-video-fallback p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

.vp-video-link {
    color: #ffc107;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #ffc107;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vp-video-link:hover {
    background: #ffc107;
    color: #000;
    text-decoration: none;
}

/* Mostrar fallback solo cuando el video falla */
.vp-review-video:not([src]) .vp-video-fallback,
.vp-review-video[data-error="true"] .vp-video-fallback {
    display: flex;
}

/* Mejorar compatibilidad de video */
.vp-review-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Indicador de carga para videos */
.vp-review-video:not([src])::before {
    content: "⏳";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 5;
}

/* Estilos para audio */
.vp-review-audio {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

/* Estilos para PDF */
.vp-review-pdf {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.vp-review-pdf iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vp-pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vp-review-pdf:hover .vp-pdf-overlay {
    opacity: 1;
}

.vp-pdf-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: #007bff;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vp-pdf-link:hover {
    background: #0056b3;
    transform: scale(1.05);
    color: white;
}

/* Estilos para archivos genéricos */
.vp-review-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    height: 100%;
    box-sizing: border-box;
}

.vp-file-icon {
    font-size: 32px;
    color: #6c757d;
    margin-right: 15px;
}

.vp-file-info {
    flex: 1;
    text-align: center;
}

.vp-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    word-break: break-word;
}

.vp-file-type {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.vp-file-download {
    font-size: 24px;
    color: #28a745;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vp-file-download:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

/* Los videos se reproducen automáticamente sin indicadores visuales */
.vp-review-media:has(.vp-review-video) {
    /* Sin indicadores adicionales - solo el video reproduciéndose */
}

/* ===== ESTILOS DEL SLIDER PARA MÚLTIPLES IMÁGENES ===== */

/* Contenedor principal del slider */
.vp-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Wrapper del slider */
.vp-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides individuales */
.vp-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-slider-slide.vp-active {
    opacity: 1;
    z-index: 1;
}

/* Imágenes dentro del slider */
.vp-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vp-slider-image:hover {
    transform: scale(1.02);
}

/* Controles del slider */
.vp-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Botones de navegación */
.vp-slider-prev,
.vp-slider-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-slider-prev:hover,
.vp-slider-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vp-slider-prev:active,
.vp-slider-next:active {
    transform: scale(0.95);
}

.vp-slider-prev.vp-disabled,
.vp-slider-next.vp-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots de navegación */
.vp-slider-dots {
    display: flex;
    gap: 8px;
}

.vp-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vp-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.vp-slider-dot.vp-active {
    background: white;
    transform: scale(1.3);
}

/* Contador de imágenes */
.vp-slider-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* Indicador de carga */
.vp-slider-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vp-slider-container.loading::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== RESPONSIVE DEL SLIDER ===== */

@media (max-width: 768px) {
    .vp-slider-container {
        height: 300px;
    }
    
    .vp-slider-controls {
        bottom: 15px;
        gap: 10px;
        padding: 8px 12px;
    }
    
    .vp-slider-prev,
    .vp-slider-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .vp-slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .vp-slider-counter {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .vp-slider-container {
        height: 250px;
    }
    
    .vp-slider-controls {
        bottom: 10px;
        gap: 8px;
        padding: 6px 10px;
    }
    
    .vp-slider-prev,
    .vp-slider-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .vp-slider-dot {
        width: 6px;
        height: 6px;
    }
    
    .vp-slider-counter {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* ===== ESTILOS PARA RESEÑAS SIN MEDIA ===== */

/* Ocultar completamente el contenedor de media si no hay contenido */
.vp-review-media:empty,
.vp-review-media:not(:has(img, video, audio, iframe)) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== ESTILOS DEL MODAL DE IMÁGENES ===== */

.vp-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.vp-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vp-image-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.vp-image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.vp-image-modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive para el modal */
@media (max-width: 1023px) and (min-width: 768px) {
    /* Tablet */
    .vp-image-modal-content {
        max-width: 90%;
        max-height: 90%;
    }
    
    .vp-image-modal-close {
        top: 12px;
        right: 18px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    /* Mobile */
    .vp-image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .vp-image-modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* ===== MEDIA QUERIES ADICIONALES PARA ELEMENTOS ESPECÍFICOS ===== */

/* Badge de verificación responsive */
@media (max-width: 1023px) and (min-width: 768px) {
    /* Tablet */
    .vp-verified-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .vp-check-icon {
        width: 14px;
        height: 14px;
    }
    
    .vp-review-text {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 767px) {
    /* Mobile */
    .vp-verified-badge {
        font-size: 11px;
        padding: 3px 6px;
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }
    
    .vp-check-icon {
        width: 12px;
        height: 12px;
    }
    
    .vp-review-author {
        font-size: 14px;
        font-weight: 600;
    }
    
    .vp-review-date {
        font-size: 11px;
    }
    
    .vp-review-text {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Estrellas de rating responsive */
@media (max-width: 1023px) and (min-width: 768px) {
    /* Tablet */
    .vp-stars {
        gap: 2px;
    }
    
    .vp-star {
        font-size: 16px;
    }
    
    .vp-rating-text {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    /* Mobile */
    .vp-stars {
        gap: 1px;
    }
    
    .vp-star {
        font-size: 14px;
    }
    
    .vp-rating-text {
        font-size: 11px;
    }
}

/* Videos responsive */
@media (max-width: 1023px) and (min-width: 768px) {
    /* Tablet */
    .vp-review-video {
        height: 350px;
    }
}

@media (max-width: 767px) {
    /* Mobile */
    .vp-review-video {
        height: 250px;
    }
    
    .vp-video-fallback {
        padding: 15px;
        font-size: 12px;
    }
    
    .vp-video-link {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .vp-video-title {
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .vp-image-modal-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .vp-image-modal-close {
        top: 8px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* ===== ESTILOS PARA CARGA INFINITA ===== */

/* Contenedor del botón de cargar más */
.vp-load-more-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

/* Botón de cargar más */
.vp-load-more-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vp-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea085);
}

.vp-load-more-btn:active {
    transform: translateY(0);
}

.vp-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner de carga */
.vp-load-more-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensaje de no más reseñas */
.vp-no-more-reviews {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0;
}

/* Mensajes de error */
.vp-video-error,
.vp-audio-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.vp-video-error::before {
    content: "❌";
    font-size: 24px;
    margin-right: 10px;
}

.vp-audio-error::before {
    content: "🔇";
    font-size: 24px;
    margin-right: 10px;
}

/* ===== RESPONSIVE PARA FORMULARIO INLINE ===== */

/* Responsive para el formulario inline */
@media (max-width: 768px) {
    .vp-add-review-form-wrapper {
        padding: 20px;
        margin: 20px 0;
    }
    
    .vp-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .vp-form-group {
        margin-bottom: 16px;
    }
    
    .vp-form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .vp-btn-cancel,
    .vp-btn-submit {
        width: 100%;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .vp-add-review-form-wrapper {
        padding: 16px;
        margin: 16px 0;
    }
    
    .vp-form-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .vp-rating-input {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .vp-rating-counter {
        margin-left: 8px;
        font-size: 12px;
    }
}

/* ===== ESTILOS DE INFORMACIÓN DEL PRODUCTO ===== */

/* Contenedor de información del producto */
.vp-product-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.vp-product-info:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enlace del producto */
.vp-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.vp-product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Contenedor de la miniatura */
.vp-product-thumb-wrap {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vp-product-info:hover .vp-product-thumb-wrap {
    transform: scale(1.05);
}

/* Imagen de la miniatura */
.vp-product-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Título del producto */
.vp-product-title {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
    flex: 1;
    transition: color 0.3s ease;
}

.vp-product-info:hover .vp-product-title {
    color: #212529;
}

/* Responsive para información del producto */
@media (max-width: 1023px) {
    .vp-product-info {
        padding: 10px;
        gap: 10px;
        margin-top: 10px;
    }
    
    .vp-product-thumb-wrap {
        width: 50px;
        height: 50px;
    }
    
    .vp-product-title {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .vp-product-info {
        padding: 8px;
        gap: 8px;
        margin-top: 8px;
    }
    
    .vp-product-thumb-wrap {
        width: 45px;
        height: 45px;
    }
    
    .vp-product-title {
        font-size: 12px;
    }
}

/* Estilos específicos para tarjetas sin media */
.vp-review-card.no-media .vp-product-info {
    margin-top: 8px;
    padding: 8px;
    gap: 8px;
}

.vp-review-card.no-media .vp-product-thumb-wrap {
    width: 40px;
    height: 40px;
}

.vp-review-card.no-media .vp-product-title {
    font-size: 12px;
}

@media (max-width: 767px) {
    .vp-review-card.no-media .vp-product-info {
        margin-top: 6px;
        padding: 6px;
        gap: 6px;
    }
    
    .vp-review-card.no-media .vp-product-thumb-wrap {
        width: 35px;
        height: 35px;
    }
    
    .vp-review-card.no-media .vp-product-title {
        font-size: 11px;
    }
}
