/**
 * Shekinah Modern Front Page Styles
 * Fragmentado desde front-page.php para mejorar el blindaje y rendimiento.
 */

.shekinah-modern * { margin: 0; padding: 0; box-sizing: border-box; }
.shekinah-modern { 
    font-family: var(--pos-font-main); 
    background: var(--pos-bg-white); 
    color: var(--pos-text-main);
    width: 100% !important;
    overflow-x: hidden;
}

/* Arreglo para Hero de ancho completo */
.front-page .site-content,
#content.site-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modern-hero { min-height: 100dvh; display: flex; align-items: center; position: relative; overflow: hidden; background: #000; }

/* Modern Slider System */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide { 
    position: absolute; inset: 0; opacity: 0; 
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1); 
    background-size: cover; background-position: center; 
    transform: scale(1.1); 
}
.slide.active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 8s linear; }

.hero-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.7) 100%); 
    z-index: 2; 
}

.hero-content { 
    position: relative; z-index: 10; max-width: var(--pos-max-width); margin: 0 auto; 
    padding: 100px 1.5rem 160px 1.5rem; 
    width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; 
}

.hero-text { 
    max-width: 1000px; 
    width: 90%;
    color: #ffffff !important; 
    padding: 2rem; 
    margin-top: 50px; /* Bajar los textos para no tapar el logo */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.trust-grid-modern { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    text-align: center; 
}

.trust-item-modern { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 174, 239, 0.1);
}

.trust-icon-modern { 
    width: 80px; 
    height: 80px; 
    background: linear-gradient(135deg, #fdf9f6 0%, #f5eadd 100%);
    border-radius: 2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 1.5rem; 
    color: var(--pos-primary); 
    transition: all 0.5s;
    position: relative;
}

.hero-badge { 
    display: inline-block; 
    background: var(--pos-primary); 
    color: #ffffff !important; 
    padding: 0.6rem 1.8rem; 
    border-radius: 50px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.25em; 
    margin-bottom: 2rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-title { 
    font-family: var(--pos-font-heading); 
    font-size: clamp(2.2rem, 7vw, 4.2rem); 
    line-height: 1.1; 
    margin-bottom: 2.5rem; 
    color: #ffffff !important; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    font-weight: 700;
}

.hero-title .italic { font-style: normal; color: var(--pos-primary); font-family: var(--pos-font-heading); font-weight: 700; }

.hero-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.btn-primary { 
    background: var(--pos-primary); 
    color: white !important; 
    padding: 1.2rem 3.5rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease; 
    border: 2px solid var(--pos-primary);
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.75rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.btn-primary:hover {
    background: transparent;
    color: var(--pos-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: white !important;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: white;
    color: var(--pos-primary) !important;
    transform: translateY(-2px);
}

.hero-stats-bar { 
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); 
    display: flex; gap: 4rem; 
    background: #ffffff; 
    padding: 1.2rem 3rem; border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    z-index: 20; 
}

/* Fix for large SVGs and Icons */
.trust-icon-modern i, .trust-icon-modern svg, 
.btn-icon svg, .btn-icon i,
.hero-buttons i, .btn-primary i, .btn-secondary i {
    font-size: 1.2rem !important; /* Proporción 1:1 con texto */
    width: 1.2rem !important;
    height: 1.2rem !important;
    display: inline-block;
    vertical-align: middle;
}

.trust-icon-modern i, .trust-icon-modern svg {
    font-size: 2rem !important;
    width: 2rem !important;
    height: 2rem !important;
}


/* Categories Section */
.categories-section { padding: 80px 0; background: #fff; }
.section-header-modern { text-align: center; margin-bottom: 50px; }
.section-subtitle { color: var(--pos-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.section-title { font-size: 2.5rem; color: #333; margin-bottom: 20px; }
.section-divider-modern { width: 80px; height: 4px; background: var(--pos-primary); margin: 0 auto; border-radius: 2px; }

.categories-grid-modern { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    max-width: var(--pos-max-width); 
    margin: 0 auto; 
    padding: 0 20px; 
}

.category-card-modern { 
    position: relative; 
    height: 400px; 
    border-radius: 20px; 
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.4s ease; 
}

.category-card-modern img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card-modern:hover img { transform: scale(1.1); }
.category-overlay-modern { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.category-info-modern { position: absolute; bottom: 30px; left: 30px; color: #fff; }
.category-info-modern h3 { font-size: 1.8rem; margin-bottom: 5px; }
.category-arrow { position: absolute; bottom: 30px; right: 30px; color: #fff; transition: transform 0.3s ease; }
.category-card-modern:hover .category-arrow { transform: translateX(5px); }

/* Products Section */
.products-section-modern { padding: 100px 0; background: #fdfdfd; }
.products-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.products-grid-modern { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.product-card-modern { 
    background: #fff; 
    border-radius: 25px; 
    padding: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: all 0.4s ease; 
    position: relative; 
}
.product-card-modern:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.product-image-modern { height: 300px; border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.product-image-modern img { width: 100%; height: 100%; object-fit: cover; }
.product-name-modern { font-size: 1.4rem; color: #333; margin-bottom: 10px; }
.product-pricing-modern { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; }
.product-price-total .price { font-weight: 700; color: #333; font-size: 1.2rem; }
.product-price-reserva { background: #f0faff; padding: 10px; border-radius: 12px; border: 1px dashed var(--pos-primary); }
.product-price-reserva .price { font-weight: 800; color: var(--pos-primary); font-size: 1.3rem; }

/* Interactive Floating Buttons */
.shekinah-floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.shekinah-floating-cart {
    background: transparent;
    padding: 0;
    border-radius: 50px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
.shekinah-floating-cart:hover { transform: translateY(-5px); background: var(--pos-primary); color: #fff; }
.sfc-icon-wrapper { position: relative; }
.sfc-count { position: absolute; top: -8px; right: -8px; background: #ff4444; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; }

/* WhatsApp Floating Assistant */
.whatsapp-ai-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.whatsapp-float-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float-btn i {
    font-size: 20px !important;
}

.whatsapp-float-btn span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s ease;
}

.whatsapp-ai-container:hover .whatsapp-float-btn span {
    max-width: 200px;
}

.whatsapp-float-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        padding: 12px;
    }
    .whatsapp-float-btn span {
        display: none;
    }
    .shekinah-floating-actions {
        bottom: 90px;
    }
}
