/* ========================================================
   VARIABLES Y CONFIGURACIÓN INICIAL
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Syne:wght@600;800&display=swap');

:root {
    /* Paleta de Colores Premium (Dark Theme) */
    --bg-color: #050505;
    --bg-surface: #121212;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Gradiente VK (Azul Eléctrico a Púrpura Neón) */
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f00ff 100%);
    --accent-color: #4facfe;
    
    /* Efecto Cristal (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-logo {
    font-family: 'Syne', sans-serif; /* Fuente llamativa para los títulos */
}

a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }

/* ========================================================
   UTILIDADES PREMIUM
   ======================================================== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* ========================================================
   BOTONES
   ======================================================== */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
}

.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; display: block; }

/* ========================================================
   NAVEGACIÓN (HEADER)
   ======================================================== */
.navbar-premium {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; max-width: 1200px; margin: 0 auto;
}

.brand-logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.logo-v { color: #fff; }
.logo-k { color: var(--accent-color); }
.brand-text { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 400; color: var(--text-muted); margin-left: 8px;}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Espacio para el header */
    position: relative;
}

/* Luz de fondo sutil detrás del texto principal */
.hero-background-element {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(127,0,255,0.15) 0%, rgba(5,5,5,0) 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

/* ========================================================
   SERVICIOS Y SECCIONES GENERALES
   ======================================================== */
.services-section, .portfolio-section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card { padding: 40px; }
.service-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
.icon-wrapper { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); margin-bottom: 25px; font-size: 0.95rem; }

.service-features { list-style: none; color: var(--text-muted); font-size: 0.9rem;}
.service-features li { margin-bottom: 10px; display: flex; align-items: center; }
.service-features li::before { content: "✓"; color: var(--accent-color); margin-right: 10px; font-weight: bold; }

/* ========================================================
   PORTAFOLIO
   ======================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
}

.portfolio-image { width: 100%; height: 250px; overflow: hidden; background: #1a1a1a; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-info { padding: 25px; border: 1px solid var(--glass-border); border-top: none; border-radius: 0 0 16px 16px; }
.project-category { color: var(--accent-color); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.portfolio-info h3 { margin: 10px 0; font-size: 1.3rem; }
.project-metrics { color: var(--text-muted); font-size: 0.9rem; }

/* ========================================================
   FORMULARIO Y FOOTER
   ======================================================== */
.cta-box {
    background: var(--bg-surface);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin: 50px auto 100px;
    max-width: 800px;
}

.premium-form { margin-top: 40px; text-align: left; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
input, textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}
input:focus, textarea:focus { border-color: var(--accent-color); }

.premium-footer { border-top: 1px solid var(--glass-border); padding: 60px 0 20px; background: #020202; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 15px; font-size: 0.9rem; max-width: 300px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 20px; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 10px; font-size: 0.9rem; }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }

.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }

/* ========================================================
   RESPONSIVO (MÓVILES)
   ======================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; /* Oculta el menú en móviles por ahora */ }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .form-row { flex-direction: column; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 30px 20px; }
}