:root {
    --bg-dark: #0d141c;
    /* Fondo profundo para resaltar el verde */
    --brand-navy: #263343;
    --primary: #14CA7D;
    --primary-glow: rgba(20, 202, 125, 0.4);
    --secondary: #14CA7D;
    --secondary-glow: rgba(20, 202, 125, 0.2);
    --glass-bg: rgba(38, 51, 67, 0.5);
    /* Basado en #263343 */
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #cbd5e1;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    right: -10%;
    background: var(--primary);
    animation: moveGlow 20s ease-in-out infinite alternate;
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    background: var(--secondary);
    animation: moveGlow 25s ease-in-out infinite alternate-reverse;
}

@keyframes moveGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, 15%) scale(1.1); }
    100% { transform: translate(10%, -5%) scale(0.9); }
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    display: block;
    width: auto;
    transition: var(--transition);
}

.logo .megalotipo {
    height: 80px;
    /* Tamaño aumentado para mayor impacto visual */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(13, 20, 28, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(20, 202, 125, 0.1);
    color: var(--primary);
    border: 1px solid rgba(20, 202, 125, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 2rem;
}

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

.hero-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.floating-card {
    position: absolute;
    padding: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.tech-image img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-image:hover img {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

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

.feature-card {
    padding: 3rem 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Tech Section */
.tech-split {
    display: flex;
    padding: 100px 8%;
    gap: 5rem;
    align-items: center;
}

.tech-image {
    flex: 1;
}

.tech-info {
    flex: 1;
}

.tech-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.tech-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Team Section Styles */
.team-section {
    padding: 80px 8%;
}

.team-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card-glass {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition);
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
}

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

.team-photo-box {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.team-photo-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-glass h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    font-weight: 700;
}

.team-role {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.6rem;
    font-weight: 900;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    text-transform: uppercase;
}

.team-details {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.team-details li {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.4;
}

.team-details li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
}

.team-footer {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.8;
}

/* CTA Section */
.cta {
    padding: 150px 8%;
    text-align: center;
}

.cta-box {
    padding: 5rem;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

/* Traction Section */
.traction {
    padding: 100px 8%;
}

.traction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.traction-card {
    padding: 3rem;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.traction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.traction-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.traction-header i {
    opacity: 0.7;
}

.traction-card .card-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: white;
}

.traction-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: none;
    font-weight: 700;
}

.traction-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Card Color Variants */
.card-purple { 
    border-color: rgba(168, 85, 247, 0.5); 
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05);
}
.card-purple i { color: #a855f7; }

.card-blue { 
    border-color: rgba(59, 130, 246, 0.5); 
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}
.card-blue i { color: #3b82f6; }

.card-brown { 
    border-color: rgba(245, 158, 11, 0.5); 
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.05);
}
.card-brown i { color: #f59e0b; }

.card-green { 
    border-color: rgba(34, 197, 94, 0.5); 
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.05);
}
.card-green i { color: #22c55e; }

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .tech-split {
        flex-direction: column-reverse;
    }

    .team-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .traction-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-grid-container {
        gap: 1.5rem;
    }

    .team-card-glass {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .team-section {
        padding: 60px 5%;
    }

    .traction-card {
        padding: 2rem;
    }
}

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