
body {
    font-family: Arial sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #1A2DFF;
    color: #2F00EB;
}


main {
    padding: 20px;
}

header {
    background-color: #FF1A29;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px; 
}

nav li {
    display: inline;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffc107; 
}

section {
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

section h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2em;
}

#sobre-mi {
    text-align: center;
}

.imagen-perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px;
    border: 4px solid #007bff;
}

#proyectos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.proyecto {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 6px;
    flex: 1 1 calc(50% - 20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.proyecto h3 {
    color: #343a40;
    margin-top: 0;
}

.proyecto a {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.proyecto a:hover {
    background-color: #218838;
}

#habilidades ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

#habilidades li {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#habilidades li:hover {
    background-color: #0056b3;
}

#testimonios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.testimonio {
    flex: 1 1 calc(50% - 20px);
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 6px;
    min-width: 300px;
}

blockquote {
    margin: 0;
    font-style: italic;
}

footer {
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    color: #6c757d;
}

#contacto form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contacto label {
    font-weight: bold;
    color: #007bff;
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

#contacto textarea {
    resize: vertical;
}

#contacto button[type="submit"] {
    background-color: #dc3545;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#contacto button[type="submit"]:hover {
    background-color: #c82333;
}

/* === Pie de Página (Footer) === */
footer {
    text-align: center;
    padding: 15px;
    background-color: #343a40;
    color: white;
    font-size: 0.9em;
}

footer a {
    color: #ffc107;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .proyecto,
    .testimonio {
        flex: 1 1 100%;
    }
}