/* --- VARIABLES DE DISEÑO (Fácil de personalizar) --- */
:root {
    --bg-principal: #0f172a;
    --bg-secundario: #1e293b;
    --texto-principal: #f8fafc;
    --texto-secundario: #94a3b8;
    --acento: #00f2fe; /* Azul neón para Python/Tech */
    --acento-alt: #4facfe;
    --codigo-color: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-principal);
    color: var(--texto-principal);
    line-height: 1.6;
}

/* --- MENÚ DE NAVEGACIÓN --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--acento);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--texto-principal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* --- SECCIÓN INICIO (HERO) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem 2rem;
    gap: 2rem;
}

.hero-info {
    flex: 1;
}

.hero-info h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-info span {
    color: var(--acento);
    background: linear-gradient(45deg, var(--acento), var(--acento-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--texto-secundario);
    margin-bottom: 2rem;
}

/* Contenedor de la Imagen de Código */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    width: 100%;
    max-width: 500px;
    background: #050b14;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 242, 254, 0.15);
    overflow: hidden;
}

.window-header {
    background: #111827;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }

/* Simulación visual de código dinámico */
.window-content {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a7f3d0;
}

.code-keyword { color: #f43f5e; }
.code-string { color: #eab308; }
.code-func { color: #38bdf8; }
.code-comment { color: #64748b; }

/* --- SECCIÓN PROYECTOS --- */
.proyectos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--acento);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

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

.card {
    background-repeat: repeat-x;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--texto-principal);
}

.card p {
    color: var(--texto-secundario);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 242, 254, 0.1);
    color: var(--acento);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.icon-contact {
    background: rgba(0, 242, 254, 0.1);
    color: var(--acento);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
}

/* --- SECCIÓN CONTACTO --- */
.contacto {
    max-width: 600px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.form-contacto {
    background-color: var(--bg-secundario);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--texto-secundario);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-principal);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--texto-principal);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--acento);
}

.btn-enviar {
    background: linear-gradient(45deg, var(--acento), var(--acento-alt));
    color: #0f172a;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s;
}

.btn-enviar:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--texto-secundario);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-info h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
}