/* Estilos generales */
body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Estilos para el encabezado */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

header.nav-scroll {
    background-color: rgba(44, 62, 80, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Estilos para el encabezado normal en pantallas más grandes */
.navbar {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Estilos para el menú hamburguesa en dispositivos móviles */
.menu-icon {
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 30px;
}

.bar {
    background-color: #ecf0f1;
    height: 4px;
    width: 100%;
    transition: transform 0.3s ease;
}

.menu-icon.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Estilos para dispositivos móviles (menú hamburguesa) */
@media (max-width: 768px) {

    /* Estilos para el menú hamburguesa en dispositivos móviles */
    .menu-icon {
        cursor: pointer;
        display: flex;
        /* Muestra el icono del menú en dispositivos móviles */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 30px;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .bar {
        background-color: #ecf0f1;
        height: 4px;
        width: 100%;
        transition: transform 0.3s ease;
    }

    .menu-icon.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Ajusta el estilo de los elementos de navegación */
    nav ul {
        flex-direction: column;
        /* Muestra los elementos de navegación en una columna */
        align-items: center;
        /* Centra los elementos horizontalmente */
        padding: 10px 0;
        background-color: #2c3e50;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        z-index: 99;
    }

    nav ul.active {
        display: flex;
        /* Muestra los elementos de navegación cuando el menú está activo */
    }

    nav ul li {
        margin: 10px 0;
        /* Añade espacio entre los elementos de navegación */
    }

    nav ul li:last-child {
        margin-bottom: 0;
        /* Elimina el espacio inferior del último elemento */
    }

    /* Ajusta el estilo de los enlaces en dispositivos móviles */
    nav ul li a {
        font-size: 16px;
        /* Reduce el tamaño de fuente */
        margin-right: 0;
        /* Elimina el margen derecho */
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #2c3e50;
        position: absolute;
        top: 60px;
        left: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        font-size: 16px;
    }

    header {
        padding: 10px 0;
        /* Reduce el espaciado vertical */
    }

    nav {
        flex-direction: column;
        /* Muestra los elementos de navegación en una columna */
        align-items: center;
        /* Centra los elementos horizontalmente */
        padding: 10px 0;
        position: relative;
        /* Añade posición relativa para que funcione el menú hamburguesa */
    }

    nav ul {
        position: absolute;
        /* Coloca la lista de navegación en la parte superior en dispositivos móviles */
        top: 60px;
        /* Ajusta la posición superior según sea necesario */
        left: -100%;
        /* Inicialmente oculta la lista de navegación */
        width: 100%;
        background-color: #2c3e50;
        transition: left 0.3s ease;
    }

    nav.active ul {
        left: 0;
        /* Muestra la lista de navegación cuando está activa */
    }

    nav ul li {
        margin: 10px 0;
        /* Añade espacio entre los elementos de navegación */
    }

    nav ul li:last-child {
        margin-bottom: 0;
        /* Elimina el espacio inferior del último elemento */
    }

    .menu-icon {
        cursor: pointer;
        color: #ecf0f1;
        font-size: 24px;
        position: absolute;
        top: 20px;
        right: 20px;
        display: block;
    }

    .page-description .section-title {
        font-size: 36px;
    }

    .page-description .section-text {
        font-size: 18px;
    }

    .page-description .cta-button {
        padding: 10px 20px;
        font-size: 18px;
        margin-top: 20px;
    }

    /* Estilos para la sección de Redes Sociales */
    .social-media {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .social-icons {
        flex-direction: column;
    }

    .social-icon {
        font-size: 24px;
        margin: 10px 0;
    }

    .social-text {
        font-size: 16px;
        margin-top: 5px;
    }

    .social-icon i {
        font-size: 24px;
    }

    /* Estilos para el footer */
    footer {
        padding: 20px 0;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-text {
        font-size: 16px;
    }

    .footer-social {
        margin-top: 10px;
    }

    .footer-social a {
        font-size: 20px;
        margin: 0 10px;
    }

    /* Estilos para la sección de proyectos destacados */
    .featured-projects {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .project-card {
        height: auto;
    }

    .project-thumbnail {
        height: 200px;
    }

    .project-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .project-description {
        font-size: 16px;
    }

    .project-link {
        margin-top: 10px;
        font-size: 16px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-button {
        width: 100%;
        margin-bottom: 10px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .image {
        border-radius: 5px;
    }

    .category {
        padding: 8px 16px;
        font-size: 16px;
        margin-right: 5px;
    }

    .image-overlay h3 {
        font-size: 20px;
    }

    .image-overlay p {
        font-size: 14px;
    }
    .contact-form {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .form-group {
        width: 100%;
    }

    .input-field, .textarea-field {
        font-size: 14px;
    }

    .submit-button {
        font-size: 16px;
    }
    .future-projects .project-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .image-gallery {
        padding: 30px 0;
    }

    .gallery-title {
        font-size: 20px;
    }

    .gallery-categories {
        margin-bottom: 15px;
    }

    .category {
        padding: 6px 12px;
        font-size: 14px;
        margin-right: 6px;
    }

    .image img {
        max-width: 100%;
        height: auto;
    }
    
    
    .contact-form {
        padding: 30px 10px; /* Ajusta el espaciado vertical y horizontal para dispositivos móviles */
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .section-text {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .input-field, .textarea-field {
        font-size: 14px;
        padding: 10px; /* Ajusta el espaciado de los campos de entrada para dispositivos móviles */
    }

    .textarea-field {
        height: 100px;
    }

    .submit-button {
        font-size: 16px;
        padding: 10px 20px; /* Ajusta el espaciado del botón para dispositivos móviles */
    }

    .message {
        font-size: 14px;
        margin-top: 15px;
        padding: 6px;
    }

}


/* Estilos para el footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-logo a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-logo a:hover {
    color: #3498db;
}

.footer-text {
    font-size: 18px;
    max-width: 800px;
    text-align: center;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    font-size: 24px;
    margin: 0 15px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #3498db;
}


/* Estilos para la sección de proyectos destacados */
.featured-projects {
    padding: 60px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 250px;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.project-description {
    font-size: 18px;
    color: #000000;
    text-align: center;
}

.project-link {
    margin-top: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-link {
    transform: translateY(-5px);
}

.project-link i {
    margin-right: 5px;
}


/* Estilos para la sección "Descripción de la Página de Proyectos" */
.page-description {
    background-color: #333;
    padding: 80px 0;
    text-align: center;
}

.page-description .section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-description .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.page-description .section-text {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 40px;
}

.page-description .cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 24px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
    font-weight: 700;
}

.page-description .cta-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Efecto de sombra sutil */
.page-description {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

/* Estilo para la tipografía */
body {
    font-family: 'Poppins', sans-serif;
}

/* Estilo para los íconos */
.page-description .icon {
    font-size: 36px;
    color: #e74c3c;
    margin-right: 10px;
}

/* Estilo para la animación del botón */
.page-description .cta-button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-description .cta-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}


/* Estilos para la sección de Filtrado de Proyectos */
.project-filter {
    background-color: #f5f5f5;
    padding: 60px 0;
    text-align: center;
}

.project-filter .section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button.active {
    background-color: #e74c3c;
}

.filter-button:hover {
    background-color: #e74c3c;
}

.filter-button:not(.active):hover {
    background-color: #3498db;
}

/* Estilos para la sección de Galería de Imágenes */
.image-gallery {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f8f8;
}

.gallery-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.gallery-categories {
    margin-bottom: 30px;
}

.category {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category.active {
    background-color: #e74c3c;
}

/* Estilos para los botones de categoría */
.category:hover {
    background-color: #e74c3c;
}

/* Estilos para la sección de Tecnologías y Herramientas */
.technologies {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-item {
    text-align: center;
    margin: 20px;
    width: 150px; /* Tamaño de las imágenes */
    height: 150px; /* Tamaño de las imágenes */
    transition: transform 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item img {
    width: 100%;
    height: 100%; /* Ajustar al tamaño del contenedor */
    border-radius: 10px;
}

.tech-name {
    font-size: 18px;
    padding: 10px;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #3498db;
    border-radius: 0 0 10px 10px;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}



/* Estilos avanzados para la sección de Formulario de Contacto */
.contact-form {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
    text-transform: uppercase;
}

.section-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-group {
    width: 48%;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: block;
}

.input-field, .textarea-field {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.input-field:focus, .textarea-field:focus {
    border-color: #3498db;
    box-shadow: 0px 0px 10px rgba(52, 152, 219, 0.5);
}

.textarea-field {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #3498db;
    color: #fff;
    font-size: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
    box-shadow: 0px 0px 10px rgba(52, 152, 219, 0.5);
}
.message {
    font-size: 20px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.message.success {
    background-color: #2ecc71;
    color: #fff;
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Estilos para la sección "Proyectos Personales" */
.personal-projects-section {
    padding: 60px 0;
    text-align: center;
}

.personal-projects-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.personal-projects-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.personal-project-card {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personal-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.personal-project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 20px;
}

.personal-project-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.personal-project-description {
    font-size: 18px;
    color: #666;
    text-align: center;
}

.personal-project-link {
    margin-top: 20px;
    text-decoration: none;
    color: #3498db;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.personal-project-card:hover .personal-project-link {
    transform: translateY(-5px);
}

.personal-project-link i {
    margin-right: 5px;
}


/* Estilos para la sección "Proyectos Futuros" */
.future-projects {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.future-projects .container {
    max-width: 1200px;
    margin: 0 auto;
}

.future-projects .section-heading {
    margin-bottom: 40px;
}

.future-projects .section-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.future-projects .section-description {
    font-size: 20px;
    color: #777;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.future-projects .project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: flex-start;
}

.future-projects .project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.future-projects .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.future-projects .project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.future-projects .project-info {
    padding: 20px;
}

.future-projects .project-title {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.future-projects .project-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.future-projects .project-link {
    text-decoration: none;
    color: #3498db;
    font-size: 18px;
    transition: color 0.3s ease;
    display: inline-block;
    font-weight: bold;
}

.future-projects .project-link:hover {
    color: #1e87d8;
}

@media screen and (max-width: 480px) {
    .future-projects .project-card {
        width: 100%;
    }
}