:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #2ecc71;
    --bg-deep: #05080a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass: rgba(10, 15, 20, 0.7);
    --text-bright: #ffffff;
    --text-dim: #94a3b8;
}

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

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-bright);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Stars Effect */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #05080a 100%);
    z-index: -1;
}

.stars-bg::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 10vw 20vh 1px #fff, 50vw 80vh 2px #fff, 80vw 30vh 1px #fff, 30vw 90vh 1px #fff;
    opacity: 0.3;
}

/* Glassmorphism Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.btn-auth {
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(5, 8, 10, 0.7), rgba(5, 8, 10, 0.9)), url('../assets/fondo_landing.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin-bottom: 40px;
}

/* Feature Cards */
.section {
    padding: 100px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.card p {
    color: var(--text-dim);
}

/* Stats Section */
.stats {
    background: linear-gradient(90deg, #05080a 0%, #0a1f2a 50%, #05080a 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    padding: 20px;
}

.stat-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Auth Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    position: relative;
}

.auth-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dim);
}

/* Partners Branding */
.partners {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity 0.3s;
}

.partners:hover {
    opacity: 1;
    filter: none;
}

.partner-logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.feature-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
}

.impact-hero {
    background: linear-gradient(to bottom, rgba(5, 8, 10, 0.7), rgba(5, 8, 10, 0.9)), url('../assets/fondo2.jpg');
    background-size: cover;
    background-position: center;
}

/* Team Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.team-card:hover .team-photo {
    filter: brightness(0.3) blur(4px);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(5, 8, 10, 0.9), transparent);
    z-index: 2;
    transition: all 0.5s ease;
}

.team-bio {
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-card:hover .team-bio {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

.team-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text);
}

.team-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    nav {
        padding: 20px;
    }

    .section {
        padding: 60px 20px;
    }
}