/* =========================================
   VARIABLES CSS - PALETA UNIFICADA
   ========================================= */
:root {
    /* Fondos */
    --bg-dark: #0a0f1a;
    --bg-secondary: #0d1321;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2540;

    /* Acentos */
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-light: #93c5fd;
    --accent-dark: #1d4ed8;
    --accent-glow: rgba(59, 130, 246, 0.35);

    /* Textos */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Bordes */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(59, 130, 246, 0.25);

    /* Gradientes */
    --gradient-hero: radial-gradient(ellipse at top, #1e293b 0%, #0a0f1a 70%);
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    --gradient-text: linear-gradient(90deg, #fff 0%, var(--accent-secondary) 100%);

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-2xl: 120px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* =========================================
   RESET
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: transparent !important;
    color: var(--accent-primary) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--accent-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-nav:hover {
    background: var(--accent-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-glow);
}

.btn-nav::after {
    display: none !important;
}

/* Menú Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 140px var(--spacing-md) var(--spacing-xl);
}

.hero-content {
    z-index: 2;
    max-width: 900px;
}

.logo-container {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.hero-logo {
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    margin: var(--spacing-md) auto;
    border-radius: 2px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(100px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: var(--gradient-accent);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* =========================================
   UTILIDADES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.accent {
    color: var(--accent-primary);
}

.center {
    text-align: center;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Grid */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.grid-2-col.reverse {
    direction: rtl;
}

.grid-2-col.reverse>* {
    direction: ltr;
}

/* Text Content */
.text-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Info Badges */
.info-badges {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.info-badge {
    background: var(--bg-card);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.badge-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.badge-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Diagram */
.diagram-wrapper {
    background: #fff;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
}

.diagram-wrapper:hover {
    transform: scale(1.02);
}

.architecture-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.img-caption {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* =========================================
   PROBLEM SECTION
   ========================================= */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.problem-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--border-accent);
}

.problem-card.main-problem {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-card), rgba(59, 130, 246, 0.05));
    border-color: var(--border-accent);
    padding: var(--spacing-lg);
}

.problem-icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    margin-bottom: var(--spacing-sm);
}

.problem-icon.warning {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.problem-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.problem-card h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xs);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   SOLUTION SECTION
   ========================================= */
.solution-diagram {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.solution-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.solution-connector {
    width: 2px;
    height: 30px;
    background: var(--border-accent);
    margin-left: 19px;
    margin: var(--spacing-xs) 0 var(--spacing-xs) 19px;
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.feature-list li svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* =========================================
   ARCHITECTURE SECTION
   ========================================= */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.arch-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.arch-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.arch-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.arch-header {
    margin-bottom: var(--spacing-sm);
}

.arch-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.arch-tag {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arch-card>p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.arch-features {
    list-style: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.arch-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: var(--spacing-sm);
    position: relative;
}

.arch-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   METRICS SECTION
   ========================================= */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.metric-card {
    background: var(--bg-card);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.metric-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   CARDS GLASS (Mission/Vision)
   ========================================= */
.card.glass {
    background: linear-gradient(135deg, rgba(21, 29, 46, 0.9), rgba(21, 29, 46, 0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card.glass:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.card.glass:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.card.glass h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.card.glass p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   VALUES SECTION
   ========================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.value-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.value-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin: 0 auto var(--spacing-sm);
}

.value-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.value-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .value-icon {
        margin: 0;
        min-width: 48px;
        width: 48px;
        height: 48px;
    }

    .value-card h4 {
        margin-bottom: 4px;
    }
}

/* =========================================
   ROADMAP SECTION
   ========================================= */
.roadmap-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-accent);
}

.roadmap-item {
    display: flex;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    position: relative;
}

.roadmap-item:last-child {
    padding-bottom: 0;
}

.roadmap-marker {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.roadmap-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.roadmap-content {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    flex: 1;
    transition: all 0.3s ease;
}

.roadmap-content:hover {
    border-color: var(--border-accent);
}

.roadmap-phase {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.roadmap-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.roadmap-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   METHODOLOGY SECTION
   ========================================= */
.methodology-list {
    margin-top: var(--spacing-md);
}

.methodology-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.methodology-item:last-child {
    border-bottom: none;
}

.methodology-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.methodology-item h5 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.methodology-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tech Stack */
.tech-stack {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.tech-stack h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.tech-item {
    background: var(--bg-dark);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--border-accent);
}

.tech-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.tech-use {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   TEAM SECTION
   ========================================= */
.university-badge {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.university-badge p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.uni-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.uni-logo:hover {
    transform: scale(1.05);
}

.fimaz-style {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.uas-style {
    border-radius: var(--radius-sm);
}

/* Desarrolladores Grid */
.team-developers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.team-member {
    text-align: center;
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.team-member h5 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

.team-member .role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Asesor Académico */
.team-advisor {
    max-width: 500px;
    margin: 0 auto;
}

.advisor-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-card);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.advisor-card:hover {
    border-color: var(--border-accent);
}

.advisor-avatar {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    min-width: 64px;
}

.advisor-info {
    text-align: left;
}

.advisor-info h5 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.advisor-info .role {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.advisor-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .team-developers {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .advisor-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .advisor-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logos-row {
        gap: var(--spacing-md);
    }

    .uni-logo {
        height: 50px;
    }
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background: var(--bg-dark);
}

.cta-box {
    background: linear-gradient(135deg, #1a2540, #0f172a);
    border: 1px solid var(--border-subtle);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */
/* Icono FlowTrix destacado */
.social-link.flowtrix-icon {
    border-color: var(--border-accent);
}

.social-link.flowtrix-icon:hover {
    background: var(--gradient-accent);
    border-color: var(--accent-primary);
}

.site-footer {
    background: linear-gradient(180deg, var(--bg-dark), #050810);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col {
    text-align: left;
}

.footer-logo {
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
    font-weight: 600;
}

.footer-subtitle {
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.footer-link:hover {
    color: var(--accent-secondary);
}

/* =========================================
   FOOTER BOTTOM BAR
   ========================================= */
.footer-bottom {
    background: #050810;
    border-top: 1px solid var(--border-subtle);
    padding: var(--spacing-sm) 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-copyright-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* =========================================
   FOOTER SOCIAL LINKS
   ========================================= */
.footer-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.social-link {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* =========================================
   FOOTER LEGAL LINKS
   ========================================= */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-primary);
}

/* =========================================
   FOOTER RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding-top: var(--spacing-lg);
    }

    .footer-grid {
        gap: var(--spacing-md);
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .footer-social {
        order: -1;
    }

    .footer-legal-links {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .footer-legal-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* =========================================
   ANIMACIONES
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .grid-2-col {
        gap: var(--spacing-md);
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px var(--spacing-md) var(--spacing-md);
        gap: var(--spacing-xs);
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-subtle);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: var(--spacing-sm) 0;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .btn-nav {
        margin-top: var(--spacing-sm);
        text-align: center;
        width: 100%;
    }

    .grid-2-col,
    .grid-2-col.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .card.glass {
        padding: var(--spacing-md);
    }

    .cta-box {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer-col {
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        margin-top: var(--spacing-lg);
    }

    .hero-buttons .btn-primary {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .solution-diagram {
        padding: var(--spacing-md);
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-container::before {
        left: 20px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .features-grid,
    .architecture-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-value {
        font-size: 2.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        flex-direction: column;
        text-align: center;
    }

    .value-icon {
        margin: 0 auto;
    }
}

/* =========================================
   NAV DROPDOWN
   ========================================= */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    font-family: inherit;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--text-primary);
}

.nav-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.active .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-xs);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.nav-dropdown-menu a::after {
    display: none;
}

/* Responsive - En móvil el dropdown se muestra como lista normal */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        border-top: 1px solid var(--border-subtle);
        border-radius: 0;
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-xs);
    }

    .nav-dropdown-menu a {
        padding: var(--spacing-sm) 0;
        font-size: 0.9rem;
    }

    .nav-dropdown-menu a:hover {
        background: transparent;
    }
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}