/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variables CSS */
:root {
    --primary-color: #2c2c2c;
    --secondary-color: #4a4a4a;
    --accent-color: #007bff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: var(--transition);
    max-width: 220px;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Selector */
/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    min-width: 80px;
}

.lang-dropdown-btn img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

.lang-dropdown-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.lang-dropdown-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 123, 255, 0.1);
}

.lang-option.active {
    background: var(--accent-color);
    color: white;
}

.lang-option img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

.lang-dropdown-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.active i {
    transform: rotate(180deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 123, 255, 0.1);
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    padding-top: 80px;
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight {
    color: var(--accent-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Hero Animation */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

/* Tech Dashboard */
.tech-dashboard {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 600px;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.dashboard-time {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Métricas Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 80px;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
}

.metric-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 2px;
    line-height: 1.2;
    font-weight: 500;
}

/* Tech Chart */
.tech-chart {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.tech-chart h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.circular-progress {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.progress-ring-svg {
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(0, 123, 255, 0.1);
    stroke-width: 3;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 2s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-align: center;
}

/* Terminal Window */
.terminal-window {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27ca3f; }

.terminal-title {
    font-size: 0.8rem;
    color: #999;
    margin-left: auto;
}

.terminal-body {
    padding: 15px;
    font-family: 'Courier New', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: #27ca3f;
    font-weight: bold;
}

.terminal-command {
    color: #fff;
    font-size: 0.9rem;
}

.terminal-cursor {
    color: #fff;
    animation: blink 1s infinite;
}

.neural-network::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg, transparent 30%, rgba(0, 123, 255, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(40, 167, 69, 0.02) 50%, transparent 70%);
    animation: backgroundPulse 8s ease-in-out infinite alternate;
    z-index: 0;
}

/* Partículas flotantes */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.8), transparent);
    border-radius: 50%;
    animation: floatingParticles 8s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 1.5s; }

.neuron {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: neuronPulse 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.neuron:hover {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.2);
}

.neuron:hover .neuron-core {
    box-shadow:
        0 0 30px rgba(0, 123, 255, 0.6),
        0 0 60px rgba(0, 123, 255, 0.3),
        inset 0 0 20px rgba(0, 123, 255, 0.2);
    animation: energyPulse 1s ease-in-out infinite;
}

.neuron-core {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 3px solid #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3), inset 0 0 10px rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.neuron-core::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 123, 255, 0.3), transparent);
    animation: rotate 3s linear infinite;
}

.neuron-core i {
    font-size: 1.5rem;
    color: #007bff;
    position: relative;
    z-index: 1;
}

.neuron-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.connection {
    stroke-dasharray: 8, 4;
    animation: electricFlow 2s linear infinite;
    filter: drop-shadow(0 0 4px #00ffff);
}

/* Colores específicos para cada neurona */
.neuron-1 .neuron-core { border-color: #007bff; }
.neuron-1 .neuron-core i { color: #007bff; }

.neuron-2 .neuron-core { border-color: #28a745; }
.neuron-2 .neuron-core i { color: #28a745; }

.neuron-3 .neuron-core { border-color: #dc3545; }
.neuron-3 .neuron-core i { color: #dc3545; }

.neuron-4 .neuron-core { border-color: #007bff; }
.neuron-4 .neuron-core i { color: #007bff; }

.neuron-5 .neuron-core { border-color: #17a2b8; }
.neuron-5 .neuron-core i { color: #17a2b8; }

.neuron-6 .neuron-core { border-color: #ffc107; }
.neuron-6 .neuron-core i { color: #ffc107; }

.neuron-7 .neuron-core { border-color: #6f42c1; }
.neuron-7 .neuron-core i { color: #6f42c1; }

.neuron-8 .neuron-core { border-color: #fd7e14; }
.neuron-8 .neuron-core i { color: #fd7e14; }

.neuron-1 {
    animation-delay: 0s;
}

.neuron-2 {
    animation-delay: 0.3s;
}

.neuron-3 {
    animation-delay: 0.6s;
}

.neuron-4 {
    animation-delay: 0.9s;
}

.neuron-5 {
    animation-delay: 1.2s;
}

.neuron-6 {
    animation-delay: 1.5s;
}

.neuron-7 {
    animation-delay: 1.8s;
}

.neuron-8 {
    animation-delay: 2.1s;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(40, 167, 69, 0.01) 50%, transparent 100%),
        var(--white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.03) 0%, transparent 70%);
    animation: backgroundPulse 15s ease-in-out infinite alternate;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

/* Misión y Visión Grid Horizontal */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.mission-card,
.vision-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #28a745);
    transition: all 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.mission-card p,
.vision-card p {
    color: var(--secondary-color);
    line-height: 1.7;
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Grid de Valores como Cards */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #28a745);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.value-card:hover::before {
    width: 6px;
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25);
}

.value-icon i {
    font-size: 1.2rem;
    color: white;
}

.value-card-content {
    flex: 1;
}

.value-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.value-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.mission-vision {
    margin-bottom: 3rem;
}

.mission-item,
.vision-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-item:hover,
.vision-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.mission-item h3,
.vision-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.mission-item p,
.vision-item p {
    color: var(--medium-gray);
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.value-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.value-item p {
    color: var(--medium-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background:
        linear-gradient(rgba(248, 249, 250, 0.8), rgba(248, 249, 250, 0.8)),
        url('fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Contact Services Styles */
.contact-services {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-services h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.contact-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.contact-service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-service-card .service-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.contact-service-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: end;
}


.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}


.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animaciones neuronales */
@keyframes neuronPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
    }
}

@keyframes electricFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    75% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -24;
        opacity: 0.6;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Nuevas animaciones modernas */
@keyframes backgroundPulse {
    0% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(180deg);
    }
    100% {
        opacity: 0.5;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes energyPulse {
    0% {
        box-shadow:
            0 0 20px rgba(0, 123, 255, 0.3),
            inset 0 0 10px rgba(0, 123, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 123, 255, 0.8),
            0 0 80px rgba(0, 123, 255, 0.4),
            inset 0 0 20px rgba(0, 123, 255, 0.3);
    }
    100% {
        box-shadow:
            0 0 20px rgba(0, 123, 255, 0.3),
            inset 0 0 10px rgba(0, 123, 255, 0.1);
    }
}

@keyframes floatingParticles {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 123, 255, 0.8), 0 0 30px rgba(0, 123, 255, 0.6);
    }
}

/* Animaciones Dashboard */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }


    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Responsive para nuevos componentes */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .mission-card,
    .vision-card {
        padding: 2rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img {
        max-height: 300px;
    }

    .mission-item,
    .vision-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .mission-item h3,
    .vision-item h3 {
        font-size: 1.5rem;
    }

    .mission-item p,
    .vision-item p {
        font-size: 1rem;
    }

    .value-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .value-item h3 {
        font-size: 1.3rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-service-card {
        padding: 1.2rem;
    }

    .contact-services h3 {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        justify-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-image {
        height: 50px;
        max-width: 180px;
    }

    /* Dashboard responsivo */
    .tech-dashboard {
        height: auto;
        min-height: 400px;
        padding: 15px;
        gap: 15px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metric-card {
        padding: 15px;
    }

    .progress-container {
        flex-direction: column;
        gap: 15px;
    }

    .progress-section {
        min-width: auto;
    }

    .terminal-container {
        height: 200px;
        min-height: 200px;
    }

    .neural-network {
        height: auto;
        min-height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .neuron-core {
        width: 50px;
        height: 50px;
    }

    .neuron-core i {
        font-size: 1.2rem;
    }

    .neuron-label {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .electric-pulse {
        width: 80px;
        height: 80px;
    }

    .neural-connections {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .about-img {
        max-height: 250px;
    }

    .mission-item,
    .vision-item {
        padding: 1rem;
    }

    .mission-item h3,
    .vision-item h3 {
        font-size: 1.3rem;
    }

    .mission-item p,
    .vision-item p {
        font-size: 0.9rem;
    }

    .logo-image {
        height: 45px;
        max-width: 160px;
    }

    /* Dashboard para móviles pequeños */
    .tech-dashboard {
        min-height: 350px;
        padding: 12px;
        gap: 12px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .metric-card {
        padding: 12px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .terminal-container {
        height: 180px;
        min-height: 180px;
    }

    .terminal-output {
        font-size: 0.75rem;
    }


    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .neural-network {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 10px;
        padding: 10px;
        height: auto;
        min-height: auto;
    }

    .neuron-core {
        width: 45px;
        height: 45px;
    }

    .neuron-core i {
        font-size: 1rem;
    }

    .neuron-label {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    .electric-pulse {
        width: 70px;
        height: 70px;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Estados de carga y transiciones suaves */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para mejor accesibilidad */
.nav-link:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
