html {
    height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding-top: 80px; 
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1 0 auto;
}

/*paleta de colores de la */
:root {
    --yugen-red: #b32e2e;      /* rojo del torii */
    --yugen-pink: #ff6f91;     /* rosa de la flor */
    --yugen-dark: #1a1a1a;     /* negro del fondo */
    --yugen-cream: #fdf5e6;    /* crema del fondo del logo */
}

/* para que afecte a todo */
.text-primary {
    color: var(--yugen-red) !important;
}

.btn-primary {
    background-color: var(--yugen-red) !important;
    border-color: var(--yugen-red) !important;
}

.btn-outline-primary {
    color: var(--yugen-red) !important;
    border-color: var(--yugen-red) !important;
}

.btn-outline-primary:hover {
    background-color: var(--yugen-red) !important;
    color: white !important;
}

.bg-primary {
    background-color: var(--yugen-red) !important;
}

.navbar-brand span, .nav-link {
    color: var(--yugen-cream) !important; /
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.bg-primary-subtle {
    background-color: rgba(179, 46, 46, 0.1) !important;
}

/* para pisar el azul de Bootstrap con el rojo */
.text-primary { color: var(--yugen-red) !important; }
.bg-primary { background-color: var(--yugen-red) !important; }

.btn-primary {
    background-color: var(--yugen-red) !important;
    border-color: var(--yugen-red) !important;
}

.btn-outline-primary {
    color: var(--yugen-red) !important;
    border-color: var(--yugen-red) !important;
}

.btn-outline-primary:hover {
    background-color: var(--yugen-red) !important;
    color: white !important;
}

/* el fondo y los textos del Nav */
.navbar {
    background-color: #1a1a1a !important;
}

.navbar .nav-link, .navbar .navbar-brand {
    color: white !important;
}

.navbar-custom .bi-cart-fill {
    color: #ffffff !important;
}

/* fuerza a que el icono y el botón se vean blancos */
.navbar .bi-cart-fill, 
.navbar .bi-cart {
    color: #ffffff !important;
}

/* botón */
.navbar .btn-outline-white {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

/* estilo para el badge, el numerito del carrito*/
.navbar .badge {
    background-color: #ff6f91 !important; /* Rosa para mantener la identidad */
    color: white !important;
}

/* efecto hover profesional para el carrito */
.navbar .btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05);
}



/* estilo para el botón circular del carrito */
.navbar-custom .btn-outline-white {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.logo-circle {
    width: 60px;  
    height: 60px;
    border-radius: 50%; 
    overflow: hidden;  
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #871926;
    background-color: #871926;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.category-img-container {
    position: relative;
    overflow: hidden;
    height: 250px; 
    background-color: #000;
    transition: all 0.3s ease;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.6;
    transition: all 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.category-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid white;
    padding: 10px 20px;
    z-index: 10;
    pointer-events: none;
}

.category-card:hover .category-img {
    opacity: 1;
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.1); 
}

.footer-custom {
    color: #e0e0e0; 
}

.footer-custom h5,
.footer-custom h6 {
    color: #ffffff;
}

.footer-custom p,
.footer-custom span {
    color: #cfcfcf;
}

.footer-custom a {
    color: #ff6f91;
}

.footer-custom a:hover {
    color: #ffc75f;
}

.footer-custom a.text-muted {
    color: #ffffff !important; 
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-custom a.text-muted:hover {
    color: #ff6f91 !important; 
    text-shadow: 0 0 5px rgba(255, 111, 145, 0.5);
    padding-left: 5px; 
}

/* Estenedor de la imagen */
.category-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: #000;
}

/* La imagen */
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    opacity: 0.6;
}

/* El filtro (Overlay) */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); 
    transition: all 0.5s ease;
}

.category-name {
    color: white;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 15px;
    z-index: 5;
}

/* --- EFECTO HOVER --- */

.category-card:hover .category-img {
    opacity: 1;
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0); 
}

.category-card:hover .category-name {
    background: white;
    color: black;
    border-color: white;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

.tableau-wrapper {
            position: relative;
            width: 100%;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .card-stats {
            transition: transform 0.3s ease;
        }
        .card-stats:hover {
            transform: translateY(-5px);
        }



@media (max-width: 768px) {

    /* Header */
    body {
        padding-top: 70px;
    }

    .logo-circle {
        width: 45px;
        height: 45px;
    }

    .navbar-brand span {
        font-size: 1.1rem !important;
    }

    /* categorías y cards */
    .category-img-container {
        height: 180px;
    }

    .category-name {
        font-size: 0.9rem;
        padding: 5px 10px;
        letter-spacing: 1px;
    }

    /* botón WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    /* 4. Footer */
    .footer-custom {
        text-align: center;
    }

    .footer-custom .text-md-start {
        text-align: center !important;
    }

    /* carrito y buscador */
    .navbar .btn-outline-white {
        margin-bottom: 10px;
    }
}

/* PANTALLAS EXTRA CHICAS */
@media (max-width: 400px) {
    .navbar-brand span {
        display: none;
    }
}