/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f4f7fa;
    color: #333;
    padding-top: 60px;
}

/* NAVBAR */
.navbar {
    background: #1e272e;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00a8ff;
}

/* SECCIONES */
.card {
    background: #fff;
    margin: 1.5rem auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

/* PERFIL */
.images {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.foto-perfil {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #00a8ff;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.foto-perfil:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* LISTA SKILLS */
.lista-simple {
    list-style-type: square;
    text-align: left;
    max-width: 300px;
    margin: 1rem auto;
    padding-left: 1rem;
}

.lista-simple li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* PROYECTOS */
.proyectos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    padding: 1rem 0;
}

.proyecto-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.proyecto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.proyecto-card img {
    width: 100%;
    border-radius: 5px;
    margin: 0.5rem 0;
}

.proyecto-card a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #00a8ff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.proyecto-card a:hover {
    background: #0097e6;
}

/* FORMULARIO */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background: #00a8ff;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0097e6;
}

/* ANIMACIONES */
.fade-in {
    animation: fadeIn 1.5s ease;
}

.slide-up {
    animation: slideUp 1.5s ease;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MEDIA QUERIES */
@media (max-width: 600px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
