.masthead-como-elegir-un-valuador-infonavit-background-image {
    background-image: linear-gradient(to top,rgba(0,0,0,0),rgba(0,0,0,.9)), url("../../assets/img/avaluo-infonavit/Masterhead/avaluo-infonavit-vertificado-firmado-oficial_webp-q25-2100x900.webp");
}
/* Control responsivo de posición de imagen masthead */
@media (max-width: 767.98px) {
    .masthead-como-elegir-un-valuador-infonavit-background-image {
        background-position: 80% center !important; /* Muestra lado derecho en mobile */
    }
}

@media (min-width: 768px) {
    .masthead-como-elegir-un-valuador-infonavit-background-image {
        background-position: center center !important; /* Centro en desktop */
    }
}

/* === PRODUCT PAGE STYLES === */

/* === IMAGE ZOOM MODAL STYLES === */
#imageZoomModal .modal-dialog {
    max-width: 95vw;
}

#imageZoomModal .modal-body {
    position: relative;
}

.zoom-nav-btn {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.zoom-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#imageZoomModal .modal-content {
    box-shadow: none;
}

#zoomedImage {
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border-radius: 15px;
}

/* Product Gallery */
.product-gallery .main-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: zoom-in;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.product-gallery .main-product-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.thumbnail-gallery {
    margin-top: 15px;
}

.thumbnail-gallery .thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 8px;
    position: relative;
}

.thumbnail-gallery .thumbnail-image:hover {
    opacity: 0.9;
    transform: scale(1.05);
    border-color: rgba(13, 110, 253, 0.5);
}

.thumbnail-gallery .thumbnail-image.active {
    opacity: 1;
    border-color: #0d6efd;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.thumbnail-gallery .thumbnail-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.thumbnail-gallery .thumbnail-image:hover::after {
    opacity: 1;
}

/* Main image container enhancements */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f9fa;
}

.main-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.main-image-container:hover::before {
    left: 100%;
}

/* Badge improvements */
.main-image-container .badge {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Loading state for image */
.main-product-image.loading {
    opacity: 0.5;
    filter: blur(2px);
}

/* Gallery navigation indicators */
.thumbnail-gallery::before {
    content: 'Haz clic en las miniaturas para ver más imágenes';
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* Product Info */
.product-title {
    color: #2c3e50;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.1rem;
}

.product-rating .stars {
    font-size: 1.2rem;
}

.current-price {
    color: #28a745 !important;
    font-size: 2.5rem;
}

.original-price {
    font-size: 1.2rem;
}

.discount-badge {
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-features ul li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.urgency-indicator .alert {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ff7675;
}

.product-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.trust-signals {
    background: rgba(248,249,250,0.8);
}

.trust-item i {
    display: block;
}

/* Product Tabs */
.nav-tabs {
    border-bottom: 3px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    background: white;
    color: #0d6efd;
    border-color: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0d6efd;
}

.tab-content {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 2rem;
    min-height: 400px;
}

/* Feature Boxes */
.feature-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Process Timeline */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    font-size: 1.5rem;
    margin: 0 auto;
}

/* Requirements */
.requirement-item {
    transition: all 0.3s ease;
    border-color: #e9ecef !important;
}

.requirement-item:hover {
    border-color: #0d6efd !important;
    background: rgba(13, 110, 253, 0.03);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonial-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* FAQ */
.accordion-button {
    font-weight: 600;
    background: rgba(13, 110, 253, 0.05);
}

.accordion-button:not(.collapsed) {
    background: #0d6efd;
    color: white;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .current-price {
        font-size: 2rem;
    }
    
    .product-gallery .main-product-image {
        height: 250px;
    }
    
    .thumbnail-gallery .thumbnail-image {
        height: 50px;
    }
    
    .thumbnail-gallery::before {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Stack CTA buttons on mobile */
    .product-actions .row > div {
        margin-bottom: 0.5rem;
    }
    
    /* Smaller badges on mobile */
    .main-image-container .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Better thumbnail spacing on mobile */
    .thumbnail-gallery .col-3 {
        padding: 0 2px;
    }
}

@media (max-width: 576px) {
    .product-gallery .main-product-image {
        height: 200px;
    }
    
    .thumbnail-gallery .thumbnail-image {
        height: 40px;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    /* Hide thumbnail instruction text on very small screens */
    .thumbnail-gallery::before {
        display: none;
    }
    
    /* Single column for trust signals */
    .trust-signals .row {
        text-align: center;
    }
    
    .trust-signals .col-4 {
        margin-bottom: 1rem;
    }
}

/* Loading Animation for Image Gallery */
.main-image-container {
    position: relative;
    overflow: hidden;
}

.main-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.main-image-container:hover::before {
    left: 100%;
}

/* Trust Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Button Enhancements */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea080);
}

.btn-outline-primary:hover {
    background: #0d6efd;
    transform: translateY(-2px);
}

.btn-outline-success:hover {
    background: #25d366;
    border-color: #25d366;
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}