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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
}

h2 {
    color: #00d2ff;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
}


.hero {
    min-height: 50vh; /* Cambiamos de 80vh a 50vh para que ocupe la mitad de la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.title {
    font-size: 3rem;
    color: #00d2ff;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    background: #00d2ff;
    color: #0f172a;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #38bdf8;
    transform: scale(1.05);
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.sobre-mi p {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
}

/* --- CARDS DE SERVICIOS Y PORTAFOLIO --- */
.card, .card-proyecto {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h3, .card-proyecto h3 {
    color: #f8fafc;
    margin-bottom: 8px;
}

.card p, .card-proyecto p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* --- ESTILOS EXTRA PARA EL PORTAFOLIO --- */
.tech-tags {
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap; 
}

.tech-tags span {
    background-color: #334155;
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #0284c7;
}

.acciones-proyecto {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-demo {
    background: #00d2ff;
    color: #0f172a;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-demo:hover {
    background: #38bdf8;
}

.btn-repo {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-repo:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* --- CONTACTO --- */
.contacto {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    background-color: transparent;
    color: #00d2ff;
    border: 1px solid #00d2ff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: #00d2ff;
    color: #0f172a;
}

/* --- AJUSTES PARA CELULAR (RESPONSIVE) --- */
@media (max-width: 768px) {
    .title { 
        font-size: 2.2rem; 
    }
    
    .subtitle { 
        font-size: 1rem; 
        margin-bottom: 20px;
    }
    
    section { 
        padding: 40px 15px; 
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}