:root {
    --color-bg: #111;
    --color-surface: #1f1f1f;
    --color-surface-2: #222;
    --color-border: #2b2b2b;
    --color-accent: #00c896;
    --color-accent-2: #00e0a8;
    --color-text: #fff;
    --color-muted: #aaa;
    --shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:var(--color-bg);
    color:var(--color-text);
}

button,
input,
select,
textarea{
    font:inherit;
}

button{
    border:none;
    cursor:pointer;
    transition:all 0.3s ease;
}

a:hover,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header{

    background:#1a1a1a;
    border-bottom:1px solid #2b2b2b;
    padding:20px;

}

.header-superior{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

}

.banner{

    flex:1;
    text-align:center;

}

.banner h1{

    color:#00c896;
    font-size:32px;
    letter-spacing:1px;
    margin:0;

}

.icono-mobile{

    display:none;
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:#222;
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
    position:relative;

}

.icono-mobile:hover{

    background:#00c896;
    color:#111;
    transform:scale(1.05);

}

#contadorCarrito{

    position:absolute;
    top:-6px;
    right:-6px;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:20px;
    background:#ff3b30;
    color:white;
    display:none;
    justify-content:center;
    align-items:center;
    font-size:12px;
    font-weight:bold;
    box-shadow:0 0 10px rgba(255,59,48,.5);
    transition:.3s;

}

nav ul{
    display:flex;
    justify-content:center;
    gap:25px;
    list-style:none;
    margin-top:10px;
    margin-bottom:15px;
    flex-wrap:wrap;
}

nav a{
    color:#ccc;
    text-decoration:none;
    transition:0.3s;
    font-size:14px;
}

nav a:hover{
    color:#00c896;
}

.search-bar{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:15px;
    flex-wrap:wrap;
}

.search-bar input{
    padding:10px 15px;
    border-radius:30px;
    border:none;
    width:250px;
    background:#222;
    color:white;
    outline:none;
    transition:0.3s;
}

.search-bar input:focus{
    box-shadow:0 0 10px rgba(0,200,150,0.5);
}

.search-bar input::placeholder{
    color:#aaa;
}

.search-bar button,
#btnMostrarTodo,
#btnMostrarTipoCambio,
.cart button,
.product button,
.modal-botones button,
#btnAceptarModal,
#btnCancelarModal{
    border-radius:30px;
    color:white;
    font-weight:bold;
    transition:0.4s;
}

.search-bar button,
#btnMostrarTodo,
#btnMostrarTipoCambio,
.cart button,
.product button{
    background:linear-gradient(45deg,#00c896,#00e0a8,#00c896);
    background-size:200%;
}

.search-bar button:hover,
#btnMostrarTodo:hover,
#btnMostrarTipoCambio:hover,
.cart button:hover,
.product button:hover{
    background-position:right;
    transform:translateY(-3px);
    box-shadow:0 0 15px rgba(0,200,150,0.6);
}

.search-bar button{
    padding:10px 18px;
}

main{
    display:grid;
    grid-template-columns:220px 1fr 240px;
    gap:20px;
    padding:20px;
}

.categories,
.cart{
    background:#1f1f1f;
    padding:20px;
    border-radius:15px;
    box-shadow:0 0 10px rgba(0,0,0,0.4);
}

.categories h2,
.cart h2{
    margin-bottom:15px;
    color:#00c896;
}

.categories ul,
.cart ul{
    list-style:none;
    padding-left:0;
}

.categories li,
.cart li{
    margin-bottom:10px;
    padding:10px;
    border-radius:8px;
    background:#2a2a2a;
    transition:0.3s;
    position:relative;
}

.categoryList li{
    cursor:pointer;
    width:100%;
    display:block;
    border:none;
    text-align:center;
    background:linear-gradient(45deg,#00c896,#00e0a8,#00c896);
    background-size:200%;
    color:#fff;
    font-weight:bold;
    border-radius:30px;
    padding:10px 15px;
    margin-bottom:10px;
    transition:0.4s;
}

.categoryList li:hover{
    background-position:right;
    transform:translateY(-2px);
    box-shadow:0 0 12px rgba(0,200,150,0.5);
}

.categoryList li.active{
    background:#00c896;
    color:#111;
    font-weight:bold;
}

#btnMostrarTodo{
    width:100%;
    margin-bottom:10px;
    padding:10px 15px;
}

.gallery{
    background:#181818;
    padding:20px;
    border-radius:15px;
    box-shadow:0 0 10px rgba(0,0,0,0.4);
}

.gallery h2{
    margin-bottom:20px;
    color:#00c896;
}

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:25px;
}

.product{
    background:#222;
    padding:15px;
    border-radius:15px;
    text-align:center;
    transition:all 0.3s ease;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    box-shadow:0 0 10px rgba(0,0,0,0.3);
}

.product:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 20px rgba(0,0,0,0.6);
}

.product img{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:10px;
}

.product h3{
    margin-top:12px;
    margin-bottom:8px;
    color:#fff;
    font-size:18px;
}

.product p{
    color:#00c896;
    font-size:18px;
    font-weight:bold;
}

.product button{
    margin-top:15px;
    padding:10px 15px;
    letter-spacing:0.5px;
}

.product button:active{
    transform:scale(0.95);
}

.cart-items li{
    font-size:14px;
    animation:aparecer 0.4s ease;
}

#totalCarrito{
    margin-top:15px;
    font-size:18px;
    font-weight:bold;
    color:#00c896;
}

.cart button{
    margin-top:15px;
    width:100%;
    padding:12px;
}

footer{
    background:#1a1a1a;
    padding:20px;
    margin-top:20px;
    border-top:1px solid #2b2b2b;
}

.bottom-menu ul{
    display:flex;
    justify-content:center;
    gap:20px;
    list-style:none;
    flex-wrap:wrap;
}

.bottom-menu a{
    color:#aaa;
    text-decoration:none;
    transition:0.3s;
}

.bottom-menu a:hover{
    color:#00c896;
}

@keyframes aparecer{

    from{
        opacity:0;
        transform:translateX(-10px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@media (max-width:1024px){

    main{
        grid-template-columns:1fr;
    }

    .categories{
        order:1;
    }

    .gallery{
        order:2;
    }

    .cart{
        order:3;
    }

    .search-bar{
        flex-direction:column;
        align-items:center;
    }

    .search-bar input,
    .search-bar button{
        width:100%;
        max-width:320px;
    }

    .products{
        grid-template-columns:1fr;
    }

    nav ul{
        flex-direction:column;
        gap:15px;
    }

    .header-superior{

        gap:10px;

    }

    .icono-mobile{

        display:flex;

        justify-content:center;

        align-items:center;

    }

    .banner h1{

        font-size:24px;

    }

}

.separador{
    margin:20px 0;
    border:none;
    height:1px;
    background:#333;
}

#btnMostrarTipoCambio{
    width:100%;
    margin-top:15px;
    padding:12px;
}

#resultadoTipoCambio{
    margin-top:15px;
    background:#252525;
    border:1px solid #333;
    border-radius:10px;
    padding:10px;
}

#estadoTipoCambio{
    color:#00e0a8;
    margin-bottom:10px;
    font-size:14px;
    font-weight:bold;
}

#listaTipoCambio{
    list-style:none;
    padding:0;
}

#listaTipoCambio li{
    background:#2a2a2a;
    padding:10px;
    border-radius:8px;
    margin-bottom:8px;
    border-left:4px solid #00c896;
    color:white;
}

.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 9999;
}

.modal.activo{
    opacity: 1;
    visibility: visible;
}

.modal-contenido{

    width: 420px;
    max-width: 90%;
    background: #1f1f1f;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    border: 1px solid #2d2d2d;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    animation: zoom .3s ease;

}

.modal-contenido h2{

    color: #00c896;
    margin-bottom: 15px;
    font-size: 28px;

}

.modal-contenido p{

    color: #ddd;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;

}

.modal-botones{

    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;

}

.modal-botones button{

    min-width: 120px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;

}

#btnCancelarModal{

    background: #444;
    color: white;

}

#btnCancelarModal:hover{

    background: #666;

}

#btnAceptarModal{

    background: linear-gradient(
        45deg,
        #00c896,
        #00e0a8,
        #00c896
    );

    background-size: 200%;
    color: white;

}

#btnAceptarModal:hover{

    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0,200,150,.6);

}

@keyframes zoom{

    from{

        transform: scale(.8);
        opacity: 0;

    }

    to{

        transform: scale(1);
        opacity: 1;

    }

}

@media (max-width:480px){

    .modal-contenido{

        width:95%;
        padding:20px;

    }

    .modal-contenido h2{

        font-size:24px;

    }

    .modal-contenido p{

        font-size:15px;

    }

    .modal-botones{

        flex-direction:column;

    }

    .modal-botones button{

        width:100%;

    }

}
.mobile-buttons{

    display:none;

}

@media (max-width:768px){

    .mobile-buttons{

        display:flex;
        justify-content:space-between;
        gap:10px;
        margin:20px 0;

    }

    .mobile-buttons button{

        flex:1;
        padding:12px;
        border:none;
        border-radius:30px;
        background:linear-gradient(
            45deg,
            #00c896,
            #00e0a8,
            #00c896
        );
        background-size:200%;
        color:white;
        font-weight:bold;
        cursor:pointer;
        transition:.3s;

    }

    .mobile-buttons button:hover{

        background-position:right;

    }

}

@media (max-width:768px){

    #panelCategorias{

        position:fixed;
        top:0;
        left:-320px;
        width:300px;
        height:100vh;
        background:#1f1f1f;
        z-index:9999;
        overflow-y:auto;
        transition:left .35s ease;
        padding:20px;
        box-shadow:5px 0 20px rgba(0,0,0,.5);

    }

    #panelCategorias.activo{

        left:0;

    }

}

@media (max-width:768px){

    #panelCarrito{

        position:fixed;

        top:0;
        right:-320px;
        width:300px;
        height:100vh;
        background:#1f1f1f;
        z-index:9999;
        overflow-y:auto;
        transition:right .35s ease;
        padding:20px;
        box-shadow:-5px 0 20px rgba(0,0,0,.5);

    }

    #panelCarrito.activo{

        right:0;

    }

}

#overlayMobile{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9000;

}

#overlayMobile.activo{

    opacity:1;
    visibility:visible;

}

.btnCerrarPanel{

    display:none;

}

@media (max-width:768px){

    .btnCerrarPanel{

        display:block;
        margin-left:auto;
        margin-bottom:15px;
        width:40px;
        height:40px;
        border:none;
        border-radius:50%;
        background:#333;
        color:white;
        font-size:20px;
        cursor:pointer;
        transition:.3s;

    }

    .btnCerrarPanel:hover{

        background:#00c896;
        color:#111;

    }

}