/*=========================================================
    TIENDA ONLINE 
    HOJA DE ESTILOS
==========================================================*/

/*=========================================================
    RESET
==========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:#f5f7fa;

    color:#333;

    line-height:1.5;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    border:none;

    cursor:pointer;

    transition:.30s;

}

input,
select,
textarea{

    outline:none;

    font-family:inherit;

}

/*=========================================================
    VARIABLES
==========================================================*/

:root{

    --colorPrincipal:#3f51b5;

    --colorSecundario:#5c6bc0;

    --colorExito:#28a745;

    --colorPeligro:#dc3545;

    --colorAdvertencia:#ffc107;

    --colorBlanco:#ffffff;

    --colorGris:#f1f3f4;

    --colorTexto:#333333;

    --colorBorde:#dddddd;

    --sombra:0 5px 15px rgba(0,0,0,.15);

    --radio:10px;

}

/*=========================================================
    CONTENEDORES
==========================================================*/

.container{

    width:95%;

    max-width:1400px;

    margin:auto;

}

.hidden{

    display:none;

}

.texto-restringido{

    color:#777;

    font-size:13px;

    font-weight:bold;

}

[data-rol-actual]{

    display:block;

    margin-top:4px;

    color:#e8eefc;

    font-size:13px;

    font-weight:bold;

    text-transform:capitalize;

}

.text-center{

    text-align:center;

}

/*=========================================================
    HEADER
==========================================================*/

header{

    width:100%;

    background:var(--colorPrincipal);

    color:white;

    padding:15px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:var(--sombra);

}

header h1{

    font-size:28px;

    font-weight:bold;

}

header nav{

    display:flex;

    gap:20px;

}

header nav a{

    color:white;

    font-weight:bold;

}

header nav a:hover{

    color:#ffe082;

}

/*=========================================================
    BOTONES
==========================================================*/

.btn-primary{

    background:var(--colorPrincipal);

    color:white;

    padding:12px 20px;

    border-radius:var(--radio);

}

.btn-primary:hover{

    background:var(--colorSecundario);

}

.btn-secondary{

    background:#607d8b;

    color:white;

    padding:12px 20px;

    border-radius:var(--radio);

}

.btn-secondary:hover{

    background:#455a64;

}

.btn-danger{

    background:var(--colorPeligro);

    color:white;

    padding:12px 20px;

    border-radius:var(--radio);

}

.btn-danger:hover{

    background:#b71c1c;

}

.btn-success{

    background:var(--colorExito);

    color:white;

    padding:12px 20px;

    border-radius:var(--radio);

}

.btn-success:hover{

    background:#1b5e20;

}

/*=========================================================
    MENU INFERIOR MOVIL
=========================================================*/

.mobile-bottom-nav{

    display:none;

}

/*=========================================================
    FORMULARIOS
==========================================================*/

.form-group{

    margin-bottom:20px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:bold;

}

.form-group input,

.form-group select{

    width:100%;

    padding:12px;

    border:1px solid var(--colorBorde);

    border-radius:var(--radio);

    transition:.3s;

}

.form-group input:focus,

.form-group select:focus{

    border:2px solid var(--colorPrincipal);

}

input:invalid{

    border-color:#ffb300;

}

input:valid{

    border-color:#4caf50;

}

/*=========================================================
    MENSAJES
==========================================================*/

.success{

    color:green;

    font-weight:bold;

}

.error{

    color:red;

    font-weight:bold;

}

.warning{

    color:#ff9800;

    font-weight:bold;

}

/*=========================================================
    ANIMACIONES
==========================================================*/

.fade{

    animation:fade .5s;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*=========================================================
    INDEX - TIENDA
==========================================================*/

.main-container{

    width:95%;

    max-width:1400px;

    margin:25px auto;

}

/*=========================================================
    BARRA DE BÚSQUEDA
==========================================================*/

.buscador{

    width:100%;

    display:flex;

    justify-content:center;

    margin-bottom:30px;

}

.buscador input{

    width:500px;

    max-width:100%;

    padding:14px;

    border-radius:30px;

    border:2px solid var(--colorPrincipal);

    font-size:16px;

}

.buscador input:focus{

    box-shadow:0 0 10px rgba(63,81,181,.30);

}

/*=========================================================
    PUNTOS DE GAMIFICACION
=========================================================*/

.puntos-gamificacion{

    width:min(320px,100%);

    margin:0 auto 24px;

    padding:18px;

    background:white;

    border-radius:15px;

    box-shadow:var(--sombra);

    text-align:center;

}

.puntos-gamificacion h3{

    color:var(--colorPrincipal);

    margin-bottom:8px;

}

.puntos-gamificacion p{

    color:var(--colorPrincipal);

    font-size:30px;

    font-weight:bold;

}

.recompensas-gamificacion{

    width:min(620px,100%);

    margin:0 auto 28px;

    padding:20px;

    background:white;

    border-radius:15px;

    box-shadow:var(--sombra);

}

.recompensas-gamificacion h3{

    color:var(--colorPrincipal);

    margin-bottom:16px;

    text-align:center;

}

.lista-recompensas{

    display:grid;

    gap:14px;

}

.recompensa{

    padding:14px;

    border:1px solid #e5e7eb;

    border-radius:12px;

    background:#f8f9ff;

}

.recompensa.completada{

    border-color:var(--colorExito);

    background:#eef8ef;

}

.recompensa-info{

    display:flex;

    justify-content:space-between;

    gap:12px;

    margin-bottom:10px;

}

.recompensa-info strong{

    color:#263238;

}

.recompensa-info span{

    color:var(--colorPrincipal);

    font-weight:bold;

    white-space:nowrap;

}

.recompensa.completada .recompensa-info span{

    color:var(--colorExito);

}

.barra-recompensa{

    height:9px;

    background:#e0e0e0;

    border-radius:999px;

    overflow:hidden;

}

.barra-recompensa span{

    display:block;

    height:100%;

    background:var(--colorPrincipal);

    border-radius:999px;

}

.recompensa.completada .barra-recompensa span{

    background:var(--colorExito);

}

/*=========================================================
    CATEGORÍAS
==========================================================*/

.categorias{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:35px;

}

.categorias button{

    padding:10px 20px;

    border-radius:30px;

    background:white;

    border:2px solid var(--colorPrincipal);

    color:var(--colorPrincipal);

    font-weight:bold;

}

.categorias button:hover{

    background:var(--colorPrincipal);

    color:white;

}

.categorias button.active{

    background:var(--colorPrincipal);

    color:white;

}

/*=========================================================
    GRID PRODUCTOS
==========================================================*/

.productos{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(260px,1fr));

    gap:25px;

}

/*=========================================================
    TARJETAS
==========================================================*/

.card-producto{

    background:white;

    border-radius:12px;

    overflow:hidden;

    box-shadow:var(--sombra);

    transition:.35s;

    display:flex;

    flex-direction:column;

}

.card-producto:hover{

    transform:translateY(-8px);

}

.card-producto img{

    width:100%;

    height:220px;

    object-fit:contain;

    background:#fafafa;

    padding:15px;

}

.card-body{

    padding:18px;

}

.card-body h3{

    font-size:18px;

    margin-bottom:12px;

    min-height:45px;

}

.card-body p{

    margin-bottom:10px;

}

.precio{

    font-size:24px;

    color:var(--colorPrincipal);

    font-weight:bold;

}

.categoria{

    display:inline-block;

    margin-top:8px;

    padding:5px 12px;

    background:#eceff1;

    border-radius:30px;

    font-size:13px;

}

/*=========================================================
    BOTÓN AGREGAR
==========================================================*/

.btn-agregar{

    width:100%;

    margin-top:18px;

    background:var(--colorPrincipal);

    color:white;

    padding:12px;

    border-radius:8px;

    font-size:15px;

}

.btn-agregar:hover{

    background:var(--colorSecundario);

    transform:scale(1.02);

}

/*=========================================================
    BADGE STOCK
==========================================================*/

.stock{

    display:inline-block;

    margin-top:10px;

    padding:4px 10px;

    border-radius:20px;

    background:#4caf50;

    color:white;

    font-size:12px;

}

.sin-stock{

    background:#d32f2f;

}

/*=========================================================
    CARRITO FLOTANTE
==========================================================*/

.panel-carrito{

    position:fixed;

    top:0;

    right:0;

    z-index:1500;

    width:min(430px,100%);

    height:100vh;

    display:flex;

    flex-direction:column;

    background:white;

    box-shadow:-10px 0 30px rgba(0,0,0,.25);

    transform:translateX(105%);

    transition:transform .3s ease;

    overflow:hidden;

}

.panel-carrito.abierto{

    transform:translateX(0);

}

.fondo-carrito{

    position:fixed;

    inset:0;

    z-index:1400;

    display:none;

    background:rgba(0,0,0,.48);

}

.fondo-carrito.activo{

    display:block;

}

.carrito-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:14px;

    padding:20px;

    border-bottom:1px solid #e5e7eb;

}

.carrito-header h2{

    color:var(--colorPrincipal);

}

.btn-cerrar-carrito{

    width:38px;

    height:38px;

    border-radius:50%;

    background:#eef2ff;

    color:var(--colorPrincipal);

    font-size:26px;

    line-height:1;

}

.lista-carrito{

    flex:1;

    overflow-y:auto;

    padding:18px;

}

.item-carrito{

    display:grid;

    grid-template-columns:72px 1fr auto;

    gap:12px;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid #eceff5;

}

.item-carrito .miniatura{

    width:72px;

    height:72px;

    border-radius:10px;

    object-fit:cover;

}

.detalle-item h4{

    color:var(--colorPrincipal);

    margin-bottom:4px;

}

.cantidad{

    display:flex;

    align-items:center;

    gap:8px;

    margin-top:8px;

}

.cantidad button,
.btn-eliminar{

    min-width:32px;

    height:32px;

    border-radius:8px;

    background:#eef2ff;

    color:var(--colorPrincipal);

    font-weight:bold;

}

.btn-eliminar{

    background:#ffebee;

    color:var(--colorPeligro);

}

.carrito-resumen{

    padding:18px 20px;

    border-top:1px solid #e5e7eb;

    background:#f8f9ff;

}

.fila-resumen{

    display:flex;

    justify-content:space-between;

    gap:12px;

    margin-bottom:10px;

}

.fila-resumen.total{

    color:var(--colorPrincipal);

    font-size:18px;

    font-weight:bold;

}

.acciones-carrito{

    display:flex;

    gap:12px;

    padding:0 20px 20px;

    background:#f8f9ff;

}

.acciones-carrito button{

    flex:1;

}

.carrito-abierto{

    overflow:hidden;

}

.toast-tienda{

    position:fixed;

    left:50%;

    bottom:28px;

    z-index:1800;

    max-width:min(420px,calc(100% - 32px));

    padding:14px 18px;

    border-radius:12px;

    background:var(--colorPrincipal);

    color:white;

    box-shadow:var(--sombra);

    font-weight:bold;

    text-align:center;

    transform:translate(-50%,20px);

    opacity:0;

    transition:.25s;

}

.toast-tienda.visible{

    transform:translate(-50%,0);

    opacity:1;

}

.toast-tienda.success{

    background:var(--colorExito);

}

.toast-tienda.error{

    background:var(--colorPeligro);

}

.toast-tienda.warning{

    background:#f59e0b;

}

.carrito-fijo{

    position:fixed;

    right:25px;

    bottom:25px;

    width:70px;

    height:70px;

    border-radius:50%;

    background:var(--colorPrincipal);

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:30px;

    cursor:pointer;

    box-shadow:var(--sombra);

    z-index:999;

}

.carrito-fijo:hover{

    transform:scale(1.1);

}

.contador-carrito{

    position:absolute;

    top:-5px;

    right:-5px;

    width:28px;

    height:28px;

    border-radius:50%;

    background:red;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:13px;

    font-weight:bold;

}

/*=========================================================
    MENSAJE SIN PRODUCTOS
==========================================================*/

.sin-productos{

    text-align:center;

    padding:50px;

    color:#666;

    font-size:22px;

}

/*=========================================================
    EFECTOS
==========================================================*/

.card-producto:hover img{

    transform:scale(1.05);

    transition:.35s;

}

.card-producto img{

    transition:.35s;

}

/*=========================================================
    LOGIN
==========================================================*/

.login-body{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#3f51b5,#5c6bc0);

}

.login-container{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px;

}

.login-card{

    width:420px;

    background:white;

    border-radius:15px;

    padding:35px;

    box-shadow:var(--sombra);

    animation:fade .5s;

}

.login-header{

    text-align:center;

    margin-bottom:30px;

}

.login-logo{

    width:min(180px,70%);

    max-height:130px;

    display:block;

    margin:0 auto 18px;

    object-fit:contain;

    border-radius:12px;

}

.login-header h1{

    color:var(--colorPrincipal);

    margin-bottom:10px;

}

.login-header p{

    color:#666;

}

.password-container{

    display:flex;

    align-items:center;

    position:relative;

}

.password-container input{

    padding-right:55px;

}

.btn-password{

    position:absolute;

    right:10px;

    background:none;

    border:none;

    font-size:22px;

    cursor:pointer;

}

.remember-session{

    margin:15px 0;

}

.btn-login{

    width:100%;

    padding:14px;

    border-radius:8px;

    background:var(--colorPrincipal);

    color:white;

    font-size:16px;

}

.btn-login:hover{

    background:var(--colorSecundario);

}

.login-message{

    text-align:center;

    margin-top:20px;

    font-weight:bold;

}

.login-footer{

    margin-top:30px;

    text-align:center;

    color:#888;

}

/*=========================================================
    MANTENIMIENTO
==========================================================*/

.mantenimiento-body{

    background:#eef2f7;

}

/*=========================================================
    HEADER ADMIN
==========================================================*/

.admin-header{

    background:var(--colorPrincipal);

    color:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 40px;

    box-shadow:var(--sombra);

}

.logo h1{

    font-size:28px;

}

.logo span{

    font-size:14px;

}

.admin-buttons{

    display:flex;

    gap:15px;

}

.admin-buttons a{

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

}

/*=========================================================
    CONTENEDOR
==========================================================*/

.contenedor-admin{

    width:95%;

    max-width:1450px;

    margin:30px auto;

    display:grid;

    grid-template-columns:360px 1fr;

    gap:30px;

}

/*=========================================================
    TARJETAS
==========================================================*/

.card-formulario,

.card-productos{

    background:white;

    border-radius:15px;

    padding:25px;

    box-shadow:var(--sombra);

}

.card-formulario h2,

.card-productos h2{

    margin-bottom:20px;

    color:var(--colorPrincipal);

}

/*=========================================================
    PREVIEW
==========================================================*/

.preview-container{

    width:100%;

    display:flex;

    justify-content:center;

    margin:20px 0;

}

.preview-container img{

    width:220px;

    height:220px;

    object-fit:contain;

    border:2px dashed #ccc;

    border-radius:10px;

    padding:10px;

    background:white;

}

/*=========================================================
    BOTONES FORMULARIO
==========================================================*/

.botones{

    display:flex;

    gap:15px;

    margin-top:25px;

}

.botones button{

    flex:1;

}

/*=========================================================
    CONTADOR
==========================================================*/

#contadorNombre{

    display:block;

    margin-top:5px;

    color:#666;

    text-align:right;

    font-size:12px;

}

/*=========================================================
    BUSCADOR TABLA
==========================================================*/

.titulo-tabla{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.titulo-tabla input{

    width:300px;

    padding:10px;

    border-radius:8px;

    border:1px solid #ccc;

}

.titulo-tabla input:focus{

    border:2px solid var(--colorPrincipal);

}

/*=========================================================
    TABLA DE PRODUCTOS
==========================================================*/

table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}

thead{

    background:var(--colorPrincipal);

    color:white;

}

thead th{

    padding:15px;

    text-align:center;

}

tbody td{

    padding:15px;

    border-bottom:1px solid #e5e5e5;

    text-align:center;

    vertical-align:middle;

}

tbody tr{

    transition:.30s;

}

tbody tr:hover{

    background:#f5f7ff;

}

/*=========================================================
    MINIATURA PRODUCTO
==========================================================*/

.miniatura{

    width:70px;

    height:70px;

    object-fit:contain;

    border-radius:8px;

    border:1px solid #ddd;

    background:white;

}

/*=========================================================
    BOTONES TABLA
==========================================================*/

.btn-editar{

    background:#2196f3;

    color:white;

    padding:8px 14px;

    border-radius:6px;

    margin-right:6px;

}

.btn-editar:hover{

    background:#1565c0;

}

.btn-eliminar{

    background:#e53935;

    color:white;

    padding:8px 14px;

    border-radius:6px;

}

.btn-eliminar:hover{

    background:#b71c1c;

}

/*=========================================================
    FOOTER
==========================================================*/

.footer-admin{

    background:var(--colorPrincipal);

    color:white;

    text-align:center;

    padding:20px;

    margin-top:40px;

}

/*=========================================================
    SCROLL PERSONALIZADO
==========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eeeeee;

}

::-webkit-scrollbar-thumb{

    background:var(--colorPrincipal);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--colorSecundario);

}

/*=========================================================
    LOADER
==========================================================*/

.loader{

    width:45px;

    height:45px;

    border:5px solid #ddd;

    border-top:5px solid var(--colorPrincipal);

    border-radius:50%;

    animation:girar 1s linear infinite;

    margin:auto;

}

@keyframes girar{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/*=========================================================
    EFECTOS
==========================================================*/

.card-formulario,

.card-productos,

.card-producto,

.login-card{

    transition:.35s;

}

.card-formulario:hover,

.card-productos:hover,

.card-producto:hover,

.login-card:hover{

    transform:translateY(-4px);

}

/*=========================================================
    RESPONSIVE TABLET
==========================================================*/

@media(max-width:992px){

    .contenedor-admin{

        grid-template-columns:1fr;

    }

    .titulo-tabla{

        flex-direction:column;

        gap:15px;

        align-items:flex-start;

    }

    .titulo-tabla input{

        width:100%;

    }

    .admin-header{

        flex-direction:column;

        gap:15px;

        text-align:center;

    }

}

/*=========================================================
    RESPONSIVE CELULAR
==========================================================*/

@media(max-width:768px){

    header{

        flex-direction:column;

        gap:15px;

    }

    header nav{

        flex-direction:column;

        align-items:center;

    }

    .productos{

        grid-template-columns:1fr;

    }

    .login-card{

        width:100%;

    }

    .botones{

        flex-direction:column;

    }

    .admin-buttons{

        flex-direction:column;

        width:100%;

    }

    .admin-buttons button,
    .admin-buttons a{

        width:100%;

    }

    table{

        display:block;

        overflow-x:auto;

        white-space:nowrap;

    }

    .preview-container img{

        width:180px;

        height:180px;

    }

}

/*=========================================================
    RESPONSIVE MÓVILES PEQUEÑOS
==========================================================*/

@media(max-width:480px){

    .card-formulario,

    .card-productos,

    .login-card{

        padding:18px;

    }

    h1{

        font-size:24px;

    }

    h2{

        font-size:20px;

    }

    .btn-primary,

    .btn-secondary,

    .btn-danger,

    .btn-success,

    .btn-login{

        width:100%;

    }

}

/*=========================================================
    BADGES PRODUCTOS
==========================================================*/

.badge-oferta{

    background:#e53935;

    color:white;

    padding:6px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:bold;

    z-index:10;

    box-shadow:0 3px 10px rgba(0,0,0,.25);

}

.badge-nuevo{

    background:#43a047;

    color:white;

    padding:6px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:bold;

    z-index:10;

    box-shadow:0 3px 10px rgba(0,0,0,.25);

}

.card-producto .badge-oferta{

    position:absolute;

    top:12px;

    left:12px;

}

.card-producto .badge-nuevo{

    position:absolute;

    top:12px;

    right:12px;

}

td .badge-oferta,
td .badge-nuevo{

    display:inline-block;

    margin:3px;

    position:static;

}

/*=========================================================
    TARJETA PRODUCTO
==========================================================*/

.card-producto{

    position:relative;

}

/*=========================================================
    PRECIO ANTERIOR
==========================================================*/

.precio-anterior{

    color:#999;

    text-decoration:line-through;

    font-size:15px;

    margin-top:12px;

}

/*=========================================================
    STOCK
==========================================================*/

.stock{

    display:inline-block;

    margin-top:12px;

    background:#43a047;

    color:white;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

}

.stock-bajo{

    display:inline-block;

    margin-top:12px;

    background:#fb8c00;

    color:white;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

    animation:pulsar 1s infinite;

}

.sin-stock{

    display:inline-block;

    margin-top:12px;

    background:#d32f2f;

    color:white;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

}

/*=========================================================
    BOTÓN AGOTADO
==========================================================*/

.btn-agregar:disabled{

    background:#bdbdbd;

    cursor:not-allowed;

    transform:none;

}

.btn-agregar:disabled:hover{

    background:#bdbdbd;

}

/*=========================================================
    ANIMACIÓN
==========================================================*/

@keyframes pulsar{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.05);

    }

    100%{

        transform:scale(1);

    }

}

/*=========================================================
    PULIDO MOVIL PROFESIONAL
=========================================================*/

@media(max-width:992px){

    .main-container,
    .contenedor-admin{

        width:92%;

    }

    .productos{

        grid-template-columns:
            repeat(auto-fit,minmax(220px,1fr));

        gap:20px;

    }

    .card-producto img{

        height:200px;

    }

}

@media(max-width:900px){

    body{

        overflow-x:hidden;

        padding-bottom:82px;

    }

    .mobile-bottom-nav{

        position:fixed;

        left:0;

        right:0;

        bottom:0;

        z-index:1200;

        display:grid !important;

        grid-template-columns:repeat(4,1fr);

        gap:0;

        padding:8px 10px calc(8px + env(safe-area-inset-bottom));

        background:var(--colorPrincipal);

        box-shadow:0 -6px 20px rgba(0,0,0,.22);

    }

    .mobile-bottom-nav a{

        min-height:52px;

        display:flex;

        flex-direction:column;

        align-items:center;

        justify-content:center;

        gap:3px;

        color:white;

        border-radius:12px;

        font-size:12px;

        font-weight:bold;

    }

    .mobile-bottom-nav a:hover{

        background:rgba(255,255,255,.14);

        color:#ffe082;

    }

    .mobile-bottom-nav span{

        font-size:20px;

        line-height:1;

    }

    header,
    .admin-header{

        padding:18px 16px;

    }

    header h1,
    .logo h1{

        font-size:24px;

        line-height:1.2;

        text-align:center;

    }

    header nav{

        width:100%;

        flex-direction:row;

        justify-content:center;

        flex-wrap:wrap;

        gap:10px;

    }

    header nav a{

        min-height:42px;

        display:flex;

        align-items:center;

        justify-content:center;

        padding:9px 12px;

        border-radius:999px;

        background:rgba(255,255,255,.12);

        font-size:14px;

    }

    .main-container{

        width:92%;

        margin:18px auto;

    }

    .tipo-cambio{

        padding:18px;

    }

    .buscador{

        margin-bottom:22px;

    }

    .buscador input,
    .titulo-tabla input,
    .form-group input,
    .form-group select{

        min-height:46px;

        font-size:16px;

    }

    .categorias{

        justify-content:flex-start;

        flex-wrap:nowrap;

        overflow-x:auto;

        padding:2px 2px 10px;

        margin-bottom:24px;

        scroll-snap-type:x proximity;

    }

    .categorias button{

        flex:0 0 auto;

        min-height:42px;

        padding:9px 16px;

        scroll-snap-align:start;

    }

    .productos{

        grid-template-columns:1fr;

        gap:18px;

    }

    .card-producto{

        border-radius:10px;

    }

    .card-producto:hover,
    .card-formulario:hover,
    .card-productos:hover,
    .login-card:hover{

        transform:none;

    }

    .card-producto:hover img{

        transform:none;

    }

    .card-producto img{

        height:190px;

        padding:12px;

    }

    .card-body{

        padding:16px;

    }

    .card-body h3{

        min-height:auto;

        line-height:1.35;

    }

    .precio{

        font-size:22px;

    }

    .btn-agregar,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-success,
    .btn-login{

        min-height:46px;

        font-size:15px;

    }

    .panel-carrito{

        scroll-margin-top:20px;

    }

    .acciones-carrito{
 
        gap:10px;
 
        flex-direction:column;

    }

    .panel-carrito{

        width:100%;

    }

    .item-carrito{

        grid-template-columns:64px 1fr auto;

    }

    .item-carrito .miniatura{

        width:64px;

        height:64px;

    }

    .toast-tienda{

        bottom:92px;

    }

    .carrito-fijo{

        right:16px;

        bottom:92px;

        width:58px;

        height:58px;

        font-size:24px;

    }

    .contador-carrito{

        width:24px;

        height:24px;

        font-size:12px;

    }

    .footer-contenedor{

        grid-template-columns:1fr;

        gap:24px;

        text-align:center;

    }

    .login-container{

        min-height:100vh;

        padding:20px;

        align-items:flex-start;

    }

    .login-card{

        margin-top:24px;

        padding:26px 22px;

        border-radius:12px;

    }

    .contenedor-admin{

        width:92%;

        margin:18px auto;

        gap:18px;

    }

    .card-formulario,
    .card-productos{

        padding:20px;

        border-radius:12px;

    }

    .admin-buttons{

        gap:10px;

    }

    .preview-container img{

        width:170px;

        height:170px;

    }

    table{

        border:1px solid #e5e7eb;

        border-radius:10px;

    }

    thead th,
    tbody td{

        padding:12px;

    }

    .btn-editar,
    .btn-eliminar{

        min-height:38px;

        margin:3px;

        padding:8px 12px;

    }

}

@media(max-width:480px){

    header,
    .admin-header{

        padding:16px 12px;

    }

    header nav{

        gap:8px;

    }

    header nav a{

        flex:1 1 calc(50% - 8px);

        max-width:170px;

        font-size:13px;

    }

    .main-container,
    .contenedor-admin{

        width:94%;

    }

    .tipo-cambio,
    .recompensas-gamificacion,
    .card-formulario,
    .card-productos,
    .login-card{

        padding:16px;

    }

    .buscador input{

        border-radius:14px;

        padding:12px 14px;

    }

    .categorias{

        gap:8px;

    }

    .recompensa-info{

        flex-direction:column;

        gap:6px;

    }

    .recompensa-info span{

        white-space:normal;

    }

    .categorias button{

        font-size:13px;

        padding:8px 14px;

    }

    .card-producto img{

        height:165px;

    }

    .badge-oferta,
    .badge-nuevo{

        padding:5px 9px;

        font-size:11px;

    }

    .acciones-carrito,
    .botones{

        flex-direction:column;

    }

    .footer-principal{

        padding-bottom:82px;

    }

    .footer-columna p,
    .footer-columna a,
    .copyright{

        overflow-wrap:anywhere;

    }

    .login-header{

        margin-bottom:22px;

    }

    .login-footer{

        margin-top:22px;

    }

    .titulo-tabla{

        gap:12px;

    }

    .miniatura{

        width:58px;

        height:58px;

    }

}

@media(hover:none){

    .card-producto:hover,
    .card-formulario:hover,
    .card-productos:hover,
    .login-card:hover,
    .btn-agregar:hover,
    .carrito-fijo:hover{

        transform:none;

    }

}
    
