:root {
    --bg-color: #0A192F;
    --text-primary: #F8FAFC; /* Softer, warmer White */
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-safe: #10B981; /* Emerald Green for Security */
    --accent-tech: #3B82F6; /* Cobalt Blue for Tech/AI */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Generative Canvas */
.bg-canvas {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh; 
    z-index: -1;
    pointer-events: none;
}

/* Typography & Layout */
header:not(.log-header) {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    text-transform: uppercase;
}

main {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem) clamp(3rem, 10vw, 6rem);
}

.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-statement {
    font-weight: 500;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-substatement {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Vision Section */
.vision-section {
    padding: clamp(4rem, 15vw, 8rem) clamp(1.5rem, 8vw, 4rem);
    margin: 4rem 0 6rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    will-change: transform, opacity;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-section:hover {
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 0 15px rgba(16, 185, 129, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Custom scroll effect duration as requested */
.vision-section.fade-in {
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.vision-title {
    font-family: var(--font-mono);
    color: var(--border-color); /* #D1D1D1 */
    opacity: 0.6;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    text-align: left;
}

.vision-text {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1.125rem;
    text-align: left;
}

.log-entries {
    display: flex;
    flex-direction: column;
}

/* Micro-interaction: Focus state and Zen Blur */
.log-entries:hover .log-entry {
    opacity: 0.4;
    filter: blur(2px);
}
.log-entries .log-entry:hover {
    opacity: 1;
    filter: blur(0);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15), inset 0 0 15px rgba(59, 130, 246, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.log-entry {
    padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 6vw, 3.5rem);
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    will-change: transform, opacity;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.log-entry:last-child {
    margin-bottom: 0;
}

.log-content {
    max-width: 640px;
    margin: 0 auto;
}

.log-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.log-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.log-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.8;
}

/* Authentication Seal */
.log-seal {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.log-entry:hover .log-seal {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: clamp(4rem, 15vw, 8rem) clamp(1.5rem, 8vw, 4rem);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 4rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.contact-section:hover {
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 0 15px rgba(16, 185, 129, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-title {
    font-family: var(--font-mono);
    color: var(--border-color);
    opacity: 0.6;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.8rem 0;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-safe);
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.05) 0%, rgba(0,0,0,0) 100%);
    box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Override browser autofill ugly light background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset;
    box-shadow: 0 0 0 1000px var(--bg-color) inset;
    -webkit-text-fill-color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-primary);
}

.submit-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.8rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.contact-success {
    font-family: var(--font-mono);
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    padding: 3rem 0;
    font-size: 1.125rem;
}

/* Footer */
.site-footer {
    padding: 3rem 3rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand {
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
}

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.3;
}

.footer-tagline {
    color: var(--text-secondary);
    opacity: 0.6;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.footer-signature {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.6rem;
    opacity: 0.25;
    transition: opacity 0.4s ease;
    letter-spacing: 0.05em;
    border: none;
}

.footer-signature:hover {
    opacity: 0.6;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-dot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0.5rem; /* Hitbox incrementado */
}

.nav-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    margin-left: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dot span {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dot:hover, .nav-dot.active {
    opacity: 1;
    color: var(--text-primary);
}

.nav-dot:hover span, .nav-dot.active span {
    opacity: 1;
    transform: translateX(0);
}

.nav-dot:hover::after, .nav-dot.active::after {
    background-color: var(--text-primary);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    height: 18px;
    border-radius: 3px;
}

/* Animations (Fade In) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    /* El clamp() ya maneja la tipografía y paddings base fluido,
       aquí solo alteramos el layout estructural y refinamientos finales */
    
    /* Mobile Navigation Dock (iOS Style Pill) */
    .side-nav {
        top: auto;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        background: rgba(10, 25, 47, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.5rem 1.5rem;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
        width: 90%;
        max-width: 350px;
        z-index: 999;
    }

    .nav-list {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0;
        width: 100%;
    }

    .nav-dot {
        padding: 0.75rem; /* Touch targets > 44px */
        margin: 0;
        justify-content: center;
    }

    .nav-dot::after {
        margin-left: 0;
        width: 8px;
        height: 8px;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.0);
    }

    .nav-dot span {
        display: none; /* Pure Minimalistic dots on Mobile */
    }

    .nav-dot.active::after, .nav-dot:hover::after {
        height: 8px;
        transform: scale(1.3);
    }
    
    /* Layout Refinements */
    .contact-form {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .submit-btn {
        align-self: stretch;
        text-align: center;
    }

    .site-footer {
        padding: 2rem 2rem 6rem; /* Padding bottom para el Navigation Dock flotante */
        align-items: center;
    }
}


/* Collab Page Actions */
.collab-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.collab-btn-primary {
    width: 100%;
}

.collab-btn-secondary {
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-sizing: border-box;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.collab-btn-secondary:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* --- COLLAB (EASTER EGG VIP LANDING) STYLES --- */
.collab-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.collab-main {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.terminal-box {
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.typewriter-text {
    font-family: var(--font-mono);
    color: var(--accent-safe);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.offer-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 300;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    line-height: 1.7;
}

.hidden {
    display: none !important;
    opacity: 0;
}

.success-box {
    text-align: center;
    border: 1px solid var(--accent-safe);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.05);
}

.discount-code {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin: 1.5rem 0;
}

.form-feedback .error {
    color: #ef4444; /* Error alert red */
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-top: 1rem;
    display: block;
    text-align: center;
}
