@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --primary-color: #4ECDC4;
    --secondary-color: #FF6B6B;
    --accent-color: #FFE66D;
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --card-border: 1px solid rgba(78, 205, 196, 0.3);
    --neon-glow: 0 0 15px rgba(78, 205, 196, 0.7);
    --animation-speed: 2s;
    --glow-size: 15px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
    z-index: -3;
    opacity: 0.9;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(78, 205, 196, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(78, 205, 196, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header y Navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    position: relative;
    z-index: 10;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.7);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Cyber City Background */
.mutant-landscape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: -1;
}

.cyber-city {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    perspective: 500px;
}

.city-grid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(78, 205, 196, 0), rgba(78, 205, 196, 0.3));
    transform: rotateX(60deg);
    transform-origin: bottom;
}

.buildings {
    display: flex;
    gap: 5px;
    transform: translateY(30px);
}

.building {
    width: 20px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(78, 205, 196, 0.6), rgba(78, 205, 196, 0.1));
    position: relative;
    animation: buildingGlow 3s infinite alternate;
}

.building:nth-child(2n) {
    height: 80px;
}

.building:nth-child(3n) {
    height: 50px;
}

.building:nth-child(4n) {
    height: 90px;
}

.cyber-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 1;
}

/* Cyber Robot */
.cyber-robot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 100px;
    z-index: 5;
}

.robot-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50% 50% 30% 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: headBob 3s infinite alternate;
}

.robot-eye {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    animation: eyeGlow 2s infinite alternate;
}

.robot-eye.left {
    left: 25%;
}

.robot-eye.right {
    right: 25%;
}

.robot-body {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.robot-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 90%, rgba(78, 205, 196, 0.3) 90%),
        linear-gradient(transparent 90%, rgba(78, 205, 196, 0.3) 90%);
    background-size: 5px 5px;
}

.energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: coreGlow 2s infinite alternate;
}

@keyframes buildingGlow {
    0% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.3); }
    100% { box-shadow: 0 0 10px rgba(78, 205, 196, 0.6); }
}

@keyframes headBob {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes eyeGlow {
    0% { opacity: 0.7; box-shadow: 0 0 5px var(--primary-color); }
    100% { opacity: 1; box-shadow: 0 0 10px var(--primary-color); }
}

@keyframes coreGlow {
    0% { box-shadow: 0 0 10px rgba(78, 205, 196, 0.5); }
    100% { box-shadow: 0 0 15px rgba(78, 205, 196, 0.8); }
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

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

.feature-card {
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: var(--card-border);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    margin-left: 1rem;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(78, 205, 196, 0.5);
    border-radius: 30px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.7);
}

.nav-button i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

.card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: var(--card-border);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Sección de enlaces rápidos */
.quick-links {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.robot-display {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.robot-card .cyber-robot {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 auto;
}

.robot-card .robot-eye,
.robot-card .energy-core,
.robot-card .robot-eye-mega,
.robot-card .energy-core-mega {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: var(--spacing-sm);
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--primary-color);
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(5px);
} 