/* ==========================================================================
   NicSystem Landing Page - Premium Vanilla CSS
   ========================================================================== */

/* --- Variables (Design System) --- */
:root {
    /* Colors - Dark Theme Focus with Indigo Accents */
    --clr-bg: #0f172a;           /* Slate 900 */
    --clr-bg-light: #1e293b;     /* Slate 800 */
    --clr-primary: #6366f1;      /* Indigo 500 */
    --clr-primary-hover: #4f46e5;/* Indigo 600 */
    --clr-accent: #38bdf8;       /* Sky 400 */
    --clr-danger: #f43f5e;       /* Rose 500 */
    --clr-success: #10b981;      /* Emerald 500 */
    --clr-text: #f8fafc;         /* Slate 50 */
    --clr-text-muted: #94a3b8;   /* Slate 400 */
    
    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    
    /* Spacing */
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 2rem;
    --sp-xl: 4rem;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

/* --- Background Shapes (Premium Vibe) --- */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.bg-shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--clr-primary);
}

.bg-shape-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--clr-accent);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- UI Components --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--sp-lg);
    transition: var(--trans-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--trans-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-text);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--trans-normal);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo i {
    color: var(--clr-accent);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--trans-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeUp 1s ease forwards;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--clr-accent);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mockup UI */
.hero-image-wrapper {
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.mockup-panel {
    padding: 1px;
    overflow: hidden;
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
}

.dashboard-skeleton {
    display: flex;
    gap: 16px;
    height: 300px;
}

.sk-sidebar {
    width: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.sk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sk-header {
    height: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.sk-cards {
    display: flex;
    gap: 16px;
}

.sk-card {
    flex: 1;
    height: 60px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px;
}

.sk-table {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* --- Sections --- */
.section {
    padding: var(--sp-xl) 0;
}

.bg-light {
    position: relative;
}
.bg-light::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.02);
    z-index: -1;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--sp-xl);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--clr-accent);
}

.icon-box i {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.col-span-2 {
    grid-column: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-content p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    opacity: 0.05;
    color: white;
    z-index: 1;
    transform: rotate(-15deg);
}

/* --- Pricing --- */
.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    border-radius: 16px 16px 0 0;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price .currency {
    font-size: 1.5rem;
    color: var(--clr-text-muted);
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.price .period {
    color: var(--clr-text-muted);
    margin-left: 0.5rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.pricing-features li i {
    color: var(--clr-accent);
    width: 20px;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--sp-xl) 0;
}

.cta-box {
    text-align: center;
    padding: var(--sp-xl) var(--sp-lg);
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--sp-xl) 0 2rem;
    background: rgba(15, 23, 42, 0.5);
}

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

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--clr-text-muted);
}
.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--clr-accent);
    width: 18px;
}

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

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Helper Classes --- */
.text-danger { color: var(--clr-danger) !important; }
.text-success { color: var(--clr-success) !important; }
.mt-4 { margin-top: 2rem !important; }

/* --- Problema vs Solución --- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    padding: 2rem;
    border-radius: 24px;
}

.compare-card.bad {
    background: rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.2);
}

.compare-card.good {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
    z-index: 2;
}

.compare-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.compare-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.compare-header i {
    width: 32px; height: 32px;
}

.compare-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.compare-card.good ul li {
    color: var(--clr-text);
}

.compare-card ul li i {
    flex-shrink: 0;
    width: 20px; height: 20px;
}
.compare-card.bad ul li i { color: var(--clr-danger); }
.compare-card.good ul li i { color: var(--clr-success); }

/* --- 3 Pasos --- */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.step-divider {
    display: flex;
    align-items: center;
    height: 100px;
    color: var(--clr-text-muted);
    opacity: 0.5;
}

/* --- Trust Badges --- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 2rem auto 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.trust-badge i {
    width: 18px; height: 18px;
    color: var(--clr-accent);
}

/* --- Floating WhatsApp --- */
.floating-wsp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: var(--trans-fast);
    animation: pulse-wsp 2s infinite;
}

.floating-wsp:hover {
    transform: scale(1.1);
    animation: none;
}

.floating-wsp i {
    width: 32px; height: 32px;
}

@keyframes pulse-wsp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Responsive Adjustments for new sections --- */
@media (max-width: 992px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
    .compare-card.good {
        transform: scale(1);
    }
    .step-divider {
        display: none;
    }
    .steps-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--trans-normal);
    }

    .navbar.active {
        left: 0;
    }

    .features-grid, .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-item.col-span-2 {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}
