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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #86a8e7;
    --highlight-color: #fffc00;
    --background-light: #f9f9f9;
    --background-dark: #333;
    --text-light: #f1f1f1;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Estilo para la barra de navegación */
.navbar {
    background-color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.navbar .logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* Responsividad */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem;
        z-index: 5;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .navbar .logo img {
        height: 40px;
    }
}
/* Estilo para la sección Presentación */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #acb6e5;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0 20px;
}

.home-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.home-text {
    width: 100%;
    font-family: 'Arial', sans-serif;
}

.home-text h1 {
    font-size: 70px;
    margin-bottom: 10px;
}

.home-text h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--highlight-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin-right: 15px;
}

.social-links img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Responsividad */
@media (max-width: 768px) {
    .home-container {
        flex-direction: column;
        text-align: center;
    }

    .home-text {
        width: 100%;
        margin-bottom: 30px;
    }

    .home-text h1 {
        font-size: 28px;
    }

    .home-text h2 {
        font-size: 24px;
    }

    .social-links img {
        width: 30px;
        height: 30px;
    }
}
/* Estilo para la sección Sobre mí */
.about {
    background-color: var(--background-light);
    padding: 80px 20px;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.about-content {
    width: 60%;
    font-size: 18px;
    line-height: 1.6;
}

.about-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Responsividad */
@media (max-width: 768px) {
    .about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        width: 100%;
        margin-bottom: 20px;
    }
}
/* Estilo para la sección Mis Habilidades */
.skills {
    background-color: #f0f4f8;
    padding: 80px 20px;
}

.skills .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.skills h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    justify-items: center;
}

.skill-item {
    position: relative;
    width: 100%;
    max-width: 210px;
    height: 210px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.skill-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.1);
}

.skill-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.skill-item:hover .skill-overlay {
    opacity: 1;
}

.skill-overlay p {
    font-size: 16px;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .skills-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-item {
        max-width: 200px;
        height: 200px;
    }

    .skill-overlay p {
        font-size: 14px;
    }
}
/* Estilo para la sección Educación */
.education {
    background-color: var(--background-light);
    padding: 80px 20px;
    font-family: 'Arial', sans-serif;
}

.education .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.education h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

.education-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.education-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 40%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-10px);
}

.education-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.education-text {
    padding: 20px;
    text-align: center;
}

.education-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.education-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Responsividad */
@media (max-width: 768px) {
    .education-list {
        flex-direction: column;
        align-items: center;
    }

    .education-item {
        width: 80%;
    }

    .education-img {
        height: 200px;
    }

    .education-text {
        padding: 15px;
    }
}
/* Estilo para la sección Actividades */
.activities {
    background-color: #f0f4f8;
    padding: 80px 20px;
    font-family: 'Arial', sans-serif;
}

.activities .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.activities h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

.activities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.activity {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 48%;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.activity-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-info {
    padding: 20px;
    text-align: left;
}

.activity-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.activity-info p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.activity-info .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.activity-info .btn:hover {
    background-color: var(--primary-color-dark);
}

/* Responsividad */
@media (max-width: 768px) {
    .activities-list {
        flex-direction: column;
        align-items: center;
    }

    .activity {
        width: 80%;
    }

    .activity-img img {
        height: 180px;
    }

    .activity-info {
        padding: 15px;
    }
}
/* Estilo para la sección Contacto */
.contact {
    background-color: #f7f9fc;
    padding: 80px 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

/* Contenedor para el formulario con fondo */
.contact-form-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    text-align: left;
}

.contact-form label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    padding: 14px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--primary-color-dark);
}

.contact .social-links img {
    width: 40px;
    height: 40px;
}

.contact .social-links img:hover {
    transform: scale(1.1);
}

/* Responsividad */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px;
    }

    .contact-form {
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }

    .contact-form button {
        padding: 12px 20px;
    }
}
/* Estilo para el pie de página */
.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer p {
    font-size: 16px;
    margin: 5px 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
