/* Modern Home Styles - GWT00002 */

/* Hero Section with Carousel Background */
.modern-hero-with-carousel {
    position: relative;
    margin-bottom: 40px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

/* Carousel Background */
.hero-carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel-background .hero-slider-item-wrapper {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 500px !important;
    max-height: 500px !important;
}

.hero-carousel-background .single-slider-item {
    width: 100%;
}

.hero-carousel-background .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

/* Welcome Content on top */
.hero-welcome-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 0;
    text-align: center;
}

.hero-welcome-content .welcome-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hero-welcome-content .welcome-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoClaro, #f39c12) 50%, var(--colorCorporativoOscuro, #d35400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-welcome-content .welcome-subtitle {
    font-size: 18px;
    color: #f5f5f5;
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1199px) {
    .modern-hero-with-carousel {
        min-height: 400px;
    }
    
    .hero-carousel-background .hero-slider-item-wrapper {
        height: 400px !important;
        max-height: 400px !important;
    }
    
    .hero-welcome-content {
        min-height: 400px;
        padding: 30px 0;
    }
    
    .hero-welcome-content .welcome-content {
        padding: 30px;
    }
    
    .hero-welcome-content .welcome-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .modern-hero-with-carousel {
        min-height: 350px;
    }
    
    .hero-carousel-background .hero-slider-item-wrapper {
        height: 350px !important;
        max-height: 350px !important;
    }
    
    .hero-welcome-content {
        min-height: 350px;
        padding: 30px 0;
    }
    
    .hero-welcome-content .welcome-content {
        padding: 25px;
        margin: 0 15px;
    }
    
    .hero-welcome-content .welcome-title {
        font-size: 32px;
    }
    
    .hero-welcome-content .welcome-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .modern-hero-with-carousel {
        min-height: 300px;
        border-radius: 0 0 12px 12px;
    }
    
    .hero-carousel-background .hero-slider-item-wrapper {
        height: 300px !important;
        max-height: 300px !important;
    }
    
    .hero-welcome-content {
        min-height: 300px;
        padding: 20px 0;
    }
    
    .hero-welcome-content .welcome-content {
        padding: 20px;
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .hero-welcome-content .welcome-title {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .hero-welcome-content .welcome-subtitle {
        font-size: 14px;
    }
}

/* Old welcome section styles (keep for compatibility) */
.welcome-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Products Section */
.products-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.products-section.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-icon {
    font-size: 32px;
    color: var(--colorCorporativo, #e67e22);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0;
    position: relative;
}

.section-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.section-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Info Section */
.info-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Hide component titles when displayed in home sections */
.hide-component-title .component-title-row {
    display: none;
}

/* Slick slider arrows positioning - Override personalizacion.css */
.section-content .slick-slider .slick-prev,
.section-content .slick-slider .slick-next,
.section-content .slick-prev,
.section-content .slick-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    background: var(--colorCorporativo, #e67e22) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-size: 18px !important;
}

.section-content .slick-slider .slick-prev:hover,
.section-content .slick-slider .slick-next:hover,
.section-content .slick-prev:hover,
.section-content .slick-next:hover {
    background: var(--colorCorporativoOscuro, #d35400) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.section-content .slick-slider .slick-prev:before,
.section-content .slick-slider .slick-next:before,
.section-content .slick-prev:before,
.section-content .slick-next:before {
    color: var(--colorTextoBoton, #fff) !important;
    font-size: 18px !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.section-content .slick-slider .slick-prev:after,
.section-content .slick-slider .slick-next:after,
.section-content .slick-prev:after,
.section-content .slick-next:after {
    color: var(--colorTextoBoton, #fff) !important;
}

.section-content .slick-prev {
    left: -15px;
}

.section-content .slick-next {
    right: -15px;
}

.section-content .product-single-row-slider-wrapper {
    position: relative;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .section-content .slick-prev,
    .section-content .slick-next {
        display: none !important;
    }
    
    .section-content .product-single-row-slider-wrapper {
        padding: 0;
        overflow: visible;
    }
    
    /* Indicador visual de scroll/deslizamiento en móvil */
    .section-content .slick-slider {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--colorCorporativo, #e67e22) #f0f0f0;
        padding: 20px 0;
    }
    
    .section-content .slick-slider::-webkit-scrollbar {
        height: 6px;
    }
    
    .section-content .slick-slider::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .section-content .slick-slider::-webkit-scrollbar-thumb {
        background: var(--colorCorporativo, #e67e22);
        border-radius: 3px;
    }
    
    /* Efecto carrusel: elemento central más grande, laterales más pequeños */
    .section-content .slick-slider .slick-slide {
        transform: scale(0.85);
        opacity: 0.6;
        transition: all 0.3s ease;
        margin: 0 5px;
    }
    
    .section-content .slick-slider .slick-slide.slick-center,
    .section-content .slick-slider .slick-slide.slick-current {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
    }
    
    /* Mostrar bordes de elementos adyacentes */
    .section-content {
        overflow: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Indicador visual de "desliza para ver más" */
    .section-content::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 80%;
        background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
        pointer-events: none;
        z-index: 5;
    }
    
    .section-content::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 80%;
        background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
        pointer-events: none;
        z-index: 5;
    }
    
    .section-content {
        position: relative;
    }
    
    /* Hint de deslizamiento */
    .section-content .product-single-row-slider-wrapper::after {
        content: '← Desliza →';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(230, 126, 34, 0.9);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 10;
        animation: fadeOutHint 3s ease-in-out forwards;
        pointer-events: none;
    }
    
    @keyframes fadeOutHint {
        0%, 50% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            visibility: hidden;
        }
    }
}


/* Video Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d35400 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-header .close {
    color: white;
    opacity: 1;
    text-shadow: none;
    font-size: 28px;
}

.modal-header .close:hover {
    color: white;
    opacity: 0.8;
}

.modal-title {
    font-weight: 600;
}

.videoContainer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.videoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 32px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-icon {
        font-size: 24px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .welcome-section {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .modern-hero-section {
        border-radius: 0;
    }
}
