@font-face {
    font-family: "GibsonItalic";
    src: url("/Tipografia/GibsonItalic.OTF") format("opentype");
}

@font-face {
    font-family: "GibsonLight";
    src: url("/Tipografia/GibsonLight.OTF") format("opentype");
}

@font-face {
    font-family: "GibsonLightIt";
    src: url("/Tipografia/GibsonLightIt.OTF") format("opentype");
}

@font-face {
    font-family: "GibsonLight";
    src: url("/Tipografia/GibsonLight.OTF") format("opentype");
}

@font-face {
    font-family: "GibsonSemiBd";
    src: url("/Tipografia/GibsonSemiBd.OTF") format("opentype");
}

@font-face {
    font-family: "GibsonSemiBdIt";
    src: url("/Tipografia/GibsonSemiBdIt.OTF") format("opentype");
}

@font-face {
    font-family: "ABeeZee";
    src: url("/Tipografia/ABeeZee-Regular.ttf") format("opentype");
}

@font-face {
    font-family: "Baskerville";
    src: url("/Tipografia/Baskerville.ttc") format("opentype");
}

.navbar-toggler {
    width: auto !important;
    height: auto !important;
    /* Cambia el borde a #54382A */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}


.buscador {
    padding-top: 5%;
}

.cart {
    padding-top: 35%;
}

.help {
    padding-top: 12px;
    padding-left: 50%;
}

body,
div {
    font-family: 'Roboto', ;
    font-size: 'small';
    overflow-x: hidden;
}

@media (min-width: 600px) {
    #text {
        color: 'white' !important;
    }

    #boton1Mob {
        display: none;
    }

    #boton2Mob {
        display: none;
    }

    #boton1Web {
        display: block;
    }

    #boton2Web {
        display: block;
    }

    #cart-mobile {
        display: none;
    }

    #help-mobile {
        display: none;
    }

    #carruselWeb1 {
        display: block;
    }

    #carruselMobile1 {
        display: none;
    }

    #carruselWeb2 {
        display: block;
    }

    #carruselMobile2 {
        display: none;
    }

    #carruselWeb3 {
        display: block;
    }

    #carruselMobile3 {
        display: none;
    }

    #nav-web-1 {
        display: block;
    }

    #nav-web-2 {
        display: block;
    }

    #nav-web-3 {
        display: block;
    }

    #nav-mob-1 {
        display: none;
    }

    #nav-mob-2 {
        display: none;
    }

    #nav-mob-3 {
        display: none;
    }
}

.img-logo {
    width: 10%;
    height: auto;
}

.img-responsivo {
    width: 70%;
    height: auto;
    margin-bottom: 5%;
    margin-top: 5%;
}

.img-redes {
    width: 70%;
}

@media screen and (min-width:0px) and (max-width: 600px) {
    .img-logo {
        width: 60%;
        height: auto;
    }

    .img-responsivo {
        width: 80%;
        height: auto;
        margin-bottom: 5%;
        margin-top: 5%;
    }

    .img-redes {
        width: 50%;
    }

    .a-footer {
        font-size: 25px;
    }

    #text {
        color: 'black' !important;
    }

    #boton1Mob {
        display: block;
    }

    #boton2Mob {
        display: block;
    }

    #boton1Web {
        display: none;
    }

    #boton2Web {
        display: none;
    }

    #cart-web {
        display: none;
    }

    #help-web {
        display: none;
    }

    #cart-mobile {
        display: block;
    }

    #help-mobile {
        display: block;
    }

    #carruselWeb1 {
        display: none;
    }

    #carruselMobile1 {
        display: block;
    }

    #carruselWeb2 {
        display: none;
    }

    #carruselMobile2 {
        display: block;
    }

    #carruselWeb3 {
        display: none;
    }

    #carruselMobile3 {
        display: block;
    }

    #nav-web-1 {
        display: none;
    }

    #nav-web-2 {
        display: none;
    }

    #nav-web-3 {
        display: none;
    }

    #nav-mob-1 {
        display: block;
    }

    #nav-mob-2 {
        display: block;
    }

    #nav-mob-3 {
        display: block;
    }
}

.web {
    display: block;
}

.mobile {
    display: none !important;
}

/*ESTILOS PARA MÓVILES*/
@media screen and (min-width:0px) and (max-width: 600px) {
    .web {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }
}

.numero {
    color: white !important;
}

.btn-icon .fab {
    color: white !important;
}

.carrito {
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background-color: #E51C20 !important;
}

.card-img-top2 {
    width: 100%;
    height: 35vw;
    object-fit: cover;
}

#buscador {
    display: none;
}

@media screen and (min-width: 0px) and (max-width:800px) {
    #buscador {
        display: block !important;
    }

    .btn-primary-alt-2 {
        font-size: 15px;
    }
}

.btn-primary-alt-2 {
    font-size: 14px;
}

input::placeholder {
    color: white !important;
}

/* Mostrar el dropdown al pasar el cursor */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Evita salto visual entre el link y el menú */
.dropdown .dropdown-menu {
    margin-top: 0;
}

/* Scopea al contenedor de tu navbar de escritorio para no afectar mobile */
.web .dropdown {
    position: relative;
}

/* Por defecto oculto (igual que Bootstrap) */
.web .dropdown .dropdown-menu {
    display: none;
    margin-top: 0;
    /* evita el "gap" entre link y menú */
}

/* Mostrar al pasar el mouse por el contenedor o el propio menú */
.web .dropdown:hover>.dropdown-menu,
.web .dropdown .dropdown-menu:hover {
    display: block !important;
    /* fuerza sobre Bootstrap */
    visibility: visible;
    opacity: 1;
    z-index: 9999;
}


.dropdown-toggle::after {
    display: none;
}

.dropdown-item {
    color: white;
}

.btn-primary-alt {
    color: #54382A;
    border-radius: 0px !important;
    background-color: white;
    transition: all 0.3s ease;
}

.btn-primary-alt:hover {
    background-color: #54382A;
    color: white;
}

.btn-primary-alt-2 {
    color: #54382A;
    border-radius: 0px !important;
    font-family: 'Baskerville' !important;
    background-color: white;
    transition: all 0.3s ease;
}

.btn-primary-alt-2:hover {
    background-color: white;
    color: #b48f57;
}

.categoria-card {
    display: block;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.categoria-card:hover {
    transform: scale(1.03);
    text-decoration: none;
}

.categoria-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}


.categoria-card:hover .categoria-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.categoria-text {
    font-family: GibsonLightIt;
    font-size: 2rem;
    color: white;
    transition: color 0.3s ease;
}

.categoria-card:hover .categoria-text {
    color: #D9C7A3;
}

.image-container {
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-container:hover img {
    opacity: 0.7;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay p {
    color: #54382A;
    font-size: 24px;
    text-align: center;
    margin: 0;
    font-size: 1rem;
    font-family: 'GibsonItalic';
}

.image-container:hover .overlay {
    opacity: 1;
    /* Aparece el texto cuando el mouse está encima */
}

.input-busqueda {
    color: white !important;
    background-color: transparent;
    border-color: white;
    border-radius: 50px;
    border: 1px solid white;
    padding: 0px 20px !important;
    height: 30px;
    font-family: 'Abeezee';
}

.input-busquedaR {
    color: black !important;
    background-color: transparent;
    border-color: black;
    border-radius: 50px;
    border: 1px solid black;
    padding: 0px 20px !important;
    height: 30px;
    font-family: 'Abeezee';
}

.input-busquedaR::placeholder {
    color: black !important;
}

/* Responsive: filtros en una sola columna */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        /* que ocupen todo el ancho */
        gap: 12px !important;
    }

    .filters-left,
    .filters-right {
        width: 100%;
        flex-direction: column;
        /* cada elemento en su propia línea */
        align-items: stretch;
        gap: 8px !important;
    }

    .filters-left .form-select,
    .filters-right .form-select {
        width: 100%;
        border: 1px solid #e6e6e6;
        /* opcional: borde para móvil */
        padding-left: .75rem !important;
        /* ya no “pegado” al borde */
        background-color: #fff;
        /* mejor contraste en móvil */
    }

    .filters-label {
        display: block;
        margin-bottom: 4px;
        color: #6b4c2b;
        font-family: 'ABeeZee';
    }
}

/* Oculta las frases originales (solo se usan como fuente) */
.typewriter h1 {
    display: none;
}

/* Cursor parpadeante */
#tw-output {
    display: inline-block;
    white-space: nowrap;
    /* evita salto de línea durante el tecleo */
    border-right: .15em solid #b48f57;
    padding-right: .15em;
    animation: blink-caret .7s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #b48f57;
    }
}

/* Respeto a usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #tw-output {
        animation: none;
        border-right: none;
    }
}

.navbar .navbar-brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.navbar {
    box-shadow: none;
}

.cart-button span {
    color: #cdcdcd;
}

.dis {
    visibility: hidden !important;
}

.dis2 {
    visibility: visible !important;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease;
}

#preloader.preloader-hide {
    opacity: 0;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    max-width: 40vw;
    margin-bottom: 16px;
}

.preloader-text {
    font-family: 'Baskerville';
    color: #54382A;
    margin-top: 12px;
    font-size: 1rem;
    letter-spacing: .08em;
}

/* Spinner */
.preloader-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #e0d6c8;
    border-top-color: #b48f57;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

    @media (max-width: 400px) {
        .g-recaptcha {
            transform: scale(0.9);
            transform-origin: 0 0;
        }
    }


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .preloader-logo {
        width: 90px;
    }
}