.titulo {
    margin: 0;
    font-size: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

section {
    background: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

section {
    animation: aparecer 0.6s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* EFECTO HOVER */
section:hover {
    transform: translateY(-5px);
}

body.dark .header {
    background-color: #1e1e1e;
}

body.dark .nav a {
    color: white;
}

body.dark .titulo {
    color: #00bfff;
}

button {
    padding: 10px 15px;
    background: linear-gradient(90deg, #007BFF, #00bfff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

body.dark {
    background-color: #121212;
    color: white;
}

body.dark section {
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

body.dark input {
    background-color: #333;
    color: white;
    border: 1px solid #555;
}

/* 🔥 CENTRAR CONTENIDO */
body {
    max-width: 800px;
    margin: auto;
}

body.dark i {
    color: #00bfff;
}

/* 🔥 HEADER MÁS PRO */
header {
    border-radius: 0 0 15px 15px;
}

/* 🔥 BOTONES MEJORADOS */
button {
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* 🔥 INPUTS MÁS LINDOS */
input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px;
}

/* 🔥 ESPACIADO */
button, input {
    margin-top: 5px;
}

/* 🔥 HEADER MODERNO */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 15px 30px;
    position: sticky;
    top: 0;
}

/* LOGO */
.logo {
    font-weight: 600;
    font-size: 22px;
    background: linear-gradient(90deg, #007BFF, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

i {
    margin-right: 8px;
}

.perfil {
    text-align: center;
}

.perfil img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover; /* 🔥 IMPORTANTE */
    border: 4px solid #007BFF;
}

.perfil img {
    transition: 0.3s;
}

.perfil img:hover {
    transform: scale(1.1);
}
.barra {
    width: 100%;
    background: #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
}

.progreso {
    height: 10px;
    border-radius: 10px;
}

/* valores normales */
.html { width: 80%; background: #e34c26; }
.css { width: 70%; background: #264de4; }
.js { width: 60%; background: #f0db4f; }

/* cuando se activa */
.progreso.visible {
    width: inherit;
}

/* niveles */
.html { width: 80%; background: #e34c26; }
.css { width: 70%; background: #264de4; }
.js { width: 60%; background: #f0db4f; }


/* NAV */
.nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #6091a8;
    font-size: 14px;
}

/* HOVER */
.nav a:hover {
    color: #325477;
}

/* BOTÓN */
.header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.header {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 🔥 CONTACTO MÁS GRANDE */
.contacto {
    padding: 30px;
}

/* INPUTS Y TEXTAREA MÁS GRANDES */
.contacto input,
.contacto textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* TEXTAREA */
textarea {
    resize: none;
}

/* BOTÓN MÁS SEPARADO */
.contacto button {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        padding: 10px;
    }
}

html {
    scroll-behavior: smooth;
}

.proyectos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

body.dark .card {
    background-color: #1e1e1e;
}

:root {
    --color-principal: #007BFF;
}

