@font-face {
    font-family: 'FuentePrimaria';
    src: url('fonts/SairaSemiCondensed-Regular.woff') format('woff');
    font-style: normal;
}

@font-face {
    font-family: 'FuenteSecundaria';
    /*src: url('fonts/SJ Leon Sans Regular.woff') format('woff');*/
    src: url('fonts/Roboto-Regular.ttf') format('ttf');
    font-style: normal;
}


body {
    background-color: #f8f9fa;
    font-family: 'FuenteSecundaria', sans-serif;
}

/* Estilos de ejemplo que podrías tener en estilos.css */
:root {
    --primary-color: #ffcd11; /* Amarillo Gamatractor */
    --primary-color-hover: #ff9012;
    --secondary-color: #252525; /* Negro/Gris oscuro */
    --secondary-color-2: #fff;
    --color-3: #f8f9fa;
    --color-plomo-fondo: #f8f9fa;
    --gris-texto: #acabab;
}

h1, h2, h3, h4, h5, h6,
label, span, a, button, th {
    font-family: 'FuentePrimaria', sans-serif;
    /*usar primary color*/

}

label, span, a, button, th {
    font-weight: bold;
    font-size: 17px;
}

p, div, td, text, input, select, option {
    font-family: 'FuenteSecundaria', sans-serif;
    font-size: 16px;
}

b {
    font-weight: bold !important;
}

.t-bold {
    font-weight: bolder !important;
}

.t-normal {
    font-weight: normal !important;
}

.t-blanco {
    color: var(--secondary-color-2) !important;
}

.t-promo-1 {
    color: #f1f1f1 !important;
}

.t-promo-2 {
    color: #e3e3e3 !important;
}

.t-promo-3 {
    color: #cdcdcd !important;
}

.t-gris-1 {
    color: #1d1d1d !important;
}

.t-gris-2 {
    color: #292929 !important;
}

.t-gris-3 {
    color: #494949 !important;
}

.form-control {
    font-size: 15px !important;
}
.form-control option {
    font-size: 15px !important;
}

.t-primary {
    font-family: 'FuentePrimaria', sans-serif !important;
}

.t-secondary {
    font-family: 'FuenteSecundaria', sans-serif !important;
}

.titulo-pagina {
    font-size: 22px !important;
    font-weight: bolder !important;
    text-transform: uppercase !important;
    color: var(--secondary-color) !important;
    margin-bottom: 20px !important;
}

.titulo-1 {
    font-size: 24px !important;
}

.titulo-2 {
    font-size: 22px !important;
}

.titulo-3 {
    font-size: 20px !important;
}

.titulo-4 {
    font-size: 18px !important;
}

.t-12 {
    font-size: 12px !important;
}

.t-14 {
    font-size: 14px !important;
}

.t-16 {
    font-size: 16px !important;
}

.t-underline {
    text-decoration: underline;
}

.container-custom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.top-bar { background-color: #f8f9fa; padding: 0.5rem 0; font-size: 0.9rem; }

.header-hidden { top: -100px; }
.logo-main { font-size: 2rem; font-weight: bold; color: var(--secondary-color); line-height: 1; }
.logo-sub { font-size: 0.9rem; color: #6c757d; letter-spacing: 1px; }
.search-bar .form-control { border-right: 0; }
.search-bar .btn { background-color: var(--primary-color); color: var(--secondary-color); font-weight: bold; }
.main-nav { background-color: var(--primary-color); }
.main-nav .nav-link { color: var(--secondary-color); font-weight: 500; }
.hero-slider .carousel-item { height: 500px; background-size: cover; background-position: center; }
.hero-slider .carousel-caption { background: rgba(0,0,0,0.5); padding: 2rem; border-radius: 0.5rem; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { margin-bottom: 3rem; color: #6c757d; }
.category-card { border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.brands-section { background-color: #f8f9fa; padding: 3rem 0; }
.offer-section h2 { color: var(--secondary-color-2); }
.services-section { padding: 4rem 0; }
.service-item i { font-size: 2.5rem; color: var(--primary-color); }


/* Estilos para el Menú Offcanvas */
.mobile-menu-container .offcanvas-title {
    font-weight: bold;
}
.mobile-menu-container .main-mobile-links a {
    display: block;
    padding: 1rem 1.3rem;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
}
.mobile-menu-container .accordion-button {
    font-weight: 500;
    font-size: 17px;
}
.mobile-menu-container .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #000;
}
.mobile-menu-container .accordion-body ul {
    list-style: none;
    padding-left: 0;
}
.mobile-menu-container .accordion-body > ul > li > a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #495057;
    font-weight: normal;
    font-size: 19px;
}
.mobile-menu-container .accordion-body > ul > li > a:hover {
    background-color: #f8f9fa;
}

/* Estilos para el acordeón anidado */
.mobile-menu-container .accordion-body .accordion-item .accordion-button {
    padding: 0.75rem 1.5rem;
    font-weight: normal;
    background-color: transparent;
    color: #495057;
    font-size: 20px;
}
.mobile-menu-container .accordion-body .accordion-item .accordion-button:focus {
    box-shadow: none;
}
.mobile-menu-container .accordion-body .accordion-item .accordion-button:not(.collapsed) {
    color: #000;
    background-color: #f0f0f0;
}
.mobile-menu-container .accordion-body .accordion-item .accordion-body {
    padding: 0;
}
.mobile-menu-container .accordion-body .accordion-item .accordion-body ul li a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem; /* Mayor sangría para sub-subcategorías */
}

/* === ESTILOS DEL FOOTER === */
.footer {
    background-color: var(--secondary-color);
    color: #adb5bd;
}
.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}
.footer .footer-logo .logo-main { color: #fff; }
.footer .footer-logo .logo-sub { color: var(--primary-color); }
.footer .contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}
.footer .contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
    margin-top: 4px;
}
.footer .footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
}
.footer .footer-links a:hover {
    color: #fff;
}
.footer .reclamaciones-link {
    display: inline-flex;
    align-items: center;
    background-color: #495057;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer .footer-social a {
    color: #fff;
    margin-right: 1rem;
    font-size: 1.2rem;
}
.footer .payment-methods img {
    margin-right: 0.5rem;
    background: #fff;
    padding: 2px;
    border-radius: 3px;
}
.footer-bottom {
    background-color: #000;
    color: #6c757d;
    padding: 1rem 0;
    font-size: 0.9rem;
}

#scrollTopBtn {
    display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99;
    border: none; outline: none; background-color: var(--primary-color); color: var(--secondary-color);
    cursor: pointer; padding: 10px 15px; border-radius: 50%; font-size: 18px;
}

.container-custom {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
/* ======================= Estilos Barra Superior ======================= */
.top-bar {
    background-color: #000;
    color: #fff;
    font-size: 0.75rem; /* Reducido */
    padding: 0.5rem 0;
}
.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}
.top-bar .social-icons a {
    font-size: 0.9rem; /* Reducido */
}

/* ======================= Estilos Header Principal ======================= */
.header-main {
    background-color: #212529;
    padding: 0.75rem 0; /* Reducido */
    border-bottom: 1px solid #495057;
    z-index: 1031;
    transition: transform 0.3s ease-in-out;
}
.header-main.header-hidden {
    transform: translateY(-100%);
}
.logo-container .logo-main {
    font-size: 2.2rem; /* Reducido */
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.logo-container .logo-sub {
    background-color: #fec500;
    color: #000;
    font-size: 1rem; /* Reducido */
    font-weight: bold;
    padding: 0.2rem 0.8rem;
    display: inline-block;
    letter-spacing: 1px;
}
.search-bar .form-control {
    border-radius: 0;
}
.search-bar .btn {
    background-color: #fec500;
    color: #000;
    font-weight: bold;
    border-radius: 0;
}

/* ======================= Estilos Barra de Navegación ======================= */
.main-nav {
    background-color: #fec500;
    padding: 0;
    z-index: 1030;
}
.main-nav .navbar-nav .nav-link {
    color: #000;
    font-weight: bold;
    padding: 0.7rem 1.25rem; /* Reducido */
    text-transform: uppercase;
    font-size: 0.9rem; /* Reducido */
    border-right: 1px solid rgba(0,0,0,0.1);
}
.main-nav .navbar-nav .nav-link.active,
.main-nav .navbar-nav .nav-link:hover {
    background-color: #fcc203;
}
.main-nav .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.main-nav .dropdown-menu {
    background-color: #fff;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0;
}
.main-nav .dropdown-item {
    color: #000;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}
.main-nav .dropdown-item:last-child {
    border-bottom: none;
}
.main-nav .dropdown-item:hover {
    background-color: #f8f9fa;
}


/* ======================= Estilos Mega Menú (Solo Escritorio) ======================= */
.mega-menu {
    position: relative;
}
.mega-menu .dropdown-menu {
    padding: 0;
    margin-top: 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    width: 505px;
    max-width: 95vw;
    background-color: #fff;
}
.mega-menu-content { display: flex; }
.mega-menu-nav {
    width: 250px;
    border-right: 1px solid #dee2e6;
    flex-shrink: 0;
}
.mega-menu-nav .nav-link {
    color: #212529;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: normal;
    text-transform: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
    border-bottom: 1px solid #dee2e6;
}
.mega-menu-nav .nav-link:last-child {
    border-bottom: none;
}
.mega-menu-nav .nav-link.active,
.mega-menu-nav .nav-link:hover {
    background-color: #fcc203;
    color: #000;
}
.mega-menu-details { flex-grow: 1; padding: 1.5rem; min-width: 0; }
.mega-menu-pane { display: none; }
.mega-menu-pane.active { display: block; }

/* ======================= Estilos Slider ======================= */
.hero-slider .carousel-item .item-img {
    height: 500px;
    background-size: cover;
    background-position: center;
}
.hero-slider .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    right: 10%;
    left: auto;
    bottom: auto;
}
.hero-slider .carousel-caption h1 {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-slider .carousel-caption p {
    font-size: 1.5rem;
    font-weight: 300;
}
.hero-slider .btn-outline-light {
    border-width: 2px;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 0;
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50% 50%;
}

.slider-lg {
    display: block;
}

.slider-md {
    display: none;
}

.slider-sm {
    display: none;
}

@media (max-width: 1110px) {
    .slider-lg {
        display: none;
    }
    .slider-md {
        display: block;
    }
    .slider-sm {
        display: none;
    }
}

@media (max-width: 1052px) {

    .category-card .btn-warning {
        font-size: 15px !important;
    }
}

@media (max-width: 1013px) {

    .category-card .btn-warning {
        font-size: 14px !important;
    }
}

@media (max-width: 990px) {

    .category-card .btn-warning {
        font-size: 16px !important;
    }
}

/* Slider Responsivo */
@media (max-width: 950px) {
    .hero-slider .carousel-item {
        height: 400px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 3rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 1.2rem;
    }

    .container-categorias .row {
        margin-right: 0px;
        margin-left: 0px;
    }

    .category-card .btn-warning {
        font-size: 14px !important;
    }
}


@media (max-width: 768px) {


    .slider-lg {
        display: none;
    }
    .slider-md {
        display: none;
    }
    .slider-sm {
        display: block;
    }

    .item-categoria .card-body {
        padding-top: 90px !important;
    }

    .item-categoria .card-title {
        font-size: 24px !important;
        height: 110px !important;
    }

    .category-card .btn-warning {
        font-size: 15px !important;
    }
}

@media (max-width: 600px) {
    .hero-slider .carousel-item {
        height: 300px;
    }
    .hero-slider .carousel-caption {
        text-align: center;
        right: 15%;
        left: 15%;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    .hero-slider .btn-outline-light {
        padding: 0.5rem 1.5rem;
    }

    .container-categorias .row > * {
        padding-right: 3px;
        padding-left: 3px;
    }

    .item-categoria {
        padding: 5px !important;
    }

    .item-categoria .card-body {
        height: 240px !important;
        padding-top: 60px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .item-categoria .card-title {
        font-size: 24px !important;
        height: 95px !important;
    }

    .category-card .btn-warning {
        font-size: 14px !important;
    }
}


@media (max-width: 390px) {

    .item-categoria .card-body {
        height: 220px !important;
        padding-top: 50px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .item-categoria .card-title {
        font-size: 22px !important;
        height: 90px !important;
    }

    .category-card .btn-warning {
        font-size: 12px !important;
    }
}

@media (max-width: 320px) {

    .item-categoria .card-body {
        height: 180px !important;
        padding-top: 45px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .item-categoria .card-title {
        font-size: 16px !important;
        height: 60px !important;
    }

    .category-card .btn-warning {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
}

/* ======================= Estilos Contenido Principal ======================= */
.section-title {
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}
.category-card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s ease;
}
.category-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
.category-card .card-body {
    background-color: #fff;
}
.category-card .card-title {
    font-weight: bold;
}
.category-card .btn-warning {
    background-color: #fec500;
    border: none;
    font-weight: bold;
    border-radius: 0;
}
.brands-section {
    background-color: #fff;
    padding: 3rem 0;
}
.brand-logo {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    max-height: 40px;
}
.brand-logo:hover {
    filter: grayscale(0%);
}
.offer-section {
    color: #fff;
}
.offer-section h2 {
    font-weight: 900;
    font-size: 2.5rem;
}
.offer-section .btn-warning {
    background-color: #fec500;
    border: none;
    font-weight: bold;
    border-radius: 0;
    padding: 0.75rem 2rem;
}
.services-section {
    padding: 3rem 0;
}
.service-item i {
    font-size: 2rem;
    color: #fec500;
}
.service-item h6 {
    font-weight: bold;
}

/* ======================= Estilos Menú Móvil y Header Fijo ======================= */
@media (max-width: 991.98px) {
    .header-main {
        position: sticky;
        top: 0;
    }
}
.mobile-header-icons .btn {
    font-size: 1.5rem;
    color: #fff;
}
.offcanvas-header {
    background-color: #fec500;
}
.offcanvas-title {
    font-weight: 900;
}
.mobile-menu .accordion-item { border: none; }
.mobile-menu .accordion-button {
    background-color: #f8f9fa;
    font-weight: bold;
    padding: 1rem 1.5rem;
}
.mobile-menu .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    box-shadow: none;
}
.mobile-menu .accordion-body { padding: 0; }
.mobile-menu .accordion-body ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu .accordion-body a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    text-decoration: none;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}
.mobile-menu .main-mobile-links a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #212529;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
}
.search-modal .modal-header { border-bottom: none; }

/* ======================= Estilos Footer ======================= */
.footer {
    background-color: #212121;
    color: #adb5bd;
    font-size: 0.9rem; /* Reducido */
}
.footer .footer-logo .logo-main {
    font-size: 1.6rem; /* Reducido */
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.footer .footer-logo .logo-sub {
    background-color: #fec500;
    color: #000;
    font-size: 0.8rem; /* Reducido */
    font-weight: bold;
    padding: 0.2rem 0.8rem;
    display: inline-block;
    letter-spacing: 1px;
}
.footer .contact-info p { margin-bottom: 0.5rem; }
.footer .contact-info i { width: 20px; text-align: center; margin-right: 10px; }
.footer .reclamaciones-link {
    display: inline-flex;
    align-items: center;
    background-color: #343a40;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #adb5bd;
    transition: background-color 0.3s;
}
.footer .reclamaciones-link:hover { background-color: #495057; }
.footer h5 {
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1rem; /* Reducido */
}
.footer .footer-links li { margin-bottom: 0.5rem; }
.footer .footer-links a {
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s;
}
.footer .footer-links a:hover { color: #fff; }
.footer .footer-social a {
    color: #adb5bd;
    font-size: 1.25rem; /* Reducido */
    margin-right: 15px;
    transition: color 0.3s;
}
.footer .footer-social a:hover { color: #fff; }
.footer .payment-methods img {
    height: 30px;
    margin-right: 10px;
    background-color: #fff;
    padding: 2px;
    border-radius: 3px;
}
.footer-bottom {
    background-color: #000;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 1rem 0;
}

/* ======================= Botón Volver Arriba ======================= */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #fec500;
    color: #000;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s, visibility 0.3s;
}
#scrollTopBtn:hover {
    background-color: #e5b300;
}

/* ======================= Estilos Dropdown en Hover (Escritorio) ======================= */
@media (min-width: 992px) {
    .main-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
