/* ==========================================================================
   DESIGN SYSTEM - MDPROYECTOS (4 DISEÑADORES WEB)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #04060f;
    --bg-dark-card: rgba(8, 12, 26, 0.75);
    
    --neon-blue: #00f0ff;
    --neon-cyan: #00a8ff;
    --neon-violet: #7000ff;

    --text-primary: #f0f4ff;
    --text-secondary: #8a9bbd;
    --text-muted: #4e5d7c;

    --border-glass: rgba(0, 240, 255, 0.18);
    --border-glass-hover: rgba(0, 240, 255, 0.45);
    
    --glow-blue: 0 0 25px rgba(0, 240, 255, 0.4);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

::selection {
    background: var(--neon-blue);
    color: var(--bg-dark);
}

/* Canvas Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Glow */
.ambient-glow {
    position: fixed;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--neon-violet), transparent);
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    animation: floatGlow 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.2); }
}

/* Custom Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 15px var(--neon-blue);
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background-color 0.15s;
}

.custom-cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, border-color 0.2s, width 0.2s, height 0.2s;
}

body.cursor-active .custom-cursor {
    width: 18px;
    height: 18px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 25px var(--neon-cyan);
}
body.cursor-active .custom-cursor-follower {
    width: 54px;
    height: 54px;
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan-neon {
    color: var(--neon-blue);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Spotlight Cards */
.spotlight-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.35), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: var(--border-glass-hover);
}

/* Header */
.header {
    padding: 24px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--neon-blue);
    display: flex;
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

.logo-dot {
    color: var(--neon-cyan);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

/* Hero & Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0 80px;
}

.hero {
    width: 100%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 24px;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--neon-blue);
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--neon-blue);
    letter-spacing: 1.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 48px;
}

/* Team Grid (4 Cards - 2x2 or 4x1) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.team-card {
    padding: 28px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.team-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 24px 0;
    background: #020308;
}

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

.footer p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { flex-direction: column; gap: 12px; }
}

@media (max-width: 550px) {
    .team-grid { grid-template-columns: 1fr; }
}
