* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #eef2f3, #dfe9f3);
    color: #333;
    padding-bottom: 100px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-btn {
    font-size: 32px;
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    margin-right: 15px;
    transition: .3s;
}

.menu-btn:hover {
    transform: scale(1.2);
}

.titulo {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a73e8;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -270px;
    width: 270px;
    height: 100%;
    background: #ffffff;
    padding: 30px 20px;
    transition: left .4s ease;
    box-shadow: 5px 0 20px rgba(0,0,0,0.2);
    z-index: 20;
}

.drawer.open {
    left: 0;
}

.drawer-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a73e8;
}

.drawer ul {
    list-style: none;
}

.drawer ul li {
    margin: 18px 0;
}

.drawer ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    transition: .3s;
}

.drawer ul li a:hover {
    color: #1a73e8;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    z-index: 15;
}

.overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Productos */
.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    padding: 40px;
}

/* Tarjetas */
.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: .4s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.img-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s ease;
}

.card:hover img {
    transform: scale(1.15);
}

.info {
    padding: 15px;
    text-align: center;
}

.info h3 {
    font-size: 1.4rem;
    color: #1a73e8;
}

.precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0a8f47;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    animation: zoomIn .4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.cerrar {
    float: right;
    font-size: 30px;
    cursor: pointer;
    color: #1a73e8;
}

#modal-precio {
    font-size: 1.6rem;
    margin: 10px 0;
    color: #0a8f47;
}

.btn-comprar {
    background: #1a73e8;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .3s;
}

.btn-comprar:hover {
    background: #0a58c7;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #1a73e8;
    color: #fff;
    font-size: 1.2rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}