:root {
    --primary-color: #e31e24; /* Rojo */
    --secondary-color: #000000; /* Negro */
    --accent-color: #ffffff; /* Blanco */
    --text-dark: #212529;
    --text-light: #6c757d;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: 'Montserrat', sans-serif;
}

/* Helper Classes */
.bg-black { background-color: var(--secondary-color) !important; }
.text-danger { color: var(--primary-color) !important; }
.btn-danger { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-danger:hover { background-color: #c4181d; border-color: #c4181d; }

/* Header & Nav */
.header-wrapper {
    z-index: 1030;
}

.header {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.hover-red:hover {
    color: var(--primary-color) !important;
}

/* Hero Slider Modernized */
.hero-slider {
    height: 75vh;
    min-height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider .swiper {
    height: 100%;
}

.slider-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slide-content {
    max-width: 900px;
    z-index: 3;
}

.slide-content h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
    font-size: 3rem !important; /* Reducido un 30% aprox de display-3 */
}

.slide-content p {
    font-size: 1.1rem !important; /* Reducido un 30% aprox de lead */
}

.slide-content .btn {
    padding: 10px 30px !important; /* Reducido un 30% aprox de px-5 py-3 */
    font-size: 0.9rem !important;
}

/* Swiper Custom Navigation & Pagination */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
    background: rgba(227, 30, 36, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--primary-color);
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #eee;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.fav-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.fav-btn.active {
    color: var(--primary-color);
}

.fav-btn.active i {
    font-weight: 900; /* fas icon style */
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h5 {
    font-size: 1rem; /* Reducido un 30% aprox (antes heredaba de h5 default ~1.25rem) */
    line-height: 1.4;
    height: 2.8em; /* Asegurar altura consistente para 2 líneas */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Statistics */
.stat-box {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

/* Marcas Carousel */
.marcas-section {
    overflow: hidden;
}

.marcasSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.brand-logo-main:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.marcas-prev,
.marcas-next {
    width: 35px !important;
    height: 35px !important;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    top: 50% !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}

.marcas-prev::after,
.marcas-next::after {
    font-size: 1rem !important;
    font-weight: bold;
}

.marcas-prev { left: 10px !important; }
.marcas-next { right: 10px !important; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.description-text {
    font-size: 0.9rem; /* Reducción inicial para escritorio */
    line-height: 1.6;
    text-align: justify;
}

.footer-brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand-img {
    max-height: 82px; /* Reducido un 30% desde 117px */
    width: auto;
    transition: var(--transition);
}

.footer-description {
    font-size: 0.9rem; /* Aumentado de 0.75rem (+20%) */
    line-height: 1.5;
    color: #adb5bd;
    text-align: justify;
}

.footer-intro {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.footer-col h5 {
    position: relative;
    letter-spacing: 1px;
}

.footer-col h5::after {
    display: none; /* Quitamos el after antiguo si lo tuviera */
}

.footer-schedule { 
    width: 100%; 
    margin-top: 0; 
} 

.schedule-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 18px; 
    width: 100%; 
} 

.schedule-row .day { 
    color: #8a8a8a; 
    font-size: 16px; 
    flex: 1; 
} 

.schedule-row .time { 
    color: #ffffff; 
    font-size: 16px; 
    text-align: right; 
    flex: 1; 
    white-space: nowrap; 
.payment-logo-box {
    background: white;
    padding: 6px; /* Reducido de 8px (~20%) */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* Reducido un 20% desde 40px aprox */
    transition: var(--transition);
}

.payment-logo-box img {
    max-height: 20px; /* Reducido un 20% desde 25px */
    width: auto;
    object-fit: contain;
}   align-items: center;
    justify-content: center;
    height: 45px;
    width: 100%;
    margin-bottom: 5px;
}

.payment-logo-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(1);
}

.dropdown-menu {
    min-width: 200px;
    margin-top: 0;
}

.dropdown-item {
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.submenu-left {
    left: 100% !important;
}

/* Navbar Search */
.search-nav-wrapper {
    max-width: 300px;
}

.search-nav-wrapper .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.search-nav-wrapper input {
    background: transparent !important;
    color: #fff !important;
}

.search-nav-wrapper input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-nav-wrapper .btn {
    border-radius: 0;
}

.search-nav-wrapper {
    width: 280px; /* Aumentado un 30% aprox desde ~215px */
    transition: var(--transition);
}

.search-nav-wrapper .input-group-sm > .form-control,
.search-nav-wrapper .input-group-sm > .btn {
    height: 38px; /* Un poco más alto para balancear el ancho */
}

.search-nav-wrapper .form-control:focus {
    box-shadow: none;
    background-color: #fff;
}

@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        display: block;
        padding-left: 20px;
        background: rgba(255,255,255,0.05) !important;
    }
    .dropdown-submenu i {
        transform: rotate(90deg);
    }
    .search-nav-wrapper {
        padding-bottom: 1.5rem;
        max-width: 100%;
    }
}

.product-details h1 {
    line-height: 1.3;
    word-wrap: break-word;
    font-size: 1.5rem; /* Reducción del 30% aprox sobre h2 */
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
