:root {
    --color-oscuro: #036280;
    --color-medio: #378BA4;
    --color-claro: #81BECE;
    --glass-bg: linear-gradient(145deg, rgba(129, 190, 206, 0.24), rgba(3, 98, 128, 0.76));
    --glass-bg-strong: linear-gradient(145deg, rgba(129, 190, 206, 0.20), rgba(3, 98, 128, 0.82));
    --glass-panel: linear-gradient(145deg, rgba(129, 190, 206, 0.30), rgba(55, 139, 164, 0.78));
    --glass-border: rgba(255, 255, 255, 0.24);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px rgba(1, 46, 74, 0.24);
    --glass-blur: blur(10px) saturate(120%);
    
}

* {
    color: white;
    box-sizing: border-box;

}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a{
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 10;
    padding: 10px 14px;
    background-color: #012E4A;
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 4px;
}

a,
button,
input,
select,
textarea {
    scroll-margin-top: 80px;
}

#Video_fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

header {
   width: 100%;
   padding: 50px 16px 0;
   display: flex;
   justify-content: center;
   align-items: center;
}

header .header{
    width: min(420px, 100%);
    min-height: 52px;
    height: auto;

    border-radius: 20px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    --nav-marker-x: 50%;
    --nav-marker-width: 28px;
    

    /* Margen y padding */
    padding: 10px 12px;
    margin-top: 0;
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.header > a {
    position: relative;
    z-index: 1;
    font-size: 20px;
    line-height: 1;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.header > a[aria-current="page"] {
    background-color: rgba(129, 190, 206, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 1px rgba(255, 215, 0, 0.18),
        0 6px 14px rgba(1, 46, 74, 0.18);
}

.header > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #81BECE, #FFD700);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.38);
    opacity: 1;
    transition: opacity 160ms ease;
}

.header.nav-marker-ready > a[aria-current="page"]::after,
.header.nav-marker-boot > a[aria-current="page"]::after {
    opacity: 0;
}

.nav-active-marker {
    position: absolute;
    left: 0;
    bottom: 5px;
    z-index: 2;
    width: var(--nav-marker-width, 28px);
    height: 3px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(90deg, #81BECE, #FFD700);
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.42),
        0 0 18px rgba(129, 190, 206, 0.26);
    opacity: 0;
    transform: translateX(calc(var(--nav-marker-x, 50%) - (var(--nav-marker-width, 28px) / 2)));
    transition:
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
        width 360ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease;
}

.header.nav-marker-ready .nav-active-marker,
.header.nav-marker-boot .nav-active-marker {
    opacity: 1;
}

.header.nav-marker-boot .nav-active-marker {
    transition: none;
}

.header.nav-is-leaving .nav-active-marker {
    opacity: 0.72;
}

.Foto-perfil{
    display: flex;
    justify-content: center;
    align-items: start; 
    margin-top: 50px;
}

#Foto1 {
    width: 400px;
    height: 400px; /* Forzamos que sea un cuadrado */
    object-fit: cover; /* Recorta sin deformar */
    border-radius: 100%;
    position: relative;

    margin-top: 50px;
}

h1 {
    width: fit-content;
    max-width: 90%;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    text-shadow:
        0 2px 16px rgba(1, 46, 74, 0.72),
        0 0 24px rgba(129, 190, 206, 0.32);

    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 14px;
    position: relative;

    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

h1::after,
#art_habilidades h2::after,
#Proyecto_tit::after,
#Sobre_mi_tit::after {
    content: "";
    width: min(170px, 58%);
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #81BECE, #FFD700, #81BECE, transparent);
    box-shadow: 0 0 18px rgba(129, 190, 206, 0.42);
}

#CV {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto; 
    margin-top: 10px; 
    width: 150px;
    height: 50px;
    font-size: 1rem;


    border-radius: 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    transition: all;
    transition-duration: 1s;
}

.Habilidades {
    display: flex;
    justify-content: space-evenly;
    
    margin-top: 200px;
    padding-bottom: 100px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
    text-shadow:
        0 2px 14px rgba(1, 46, 74, 0.68),
        0 0 20px rgba(129, 190, 206, 0.28);
}

#art_habilidades{
    width: 50%;
    
}

#art_habilidades h2{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#art_habilidades img {
    width: 100px; 
    height: auto;
    object-fit: contain; 
    display: inline-block;
    margin: 10px;  

    transition-property: all;
    transition-duration: 400ms;
}

#Lenguajes {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#Lenguajes .tech-item{
    width: 120px;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#Lenguajes .tech-label{
    margin: 6px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

#Lenguajes .tech-item:hover .tech-label{
    opacity: 1;
    transform: translateY(0);
}

#Lenguajes .tech-item > img{
    cursor: pointer;
}

#soft_skills h2{
    display: flex;
    justify-content: center;
}

#soft_skills ul > li {
    font-size: 1.2rem;
    margin-top: 20px;
}

#Proyecto_tit {       
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.Proyectos {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 290px));
    justify-content: center;
    align-items: stretch;
    gap: 30px; /* espacio entre artículos */
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 30px;

    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-left: 10%;
    margin-right: 10%;
    border-radius: 25px;
}
 
.Proyectos > article {
    position: relative;
    overflow: hidden;
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    order: 1;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition-property: all;
    transition-duration: 1s;
}

.Proyectos > article.destacado{
    order: 2;
    border: 2px solid yellow;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(255, 215, 0, 0.42),
        5px 0px 5px #FFD700,
        -5px 0px 5px #FFD700,
        0 14px 30px rgba(1, 46, 74, 0.24);
}

.Proyectos > article:last-child {
    order: 3;
}

.Proyectos > article h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 10px;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(1, 46, 74, 0.58);
}

.Proyectos > article h3::before {
    content: "";
    width: 22px;
    height: 4px;
    flex: 0 0 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #81BECE, #FFD700);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.30);
}

.Proyectos > article > p{
    margin-top: 10px;
    width: 100%;
    max-width: 250px;
    text-align: justify;
}

.Proyectos > article > img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(0.9);
}

.ver_mas{
    width: 100%; 
    
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ver_mas a img{
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ver_mas a{
    padding: 10px;
    width: 100px;
    min-height: 44px;
    border-radius: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}
.ver_mas .contenido{
    background: linear-gradient(145deg, rgba(129, 190, 206, 0.72), rgba(129, 190, 206, 0.52));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ver_mas a:hover{
    background: var(--glass-bg-strong);
}

#Sobre_mi_tit {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
}

.Sobre_mi {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;

    display: flex;
    justify-content: space-around;
    align-items: center;
    
    padding: 50px;
    margin-left: 10%;
    margin-right: 10%;

}

#Foto2 {
    width: 300px;
    height: 300px; /* Forzamos que sea un cuadrado */
    object-fit: cover; /* Recorta sin deformar */
    border-radius: 100%;
    position: relative;

}

.Sobre_mi > p {
    width: 700px;
    margin-left: 20px;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;

    margin-top: 200px;
    background: linear-gradient(145deg, rgba(1, 46, 74, 0.72), rgba(3, 98, 128, 0.62));
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    height: 150px;
    width: 100%;

    
}

footer > a {
    transition-property: all;
    transition-duration: 1s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --------------------- INTERACCIONES --------------------- */   
/* UTILIZAR EL SCALE HACE AUMENTAR VISUALMENTE PERO OCUPA
EL MISMO TAMAÑO */
.header a:hover {
    transform: translateY(-1px);
    background-color: rgba(129, 190, 206, 0.18);
}

#CV:hover {
    scale: 1.2;
    background-color: var(--color-claro);   
}

#Lenguajes .tech-item > img:hover {
    scale: 1.2;
}

.Proyectos > article:hover {
    scale: 1.1;

}

footer > a:hover {
    scale: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .header a:hover,
    #CV:hover,
    #Lenguajes .tech-item > img:hover,
    .Proyectos > article:hover,
    footer > a:hover {
        scale: 1;
        transform: none;
    }
}

@media screen and (max-width: 800px) {
    .Proyectos {
        grid-template-columns: minmax(min(230px, 100%), 290px);
    }

    .Sobre_mi {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .Sobre_mi p{
        width: 90%;
    }
}

@media screen and (max-width: 550px) {
    header {
        padding-top: 36px;
    }

    header .header {
        width: 100%;
        max-width: 380px;
        min-height: 52px;
        padding: 9px 10px;
    }

    .header > a {
        font-size: clamp(1rem, 4.2vw, 1.15rem);
        padding: 6px 8px;
    }

    #Foto1{
        width: 200px;
        height: 200px;
    }
    h1{
        font-size: 2rem;

    }
    .Habilidades{
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 100px;
        margin-top: 200px;
        
    }
    #art_habilidades{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #art_habilidades img{
        width: 80px;
    }
    #Lenguajes{
        display: flex;
        justify-content: center;
    }
    #soft_skills ul > li {
        font-size: 1rem;
    }
    #soft_skills > h2{
        display: flex;
        justify-content: center;
    }

    #Proyecto_tit{
        margin-left: 0;
        display: flex;
        justify-content: center;
    }
    .Proyectos {
        gap: 20px;
    }

    .Proyectos > article > img {
        width: 170px;
    }
    .Proyectos > article > p{
        width: 170px;
    }

    .Proyectos .ver_mas{
        width: 170px;
    }

    #Sobre_mi_tit {
        margin-left: 0;
        margin-top: 200px;
        display: flex;
        justify-content: center;
    }

    .Sobre_mi {
        padding: 10px;
    }

    #Foto2{
        width: 200px;
        height: 200px;

        margin-top: 10px;
    }

    footer{
        margin-top: 100px;
    }

    footer img{
        width: 70px;
    }
}
