:root {
    --primary: #0f2cff;
    --secondary: #ff00e6;
    --gradiente: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    --dark-bg: #050505;
    --card-bg: #0d0d0d;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--dark-bg); color: white; overflow-x: hidden; scroll-behavior: smooth; }

/* --- NAVEGACIÓN (MODIFICADA PARA CENTRADO) --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(15px);
    padding: 15px 5%; 
    
    /* Flexbox para distribuir extremos (Logo izq - Auth der) */
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    
    border-bottom: 1px solid var(--glass-border);
}

.logo { font-size: 1.6rem; font-weight: 700; color: white; text-decoration: none; z-index: 1002; }
.logo span { color: var(--secondary); }

/* CLASE NUEVA: Menú central con posición absoluta */
.nav-center-menu { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); /* Centrado matemático perfecto */
    
    display: flex; 
    gap: 30px; 
    list-style: none; 
    align-items: center; 
}

.menu-item { position: relative; }
.menu-item a { 
    color: #ddd; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: 0.3s;
}
.menu-item a:hover { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Dropdown del menú */
.dropdown {
    display: none; position: absolute; top: 100%; left: 50%; 
    transform: translateX(-50%); /* Centrar dropdown respecto al item */
    background: #0d0d0d; border-radius: 10px; min-width: 160px; 
    border: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.menu-item:hover .dropdown { display: block; }
.dropdown a { 
    display: block; padding: 8px 20px; 
    color: #bbb; text-decoration: none; font-size: 0.85rem; 
    text-align: center;
}
.dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--secondary); }

/* CLASE NUEVA: Zona Derecha (Login + Plan) */
.nav-right-auth { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 1002;
}

/* Badge del Plan (Ahora clickable) */
.plan-badge-nav { 
    font-size: 0.75rem; 
    padding: 6px 15px; 
    border-radius: 20px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    color: #aaa; 
    text-transform: uppercase; 
    text-decoration: none; /* Quitamos subrayado */
    transition: 0.3s;
    cursor: pointer; /* Manita al pasar mouse */
}
.plan-badge-nav:hover {
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 230, 0.2);
}

.btn-login { 
    background: var(--gradiente); 
    border: none; 
    padding: 8px 25px; 
    border-radius: 50px; 
    color: white; 
    font-weight: 600; 
    cursor: pointer; 
    transition: transform 0.2s;
}
.btn-login:hover { transform: scale(1.05); }

/* --- HERO --- */
.hero { height: 75vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--gradiente); padding: 0 10%; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 700; line-height: 1.1; }
.hero p { max-width: 800px; margin: 20px 0; font-size: 1.1rem; opacity: 0.9; }
.btn-hero { padding: 12px 35px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; margin: 10px; }
.btn-p { background: white; color: var(--primary); }
.btn-s { border: 2px solid white; color: white; }

/* --- PRODUCTOS (GRID Y CARDS) --- */
.section { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.card {
    background: #111; border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden; position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover { transform: translateY(-10px); border-color: var(--secondary); }
.badge { position: absolute; top: 15px; right: 15px; padding: 5px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; z-index: 5;}
.badge-prem { background: rgba(0,0,0,0.7); border: 1px solid white; color: white; }
.card-img { height: 210px; background-size: cover; background-position: center; }
.card-body { padding: 25px; }
.tech-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.tag { background: #222; padding: 3px 10px; border-radius: 5px; font-size: 0.7rem; color: #ccc; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-card { padding: 10px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: white; background: #222; }
.btn-main { grid-column: span 2; padding: 12px; background: var(--gradiente); border-radius: 8px; font-weight: 700; color: white; border:none; cursor: pointer; }
.btn-down { grid-column: span 2; background: transparent; border: 1.5px solid var(--secondary); border-radius: 8px; padding: 8px; margin-top: 5px; font-weight: 600; color: white; cursor: pointer;}

/* --- PLANES (ESTILO ACTIVO Y NEÓN) --- */
.pricing-section { padding: 80px 5%; background: var(--dark-bg); text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; max-width: 1400px; margin: 40px auto; }

.plan-card {
    background: var(--card-bg); 
    border: 1px solid var(--glass-border);
    border-radius: 25px; 
    padding: 35px 25px; 
    text-align: left; 
    display: flex; flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* EFECTO HOVER: Brillo suave al pasar el mouse */
.plan-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--secondary); 
    box-shadow: 0 10px 30px rgba(255, 0, 230, 0.3); 
}

/* EFECTO ACTIVO: Brillo fuerte y fijo (Lo agrega el JS) */
.plan-active {
    border: 2px solid var(--secondary) !important;
    box-shadow: 0 0 40px rgba(255, 0, 230, 0.6) !important; /* Neón fuerte */
    transform: scale(1.05) !important;
    z-index: 10;
    background: #0f0f0f;
}

/* Estilo del botón dentro de la tarjeta activa */
.plan-active .btn-plan {
    background: #222;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    cursor: default;
}

/* Clases internas de los planes */
.plan-info-tag { font-size: 0.7rem; color: #666; margin-bottom: 15px; line-height: 1.3; }
.plan-card h3 { font-size: 1.8rem; margin-bottom: 20px; font-weight: 700; }
.plan-list { list-style: none; flex-grow: 1; }
.plan-list li { font-size: 0.85rem; margin-bottom: 15px; color: #eee; display: flex; align-items: flex-start; gap: 10px; }
.plan-list li::before { content: '✦'; color: var(--secondary); font-size: 1.1rem; filter: drop-shadow(0 0 3px var(--secondary)); }

.btn-plan { width: 100%; padding: 14px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: 20px; }
.btn-plan-free { background: #1a1a1a; color: #555; cursor: default; }
.btn-plan-go { background: white; color: black; }

/* --- FOOTER --- */
footer { padding: 50px 5%; text-align: center; border-top: 1px solid var(--glass-border); color: #555; }


/* --- MODAL DE PAGO PAYPAL --- */
.payment-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro transparente */
    backdrop-filter: blur(5px);
    z-index: 9999; /* Encima de todo */
    display: none; /* Oculto por defecto */
    justify-content: center; align-items: center;
}

.payment-modal-box {
    background: #111;
    border: 1px solid var(--secondary);
    padding: 30px;
    border-radius: 20px;
    width: 90%; max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 0, 230, 0.2);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.payment-modal-box h3 { margin-bottom: 10px; font-size: 1.5rem; }
.payment-price { font-size: 1.2rem; margin-bottom: 20px; color: #ddd; }

/* Botón cancelar */
.btn-cancel-pay {
    margin-top: 15px;
    background: transparent;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}
.btn-cancel-pay:hover { color: white; }


