/* Laptop Carousel Section - Diseño Industrial */

.laptop-carousel-section {
    display: flex;
    align-items: center;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px; /* Altura fija para consistencia */
}

/* Sección superior con imagen de fondo dinámica (75%) */
.laptop-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: #1e3c72;
    /* Variable CSS para imagen dinámica */
    background-image: var(--dynamic-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

/* Overlay azul solo cuando NO hay imagen de fondo */
.laptop-carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: rgba(30, 60, 114, 0.8);
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

/* Ocultar overlay cuando hay imagen de fondo */
.laptop-carousel-section.has-background-image::after {
    opacity: 0;
    pointer-events: none;
}

/* Sección inferior blanca (40%) */
.laptop-carousel-section {
    background: linear-gradient(to bottom, transparent 60%, #ffffff 40%);
}

.container {
    position: relative;
    z-index: 3;
}

/* Hero Content */
.hero-content {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-family: 'Raleway', sans-serif;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.floating-text {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 12px 24px;
    display: inline-block;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Exactly what works - just removing debug colors */
.laptop-carousel {
    width: 120% !important;
    min-height: 400px !important;
    padding: 20px 0 !important;
    overflow: hidden !important;
    margin: -90px auto 0 auto !important; /* Posición para fondo azul */
    position: relative !important;
    left: -10% !important; /* Centrar el ancho extra */
}

/* Ajustar posición del carousel cuando hay imagen de fondo */
.laptop-carousel-section.has-background-image .laptop-carousel {
    margin: 200px auto 0 auto !important; /* Solo 20% montado cuando hay imagen */
}

.laptop-container {
    display: flex !important;
    padding: 20px 40px !important;
    min-height: 400px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: auto !important;
    /* Animation will move the container continuously */
    animation: infiniteSlide 20s linear infinite !important;
    margin-bottom: 40px;
}

@keyframes infiniteSlide {
    0% { 
        transform: translateX(-50%); 
    }
    100% { 
        transform: translateX(0); 
    }
}

.carousel-item {
    flex-shrink: 0 !important;
    width: 444px !important;
    height: 288px !important;
    display: block !important;
    margin-right: 20px !important;
    position: relative !important;
}

.carousel-image {
    width: 420px !important;
    height: 384px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
}

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

/* Hover Effects ya están incluidos en .carousel-image */

/* No Image Placeholder */
.no-image-placeholder {
    width: 420px;
    height: 264px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.no-sliders {
    padding: 50px 20px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .laptop-container {
        gap: 25px;
    }
    
    .carousel-image, .no-image-placeholder {
        width: 360px;
        height: 326px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .laptop-container {
        gap: 20px;
    }
    
    .carousel-image, .no-image-placeholder {
        width: 300px;
        height: 288px;
    }
}

@media (max-width: 768px) {
    .laptop-carousel-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .laptop-container {
        gap: 15px;
        justify-content: flex-start;
    }
    
    .carousel-image, .no-image-placeholder {
        width: 240px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .laptop-container {
        gap: 10px;
    }
    
    .carousel-image, .no-image-placeholder {
        width: 216px;
        height: 136px;
    }
}

/* Enhanced Statistics Section */
.enhanced-stats-section {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    position: relative;
    margin-top: -120px;
    z-index: 5;
    border-radius: 0 0 0 0;
    padding-top: 40px;
    padding-bottom: 20px;
}

.enhanced-stats-section .row {
    justify-content: center;
}

.enhanced-stats-section [class*="col-"] {
    display: flex;
    justify-content: center;
}

.enhanced-stat-card {
    background: #838282;
    border-radius: 0 25px 0 0;
    padding: 25px 20px;
    text-align: left;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 15;
    margin-top: 20px;
    border: none;
    max-width: 250px;
    width: 100%;
}

.enhanced-stat-card:hover {
    transform: translateY(-5px);
    background: #8b92a3;
}

.stat-icon {
    display: none;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-content .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

.stat-content .stat-label {
    font-size: 1.20rem;
    color: white;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: 1.3;
    opacity: 0.9;
}