.resume-skill {
    margin-bottom: 2rem;
}

.resume-skill h3 {
    font-size: 2rem;
    font-weight: 600;
}

.skill-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    /*Cambio hecho por Joseph*/
    justify-content: center; 
}

.skill-btn a {
    background-color: #f44730;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.skill-btn a:hover,
.skill-btn a.active {
    background-color: #242424;
    color: white;
}

/*Modificado por Joseph*/
.tools-btn {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
 
 /*Modificado por Joseph*/
 .tools-btn img {
    width: 100%;
    /* max-width: 80px; */
    height: auto;
    object-fit: contain;
 }

.tools-btn a {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    width: 120px;
}


.tools-btn a:hover {
    transform: translateY(-5px);
}



.tools-btn a.hidden {
    display: none;
}


.technologies {
    /* max-width: 1900px; */
    max-width: 98%;
    margin: 2%;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.description {
    font-size: 1.3em;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
}

.nav-tech ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
    margin: 0 0 40px 0;
    border-bottom: 2px solid #ecf0f1;
}

.nav-tech {
    cursor: pointer;
    padding: 10px 0;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tech::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F44730;
    transition: width 0.3s ease;
}

.nav-tech li:hover::after,
.nav-tech li.active::after {
    width: 100%;
}

.nav-tech li.active {
    color: #F44730;
}

.tech-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tech-icon {

    flex: 0 0 18%;
    margin: 10px;
    transition: transform 0.3s ease;
}



.tech-icon:hover img {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.tech-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tech-section.active {
    display: block;
    opacity: 1;
}

.tech-icon img {

    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    margin-top: 25px;
}

@media (max-width: 1200px) {
    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }
}

@media (max-width: 992px) {
    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {

    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }

    .skill-btn {
        flex-direction: column;
    }

    .skill-btn a {
        text-align: center;
    }

    /* .tools-btn {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
    } */

}


@media (max-width: 425px) {
    h2 {
        font-size: 1.8em;
    }

    .description {
        font-size: 0.9em !important;
        text-align: justify;
    }

    .nav-tech {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Para un desplazamiento suave en iOS */
    }

    .nav-tech ul {
        display: inline-flex;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        /* Espacio para la barra de desplazamiento */
    }

    .nav-tech li {
        flex: 0 0 auto;
        margin-right: 15px;
    }

    /* .tech-icons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    } */

    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .tools-btn {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .tools-btn a {
        flex: 0 0 auto;
        width: calc(33.33% - 1rem);
        display: flex;
        justify-content: center;
    }
    
    .tools-btn img {
        max-width: 120px;
        height: 110%;
    }
}

@media (max-width: 480px) {
    .tools-btn a {
        width: calc(50% - 1rem);
    }
    
    .tools-btn img {
        width: 120%; /* Tamaño más grande para móviles */
        height: 110%;
    }
}

@media (max-width: 320px) {
    .tools-btn {
        grid-template-columns: 1fr; /* Una sola columna para móviles muy pequeños */
    }
    
    .tools-btn img {
        width: 120px; /* Aún más grande para mejor visibilidad */
        height: 60px;
    }
}

/* Solo para el servicio 7 */
.col-12 .service-box-wrap .service-box-single {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
 }
 
 .col-12 .service-box-wrap .service-box-single .service-box-info {
    max-width: 1215px;
    width: 100%;
 }
 
 @media (max-width: 992px) {
    .col-12 .service-box-wrap .service-box-single {
        text-align: center;
        gap: 0;
    }
 
    .col-12 .service-box-wrap .service-box-single h2.d-inline-block {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .col-12 .service-box-wrap .service-box-single .service-box-info {
        text-align: center;
    }
 
    .col-12 .service-box-wrap .service-box-single .service-box-img {
        margin: 1rem auto;
        text-align: center;
        max-width: 80%;
    }
 
    .col-12 .service-box-wrap .service-box-single .service-box-img img {
        margin: 0 auto;
    }
    .service-box-single .service-box-img {
        width: 100%;
        max-width: 250px;
        margin: 1rem auto;
    }

    .service-box-single .service-box-img img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
 }
 
 .service-box-single {
    border-top: 1px solid #e5e5e5;
    margin-top: 2rem;
 }

 .subscription-section {
    position: relative;
    background: url('../images/hero/hero-bg-img-3.png') no-repeat center center/cover;
    height: 44%; /* Ajusta la altura según tus necesidades */
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-overlay {
    background: rgba(255, 255, 255, 1); /* Fondo semitransparente */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 700px;
}

.subscription-overlay h2 {
    font-weight: bold;
    margin-bottom: 20px;
}

.subscription-overlay p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.subscription-overlay .btn {
    color: #fff;
    display: inline-flex;
    line-height: 1;
    font-family: "Epilogue", sans-serif;
    font-weight: 600;
    border-radius: 5px;
    letter-spacing: 0.8px;
    padding: 17px 27px;
    background-color: #F44730;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    animation: bounce 3s infinite; /* Añade la animación */
}

   /* Animación de subir y bajar */
   @keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Posición inicial y final */
    }
    50% {
        transform: translateY(-10px); /* Sube 10px */
    }
}

.subscription-overlay .btn:hover {
    background-color: #000;
    color: #ffffff;
}

 /* Responsive Styles */
 @media (max-width: 768px) {
    .subscription-section {
        background: none; /* Elimina la imagen de fondo */
        padding-bottom: 50px; /* Agrega espacio inferior */
        height: auto; /* Ajusta la altura automáticamente */
        box-shadow: 0px 2px 18px rgba(0, 0, 0, 0.15);
        border-radius: 21px;
        margin: 10px;
    }

    .subscription-overlay {
        padding: 20px; /* Reduce el padding para móviles */
    }

    .subscription-overlay p {
        font-size: 1rem; /* Reduce el tamaño del texto */
    }
}

    /* Ocultar la imagen en la vista específica - Sufarce Duo*/
    @media (max-width: 1114px) and (max-height: 705px) {
        .subscription-section {
            background: none; /* Elimina la imagen */
            padding-bottom: 50px; /* Añade padding inferior */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Añade un box-shadow */
        }
    }