/* 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) {

    .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;
    }


    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .contact-details {
        align-items: center;
    }

    .testimonials-content {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        width: 80%;
    }

    .welcome {
        padding: 60px 0;
        /* Reduce el espaciado vertical */
        text-align: center;
    }

    .section-title {
        font-size: 36px;
        /* Reduce el tamaño del título */
        margin-bottom: 10px;
        /* Reduce el espacio inferior */
    }

    .section-text {
        font-size: 16px;
        /* Reduce el tamaño del texto */
        margin-bottom: 20px;
        /* Reduce el espacio inferior */
    }

    .cta-button {
        padding: 10px 20px;
        /* Reduce el tamaño del botón */
        font-size: 20px;
        /* Reduce el tamaño del texto del botón */
    }

    /* Elimina el efecto de sombra en dispositivos móviles */
    .welcome {
        box-shadow: none;
    }

    /* Estilo para la imagen de fondo (ajustado para dispositivos móviles) */
    .welcome::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Estilos para la sección "Bienvenido a mi Portfolio" */
.welcome {
    background-image: url('tu-imagen-de-fondo.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.welcome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-text {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 24px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Efecto de sombra sutil */
.welcome {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

/* Estilo para la imagen de fondo */
.welcome::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Estilos para la sección "Acerca de Mí" */
.about-me {
    background-color: #f7f7f7;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.about-me::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('tu-imagen-de-fondo.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.about-me-info {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-me-image {
    flex: 1;
    max-width: 300px;
    margin-right: 30px;
}

.about-me-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.about-me-text {
    flex: 2;
    text-align: left;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.section-text {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #eee;
}

/* Estilo para el botón de contacto */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 24px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}


/* Estilos para la sección "Mis Habilidades" */
.skills {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 40px;
}

.skill {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
}

.skill h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.skill p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Estilos para íconos (FontAwesome) */
.skill-icon {
    color: #3498db;
}


/* Estilos avanzados para la sección "Mis Servicios" */
.services {
    background-color: #f7f7f7;
    padding: 100px 0;
    text-align: center;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.service {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Efecto de cambio de color en el ícono al pasar el mouse */
.service:hover .service-icon {
    color: #f39c12;
}

/* Estilos para íconos (FontAwesome) */
.service-icon {
    color: #3498db;
    transition: color 0.3s ease;
}


/* Estilos avanzados y modernos para la sección "Proyectos Destacados" */
.featured-projects {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.project {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    max-width: 200%;
    height: auto;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #3498db;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #2980b9;
}

.project-details {
    padding: 20px;
    text-align: left;
}

.project-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.project-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}






/* Estilos avanzados y modernos para las imágenes de proyectos destacados */
.project-image img {
    max-width: 50%;
    /* El ancho máximo se ajustará automáticamente */
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
    filter: brightness(90%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image img::after {
    content: "\f030";
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover img::after {
    opacity: 1;
}


/* Estilos para la sección de Contacto */
.contact {
    background-color: #f8f8f8;
    padding: 80px 0;
    text-align: center;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.contact-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 18px;
    align-items: flex-start;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-detail i {
    font-size: 24px;
    color: #3498db;
}

.contact-text {
    color: #555;
    font-weight: bold;
}

.contact-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2186c1;
}

.contact-address {
    color: #555;
}

.contact-form {
    flex: 1;
    text-align: center;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #2186c1;
}

/* Estilos para la sección de Testimonios */
.testimonials {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.testimonials-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
    text-transform: uppercase;
}

.testimonial {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    text-align: left;
    max-width: 400px;
    flex: 1;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.testimonial-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 2px solid #3498db;
}

.author-info {
    font-size: 16px;
    color: #777;
}

/* Estilos para la sección de Portfolio */
.portfolio {
    background-color: #f7f7f7;
    padding: 100px 0;
    text-align: center;
}

.portfolio-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    margin-bottom: 40px;
    color: #333;
    text-transform: uppercase;
}

.section-text {
    font-size: 24px;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.portfolio-item {
    width: calc(33.33% - 20px);
    margin: 10px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.item-overlay p {
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin: 0;
}
 
/* Estilos para la sección de redes sociales */
.social-media {
    background-color: #f8f8f8;
    padding: 60px 0;
    text-align: center;
}

.social-media .section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-icon {
    margin: 0 20px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icon img {
    width: 40px; /* Tamaño ajustado para las imágenes de logotipos */
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.1); /* Efecto de zoom al pasar el mouse sobre las imágenes */
}

.social-text {
    font-size: 18px;
    color: #555;
}

.social-icon:hover {
    color: #3498db;
}







/* 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;
}

/* Estilo del botón */
.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.custom-button:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: scale(1.05);
}

.custom-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2980b9, #3498db);
    transition: left 0.3s;
}

.custom-button:hover::before {
    left: 0;
}