/* =========================================
   1. RESET & VARIABLES (Arquitectura Limpia)
   ========================================= */
:root {
    --bg-dark: #050505;
    --card-bg: #0f0f0f;
    --accent-blue: #0070f3;
    --whatsapp: #25d366;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family:
        "Inter",
        -apple-system,
        sans-serif;
    line-height: 1.6;
    padding-top: var(--nav-height); /* Espacio para que el nav no tape el H1 */
    overflow-x: hidden;
}

/* Forzar que NINGÚN enlace sea azul genérico */
a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

/* =========================================
   2. NAVBAR (UI/UX Corregido)
   ========================================= */
.main-header {
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #222;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-family: "Orbitron", sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: 700;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

/* Botón Contacto en Nav */
.btn-cta {
    border: 1px solid var(--accent-blue);
    padding: 8px 18px;
    border-radius: 4px;
}

/* =========================================
   3. HERO & SECCIONES (Espaciado UX)
   ========================================= */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hero h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    max-width: 700px;
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* =========================================
   4. GRID DE PROYECTOS (Arreglado)
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-badge {
    color: var(--accent-blue);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-content a {
    color: var(--accent-blue) !important;
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================================
   5. BOTÓN WHATSAPP & FOOTER
   ========================================= */
.btn-whatsapp-premium {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
    margin-top: 30px;
}

.social-pills {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.social-pills a {
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--text-dim) !important;
    font-size: 0.8rem;
}

.main-footer {
    padding: 80px 5% 40px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

/* =========================================
   6. RESPONSIVE (Móvil)
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; /* Se activa con JS */
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #0a0a0a;
        padding: 40px;
        border-bottom: 1px solid #222;
    }

    .nav-links.active {
        display: flex;
    }
}
/* SECCIÓN PROCESO PREMIUM */
.process-section {
    padding: 120px 5%;
    position: relative;
}

.pre-title {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 60px;
}

.process-pipeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

/* La línea vertical que conecta los pasos */
.step-connector {
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    color: var(--accent-blue);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.3);
    z-index: 2;
}

.step-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    transition: 0.4s ease;
    width: 100%;
}

.step-content:hover {
    border-color: var(--accent-blue);
    background: #121212;
    transform: translateX(10px);
}

.step-content h3 {
    font-family: "Orbitron", sans-serif;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Tags sutiles debajo de cada paso */
.step-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.step-tags span {
    background: rgba(0, 112, 243, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .process-step {
        flex-direction: column;
        gap: 20px;
    }
    .step-connector {
        display: none;
    }
}
/* 1. TIPOGRAFÍA DINÁMICA & RESPONSIVE */
html {
    /* Base más grande para que 1rem sea legible */
    font-size: 18px;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    } /* Ajuste para móviles */
}

h1 {
    /* Mínimo 2rem, ideal 8vw, máximo 4.5rem */
    font-size: clamp(2.2rem, 10vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 30px;
}

p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 75ch; /* Limita el ancho de lectura para que no canse la vista */
}

/* 2. OPTIMIZACIÓN DE ESPACIOS (SENSACIÓN DE VACÍO) */
section {
    /* Reducimos el padding exagerado */
    padding: 80px 7%;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    section {
        padding: 60px 5%; /* Menos espacio en móvil para aprovechar la pantalla */
    }
}

/* 3. ANIMACIONES DE ENTRADA (REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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