/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    background: linear-gradient(to bottom, #ffffff, #f1f4f9);
    color: #333;
    padding: 0 15px;
}

header {
    text-align: center;
    background: linear-gradient(135deg, #0074D9, #00d1ff);
    color: white;
    padding: 50px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

header {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}


header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #005bb5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin: 5px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

nav a:hover {
    color: #ffcc00;
    transform: scale(1.1);
}

/* Secciones */
section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2.2rem;
    color: #0074D9;
    margin-bottom: 20px;
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #00d1ff;
    margin-top: 5px;
    border-radius: 2px;
}

section p, section ul {
    font-size: 1rem;
    color: #555;
}

ul {
    list-style: none;
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

ul li::before {
    content: "●";
    color: #0074D9;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Imagen destacada */
#acerca img {
    display: block;
    margin: 20px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #00d1ff;
    object-fit: cover;
}

/* Proyectos y artículos */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background: linear-gradient(135deg, #f4f4f9, #ffffff);
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.project-item h3 a {
    color: #005bb5;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
}

.project-item h3 a:hover {
    text-decoration: underline;
}

.project-item img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Contacto */
.contact-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-icons a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.contact-icons a img:hover {
    transform: scale(1.3);
}

.contact-info p {
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
}

/* Footer */
footer {
    text-align: center;
    background: #0074D9;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    margin-top: 40px;
}

/* Animación de aparición */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-in-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo para el botón de modo oscuro */
button {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}



.contact-icons a img {
    animation: float 2s infinite;
    transition: transform 0.3s ease-in-out;
}

.contact-icons a img:hover {
    transform: scale(1.2) rotate(15deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


/* Responsivo */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav a {
        margin: 5px 10px;
    }

    section {
        padding: 15px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .contact-icons a img {
        width: 40px;
        height: 40px;
    }
}
