/* =========================================
   VARIABLES Y RESET (CSS)
   ========================================= */
:root {
    --primary-color: #0f172a; /* Azul oscuro casi negro */
    --accent-color: #06b6d4; /* Cian tecnológico */
    --secondary-color: #334155; /* Gris azulado */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    --white: #ffffff;
    /* Se ha cambiado Inter por Encode Sans */
    --font-main: 'Encode Sans', sans-serif; 
    --font-code: 'JetBrains Mono', monospace;
    --transition: all 0.3s ease;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800; /* Encode Sans se ve bien en bold */
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px; /* Ajuste para la fuente condensada */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 10px;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 800px;
}

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-code);
}

.logo span { color: var(--accent-color); }

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
    padding-top: 70px; /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* =========================================
   ABOUT & FUNDAMENTATION
   ========================================= */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.highlight-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-top: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* =========================================
   OBJECTIVES (TIMELINE)
   ========================================= */
.objectives {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

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

/* =========================================
   TECH STACK
   ========================================= */
.tech-stack {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.tech-stack .section-title { color: var(--white); }
.tech-stack .subtitle { color: #cbd5e1; }

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.tech-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-code);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.tech-category {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
    padding: 100px 0;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-box {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

footer p { opacity: 0.7; font-size: 0.9rem; }

/* =========================================
   ANIMATIONS (JS TRIGGER)
   ========================================= */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* En una versión completa se añadiría menú hamburguesa */
    .section-title { font-size: 2rem; }
}
