/* ======= VERIFICACIÓN QR STYLES ======= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo del index borroso */
.index-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.4);
    overflow: hidden;
}

.index-background .video-showcase {
    width: 100%;
    height: 100vh;
}

.index-background .video-container {
    height: 100vh;
}

.index-background .video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay oscuro adicional */
.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: fadeIn 0.5s ease-out;
}

/* Contenedor principal de verificación */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: slideUp 0.8s ease-out;
    padding: 10px;
    box-sizing: border-box;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 95vh;
}

.verification-container {
    background: linear-gradient(135deg, #2B2B2B 0%, #3A3A3A 100%);
    border: 2px solid #EFE8DC;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    max-width: 1000px;
    max-height: 90vh;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 500px;
}

.verification-header {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    height: 100%;
    width: 100%;
    min-height: 500px;
}

.product-image-section {
    flex-shrink: 0;
    width: 350px;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(239, 232, 220, 0.1) 0%, rgba(239, 232, 220, 0.05) 100%);
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 232, 220, 0.1) 0%, rgba(239, 232, 220, 0.05) 100%);
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 2.5rem;
    color: #B8B8B8;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 0.7rem;
    color: #B8B8B8;
    text-align: center;
    line-height: 1.3;
}

.verification-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 500px;
    padding: 2.5rem;
    background: linear-gradient(135deg, #2B2B2B 0%, #3A3A3A 100%);
    border-radius: 0 12px 12px 0;
    overflow-y: auto;
}

@keyframes glow {
    from { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(239, 232, 220, 0.1); }
    to { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 232, 220, 0.2); }
}

.verification-icon {
    font-size: 1.6rem;
    color: #EFE8DC;
    margin-bottom: 0.4rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand-name {
    font-family: "Times New Roman", serif;
    font-size: 1.2rem;
    color: #EFE8DC;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.verification-title {
    font-family: "Times New Roman", serif;
    font-size: 0.85rem;
    color: #EFE8DC;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.verification-subtitle {
    font-size: 0.6rem;
    color: #B8B8B8;
    margin-bottom: 0.7rem;
    font-weight: 300;
    line-height: 1.2;
}

.product-info {
    background: linear-gradient(135deg, rgba(239, 232, 220, 0.1) 0%, rgba(239, 232, 220, 0.05) 100%);
    border: 1px solid rgba(239, 232, 220, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.product-header {
    text-align: center;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(239, 232, 220, 0.2);
    padding-bottom: 0.4rem;
}

.product-name {
    font-family: "Times New Roman", serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #EFE8DC;
    margin-bottom: 0.2rem;
}

.product-brand {
    font-size: 0.6rem;
    color: #B8B8B8;
    font-style: italic;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.detail-item {
    background: rgba(239, 232, 220, 0.05);
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(239, 232, 220, 0.1);
}

.detail-label {
    font-size: 0.55rem;
    color: #B8B8B8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.15rem;
}

.detail-value {
    font-size: 0.65rem;
    color: #EFE8DC;
    font-weight: 500;
}

.verification-status {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 0.6rem;
    margin: 1rem 0;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% { border-color: #28a745; }
    50% { border-color: #20c997; }
}

.status-icon {
    font-size: 1rem;
    color: #28a745;
    margin-bottom: 0.2rem;
}

.status-text {
    font-size: 0.7rem;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.company-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(239, 232, 220, 0.2);
}

.company-text {
    font-size: 0.55rem;
    color: #B8B8B8;
    line-height: 1.3;
}

.company-highlight {
    color: #EFE8DC;
    font-weight: 600;
}

/* Contador de redirección */
.redirect-countdown {
    margin-top: 1rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 6px;
    text-align: center;
}

.countdown-text {
    font-size: 0.65rem;
    color: #007bff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.countdown-text i {
    font-size: 0.7rem;
    animation: pulse 1.5s infinite;
}

#countdownTimer {
    font-weight: 700;
    color: #EFE8DC;
    background: rgba(0, 123, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    min-width: 1.5rem;
    display: inline-block;
}

/* Animación de salida */
.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    to { 
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Preloader optimizado */
.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(239, 232, 220, 0.3);
    border-top: 3px solid #EFE8DC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* Mejoras de rendimiento y aceleración por hardware */
.verification-container {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
}

.product-image, .product-image-placeholder {
    will-change: opacity;
    transition: opacity 0.3s ease;
}

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

/* Desktop Grandes (1920px+) */
@media (min-width: 1920px) {
    .verification-container {
        max-width: 1400px;
        max-height: 85vh;
        min-height: 600px;
    }

    .product-image-section {
        width: 450px;
        min-height: 600px;
    }

    .verification-info {
        padding: 3.5rem;
        min-height: 600px;
    }

    .brand-name {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        letter-spacing: 2.5px;
    }

    .verification-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .verification-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .verification-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .product-info {
        padding: 1.8rem;
        margin: 1.5rem 0;
    }

    .product-name {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .detail-item {
        padding: 0.8rem;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 1rem;
    }
}

/* Desktop Medianos (1366px - 1919px) */
@media (min-width: 1366px) and (max-width: 1919px) {
    .verification-container {
        max-width: 1200px;
        max-height: 88vh;
        min-height: 550px;
    }

    .product-image-section {
        width: 400px;
        min-height: 550px;
    }

    .verification-info {
        padding: 3rem;
        min-height: 550px;
    }

    .brand-name {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
        letter-spacing: 2px;
    }

    .verification-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .verification-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .verification-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
}

/* Laptops (1024px - 1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
    .verification-container {
        max-width: 1000px;
        max-height: 90vh;
        min-height: 500px;
    }

    .product-image-section {
        width: 350px;
        min-height: 500px;
    }

    .verification-info {
        padding: 2.5rem;
        min-height: 500px;
    }

    .brand-name {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1.8px;
    }

    .verification-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .verification-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.9rem;
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .verification-overlay {
        padding: 15px;
    }

    .verification-container {
        max-width: 95%;
        max-height: 92vh;
        min-height: 450px;
    }

    .product-image-section {
        width: 300px;
        min-height: 450px;
    }

    .verification-info {
        padding: 2rem;
        min-height: 450px;
    }

    .brand-name {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
        letter-spacing: 1.5px;
    }

    .verification-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .verification-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .verification-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .product-info {
        padding: 1.2rem;
        margin: 1rem 0;
    }

    .product-name {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .product-brand {
        font-size: 0.7rem;
    }

    .detail-item {
        padding: 0.6rem;
    }

    .detail-label {
        font-size: 0.6rem;
    }

    .detail-value {
        font-size: 0.8rem;
    }
}

/* Mobile Landscape & Small Tablets (568px - 767px) */
@media (min-width: 568px) and (max-width: 767px) {
    .verification-overlay {
        padding: 10px;
    }

    .verification-container {
        flex-direction: column;
        min-height: auto;
        max-height: 95vh;
        overflow-y: auto;
        border-radius: 15px;
        width: 98%;
    }

    .verification-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
        min-height: auto;
    }

    .product-image-section {
        width: 100%;
        height: 280px;
        border-radius: 15px 15px 0 0;
        flex-shrink: 0;
        min-height: 280px;
    }

    .product-image,
    .product-image-placeholder {
        width: 100%;
        height: 100%;
        border-radius: 15px 15px 0 0;
    }

    .placeholder-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .placeholder-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .verification-info {
        height: auto;
        min-height: auto;
        padding: 2rem;
        text-align: center;
        border-radius: 0 0 15px 15px;
        flex: 1;
        overflow-y: visible;
    }

    .brand-name {
        font-size: 2rem;
        margin-bottom: 0.6rem;
        letter-spacing: 2px;
    }

    .verification-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .verification-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .verification-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
}

/* Mobile Portrait (320px - 567px) */
@media (max-width: 567px) {
    body {
        padding: 0;
        margin: 0;
    }

    .verification-overlay {
        padding: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .verification-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        margin: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 10px 0;
    }

    .verification-container {
        flex-direction: column;
        min-height: auto;
        max-height: none;
        overflow-y: visible;
        border-radius: 16px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .verification-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        height: auto;
        min-height: auto;
        text-align: center;
        padding: 20px;
    }

    .product-image-section {
        width: 160px;
        height: 160px;
        border-radius: 16px;
        flex-shrink: 0;
        min-height: 160px;
        margin: 0 auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .product-image,
    .product-image-placeholder {
        width: 100%;
        height: 100%;
        border-radius: 16px;
    }

    .placeholder-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .placeholder-text {
        font-size: 0.85rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.8);
    }

    .verification-info {
        height: auto;
        min-height: auto;
        padding: 0 20px 20px;
        text-align: center;
        border-radius: 0;
        flex: 1;
        overflow-y: visible;
    }

    .verification-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin: 0 auto 15px;
        background: linear-gradient(135deg, #28a745, #20c997);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    }

    .verification-icon i {
        color: white;
        font-size: 24px;
    }

    .brand-name {
        font-size: 1.8rem;
        margin-bottom: 8px;
        letter-spacing: 1.5px;
        font-weight: 600;
        line-height: 1.2;
    }

    .verification-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #28a745;
        font-weight: 600;
    }

    .verification-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.85);
        padding: 0 10px;
    }

    .verification-status {
        padding: 15px;
        margin: 20px 0;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.1));
        border: 2px solid rgba(40, 167, 69, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .status-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .status-icon i {
        font-size: 20px;
        color: #28a745;
    }

    .status-text {
        font-size: 1rem;
        color: #28a745;
        font-weight: 600;
    }

    .product-info {
        margin: 20px 0;
        padding: 20px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .product-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .product-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
        color: white;
        font-weight: 600;
        line-height: 1.3;
    }

    .product-brand {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }

    .product-details {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }

    .detail-item {
        padding: 12px;
        border-radius: 8px;
        min-height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .detail-label {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }

    .detail-value {
        font-size: 0.9rem;
        color: white;
        font-weight: 500;
        text-align: right;
        max-width: 65%;
        word-break: break-word;
    }

    .company-footer {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .company-text {
        font-size: 0.8rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 16px;
    }

    .company-highlight {
        color: #d4af37;
        font-weight: 600;
    }

    .redirect-countdown {
        margin-top: 16px;
        padding: 12px 16px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.1));
        border: 1px solid rgba(212, 175, 55, 0.3);
    }

    .countdown-text {
        font-size: 0.85rem;
        color: #d4af37;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        line-height: 1.4;
    }

    .countdown-text i {
        font-size: 16px;
        color: #d4af37;
    }

    #countdownTimer {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.9rem;
        background: rgba(212, 175, 55, 0.2);
        color: #d4af37;
        font-weight: 600;
        margin-left: 4px;
    }
}

/* Extra pequeño - Teléfonos muy pequeños (hasta 359px) */
@media (max-width: 359px) {
    .verification-overlay {
        padding: 4px;
    }

    .verification-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        margin: 0;
        padding: 8px 0;
    }

    .verification-container {
        margin: 0;
        border-radius: 12px;
        max-height: none;
        width: 100%;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .verification-header {
        padding: 16px;
        gap: 16px;
    }

    .product-image-section {
        width: 140px;
        height: 140px;
        border-radius: 12px;
    }

    .product-image,
    .product-image-placeholder {
        border-radius: 12px;
    }

    .verification-info {
        padding: 0 16px 16px;
    }

    .verification-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .verification-icon i {
        font-size: 20px;
    }

    .brand-name {
        font-size: 1.6rem;
        margin-bottom: 6px;
        letter-spacing: 1px;
    }

    .verification-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .verification-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;
        padding: 0 8px;
    }

    .verification-status {
        padding: 12px;
        margin: 16px 0;
        gap: 10px;
    }

    .status-icon {
        width: 20px;
        height: 20px;
    }

    .status-icon i {
        font-size: 18px;
    }

    .status-text {
        font-size: 0.9rem;
    }

    .product-info {
        margin: 16px 0;
        padding: 16px;
    }

    .product-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .product-brand {
        font-size: 0.8rem;
    }

    .product-details {
        gap: 10px;
        margin-top: 12px;
    }

    .detail-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-label {
        font-size: 0.75rem;
    }

    .detail-value {
        font-size: 0.85rem;
        text-align: left;
        max-width: 100%;
    }

    .company-footer {
        margin-top: 16px;
        padding-top: 12px;
    }

    .company-text {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .redirect-countdown {
        margin-top: 12px;
        padding: 10px 12px;
    }

    .countdown-text {
        font-size: 0.8rem;
        gap: 6px;
        flex-direction: column;
        text-align: center;
    }

    .countdown-text i {
        font-size: 14px;
        margin-bottom: 4px;
    }

    #countdownTimer {
        padding: 3px 6px;
        font-size: 0.85rem;
        margin: 4px 0 0 0;
    }
}

/* Landscape mode para móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .verification-container {
        max-height: 95vh;
        flex-direction: row;
    }

    .verification-header {
        flex-direction: row;
    }

    .product-image-section {
        width: 200px;
        height: 100%;
        border-radius: 12px 0 0 12px;
    }

    .product-image,
    .product-image-placeholder {
        border-radius: 12px 0 0 12px;
    }

    .verification-info {
        padding: 1rem;
        border-radius: 0 12px 12px 0;
        overflow-y: auto;
    }

    .brand-name {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .verification-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .verification-subtitle {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .product-info {
        margin: 0.5rem 0;
        padding: 0.8rem;
    }

    .product-details {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .detail-item {
        padding: 0.4rem;
    }

    .verification-status {
        padding: 0.6rem;
        margin: 0.5rem 0;
    }
}

/* Mejoras para experiencia táctil y rendimiento */
@media (hover: none) and (pointer: coarse) {
    .verification-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .verification-info {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .product-details {
        touch-action: pan-y;
    }

    .detail-value, .product-name, .brand-name {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .detail-item {
        min-height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .placeholder-icon {
        transform: translateZ(0);
    }
}

@media (max-width: 480px) {
    .image-loading::before {
        width: 25px;
        height: 25px;
        margin: -12.5px 0 0 -12.5px;
        border-width: 2px;
    }
}

/* ===== ANIMACIONES Y ESTADOS DE IMAGEN ===== */

/* Animaciones para el placeholder */
.placeholder-icon {
    animation: pulse 2s infinite ease-in-out;
}

.placeholder-icon .fa-spinner {
    animation: spin 1s linear infinite !important;
}

/* Animaciones generales */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de carga de imagen */
.product-image {
    transition: all 0.4s ease-in-out;
}

.product-image.loading {
    opacity: 0.7;
    filter: blur(1px);
}

.product-image.loaded {
    animation: fadeIn 0.4s ease-in-out;
    opacity: 1;
    filter: none;
}

.product-image-placeholder.loading {
    animation: pulse 1.5s infinite ease-in-out;
}

.product-image-placeholder.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.3);
}

.product-image-placeholder.error .placeholder-icon {
    color: rgba(220, 53, 69, 0.6);
}

.product-image-placeholder.error .placeholder-text {
    color: rgba(220, 53, 69, 0.8);
}

/* Hover effects para dispositivos con mouse */
@media (hover: hover) {
    .product-image-placeholder:hover {
        background: linear-gradient(135deg, rgba(239, 232, 220, 0.15) 0%, rgba(239, 232, 220, 0.08) 100%);
        transform: scale(1.01);
        transition: all 0.3s ease;
    }
    
    .product-image:hover {
        transform: scale(1.02);
        transition: all 0.3s ease;
    }
}

/* Optimizaciones para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .product-image,
    .product-image-placeholder {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}
