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

:root {
    --bg-color: #0b1329; /* Deep navy slate background */
    --card-bg: rgba(17, 24, 39, 0.72); /* Glassmorphic dark card */
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(59, 130, 246, 0.45);
    
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #e2e8f0;
    
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.25);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-gold: #f59e0b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Module specific palette */
    --color-comercial: #3b82f6;
    --color-comercial-hover: #2563eb;
    --color-comercial-bg: rgba(59, 130, 246, 0.12);
    
    --color-contable: #10b981;
    --color-contable-hover: #059669;
    --color-contable-bg: rgba(16, 185, 129, 0.12);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(11, 19, 41, 1) 0px, transparent 55%);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Subtle top decorative gradient bar */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-comercial), var(--color-contable));
    z-index: 100;
}

/* Background Ambient Glow Orbs */
.glow-bg-1 {
    position: fixed;
    top: -120px;
    left: -80px;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.09) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(90px);
}

.glow-bg-2 {
    position: fixed;
    bottom: -100px;
    right: -80px;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(90px);
}

/* Main Container */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 50px 24px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Header Area */
header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.header-logo-icon {
    height: 82px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo-icon:hover {
    transform: scale(1.08) rotate(-4deg);
}

.header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(99%) sepia(1%) saturate(1142%) hue-rotate(185deg);
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.03);
}

.hero-text h2 {
    font-family: var(--font-brand);
    font-size: 0.9rem;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-text h1 {
    font-family: var(--font-brand);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.support-area {
    margin-top: 4px;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.support-link i {
    width: 15px;
    height: 15px;
}

/* System Grid Section */
.system-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 30px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 950px;
}

/* System Card */
.system-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 36px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.card-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.system-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65);
}

/* Card Variants */
.comercial-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 45px -10px rgba(59, 130, 246, 0.22);
}

.contable-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 20px 45px -10px rgba(16, 185, 129, 0.22);
}

.card-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

/* Icon Wrapper */
.card-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-card:hover .card-icon-wrapper {
    transform: scale(1.1);
}

.card-icon-wrapper.comercial {
    background: var(--color-comercial-bg);
    color: var(--color-comercial);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.card-icon-wrapper.contable {
    background: var(--color-contable-bg);
    color: var(--color-contable);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.card-icon-wrapper i {
    width: 28px;
    height: 28px;
}

/* Module Badges */
.module-code {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    text-transform: uppercase;
}

.system-card h3 {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
    flex-grow: 1;
}

/* Card Key Features List */
.card-features {
    list-style: none;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.card-features li i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.comercial-card .card-features li i {
    color: var(--color-comercial);
}

.contable-card .card-features li i {
    color: var(--color-contable);
}

/* Enter Button */
.enter-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: var(--font-brand);
    font-size: 0.98rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.28s ease;
    text-decoration: none;
}

.comercial-card .enter-btn {
    background: var(--color-comercial);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.comercial-card .enter-btn:hover {
    background: var(--color-comercial-hover);
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.55);
    transform: translateY(-2px);
}

.contable-card .enter-btn {
    background: var(--color-contable);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.contable-card .enter-btn:hover {
    background: var(--color-contable-hover);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
    transform: translateY(-2px);
}

.enter-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.enter-btn:hover i {
    transform: translateX(4px);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.footer-content p strong {
    color: #cbd5e1;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

/* Offline Indicator Toast */
.offline-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #ef4444;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideUp 0.3s ease forwards;
}

.offline-toast.visible {
    display: flex;
}

.offline-toast i {
    width: 18px;
    height: 18px;
}

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

/* Entry Animation (Reveal) */
.reveal-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-card:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-card:nth-child(2) {
    animation-delay: 0.25s;
}

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

/* Responsive Media Queries */
@media (max-width: 820px) {
    .container {
        padding: 35px 18px 30px;
    }

    .hero-text h1 {
        font-size: 1.85rem;
    }

    .system-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 20px;
    }

    .system-card {
        padding: 28px 24px;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        padding: 14px;
        border-radius: 50%;
    }
}
