/* Reaktor Engine - Neumorphic Inspired Design */

/* 1. Global & Typography Setup
-------------------------------------------------- */
:root {
    /* CMS Variables */
    --reaktor-primary-color: #0d6efd;
    --reaktor-secondary-color: #6c757d;
    --reaktor-background-color: #f0f2f5;
    --reaktor-font-headings: 'Poppins', sans-serif;
    --reaktor-font-body: 'Roboto', sans-serif;
    
    

    /* Static Design Variables */
    --reaktor-border-radius: 20px;
    --reaktor-shadow-light: rgba(255, 255, 255, 0.7);
    --reaktor-shadow-dark: rgba(163, 177, 198, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--reaktor-font-body);
    background-color: var(--reaktor-background-color);
    color: #3d4a5e;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
    font-family: var(--reaktor-font-headings);
    font-weight: 700;
}

.section-title {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1d2b48;
}

/* 2. Components & Overrides
-------------------------------------------------- */
.btn:focus,
.btn:focus-visible,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible,
.btn-primary:focus,
.btn-primary:focus-visible {
    outline: 0 !important;
    box-shadow: 6px 6px 12px var(--reaktor-shadow-dark), -6px -6px 12px var(--reaktor-shadow-light) !important;
}

.btn {
    border-radius: var(--reaktor-border-radius);
    padding: 14px 32px;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease-in-out;
    background: var(--reaktor-background-color);
    box-shadow: 6px 6px 12px var(--reaktor-shadow-dark), -6px -6px 12px var(--reaktor-shadow-light);
    color: #3d4a5e;
}

.btn:active {
    box-shadow: inset 4px 4px 8px var(--reaktor-shadow-dark), inset -4px -4px 8px var(--reaktor-shadow-light) !important;
}

.btn-primary {
    background: var(--reaktor-primary-color);
    color: #ffffff;
    font-weight: bold;
}

.btn-primary:hover {
    color: #ffffff;
    background: var(--reaktor-primary-color);
    transform: none;
}

.btn-secondary {
    background: var(--reaktor-secondary-color);
    color: #ffffff;
}
.btn-secondary:hover {
    color: #ffffff;
    filter: brightness(110%);
}


/* Header */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--reaktor-primary-color) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-brand, .navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}
.navbar-brand {
    font-family: var(--reaktor-font-headings);
    font-weight: 700;
}
.navbar .nav-link:hover {
    opacity: 0.8;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--reaktor-border-radius);
    background: var(--reaktor-background-color);
    box-shadow: 8px 8px 16px var(--reaktor-shadow-dark), -8px -8px 16px var(--reaktor-shadow-light);
    transition: all 0.3s ease;
}

/* 3. Page Sections Styling
-------------------------------------------------- */
main {
    flex: 1 0 auto;
}

.hero-section {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
}
.hero-title {
    font-weight: 700;
    font-size: 3rem;
}

/* Highlights Section */
#highlights {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.highlight-card {
    padding: 2.5rem;
    border-radius: var(--reaktor-border-radius);
    height: 100%;
    background: var(--reaktor-background-color);
    box-shadow: 8px 8px 16px var(--reaktor-shadow-dark), -8px -8px 16px var(--reaktor-shadow-light);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--reaktor-secondary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Category Cards */
.category-card { 
    text-decoration: none; 
    color: inherit; 
    display: block;
    height: 100%;
}
.category-card .card {
    transition: all 0.3s ease;
    background-color: #ffffff;
}
.category-card:hover .card {
    transform: translateY(-5px);
}
.category-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-radius: var(--reaktor-border-radius) var(--reaktor-border-radius) 0 0;
}
.category-card .card-title {
    font-weight: 500;
}

/* Product Cards */
.product-card {
    background-color: #ffffff;
}
.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    border-radius: var(--reaktor-border-radius) var(--reaktor-border-radius) 0 0;
}
.product-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.product-card .card-text, .product-price {
    font-family: var(--reaktor-font-headings);
}

/* SOLUCIÓN: Ajuste de colores de precios */
.product-price .price-normal {
    color: #19191a !important; /* Color negro/oscuro para precios normales */
}
.product-price .price-offer {
    color: #dc3545 !important; /* Color rojo para precios de oferta */
}


/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--reaktor-border-radius);
    box-shadow: var(--reaktor-shadow-subtle);
    transition: all 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--reaktor-shadow-hover);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1rem;
    font-weight: 500;
}

/* 4. Utilities & Widgets
-------------------------------------------------- */
.whatsapp-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    color: white;
}

footer.site-footer {
    background-color: var(--reaktor-primary-color) !important;
}

/* 5. Mobile Responsiveness
-------------------------------------------------- */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .btn {
        padding: 12px 24px;
    }
    #about-us .row {
        flex-direction: column-reverse;
    }
    #about-us .row img {
        margin-bottom: 2rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .navbar-nav .nav-link {
            color: black !important;
        }
}

