:root {
    --bg-color: #0d1117;
    --text-color: #f0f6fc;
    --primary: #58a6ff;
    --primary-hover: #3182ce;
    --glass-bg: rgba(22, 27, 34, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --amazon: #ff9900;
    --aliexpress: #ff4747;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(88, 166, 255, 0.2);
    top: -100px;
    left: -100px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 71, 71, 0.15);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}
.logo span { color: var(--primary); }

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}
nav a:hover { color: var(--primary); }

.cta-nav {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}
.cta-nav:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    text-align: center;
}

.hero-content {
    padding: 3rem;
    border-radius: 24px;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #8ab4f8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #a1a1aa;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.5);
}

/* Categorias y Grillas */
.category-section {
    padding: 4rem 5%;
}

.category-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
    color: #f0f6fc;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tarjeta de Producto */
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.3);
}

.p-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    background-color: #21262d;
    background-size: cover;
    background-position: center;
}

.p-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.p-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.p-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}
.p-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: filter 0.2s;
    font-size: 0.95rem;
}

.p-btn:hover { filter: brightness(1.15); }

.btn-amazon { background-color: var(--amazon); color: #000; }
.btn-ali { background-color: var(--aliexpress); color: #fff; }

/* Product Details Expansion */
.p-header { display: flex; flex-direction: column; gap: 0.5rem; }
.p-toggle-wrapper { margin-top: 1rem; text-align: center; }
.toggle-btn {
    background: transparent; color: var(--primary); border: 1px solid var(--primary);
    padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer;
    font-weight: 600; transition: all 0.3s; font-size: 0.9rem; width: 100%;
}
.toggle-btn:hover { background: var(--primary); color: #fff; }
.p-details {
    display: none; flex-direction: column; gap: 1.5rem;
}
.p-details.expanded {
    display: flex; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.details-section h4 { font-size: 1.05rem; color: #8ab4f8; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.review-item { font-size: 0.9rem; font-style: italic; color: #c9d1d9; padding: 0.6rem; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 0.5rem; border-left: 2px solid #8ab4f8;}
.details-section p { font-size: 0.95rem; color: #c9d1d9; line-height: 1.5; }
.verdict p { color: #f0f6fc; font-weight: 600; background: linear-gradient(90deg, rgba(88,166,255,0.1) 0%, transparent 100%); padding: 1rem; border-left: 4px solid var(--primary); border-radius: 4px; }

/* Footer */
.glass-footer {
    padding: 2rem;
    text-align: center;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Responsive Options */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    nav ul { display: none; }
    .cta-nav { display: none; }
}
