:root {
    --primary: #25d366;
    --dark-bg: #0f172a; 
    --glass: rgba(255, 255, 255, 0.05);
    --text-light: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { 
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-light);
    padding-bottom: 140px; 
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

header h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: 3px; }
header p { opacity: 0.7; font-size: 0.9rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* ESTILOS DATOS DE USUARIO */
.user-data-box {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus { border-color: var(--primary); background: rgba(0,0,0,0.4); }

/* PRODUCTOS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.price-tag { color: var(--primary); font-weight: 700; font-size: 1.4rem; margin-bottom: 10px; display: block; }

.btn-add {
    width: 100%; background: white; color: var(--dark-bg); border: none;
    padding: 12px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-add:hover { background: var(--primary); color: white; }

/* BARRA FLOTANTE */
.cart-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 550px;
    background: white;
    color: #0f172a;
    padding: 15px 25px;
    border-radius: 20px;
    display: none; 
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 9999;
}

.cart-left { display: flex; align-items: center; gap: 15px; }
.badge { background: #ef4444; color: white; padding: 5px 12px; border-radius: 10px; font-weight: 700; }

.btn-clear {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-clear:hover { background: #ef4444; color: white; }

.btn-order {
    background: var(--primary); color: white; padding: 12px 25px;
    border-radius: 15px; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px;
}

footer { text-align: center; padding: 40px; color: #64748b; font-size: 0.8rem; }

@media (max-width: 600px) { 
    .user-data-box { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; } 
}
footer {
    text-align: center;
    padding: 60px 20px 40px; 
    color: #64748b;
    font-size: 0.8rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.dev-contact span {
    display: block;
    margin-bottom: 5px;
    opacity: 0.6;
}

.dev-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dev-contact a:hover {
    text-shadow: 0 0 10px var(--primary);
    transform: scale(1.05);
}
