/* =====================================================
   CORRECCIONES CRÍTICAS - FRANKY3DWORLD
   ===================================================== */

/* GALERÍA PRINCIPAL - RECUADRO VISIBLE */
.galeria-principal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 400px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
}

.imagen-principal {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

/* BOTÓN LIKE - SIN CUADRADO + CURSOR POINTER */
.like-btn {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
}

.like-btn:hover,
.like-btn:focus,
.like-btn:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
}

/* PAGINACIÓN - DISEÑO ELEGANTE */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem auto;
    flex-wrap: wrap;
    padding: 1rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.pagination-btn,
.pagination-num {
    min-width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pagination-btn:hover:not(.disabled),
.pagination-num:hover:not(.active) {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-num.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    color: white !important;
    cursor: default;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: #cbd5e1;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-weight: 500;
    max-width: 600px;
}

/* MEJORAS IMAGEN Y BOTONES - PRODUCTOS */
.producto-imagen {
    height: 300px !important;
    overflow: hidden;
    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: object-position 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.producto-imagen img.square-image {
    object-position: center center !important;
}

.producto-imagen-link {
    display: block;
    text-decoration: none;
}

.producto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.producto-footer .producto-precio {
    margin: 0;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .pagination-btn,
    .pagination-num {
        min-width: 38px;
        height: 38px;
        padding: 0 0.7rem;
        font-size: 0.85rem;
    }

    .pagination-info {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        margin: 1rem auto;
    }
    
    .galeria-principal {
        min-height: 280px;
    }
}

.miniatura-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    pointer-events: none;
}

.producto-imagen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: object-position 0.5s ease;
}

.video-preview {
    border-radius: inherit;
}
