:root {
    --bg-color: #0d1117;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #00ffdf;
    --secondary: #9d00ff;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --danger: #ff4444;
    --whatsapp: #25D366;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image: radial-gradient(circle at top left, rgba(157, 0, 255, 0.15), transparent 40%),
                      radial-gradient(circle at bottom right, rgba(0, 255, 223, 0.1), transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Glassmorphism Header & Nav */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-header.nav-active {
    z-index: 1001; /* Lo subimos para que el nav no quede debajo del blur */
}

.btn-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.btn-cart-nav {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.3s, transform 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cart-nav.icon-only {
    padding: 0.6rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    justify-content: center;
    position: relative;
    font-size: 1.1rem;
}

.btn-cart-nav.icon-only i {
    margin: 0;
}

.btn-cart-nav:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}



/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero */
.hero {
    text-align: center;
    margin: 4rem 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Sections */
.category-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forzado a 2 por renglón en Desktop */
    gap: 2rem; /* Más espacio entre sí */
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 223, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: rgba(255,255,255, 0.05);
    padding: 10px;
    object-fit: contain;
}

.card h3 {
    font-size: 1.5rem;
}

.card-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.requirements-text {
    font-size: 0.8rem;
    color: #ffb86c;
    background: rgba(255, 184, 108, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid #ffb86c;
}

.requirements-text i {
    margin-right: 5px;
}

.includes-list {
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.includes-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.includes-list li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Selectors in Card */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.select-modern {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65em auto;
}

.select-modern:focus {
    border-color: var(--primary);
}

.select-modern option {
    background: var(--bg-color);
}

/* Buttons */
.btn-glow {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.3s, transform 0.2s;
    font-size: 1rem;
    width: 100%;
}

.btn-glow:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.btn-add {
    margin-top: auto;
}

.badge {
    background: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.btn-cart-nav.icon-only .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin: 0;
}

/* Sidebar Cart */
.sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-color);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.item-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-price {
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
}

.remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--primary);
}

/* Reviews Section */
.reviews-section {
    margin: 5rem auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.reviews-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.author-avatar.lc { background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%); }
.author-avatar.cf { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); }
.author-avatar.mg { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.author-info h4 {
    font-size: 1rem;
    margin: 0;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--primary);
}


/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: white;
}

/* Footer Section */
.site-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-how-it-works h3, .footer-guarantee h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.steps-list {
    list-style: none;
}

.steps-list li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.steps-list li strong {
    color: var(--text-main);
    display: inline-block;
    margin-bottom: 0.2rem;
}

.steps-list li span {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    margin-right: 10px;
}

.footer-guarantee {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 223, 0.05);
}

.guarantee-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-guarantee p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

/* --- Checkout Aviso Modal --- */
.aviso-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: rgba(20, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 2.5rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 223, 0.2);
}

.aviso-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.aviso-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.aviso-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.aviso-modal p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.aviso-modal p strong {
    color: var(--primary);
}

.btn-confirm-whatsapp {
    background: var(--whatsapp);
    color: white;
    font-size: 1.2rem;
}

.btn-confirm-whatsapp:hover {
    background: #20b858;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* --- JetBrains Show More --- */
.btn-show-more {
    margin: 2rem auto;
    display: block;
    width: fit-content;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-show-more:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.hidden-product {
    display: none !important;
}

.hidden-product.show {
    display: flex !important;
    animation: fadeIn 0.5s ease;
}

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


@media (max-width: 768px) {
    .glass-header {
        padding: 1rem 1.5rem;
    }
    
    .btn-hamburger {
        display: block;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        max-width: 80vw;
        height: 100dvh; /* dvh evita bugs en la barra inferior de iOS/Android */
        min-height: 100vh;
        overflow-y: auto; /* Por si el contenido es mas largo */
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(15px);
        border-right: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 1001;
        gap: 0;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }

    .nav-header-mobile .logo {
        position: static;
        transform: none;
        font-size: 1.5rem;
    }

    .close-nav-btn {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }

    .main-nav a {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .container { padding: 1rem; }
    .hero { margin: 2rem 0 1.5rem; }
    .hero h1 { 
        font-size: 1.5rem; 
        line-height: 1.2;
        margin-bottom: 0.5rem; 
        word-wrap: normal;
        overflow-wrap: normal;
    }
    .hero p { font-size: 0.8rem; padding: 0; }
    .category-title { font-size: 1.2rem; margin-bottom: 1rem; }
    .card h3 { font-size: 1.1rem; }

    /* Reducción de modales en móvil */
    .aviso-modal {
        padding: 1rem;
        width: 95%;
    }
    .aviso-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .aviso-modal h2 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    .aviso-modal p {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
    }

    /* Corrección del formulario de carrito muy al fondo */
    .cart-items-container {
        padding: 1rem;
        flex-grow: 0;
        max-height: 40vh;
    }
    .cart-footer {
        padding: 1rem;
        margin-top: auto; 
    }
}

@media (min-width: 769px) {
    .nav-header-mobile {
        display: none;
    }
}