/* ==========================================================================
   1. VARIABLES Y CONFIG (CORE)
   Aqui defino los colores "Cyber Aurora" que me molan
   ========================================================================== */
:root {
    /* Fuerzo tema oscuro pal navegador */
    color-scheme: dark;

    /* PALETA DE COLORES */
    --bg-color: #030305;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);

    --accent-primary: #00f3ff;
    /* CIAN NEON */
    --accent-secondary: #6b148a;
    /* VIOLETA */
    --accent-glow: rgba(0, 243, 255, 0.3);
    /* Brillo del Cian */

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* FUENTES */
    --font-main: 'Inter', sans-serif;
    /* Texto normal */
    --font-code: 'JetBrains Mono', monospace;
    /* Numeros y precios */
}

/* ==========================================================================
   2. RESET Y BASES
   Pa que se vea igual en todos los laos
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* El important es pa que ningun plugin me cambie el fondo */
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;

    /* Evito que el opera gx me invierta los colores */
    filter: none !important;
}

/* Pa que las imagenes no se inviertan */
img,
video,
iframe,
canvas {
    filter: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* FONDO CON IMAGEN FIJA */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background:
        /* Capa de arriba: Gradiente oscuro */
        linear-gradient(90deg, rgba(3, 3, 5, 0.95) 0%, rgba(3, 3, 5, 0.7) 45%, rgba(107, 20, 138, 0.1) 100%),
        /* Capa de abajo: Imagen de fondo */
        url('Images/Fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   3. BARRA DE NAVEGACION (NAVBAR)
   Diseño en 3 columnas: Logo | Menu | Iconos
   ========================================================================== */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 40px;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(15px);
    /* Efecto cristal */
    border-bottom: 1px solid var(--card-border);
    position: fixed;
    width: 100%;
    z-index: 100;
    height: 80px;
}

/* 3.1 LOGO */
.nav-brand {
    justify-self: start;
}

.logo-text {
    font-family: var(--font-code);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: white;
}

.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* 3.2 MENU CENTRAL */
.nav-center {
    justify-self: center;
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-center a {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--accent-primary);
}

/* Puntito brillante debajo del activo */
.nav-center a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-primary);
}

/* 3.3 ICONOS DERECHA */
.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-code);
    font-size: 0.85rem;
}

/* ==========================================================================
   4. MENUS DESPLEGABLES (IDIOMA Y CARRO)
   ========================================================================== */

/* --- A. SELECTOR IDIOMA --- */
.lang-menu-wrapper {
    position: relative;
    display: inline-block;
}

.lang-selector {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.lang-selector:hover {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.lang-dropdown-list {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #050505;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    min-width: 180px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown-list.active {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.lang-dropdown-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.lang-dropdown-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 20px;
    border-left: 3px solid var(--accent-primary);
}

.lang-dropdown-list li.active-lang {
    background: var(--accent-primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 15px var(--accent-glow);
}

.lang-dropdown-list li img {
    width: 20px;
    border-radius: 2px;
}

/* Scrollbar personalizada */
.lang-dropdown-list::-webkit-scrollbar,
.cart-items-container::-webkit-scrollbar,
.payments-list-container::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown-list::-webkit-scrollbar-thumb,
.cart-items-container::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 10px;
}

/* --- B. CARRITO --- */
.cart-menu-wrapper {
    position: relative;
    display: inline-block;
}

.cart-selector {
    cursor: pointer;
    color: var(--text-main);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-selector:hover {
    color: var(--accent-primary);
}

.cart-dropdown-panel {
    position: absolute;
    top: 140%;
    right: 0;
    width: 350px;
    background: #0a0a0c;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-dropdown-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-code);
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.empty-cart-msg {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Estilo del Item en el Carrito */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
    position: relative;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
}

.cart-item-desc {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: bold;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.9rem;
    align-self: center;
    padding: 5px;
    opacity: 0.6;
    transition: 0.2s;
}

.remove-item-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-primary);
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: white;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* =========================================
   11.b CUPON Y TOTALES DEL CARRO
   ========================================= */

.cart-footer-actions {
    background: #0f0f12;
    border-top: 1px solid var(--card-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Seccion Cupon */
.coupon-section {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-code);
    outline: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.coupon-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.coupon-btn {
    background: var(--card-border);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.coupon-btn:hover {
    background: var(--accent-primary);
    color: black;
}

.coupon-msg {
    font-size: 0.75rem;
    margin-top: -10px;
    font-family: var(--font-main);
}

.coupon-msg.success {
    color: #2ecc71;
}

.coupon-msg.error {
    color: #ff4757;
}

/* Desglose de Precios */
.cart-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-row.discount-row {
    color: #2ecc71;
    /* Verde pal descuento */
}

.summary-row.total-row {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    margin-top: 5px;
    padding-top: 5px;
}

/* --- C. BOTON LOGIN --- */
.login-btn {
    background: var(--card-bg);
    border: 1px solid var(--accent-secondary);
    padding: 8px 20px;
    border-radius: 6px;
    color: white;
    box-shadow: 0 0 10px rgba(107, 20, 138, 0.2);
    font-weight: bold;
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(107, 20, 138, 0.6);
}

/* ==========================================================================
   5. SECCION HERO (PORTADA)
   ========================================================================== */
.hero-container {
    padding: 147px 0 50px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90vh;
    position: relative;
    flex-wrap: wrap;
    gap: 40px;
}

/* Texto Izquierda */
.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-badge {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -2px;
}

.glitch-text {
    background: linear-gradient(90deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Botones CTA */
.cta-group {
    display: flex;
    gap: 20px;
}

.cta-button {
    padding: 15px 30px;
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button.primary {
    background: var(--accent-primary);
    color: black;
    border: 1px solid var(--accent-primary);
}

.cta-button.primary:hover {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--card-border);
}

.cta-button.secondary:hover {
    background: var(--card-bg);
    border-color: white;
}

/* Widgets Derecha */
.hero-widgets {
    flex: 0.8;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    padding: 50px 60px 50px 100px;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
}

.cyber-widget {
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.cyber-widget:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Widget Pagos */
.widget-header {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-item:last-child {
    border-bottom: none;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 8px;
}

.pay-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pay-user {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.pay-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pay-price {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-weight: bold;
}

.widget-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 10px;
    margin-top: 10px;
    text-align: center;
}

.view-all-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.view-all-btn:hover {
    color: white;
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Widget Destacado */
.featured-product {
    position: relative;
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.featured-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    display: block;
}

.featured-info {
    padding: 15px;
    position: relative;
    bottom: 10px;
}

.featured-info h4 {
    margin-bottom: 5px;
}

.featured-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.widget-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-secondary);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
}

/* ==========================================================================
   6. MARQUEE (CINTA DE TEXTO)
   ========================================================================== */
.marquee-container {
    background: var(--accent-primary);
    color: #000;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.marquee-content {
    display: inline-block;
    animation: scrollText 20s linear infinite;
}

.marquee-content span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 50px;
    letter-spacing: 1px;
}

/* ==========================================================================
   7. TIENDA (LOS MAS VENDIDOS)
   ========================================================================== */
.best-selling-section {
    padding: 80px 10%;
    background: #050505;
    position: relative;
}

/* Encabezado */
.section-header-wrapper {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 6px 16px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.premium-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    letter-spacing: -1px;
    width: 100%;
}

.line-decor {
    display: block;
    height: 4px;
    flex-grow: 1;
    max-width: 150px;
    background: #222;
    position: relative;
    border-radius: 2px;
}

.line-decor::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    background: var(--accent-primary);
}

.premium-title .line-decor:first-child::after {
    right: 0;
}

.premium-title .line-decor:last-child::after {
    left: 0;
}

/* Grid Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.product-card {
    background: #0a0a0c;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Boton Hover */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .overlay {
    opacity: 1;
}

.add-cart-btn {
    background: var(--accent-primary);
    color: #000;
    border: none;
    padding: 12px 25px;
    font-family: var(--font-code);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.9rem;
    transform: translateY(30px);
    transition: 0.3s;
    letter-spacing: 1px;
}

.product-card:hover .add-cart-btn {
    transform: translateY(0);
}

.add-cart-btn:hover {
    background: white;
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Info Producto */
.card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    background: linear-gradient(to bottom, #0a0a0c, #0f0f12);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info h3 {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.rating {
    font-family: var(--font-code);
    color: #ffc107;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-desc {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    min-height: 40px;
}

.price {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
}

/* ==========================================================================
   8. PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
    padding: 80px 10%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.faq-card {
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid #2D2D2D;
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-20deg);
    transition: 0.4s;
    pointer-events: none;
}

.faq-card:hover .faq-bg-icon {
    color: rgba(0, 243, 255, 0.1);
    transform: rotate(0deg) scale(1.1);
}

.faq-card:hover {
    border-color: var(--accent-primary);
    background: rgba(20, 20, 22, 0.9);
    transform: translateY(-5px);
}

.faq-card h3 {
    font-family: var(--font-main);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    z-index: 2;
}

.faq-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    z-index: 2;
}

/* ==========================================================================
   9. LOGIN MODAL Y PERFIL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a0a0c;
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    font-size: 1.2rem;
}

.close-modal {
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-body {
    padding: 40px 50px;
    text-align: center;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.login-option {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: 0.3s;
    font-weight: 600;
}

.login-option.fivem {
    background: linear-gradient(135deg, rgb(113, 34, 10) 0%, rgb(133, 47, 25) 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(240, 90, 40, 0.4);
}

.login-option.fivem:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(240, 90, 40, 0.6);
}

.login-option.fivem img {
    width: 40px;
    height: auto;
}

.login-option.discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.login-option.discord:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.login-option.discord i {
    font-size: 1.4rem;
}

.modal-footer {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.modal-footer small {
    color: #555;
    font-size: 0.7rem;
}

/* Perfil Usuario */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px 5px 5px;
    border-radius: 30px;
    border: 1px solid var(--card-border);
    transition: 0.3s;
}

.user-profile-nav:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 243, 255, 0.1);
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    font-family: var(--font-code);
}

/* ==========================================================================
   10. FOOTER (PIE PAGINA)
   ========================================================================== */
.legal-footer {
    padding: 0 10% 40px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: #666;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.separator {
    color: #333;
}

.footer-copyright {
    text-align: right;
    color: #555;
}

/* =========================================
   13. VISTA PAQUETES (PACKAGES VIEW) - FINAL
   ========================================= */

/* Animacion al cambiar */
.view-section {
    animation: fadeInList 0.5s ease;
}

/* 1. Cabecera GIGANTE */
.packages-header {
    background: linear-gradient(180deg, rgba(107, 20, 138, 0.2) 0%, rgba(3, 3, 5, 1) 100%),
        url('Images/Fondo.png');
    background-size: cover;
    background-position: center;
    /* Mucho padding pa que se vea enorme */
    padding: 250px 20px 150px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pkg-header-content h1 {
    font-size: 5rem;
    /* Titulo tocho */
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
    letter-spacing: -3px;
    color: white;
}

.pkg-header-content p {
    color: var(--text-muted);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Filtros */
.pkg-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--card-border);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-code);
    font-weight: 800;
    transition: 0.3s;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: black;
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: scale(1.05);
}

/* 2. Barra de Busqueda FLOTANTE */
.packages-toolbar {
    background: transparent;
    padding: 0 10%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-top: -40px;
    /* La subo parriba */
    margin-bottom: -40px;
    /* Y quito el hueco de abajo */
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.search-container i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.search-container input {
    width: 100%;
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px 25px 70px;
    /* Input grande */
    border-radius: 15px;
    color: white;
    font-family: var(--font-main);
    font-size: 1.2rem;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.search-container input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.2);
}

/* 3. Grid de Paquetes */
.packages-grid-container {
    background: #050505;
    /* Padding tocho pa compensar la barra flotante */
    padding: 120px 10% 100px;
    min-height: 60vh;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Cards */
.pkg-card {
    background: #0f0f12;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pkg-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.15);
}

.pkg-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.pkg-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.pkg-card:hover .pkg-img-container img {
    transform: scale(1.1);
}

.pkg-tags {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pkg-tag {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-code);
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.pkg-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pkg-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.5px;
}

/* Descripcion dentro de la card */
.pkg-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 400;

    /* Corto el texto si es muy largo */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

/* Lista de lo que incluye */
.pkg-includes-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.includes-title {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-code);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.includes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.include-item {
    font-size: 0.75rem;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.include-item i {
    color: var(--accent-primary);
    font-size: 0.7rem;
}

/* Precios */
.pkg-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
}

.pkg-old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1rem;
    font-family: var(--font-code);
}

.pkg-new-price {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-code);
}

.pkg-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--card-border);
    color: white;
    padding: 15px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pkg-btn:hover {
    background: var(--accent-primary);
    color: black;
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Boton deshabilitao (WIP / Proximamente) */
.pkg-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #555;
    border-color: #333;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.pkg-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #333;
}

/* ==========================================================================
   11. ANIMACIONES Y RESPONSIVE (MÓVIL/TABLET)
   ========================================================================== */

/* Entrada suave */
@keyframes fadeInList {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll texto */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Tablets */
@media (max-width: 1024px) {

    .products-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Moviles */
@media (max-width: 900px) {
    .navbar {
        grid-template-columns: 1fr 1fr;
    }

    .nav-center {
        display: none;
    }

    /* Quito el menu si es muy pequeño */
    .nav-right {
        justify-self: end;
    }
}

/* Moviles peques */
@media (max-width: 768px) {

    .products-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }
}