/* ----- POPPINS FONT LINK ----- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


/*VARIABLES MODO CLARO*/

:root {
    --color-fondo: #f5f7fa;
    --color-texto: #1f2d3d;
    --color-primario: #5c9ded;
    --color-hover: #235789;
    --color-tarjeta: #ffffff;
}

/* ===== RESET SIMPLE ===== */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: 'Poppins', sans-serif;
}


/* ============== HEADER =============== */

/* ===== NAVBAR ESTILO BASE ===== */

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-fondo);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav ul li a{
    position: relative;
    display: inline-block;
    color: var(--color-texto);
    padding: 0.5rem 0;
}

nav ul li a::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-hover);
    transition: width 0.3s;
}

nav ul li a:hover::after{
    width: 100%;
}


/* ===== LOGO ===== */

#logo-link{
    text-decoration: none;
    color: var(--color-primario);
}

.logo{
    font-size: 1.5rem;
    font-weight: 700;
}


/* ===== MENU HAMBURGUESA ===== */

.menu-toggle{
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-texto);
}


/* ===== NAV LINKS ===== */

.nav-links ul{
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a{
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover{
    color: var(--color-hover);
}

/* ===== ESPACIO ENTRE BOTON IDIOMA Y OSCURO ===== */

.acciones-header{
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


/* ===== BOTÓN CAMBIAR IDIOMA ===== */

#lang-toggle{
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    font-weight: bold;
    border: none;
    font-size: 1rem;
    background: none;
    border-radius: 60%;
    cursor: pointer;
    color: var(--color-primario);
    transition: all 0.3s;
    order: 2;
}

#lang-toggle:hover{
    background-color: var(--color-primario);
    color: white;
}

#lang-toggle img{
    width: 20px;
    height: auto;
    display: block;
}


/* ===== BOTÓN MODO OSCURO Y COLORES MODO OSCURO ===== */

.modo-oscuro-btn{
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-primario);
    transition: all 0.3s;
    order: 1;
}

.modo-oscuro-btn.bounce{
    transform: scale(1.2);
}

.modo-oscuro-btn:hover{
    background-color: var(--color-primario);
    color: white;
}

body.modo-oscuro{
    --color-fondo: #1e1e2f;
    --color-texto: #f5f5f5;
    --color-primario: #4eaaff;
    --color-hover: #88ccff;
    --color-tarjeta: #1e1e1e;

    background-color: var(--color-fondo);
    color: var(--color-texto);
}


/*TRANSICION MAS SUAVE*/

body,
header,
section,
footer,
.card{
    transition: background-color 0.4s ease, color 0.4s ease;
}


/*MAS VIDA AL ICONO MODO OSCURO*/

.ripple-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-fondo);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.7;
    transition: transform 0.6s ease, width 0.6s ease, height 0.6s ease, opacity 0.4s ease;
    z-index: 9999;
    pointer-events: none;
}
.ripple-bg.active {
    opacity: 0;
    width: 200vw;
    height: 200vw;
    transform: translate(-50%, -50%) scale(1);
}


/* ===== RESPONSIVE ===== */


@media (max-width: 768px){

    .navbar{
        justify-content: space-between;
    }

    .nav-links{
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--color-fondo);
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .logo{
        display: none;
    }

    .nav-links ul{
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links.active{
        display: flex;
    }

    .modo-oscuro-btn{
        order: 1;
        position: static;
        right: 3.5rem;
        top: 1.2rem;
    }

    .menu-toggle{
        order: 2;
        display: block;
    }
}


/* =============== MAIN ============== */

/* ===== HERO CSS ===== */

.hero{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--color-fondo);
    margin-top: -5rem;
}

.hero-contenido{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
}

.hero-texto{
    flex: 1 1 500px;
}

.hero-texto h1{
    font-size: 2.7rem;
    margin-bottom: 0.5rem;
    color: var(--color-primario);
}

.hero-texto h3{
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-texto p{
    font-size: 1.1rem;
    line-height: 1.6;
}

.boton-cv{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding: 0.75em 1.5rem;
    background-color: var(--color-primario);
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.boton-cv .icono-cv{
    width: 20px;
    height: 20px;
    display: block;
}

.boton-cv:hover{
    background-color: var(--color-hover);
}



/* ===== HERO REDES SOCIALES ===== */

.hero-socials{
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-socials-link{
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}


.hero-socials-link li a{
    font-size: 1.7rem;
    color: var(--color-hover);
    transition: color 0.3s ease;
}

.hero-socials-link a:hover{
    color: var(--color-primario);
}



/* ===== HERO IMAGEN ===== */

.hero-imagen{
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 8rem;
    margin-bottom: 5rem;
}

.hero-imagen img{
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    display: block;
}


.circulo-decorativo {
    width: 320px;
    height: 320px;
    background-color: var(--color-primario);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}


.circulo-decorativo img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}



/* ===== RESPONSIVE ===== */

@media screen and (max-width: 1024px){

    .hero{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-imagen{
        order: -1;
        margin-bottom: 2rem;
        margin: 0 auto;
        padding-right: 6rem;
    }

    .hero-contenido{
        text-align: center;
    }

    .circulo-decorativo{
        margin-top: 2rem;
    }

    .hero-socials{
        justify-content: center;
    }

}

@media (max-width: 768px){
    .hero{
        padding: 4rem 2rem;
        text-align: center;
    }

    .hero-contenido{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }


    body.menu-abierto .hero{
        margin-top: 290px;
    }

    .hero-texto{
        order: 2;
    }

    .hero-imagen{
        order: 1;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding-left: 12rem;
    }

    .hero-texto h1{
        font-size: 2.2rem;
    }

    .hero-texto h2{
        font-size: 1.5rem;
    }

    .hero-socials{
        justify-content: center;
    }

    .hero-socials-link ul{
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-imagen img{
        max-width: 250px;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }


    .circulo-decorativo{
        width: 250px;
        height: 250px;
        margin-top: 2rem;
        margin-bottom: 2rem;
        margin: 0 auto;
        margin-right: 6.5rem;
    }
}

@media (max-width: 576px){
    .hero-contenido{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-texto{
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-socials-link{
        justify-content: center;
    }

    .hero-imagen{
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .circulo-decorativo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    }
}

@media screen and (max-width: 480px){
    .hero-contenido{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-texto{
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-texto h3{
        font-size: 1.4rem;
    }

    .hero-texto p{
        font-size: 1rem;
    }

    .hero-socials-link{
        justify-content: center;
    }

    .hero-imagen{
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .circulo-decorativo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    }

}


/*========= SOBRE MI =========*/

.titulo-seccion{
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 5rem;
}

.sobre-mi{
    padding: 5rem 2rem;
    background-color: var(--color-fondo);
}

.contenedor-sobre-mi{
    display: flex;
    flex: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-sobre-mi{
    flex: 1 1 300px;
    background-color: var(--color-fondo);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--color-texto);
    position: relative;
    top: -1rem;
}

.tarjeta-sobre-mi h2{
    margin-top: -0.9rem;
    margin-bottom: 1rem;
}

.tarjeta-sobre-mi p{
    margin-top: 0.8rem;
}

.sobre-mi-habilidades{
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sobre-mi-habilidades h2{
    align-self: start;
    margin-top: 0;
    margin-bottom: 2rem;
}

.bocadillos-skills{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;    
}

.bocadillos-skills li{
    background-color: var(--color-hover);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
}



/* ===== RESPONSIVE ===== */

    @media (max-width: 1024px){
        .bocadillos-skills{
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            gap: 1rem;
            margin-bottom: 1rem;
            max-width: 700px;
        }
    }
    

    @media (max-width: 768px){

    .titulo-seccion{
        text-align: center;
        margin-bottom: 14rem;
}

    .contenedor-sobre-mi{
        flex-direction: column;
        align-items: center;
        margin-top: -8rem;
    }

    .tarjeta-sobre-mi, 
    .sobre-mi-habilidades{
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }

    .tarjeta-sobre-mi{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .tarjeta-sobre-mi h2,
    .tarjeta-sobre-mi p{
        width: 100%;
        text-align: center;
    }


    .sobre-mi-habilidades{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .sobre-mi-habilidades h2{
        text-align: center;
        width: 100%;
    }

    .bocadillos-skills{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .bocadillos-skills li{
        text-align: center;
    }

}


@media (max-width: 480px){

    .contenedor-sobre-mi {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
}

    .tarjeta-sobre-mi,
    .sobre-mi-habilidades {
        width: 100%;
        max-width: 350px;
}


    .sobre-mi-habilidades h2 {
        text-align: center;
        margin-right: 0.5rem;
}

    .bocadillos-skills {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.7rem;
        padding: 0;
        margin: 1rem 0 0 0;
        list-style: none;
}

    .bocadillos-skills li {
        background-color: var(--color-hover);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 420px){
    .hero-contenido{
        margin-left: 1rem;
    }

    .tarjeta-sobre-mi{
        margin-left: 0.3rem;
    }

    .titulo-seccion{
        margin-left: 1rem;
    }

    .sobre-mi-habilidades{
        margin-right: 6rem;
    }

    .sobre-mi-habilidades li{
        font-size: 13px;
        padding: 4px 8px;
    }

    #scroll-up{
        margin-bottom: 2.3rem;
    }
}


/*========= TRAYECTORIA =========*/

.trayectoria{
    padding: 8rem 2rem;
    background-color: var(--color-fondo);
    text-align: center;
}

.trayectoria h2{
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primario);
}

.timeline{
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 5rem;
}

.timeline-content{
    min-height: 100px;
    position: relative;
    padding: 1.5rem 2.5rem;
    margin: 1rem;
    border-radius: 8px;
    text-align: left;
    background-color: var(--color-tarjeta);
    box-shadow: rgba(0, 0, 0, 0.3);

}

.timeline-content p{
    margin: 0.5rem 0;
    line-height: 1.5;
}

.timeline::before{
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-primario);
}

.timeline-item{
    position: relative;
    margin-bottom: 5rem;
}

.timeline-item::before{
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background-color: var(--color-fondo);
    border: 4px solid var(--color-primario);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content h3{
    margin-top: 0;
    color: var(--color-primario);
}

.timeline-content .fecha{
    font-size: 0.9rem;
    color: var(--color-texto);
    display: block;
    margin-bottom: 0.5rem;
}


 /* ===== RESPONSIVE ===== */

@media (max-width: 768px){
    .timeline{
        padding-left: 20px;
        max-width: 100%;
        margin: 0 auto;
    }

    .timeline-content h3{
        text-align: center;
        font-size: 1.1rem;
    }

    .timeline-content .fecha{
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }


    .timeline-content p{
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}


    .timeline::before{
        left: 10px;
    }

    .timeline-item::before{
        left: 0px;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .timeline-content{
        margin-left: 2.5rem;
        text-align: left;
    }
}

@media (max-width: 480px){

    .trayectoria{
        padding: 0;
    }

    .trayectoria .titulo-seccion{
        text-align: center;
        margin-left: 1.5rem;
    }
    .timeline-content {
    margin-left: 40px;
    text-align: left;
}

    .timeline-item::before{
        left: 12px;
}

}

@media (max-with: 420px){
    .trayectoria{
        padding: 3rem 2rem;
    }
}


/*========= PROYECTOS =========*/

.proyectos{
    padding: 5rem 2rem;
    background-color: var(--color-fondo);
    text-align: center;
}

.titulo-seccion-proyectos{
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primario);
}

.contenedor-proyectos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tarjeta-proyecto{
    width: 280px;
    height: 200px;
    perspective: 1000px;
}

.cara{
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s ease;
    -webkit-transition: -webkit-transform 0.6s ease;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: var(--color-tarjeta);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}


.cara-delantera{
    z-index: 2;
}

.cara-delantera h3{
    color: var(--color-primario);
    font-weight: 600;
    font-size: 14px;
}

.cara-delantera h4{
    color: var(--color-hover);
    font-weight: 500;
    font-size: 13px;
}

.cara-delantera p{
    margin-top: 0.8rem;
    font-size: 12px;
}

.cara-trasera{
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -webkit-overflow-scrolling: touch; /* SCROLL TACTIL*/
    background-color: var(--color-primario);
    color: var(--color-fondo);
    padding: 1rem;
    overflow-y: auto;
    max-height: 250px;


/* ELIMINAR SCROLL QUE NO SEA VISIBLE */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cara-trasera p{
    min-height: 200px;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: auto;
    padding: 1.2rem;
}

body.modo-oscuro .cara-trasera p {
    color: #f0f0f0;
}

.tarjeta-proyecto:hover .cara-delantera{
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.tarjeta-proyecto:hover .cara-trasera{
    transform: rotateY(360deg);
    -webkit-transform: rotateY(360deg);
}


/*MODAL PROYECTOS, MAS FACIL PARA MOVIL*/

.modal{
    display: none;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-contenido{
    max-width: 400px;
    max-height: 80vh;
    width: 100%;
    background: var(--color-tarjeta);
    color: var(--color-texto);
    border-radius: 10px;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.modal-contenido::-webkit-scrollbar{
    display: none;
}

#cerrar-modal{
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primario);
}

body.modo-oscuro .modal-contenido{
    background: var(--color-fondo);
    color: var(--color-texto);
}


/*AVISO VOLTEAR TARJETA ESCRITORIO*/

.aviso-hover{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--color-primario);
    margin-top: 0.5rem;
}


.aviso-hover .icon-escritorio {
    display: inline-block;
}

.aviso-hover .icon-movil {
    display: none;
}

/* Textos por defecto */
.texto-aviso.escritorio {
    display: inline; /* visible en escritorio */
}

.texto-aviso.movil {
    display: none; /* oculto en escritorio */
}


/*----SCROLL BAR-----*/

.cara-trasera::-webkit-scrollbar{
    width: 6px;
}

.cara-trasera::-webkit-scrollbar-thumb{
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.cara-trasera::-webkit-scrollbar-track {
    background-color: transparent;
}


 /* ===== RESPONSIVE ===== */


@media (max-width: 768px){
    .contenedor-proyectos{
        flex-direction: column;
        align-items: center;
    }

    .tarjeta-proyecto{
        width: 70%;
        perspective: none;
    }

    .tarjeta-proyecto .cara{
        text-align: center;
        padding: 1rem;
        transform: none;
        transition: none;
    }

    .cara-delantera h3{
        text-align: center;
        font-size: 12px;
    }

    .cara-delantera h4{
        text-align: center;
        font-size: 12px;
    }

    .cara-trasera p{
        text-align: center;
        padding: 3rem;
    }

    .cara-trasera{
        display: none;
    }

    /*CAMBIO TEXTO SOLO EN MOVIL*/
    .aviso-hover{
        display: block;
        color: var(--color-primario);
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* ICONOS */
    .aviso-hover .icon-escritorio {
        display: none; /* ocultar flecha en móvil */
    }
    .aviso-hover .icon-movil {
        display: inline-block; /* mostrar mano en móvil */
    }

    /* TEXTOS */
    .texto-aviso.escritorio {
        display: none; /* ocultar texto escritorio en móvil */
    }
    .texto-aviso.movil {
        display: inline; /* mostrar texto móvil */
    }

}

@media (max-width: 480px){
    .proyectos{
        margin-top: -2rem;
        text-align: center;
    }
}

@media (max-width: 420px){
    .proyectos{
        padding-bottom: 1rem;
        margin-left: 1rem;
    }
    
}


/*========= CERTIFICACIONES =========*/

.certificaciones{
    background-color: var(--color-fondo);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.titulo-seccion-certificaciones{
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primario);
}


/*LOGOS DESLIZANTES*/

.logos{
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 0;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}


#logos img:last-child{
    margin-right: 2rem;
}


.logos img{
    height: 190px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logos img:hover{
    transform: scale(1.05);
}

.logos a{
    text-decoration: none;
}

.logos-container {
    position: relative;
    display: flex;
    width: 100%;
}


/*CONTENEDOR CON OVERFLOW Y DEGRADADOS*/

.logos-wrapper{
    overflow: hidden;
    position: relative;
    height: 210px;
}

.logos-wrapper::before,
.logos-wrapper::after{
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-fondo), transparent);
}

.logos-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-fondo), transparent);
}



 /* ===== RESPONSIVE ===== */

@media (max-width: 1024px){
    .logos img{
        height: 150px;
    }

    .logos{
        gap: 1.5rem;
    }

    .titulo-seccion-certificaciones{
        font-size: 2rem;
    }
}


@media (max-width: 768px){
    .logos-slide{
        animation: scroll 60s linear infinite;
    }

    .logos-slide img{
        height: 120px;
        margin: 0 1rem;
    }

    .certificaciones
    .titulo-seccion-certificaciones{
        font-size: 2rem;
    }

    .tarjeta-proyecto{
        perspective: none;
        cursor: pointer;
    }

    .tarjeta-proyecto .cara{
        position: relative;
        transform: none;
    }
}


@media (max-width: 480px){
    .logos img{
        height: 100px;
    }

    .logos{
        gap: 1rem;
    }

    .titulo-seccion-certificaciones{
        font-size: 1.5rem;
    }

    .certificaciones{
        padding: 3rem 1rem;
    }

    .logos-wrapper::before,
    .logos-wrapper::after{
        width: 50px;
    }
}

@media (max-width: 420px){
    .titulo-seccion-certificaciones{
        margin-left: 1rem;
    }
}


/*========= FOOTER =========*/

.footer{
    background-color: var(--color-fondo);
    color: var(--color-texto);
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.footer-contenido{
    max-width: 1200px;
    margin: auto;
}

.footer-redes{
    margin-bottom: 1rem;
}

.footer-redes a{
    color: var(--color-texto);
    margin: 0 1rem;
    font-size: 1.8rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-redes a:hover{
    color: var(--color-primario);
}

.footer-texto{
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--color-texto);
}

.firma{
    font-weight: 600;
    text-decoration: none;
    color: var(--color-hover);
    transition: color 0.3s;
}

.firma:hover{
    color: var(--color-primario);
}


/*BOTON SCROLL ARRIBA*/

#scroll-up{
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-hover);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.6rem;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#scroll-up.mostrar{
    opacity: 1;
    visibility: visible;
}

#scroll-up:hover{
    background-color: var(--color-hover);
}

/*MENSAJE PARA MOVIL*/

.mensaje-movil{
    display: none; /*OCULTO POR DEFECTO*/
    background-color: var(--color-primario);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-hover);
}

@media (max-width: 768px){
    .mensaje-movil{
        display: block;
    }
}

@media (max-width: 480px){
    #scroll-up{
        margin: 0.7rem;
        margin-right: -0.7rem;
    }
}