/* Debug: Ensure body is not white */
body {
    background-color: var(--bg-light, #f8f9fa) !important;
}

/* Paleta de colores más sobria */
:root {
    --primary-blue: #003366;
    /* Azul oscuro principal */
    --secondary-yellow: #DAA520;
    /* Amarillo dorado/mostaza */
    --text-dark: #343a40;
    /* Texto oscuro */
    --text-light: #f8f9fa;
    /* Texto muy claro */
    --bg-light: #f8f9fa;
    /* Fondo claro */
    --bg-medium: #e9ecef;
    /* Fondo medio */
    --bg-dark: #212529;
    /* Fondo oscuro para footer/navbar */
    --border-color: #dee2e6;
    /* Color de borde general */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Utilidades de color y texto */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-secondary-yellow {
    color: var(--secondary-yellow) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-secondary-yellow {
    background-color: var(--secondary-yellow) !important;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    /* Pure white background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: 'Lato', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-yellow, #DAA520) !important;
    /* Fallback */
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .navbar-brand {
        font-size: 15px !important;
    }

}

.navbar-brand .logo-img {
    max-height: 100px;
    /* Ajusta el tamaño del logo */
    margin-right: 12px;
    filter: brightness(1.2);
    /* Un poco más de brillo al logo */
}

@media (max-width: 767px) {
    .navbar-brand .logo-img {
        width: 50px;
    }

}

.nav-link-sucursal {
    color: #000000 !important;
    /* Black font color */
    margin-left: 1.5rem;
    font-size: 1.05rem;
    font-weight: 400;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.nav-link-sucursal {
    color: #000000 !important;
    margin-left: 1.5rem;
    font-size: 1.05rem;
    font-weight: 400;
    text-decoration: none;
    /* Quita el subrayado azul por defecto */
    transition: color 0.3s ease-in-out;
    position: relative;
    display: inline-block;
    /* Importante para que el ::after se posicione bien */
    padding: 8px;

}

@media (max-width: 768px) {
    .nav-link-sucursal {
        margin-left: 12.8px;
        padding: 8px 0px;
    }
}

/* El subrayado sutil */
.nav-link-sucursal::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: var(--secondary-yellow);
    transition: width 0.3s ease-in-out;
}

/* Comportamiento al pasar el mouse */
.nav-link-sucursal:hover {
    color: var(--secondary-yellow) !important;
    text-decoration: none;
}

.nav-link-sucursal:hover::after {
    width: 100%;
}

.nav-link {
    color: #000000 !important;
    /* Black font color */
    margin-left: 1.5rem;
    font-size: 1.05rem;
    font-weight: 400;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.nav-link::after {
    /* Underline sutil al pasar el mouse */
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: var(--secondary-yellow);
    /* Maintains yellow underline */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--secondary-yellow) !important;
    /* Yellow on hover for consistency */
}

.nav-link:hover::after {
    width: 100%;
    /* Full-width underline on hover */
}



.nav-link:hover {
    color: var(--secondary-yellow) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 70%)), url('../images/fondo.jpg') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    text-align: center;
    padding: 10rem 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Lato', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-main {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    border: 2px solid var(--secondary-yellow);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    /* Botones más redondeados */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1023px) {
    .btn-main {
        margin-right: 0px !important;
    }

}

.btn-main:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.btn-outline-main {
    background-color: transparent;
    color: var(--secondary-yellow);
    border: 2px solid var(--secondary-yellow);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    margin-left: 20px;
}

.btn-outline-main:hover {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* Secciones Generales */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Lato', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--primary-blue);
    text-align: center;
    position: relative;
}


.section-title::after {
    /* Subrayado decorativo */
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-yellow);
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

/* Cards (Categorías, Productos) */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: var(--bg-medium);
    color: var(--text-dark);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.card-text {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.category-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-card .card-body {
    padding: 2rem;
    text-align: left;
}

.product-card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-yellow);
    margin-top: 1rem;
}

/* Sección Acerca de Nosotros */
.about-section {
    background-color: var(--bg-medium);
    color: var(--text-dark);
}

.about-content {
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--primary-blue);
}

/* Sección de Contacto */
.contact-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.contact-info i {
    margin-right: 15px;
    color: var(--secondary-yellow);
    font-size: 1.8rem;
    width: 30px;
    /* Para alinear los iconos */
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-yellow);
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-group label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.btn-submit {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.btn-submit:hover {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.social-icons a {
    color: var(--primary-blue);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--secondary-yellow);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 2.5rem 0;
    border-top: 5px solid var(--secondary-yellow);
    /* Línea de acento */
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-yellow);
}

/* Animaciones */
.animate__animated {
    /* We removed visibility: hidden; from here */
    /* Let Animate.css and WOW.js handle initial visibility */
}

.animate__animated.active {
    /* Now, .active will make elements visible */
    visibility: visible;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .navbar-brand {
        font-size: 1.8rem;
    }

    .nav-link {
        margin-left: 0.8rem;
        font-size: 1rem;
    }

    .btn-main,
    .btn-outline-main {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        display: block;
        margin: 15px auto;
    }

    .btn-outline-main {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        width: 60px;
        bottom: -10px;
    }

    .card {
        margin-bottom: 2rem;
    }

    .category-card {
        padding: 2rem 1rem;
    }

    .category-icon {
        font-size: 3.5rem;
    }

    .category-name {
        font-size: 1.5rem;
    }

    .product-card img {
        height: 220px;
    }

    .product-card .card-body {
        padding: 1.5rem;
    }

    .product-card .price {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand .logo-img {
        max-height: 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-main,
    .btn-outline-main {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        bottom: -8px;
    }

    .contact-info i {
        font-size: 1.5rem;
        margin-right: 10px;
    }
}

/* Contenedor de cada Slide */
.swiper-slide {
    display: flex;
    flex-direction: column; /* Alinea imagen arriba y texto abajo */
    align-items: center;
    justify-content: flex-start;
    height: auto; /* Permite que el slide crezca según el texto */
}

.swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-position: top;
    object-fit: cover;
    border-radius: 8px;
}

/* Estilo de los títulos */
.swiper-slide h5 {
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 25px;
    line-height: 38px;
    color: #101010;
    font-family: sans-serif; /* O la fuente de tu proyecto */
}

/* Espaciado para que los puntos de abajo no tapen el texto */
.mySwiper {
    padding-bottom: 60px !important;
}