/* Variables de Color Techie */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #06b6d4; /* Cian Tecnológico */
    --secondary: #6366f1; /* Indigo */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-head: 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Fondo de Grilla Estilo "Blueprint" */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Tipografía y Utilidades */
h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
}

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

.section-padding {
    padding: 80px 0;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.cursor {
    animation: blink 1s infinite;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Botones */
.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-secondary:hover {
    color: var(--primary);
}

.btn-ghost {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 11px 23px;
    text-decoration: none;
    border-radius: 2px;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Cards (Glassmorphism) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.icon {
    font-family: var(--font-head);
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Formulario */
.cta-final {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.05));
}

.tech-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-form input {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--text-muted);
    color: white;
    width: 300px;
    outline: none;
}

.tech-form input:focus {
    border-color: var(--primary);
}

.hidden {
    display: none;
}

#formMessage {
    margin-top: 20px;
    color: var(--primary);
    font-weight: bold;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.tech-sign {
    font-family: var(--font-head);
    color: #10b981; /* Verde status */
}

/* Animación cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .tech-form { flex-direction: column; align-items: center; }
    .footer-content { flex-direction: column; text-align: center; gap: 10px; }
}