/* NEXORA CRM - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-dark: #020408;
    --bg-card: rgba(10, 15, 25, 0.6);
    --accent-blue: #3b82f6;
    --electric-blue: #00f2ff;
    --neon-blue: #00d4ff;
    --text-primary: #ffffff;
    --text-tertiary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-grad: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
}

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

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--electric-blue);
}

.btn-outline-login {
    text-decoration: none;
    color: white;
    padding: 8px 30px;
    border: 1.5px solid white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-login:hover {
    background: white;
    color: var(--bg-dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: fadeIn 1s ease-out forwards;
}

/* Hero & Login Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/hero_bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                rgba(2, 4, 8, 0.85);
}

/* Nexora Liquid Glass - Ultra-Premium UI */
.login-container {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 35px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
                inset 0 0 80px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    padding: 0;
}

.login-brand-side {
    background: rgba(37, 99, 235, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 45px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.login-isotipo {
    max-width: 140px;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0, 242, 255, 0.2));
}

.login-brand-side h2 {
    font-size: 2.22rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 4px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.login-form-side {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hilo de Luz - Premium Border Animation */
.login-container::after {
    content: '';
    position: absolute;
    inset: -1.5px;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, transparent 150deg, var(--electric-blue) 180deg, transparent 210deg, transparent 360deg);
    border-radius: 36.5px;
    z-index: -1;
    animation: rotateLiquid 6s linear infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    padding: 1.5px;
    opacity: 0.5;
}

@keyframes rotateLiquid {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #ffffff;
    letter-spacing: -2px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Liquid Input Architecture */
.liquid-input-group {
    position: relative;
    margin-bottom: 40px;
}

.liquid-input-wrapper {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-input-wrapper .icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 20px;
    transition: all 0.3s ease;
}

.input-field-box {
    position: relative;
    flex-grow: 1;
}

.input-field-box input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 25px 0 10px 0;
    color: white !important;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

/* Fix para el fondo blanco de Autocompletado del Navegador */
.input-field-box input:-webkit-autofill,
.input-field-box input:-webkit-autofill:hover, 
.input-field-box input:-webkit-autofill:focus, 
.input-field-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px rgba(0, 0, 0, 0) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-field-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 1.05rem;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

/* Calm Floating Logic */
.input-field-box input:focus + label,
.input-field-box input:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 1;
}

.liquid-input-group:focus-within .liquid-input-wrapper {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.liquid-input-group:focus-within .icon {
    color: var(--electric-blue);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 45px;
    padding: 0 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.remember-me:hover {
    color: white;
}

.remember-me input {
    accent-color: var(--electric-blue);
    width: 18px;
    height: 18px;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--electric-blue);
}

.btn-liquid {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: none;
    border-radius: 22px;
    color: #000000;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-liquid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    background: #f8f9fa;
}

.register-link {
    margin-top: 40px;
    text-align: center;
    font-size: 1rem;
    color: #1a2332;
}

.register-link a {
    color: #1a2332;
    font-weight: 800;
    text-decoration: none;
    margin-left: 8px;
}

/* Landing Sections */
.section {
    padding: 100px 5%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse .content {
    direction: ltr;
}

.content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--electric-blue);
}

.content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.visual-box {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.visual-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.visual-box:hover img {
    transform: scale(1.05);
}

/* Footer & CTA */
.cta-section {
    background: url('../img/cta_bg.png') no-repeat center center/cover;
    padding: 120px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.cta-box {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 40px;
    display: inline-block;
    max-width: 800px;
    border: 1px solid var(--glass-border);
}

footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Premium Glass Notification (Toast) */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
}

.nexora-toast {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px 30px;
    min-width: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    gap: 15px;
    color: white;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nexora-toast.show {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.nexora-toast.error {
    border-left: 4px solid #ff4b2b;
    background: rgba(255, 75, 43, 0.05);
}

.toast-icon {
    font-size: 1.4rem;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 968px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .content h2 {
        font-size: 2rem;
    }
    .login-container {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .login-brand-side {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 40px 30px;
    }
    .login-brand-side h2 {
        font-size: 1.8rem;
    }
    .login-form-side {
        padding: 40px 30px;
    }
}

/* Premium Modal System */
.nexora-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.4s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(10, 15, 25, 0.8);
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.glass-effect {
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--electric-blue);
}

.modal-header {
    margin-bottom: 40px;
}

.modal-icon {
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.modal-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.nexora-toast.success {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}
/* Pricing Section */
.pricing-section {
    padding: 100px 5%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pricing-toggle-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 50px;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.pricing-toggle-container .toggle-btn {
    padding: 10px 30px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.pricing-toggle-container .toggle-btn.active {
    color: #000;
}

.pricing-toggle-container .toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 105px;
    background: #ffffff;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.pricing-toggle-container .toggle-btn:last-child.active ~ .toggle-slider {
    left: 111px;
    width: 105px;
}

.save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pricing-card.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.plan-subtitle {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 5px;
    opacity: 0.6;
}

.plan-price .period {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-left: 5px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.plan-features li i {
    color: #10b981;
    font-size: 0.8rem;
}

.btn-pricing {
    width: 100%;
    padding: 16px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: white;
    color: black;
}

.featured .btn-pricing {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.featured .btn-pricing:hover {
    background: #1d4ed8;
    color: white;
}

@media (max-width: 768px) {
    .pricing-header h2 {
        font-size: 2.5rem;
    }
}
