/* ==========================================================================
   Neurocognición - Modern & Minimalist Landing Page CSS
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
    --bg-dark: #080c14;
    --card-bg: rgba(13, 22, 42, 0.45);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-border-hover: rgba(0, 242, 254, 0.2);

    /* Brand Colors */
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --primary-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);

    /* Typography Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Glowing Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    animation: floatOrbs 25s ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #7f00ff;
    top: 40%;
    left: 60%;
    opacity: 0.08;
    animation-delay: -10s;
    animation-duration: 20s;
}

/* Main Container Layout */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Glassmorphic Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    width: 100%;
    max-width: 560px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 254, 0.03);
    text-align: center;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 242, 254, 0.06);
}

/* Brand Header */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-symbol {
    width: 64px;
    height: 64px;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-logo {
    width: 100%;
    height: 100%;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Graphic Area (Neural Network) */
.graphic-container {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 2.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-network {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Connection Path Animations */
.connection {
    stroke-dasharray: 6 12;
    animation: dash-flow 12s linear infinite;
    opacity: 0.45;
}

.pulse-1 {
    animation-duration: 8s;
}

.pulse-2 {
    animation-duration: 14s;
    animation-direction: reverse;
}

.pulse-3 {
    animation-duration: 10s;
}

.pulse-4 {
    animation-duration: 16s;
}

.pulse-5 {
    stroke-dasharray: 4 8;
    animation-duration: 20s;
    animation-direction: reverse;
    opacity: 0.25;
}

/* Node Animations */
.node {
    transform-origin: center;
    transition: transform 0.3s ease;
}

.node-outer {
    animation: pulse-node 4s ease-in-out infinite alternate;
}

.node-center {
    animation: pulse-center 3s ease-in-out infinite alternate;
    transform-origin: 100px 100px;
}

/* Content Styles */
.main-content {
    margin-bottom: 2rem;
}

.title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Sleek Divider */
.divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 100%);
    margin-bottom: 2rem;
}

/* Footer & Contact Section */
.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-email .email-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.contact-email:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}

.contact-email:hover .email-icon {
    transform: rotate(-10deg) scale(1.1);
}

/* Outer copyright text */
.footer-copyright {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Keyframes Animations */
@keyframes floatOrbs {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(0, 242, 254, 0.2));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.6));
        transform: scale(1.03);
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -120;
    }
}

@keyframes pulse-node {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

@keyframes pulse-center {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
    }

    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.8));
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding-top: 2rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .title {
        font-size: 1.35rem;
    }

    .description {
        font-size: 0.875rem;
    }

    .graphic-container {
        max-width: 150px;
        margin-bottom: 1.75rem;
    }
}