@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    animation: fadeIn 1.2s ease-out;
    border: 1px solid black;
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*header*/

.foto_perfil{
    padding: 10px;
    width: 100px;
    border-radius: 200px;
    height: 100px;  
    object-fit: cover;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #f0f0f0;
    transition: 2.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.foto_perfil:hover{
    transition: 0.7s;
    border-radius: 20px;
    transform: scale(1.1);
    transform: scale(1.05) rotate(3deg);
    box-shadow: 5px 5px 0px #000;
}

img{
    user-select: none;
    -webkit-user-drag: none;
}

.header{
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
    padding: 5px 0;
    z-index: 10;
}

.nav_lista{
    display: flex;
    gap: 40px;
}

.nav_item{
    list-style: none;
}

.nav_item a{
    color: black;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.nav_item a:hover {
    background-color: #000;
    color: #fff;
}

/*marquesina*/
.marquesina{
    overflow: hidden;
    white-space: nowrap; 
    width: 100%;
    background-color: #fff;
}

.marquesina p{
    animation: mover 10s linear infinite;
    width: 100%;
    color: #8e0e17;
    padding: 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
}

@keyframes mover{
    from{
        transform: translateX(-50%);
    }
    to{
        transform: translateX(100%);
    }
}

/*titulo*/
.contenedor_titulo{
    margin: 0px auto 20px;
    text-align: center;
    font-weight: 900;
    transition: 2s;
    font-size: 15px;
}

.contenedor_titulo:hover{
    transform: translateY(-5px); /* Se eleva un poco */
    color: #000;
}

.titulo {
    font-size: 3.5rem; 
    font-weight: 900;
    letter-spacing: -2px; 
    line-height: 1.1;
    text-transform: uppercase;
}

.contenedor_titulo h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 3px; 
    margin-top: 5px;
}

.subtitulo {
    padding: 10px 30px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    color: #000;
    margin-bottom: 15px;
}

.subtitulo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 20%; 
    height: 7px;
    background: #000;
    transition: width 0.4s ease;
}

[class^="contenedor_"]:hover .subtitulo::after {
    width: 50%; 
    background-color: #8e0e17;
}

/*Footer*/
.footer { 
    background: #000;
}

.redes_footer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 10px;
}

.redes_footer a {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #111;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-decoration: none;
}

.redes_footer p{
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.redes_footer a:hover {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.redes_footer a:hover p {
    color: #000; 
}

.logo {
    width: 35px;
    margin: 10px 5px;
    filter: grayscale(1) invert(1); 
}

.redes_footer a:hover .logo {
    filter: grayscale(0) invert(0);
}

/*todo lo del summary*/
summary{
    cursor: pointer;
    list-style: none;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

.contenido_desplegable {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1.5s ease-out;
    visibility: hidden;
}

details[open] .contenido_desplegable {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/*contenedor_me-----------------------------------------------------------------------------------*/
.me_texto{
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    text-align: center;
    padding: 20px;
}

/*contenedor_project---------------------------------------------------------------------------------------*/
.grid_proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    padding: 20px;
}

.tarjeta_proyecto {
    background: #fff;
    border: 2px solid #000;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 8px 8px 0px #000; 
    transition: all 0.3s ease;
    text-align: left; 
}

.tarjeta_proyecto:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #8e0e17;
}

.tarjeta_proyecto h4 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tarjeta_proyecto p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn_proyecto {
    display: inline-block;
    padding: 8px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 5px;
    transition: 0.3s;
}

.btn_proyecto:hover {
    background: white;
    color: #111;
}


/*contenedor_certificados-------------------------------------------------------------------------------------------*/
.lista_certificados {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto; 
}

.item_certificado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.item_certificado:hover {
    background: #000; 
    transform: translateX(15px); 
}

.item_certificado h4 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.item_certificado p {
    font-size: 0.8rem;
    color: #666;
}

.cert_fecha span {
    font-weight: 900;
    font-size: 0.9rem;
    padding: 5px 12px;
    border: 3px solid #000;
    border-radius: 20px;
}

.item_certificado:hover h4, 
.item_certificado:hover p, 
.item_certificado:hover .cert_fecha span {
    color: #fff;
    border-color: #fff;
}

/*bussines----------------------------------------------------------------------------------*/
.seccion_business {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.card_business {
    flex: 1;
    min-width: 300px;
    height: 250px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    background: linear-gradient(90deg, #111,#8e0e17);
    color: white;
}

.overlay_business {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card_business h4 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.status {
    margin-top: 15px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #000;
    color: #fff;
    padding: 5px 15px;
    align-self: flex-start;
    border-radius: 10px;
    border: #f0f0f0 solid 3px;
}

.card_business:hover {
    transform: scale(1.02);
    box-shadow: 15px 15px 0px #000; 
    transform: translate(-5px, -5px);
}


/*cv_section--------------------------------------------------------------------*/
.seccion_cv {
    text-align: center;
    padding: 40px 20px;
}

.seccion_cv p {
    margin-bottom: 30px;
    color: #666;
    font-weight: 600;
}

.botones_cv {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn_cv {
    text-decoration: none;
    color: #000;
    padding: 20px 40px;
    border: 3px solid #000;
    border-radius: 15px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 8px 8px 0px #000;
}

.btn_cv span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 5px;
}

.btn_cv:hover {
    background: #8e0e17;
    color: #fff;
    box-shadow: 12px 12px 0px #000;
    transform: translate(-4px, -4px);
    border: none;
}

@media (max-width: 768px){
    .header_nav{
        display: none;
    }

    .foto_perfil{
        width: 80px;
        height: 80px;
    }

    .marquesina p{
        font-size: 10px;
    }

    .titulo{
        font-size: 2rem;
    }

    .subtitulo{
        font-size: 1.5rem;
    }

    .contenedor_titulo h3{
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .footer{
        margin-top: 2rem;
        padding-bottom: 500px;
    }

    .redes_footer{
        flex-direction: column;
        align-items: center;
        gap: 15px;
        align-items: center;
    }

    .redes_footer img{
        width: 15px;
    }

    .redes_footer a{
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}