:root {
    --primary: #0092CC;
    --success: #00CC3A;
    --accent1: #CC0092;
    --accent2: #CC3A00;
    --accent3: #5500CC;
    --accent4: #BB00CC;
    --accent5: #CC0077;
    --accent6: #5b85e0ce;
    --accent7: #c447cf;
    --accent8: #cf9047;
    --discreto: #779;
    --dark: #333;
    --light: #f4f4f4;
    --rojo: #a11a1a;
    --ancho-menu: 60px;
    --admin-content: #444444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
    color: var(--dark);
}

/* Navegación */
header {
    background: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Grid de Productos */
.container {
    padding: 2rem 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}



.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* transition: transform 0.3s; */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animación simple al buscar */
.card[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 300px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #999;
}

.card-img img {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 15px;
}

/* Botones con colores de la paleta */

.btn-xxsm {
    position: relative;
    display: inline-block;
    padding: 3px 6px;
    border-radius: 2px;
    text-decoration: none;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-only-text {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border: none;
}

.btn-buy {
    background-color: var(--success);
}

.btn-view {
    background-color: var(--primary);
}

/* Secciones específicas */
.category-tag {
    display: inline-block;
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    margin-bottom: 10px;
}

/* Forzar el centro total plugin toastr */
.toast-center-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Estilos login */
.login-body {
    background: linear-gradient(135deg, #5500CC 0%, #CC0092 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.login-box h2 {
    color: #333;
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    font-size: 18px;
    background: rgb(191, 191, 204);
    transition: border-color 0.3s;
}

.login-box input:focus {
    border-color: var(--primary);
}

/* Layout del Administrador */
.admin-body {
    background: #f0f2f5;
    margin: 0;
    height: 100vh;
}

.admin-container {
    display: flex;
    height: 100vh;
    overflow-y: auto;
}

.sidebar {
    width: var(--ancho-menu);
    height: 100vh;
    /* background: #333; */
    background: var(--dark);
    display: flex;
    flex-direction: column;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    height: calc(100%);
    width: var(--ancho-menu);
}

.overflow-nav {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0c0909 #3b3b3b;
}

.overflow-nav::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.overflow-nav::-webkit-scrollbar-track {
    background: #3b3b3b;
    border-radius: 10px;
}

.overflow-nav::-webkit-scrollbar-thumb {
    background: #0c0909;
    /* Color de la barra movible */
    border-radius: 10px;
    /* Redondeado */
}

.overflow-nav::-webkit-scrollbar-thumb:hover {
    background: #0f0404;
    /* Color al pasar el mouse */
}

.admin-nav button {
    width: 100%;
    padding: 5px 15px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.admin-nav button:hover,
.admin-nav button.active {
    background: var(--accent3);
    white-space: nowrap;
    border-bottom-right-radius: 45px;
    border-top-right-radius: 45px;
    border-left: #0092CC solid 3px;
}

.admin-nav button:hover{
    filter: brightness(0.89);
}

.admin-content {
    flex-grow: 1;
    padding: 10px;
    background-color: var(--admin-content);
}

.admin-card {
    background: var(--dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.btn-admin-inicio {
    padding: 5px 21px;
    margin-left: 0px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
}

.btn-admin-inicio:hover {
    color: white;
    filter: brightness(0.9);
}

.btn-admin-salir {
    text-decoration: none;
    padding: 5px 21px;
    margin-left: 0px;
    cursor: pointer;
    font-size: 1rem;
    background: var(--rojo);
    color: #fff;
}

.btn-admin-salir:hover {
    color: white;
    filter: brightness(0.9);
}

.tab-content {
    /*Aquí iran los estilos de las tabs*/
}

.tab-content.active {
    display: block;
}

/* Tabla de Stock */
td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
}


/*  */

.banner-container {
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner-item {
    min-width: 100%;
    /* Cada imagen ocupa todo el ancho */
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    /* Evita que la imagen se deforme */
    display: block;
}


.banner-track {
    display: flex;
    /* Esto asegura el movimiento fluido hacia la izquierda */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}


/* El título en lugar estratégico */
.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    /* Oculto por defecto */
    transform: translateY(20px);
    transition: all 0.5s ease 0.4s;
    /* Aparece con retraso tras el scroll */
}

/* Clase activa para el título */
.banner-item.active .banner-caption {
    opacity: 1;
    transform: translateY(0);
}

/*  */
/* Botones de navegación */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    user-select: none;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Ajuste opcional para móviles */
@media (max-width: 600px) {
    .nav-btn {
        padding: 10px 5px;
        font-size: 1.5rem;
    }
}

/*  */

.table>tr>td {
    overflow-x: hidden;
}

.table img {
    height: 80px;
    width: auto;
}



/*  */

.contenedor-categoria-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.categoria-admin {
    margin: 0;
    padding: 3px;
}

/*  */

.table-scrolling {
    min-height: 100px;
    overflow: auto;
    resize: vertical;
    max-height: 66vh;
}

.table-scrolling thead {
    position: sticky;
    margin-bottom: 0;
    top: 0;
}