@import url("MenuWeb.css");

:root{
    --color-principal: #55d028;
    --color-principal-t: #55d02880;
    --color-principal-b: #389317;
    --color-bg: #002939;
    --blanco: #fff;
    --negro: #000;
    --negro-transp: #0005;
    --blanco-transp: #fff2;
    --blanco-transp2: #fff7;
    --sena-bg: #fd8700;
}



body {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: var(--color-bg);
    color: #fff;
    background-blend-mode: soft-light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


h1, h2, h3, b {
    color: var(--color-principal);
    font-weight: bold;
    margin: 0;
    text-align: center;
    padding: 0.25em;
}
h1 {
    line-height: 1em;
    text-align: center;
}

a {
    color: var(--color-principal);
    text-decoration: none;
}
a:hover {
    color: var(--color-principal-b);
}
a:active {
    color: var(--color-bg);
}
p {
    line-height: 1.5em;
}
main {
    width: 90%;
    margin: 0 auto;
}

.contenedorMain {
    width: 90%;
    margin: 0 auto;
}

.mainIndex > div {
    background-color: var(--blanco-transp);
    backdrop-filter: blur(30px);
    padding: 1em;
    border-bottom: 3px solid var(--color-principal);
    margin: 2em 0;
    border-radius: 1em;
}
.svgRedes img {
    filter: invert(0.5) sepia(1) saturate(60) hue-rotate(125deg);
}

/* Header */
header img {
    max-width: 100%;
}
header h1 {
    color: #fff;
    text-align: center;
}
header {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 50vh;
    height: 70vh;
    position: relative;
    background-color: #0005;
    backdrop-filter: blur(20px);
}

header .BackBox {
    width: 100%;
    position: absolute;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: 70% 30%;
}

header .BackBox div:nth-child(1) {
    background: var(--blanco-transp);
    transform: rotate(35deg) scaleX(3);
}

header .BackBox div:nth-child(2) {
    background: var(--color-principal);
    transform: rotate(40deg) scaleY(3);
}

header .ImagenBox {
    position: absolute;
    height: 100%;
    width: 100%;
}

header .ImagenBox .FotoPerfil {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;

    bottom: 0;
    right: 0;
}
header .InfoBox {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(transparent 60%, #000 100%);
}
header .InfoBox .InfoFloatBox {
    background: var(--blanco-transp);
    backdrop-filter: blur(10px);

    position: absolute;
    bottom: 0;
    padding: 0.5em;
    border-radius: 1em 1em 0 0;
}
header .InfoBox .InfoFloatBox .Logo {
    max-height: 5em;
    width: 100%;
    object-fit: contain;
    /* filter: hue-rotate(275deg); */
    /* animation: HeaderLogoAnimation 10s linear infinite; */
}
@keyframes HeaderLogoAnimation {
    0% {
        filter: hue-rotate(0deg);
    }
    0% {
        filter: hue-rotate(360deg);
    }
}
/* ---------------------- */



.habilidadesAnimacionBox {
    font-size: 2em;
    font-weight: bold;
}

.habilidadesAnimacionBox span {
    position: relative;
    color: #fff4;
    animation: displayText 9s infinite;
    animation-delay: calc(-3s * var(--i));
}
@keyframes displayText {
    0% {
        display: inline-block;
    }
    33.33%, 100% {
        display: none;
    }
}
.habilidadesAnimacionBox span::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.2em;
    overflow: hidden;
    color: var(--color-principal);
    border-right: 4px solid var(--color-principal);
    filter: drop-shadow(0 0 5px var(--color-principal));
    animation: animate 3s linear infinite;
}
@keyframes animate {
    0%, 10%, 100% {
        width: 0%;
    }
    70%, 90% {
        width: 100%;
    }
}
/* -------- Exp Card */
.Exp-Card {
    background-color: var(--blanco-transp);
    backdrop-filter: blur(30px);
    padding: 1em;
    border-bottom: 3px solid var(--color-principal);
    margin: 1em 0;
    border-radius: 1em;
}

.Exp-Card .infoExp {
    display: grid;
    gap: 1em;
}
.Exp-Card .infoExp img {
    max-width: 100%;
    max-height: 50vh;
    display: block;
    margin: 0 auto;
}
.Exp-Card .PublicacionesExp {
    margin: 0.5em;
    padding: 0;
    list-style: none;
    text-align: center;
    display: grid;
}
.Exp-Card .PublicacionesExp a {
    display: block;
    padding: 0.25em;
    border-bottom: 1px dashed var(--color-principal);
}
.Exp-Card .PublicacionesExp img {
    display: none;
    margin: 0 auto;
    height: 5em;
    width: 100%;
    object-fit: contain;
}
.habilidadesBox ul li {
    margin-bottom: 1em;
}
.habilidadesBox ul li b {
    display: block;
}

.ProyectosBoxMin {
    background: var(--blanco-transp);
    border-radius: 1em;
    border-bottom: 3px solid var(--color-principal);
    padding: 1em;
    margin: 1em 0;
}
.ProyectosBoxMin ul {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    display: grid;
    gap: 1em;
}
.ProyectosBoxMin ul li {
    border-bottom: 2px solid var(--color-principal);
    padding: 0.5em;
    border-radius: 0 0 1em 1em;
    text-align: center;
}
.ProyectosBoxMin ul li p {
    margin: 0.5em 0;
    font-size: 0.8em;
}
.ProyectosBoxMin ul li:hover {
    background-color: var(--blanco-transp);
}
.ProyectosBoxMin ul a {
    display: block;
}
.ProyectosBoxMin ul img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.ProyectosBoxMin .boton {
    display: block;
    margin: 0 auto;
}

.ExperienciaLaboralBox > div {
    border-left: 2px dashed var(--color-principal);
    padding-left: 1em;
    margin: 1em;
}

.ExperienciaLaboralBox h3 {
    border-left: 10px solid var(--color-principal);
    padding-left: 1em;
    margin-left: -1em;
}
.ExperienciaLaboralBox time {
    font-size: 0.7em;
}
.ExperienciaLaboralBox > div > div {
    margin: 0.5em;
    background-color: var(--blanco-transp);
}

/* ------------------------------- Contactame Box */
.ContactameBox {
    position: sticky;
    bottom: 0;
}
.ContactameBox h2 {
    color: var(--blanco);
    text-shadow: 1px 1px 2px var(--negro);
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    padding: 0.25em;
    border-bottom: 1px dashed var(--color-principal);
}

.ContactameBox .ContactameImg.Activo {
    transform: scale(1);
    transition: 0.5s;
}
.ContactameBox .ContactameImg {
    transform: scale(0);
    position: absolute;
    bottom: 1em;
    right: 1em;
    cursor: pointer;
}
.ContactameBox .ContactameImg:hover {
    transform: scale(1.2) rotate(-10deg);
}

.ContactameBox .FormClose {
    position: absolute;
    right: 0;
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-principal);
    margin: -0.6em;
    border-radius: 1em;
    border: 0;
    box-shadow: 1px 1px 3px #000;
}
.ContactameBox .FormClose:hover {
    background-color: var(--color-principal-b);
    cursor: pointer;
}
.ContactameBox .FormBox.Activo {
    transition: 0.5s;
    transform: scale(1);
}
.ContactameBox .FormBox {
    position: absolute;
    bottom: 1em;
    right: 1em;
    transform: scale(0);
    background-color: var(--negro-transp);
    width: 18em;
    backdrop-filter: blur(50px);
    border-radius: 0.5em;
    border-top: 3px solid var(--color-principal);
    border-bottom: 3px solid var(--color-principal);
}
.ContactameBox .FormBox form {
    padding: 0.5em;
}
.ContactameBox .FormBox form label {
    display: block;
    padding: 0.5em;
}
.ContactameBox .FormBox form label b {
    display: block;
    color: var(--blanco);
    text-shadow: 1px 1px 3px #000;
    text-align: center;
}
.ContactameBox .FormBox textarea {
    width: 95%;
    margin: 0 auto;
    min-height: 10em;
    max-height: 40vh;
    padding: 0.5em;
    field-sizing: content;
}
.ContactameBox .FormBox form input[type=text] {
    display: block;
    width: 90%;
    margin: 0 auto;
}
.ContactameBox .FormBox form input[type=submit] {
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    border: 0;
    padding: 0.5em;
    color: var(--blanco);
    background-color: var(--color-principal);
    box-shadow: 1px 1px 5px var(--color-principal);
}
.ContactameBox .FormBox p {
    padding: 0.5em;

}
.ContactameBox .FormBox img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

/* --------------------------------------- */
.CertificadoCard img {
    max-width: 100%;

}


footer {
    background-color: #000;
    padding: 1em;
    border-top: 3px solid var(--color-principal);
}
footer h2 {
    margin: 0;
}
footer .contenedorMain {
    display: grid;
    display: auto;
}
footer .Logo {
    height: 10em;
    display: block;
    margin: 0 auto;
}
footer .FooterContactosBox {
    text-align: center;
    margin: 1em;
    margin-top: 0;
}
footer .FooterContactosBox .RedesBox {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    width: fit-content;
}
footer .FooterContactosBox .RedesBox  li {
    padding: 0.5em;
    display: inline-block;
}
footer .FooterContactosBox .RedesBox a {
    color: var(--blanco);
    font-size: 0.7em;
    text-align: center;
    display: block;
}
footer .FooterContactosBox .RedesBox a:hover,
footer .FooterContactosBox .RedesBox a:focus,
footer .FooterContactosBox .RedesBox a:active {
    filter: invert(0.3);
}
footer .FooterContactosBox .RedesBox img {
    filter: invert(1);
    display: block;
}

footer .AcercadeBox {
    text-align: center;

} 
footer .AcercadeBox a {
    display: block;
    color: var(--blanco);
    padding: 0.25em;
    border-bottom: 1px dashed var(--blanco-transp);
}
footer .AcercadeBox a:hover {
    border-bottom: 1px dashed var(--color-principal);
}

/* -----------------------------------------------  */
/* ------------------- BreadWalk Main ------------  */
/* -----------------------------------------------  */

.mainBreadwalk {
    text-align: right;
}
.mainBreadwalk ul {
    list-style-type: none;
    padding: 0;
    width: 80%;
    margin: 0 auto;
}
.mainBreadwalk ul li {
    display: inline-block;
    
}
.mainBreadwalk ul li a {
    font-size: 0.8em;
    display: block;
    padding: 0.5em;
    border-right: 1px dashed var(--color-principal);
    margin-right: 0.5em;
}
.mainBreadwalk ul li a:hover {
    color: var(--blanco);
    border-right: 1px dashed var(--blanco-transp2);
}

/* -----------------------------------------------  */
/* ------------------- Boton ---------------------  */
/* -----------------------------------------------  */
.boton {
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 0.5em;
    color: #fff;
    text-align: center;
    width: fit-content;
    /* background-color: var(--color-principal); */
    overflow: hidden;
    text-decoration: none;
    text-shadow: 1px 1px 2px #000;
    transition: .5s;
}
.boton:hover,
.boton:focus {
    background-color: var(--color-principal);
    color: #fff;
    box-shadow: 0 0 5px var(--color-principal),
                0 0 25px var(--color-principal);
}
.boton span {
    position: absolute;
    display: block;
}
.boton span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-principal));
    animation: aniboton1 2s infinite
}
@keyframes aniboton1 {
    0% {
        left: -100%
    }
    50% {
        left: 0%
    }
    100% {
        left: -100%;
    }
}
.boton span:nth-child(2) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-principal), transparent);
    animation: aniboton2 2s infinite
}
@keyframes aniboton2 {
    0% {
        right: -100%
    }
    50% {
        right: 0%
    }
    100% {
        right: -100%;
    }
}
.boton:active {
    background-color: #000;
    color: #fff;
}

.NK_ImgMaximize_Box {
    backdrop-filter: blur(25px);
}
.NK_ImgMaximize_Caption {
    position: absolute;
    bottom: 0px;
    width: 70%;
    margin: 1em 15%;
    background-color: var(--color-principal-t);
    backdrop-filter: blur(5px);
    margin: 1em 14%;
    text-align: center;
    padding: 0.5em;
    text-shadow: 1px 1px 3px #000;
}
.NK_ImgMaximize_Close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.4em;
    background-color: crimson;
    color: white;
    z-index: 1;
    cursor: pointer;
}

pre {
    display: block;
    max-width: 95%;
    background-color: var(--blanco-transp);
    margin: 0 auto;
    padding: 1em;
    overflow: auto;
}



/* ------------- Media Queries */

@media only screen and (min-width: 400px) {
    /* For tablets: */
    main {
        width: 80%;
    }
    .contenedorMain {
        width: 80%;
    }
    header .ImagenBox .FotoPerfil {
        width: auto;
        height: 100%;
        position: absolute;
        object-fit: contain;
    }
    .Exp-Card .PublicacionesExp {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .Exp-Card .PublicacionesExp img {
        display: block;
    }
}

@media only screen and (min-width: 768px) {
    /* For desktop: */
    main {
        width: 70%;
        max-width: 900px;
    }
    .contenedorMain {
        width: 70%;
    }


    header .ImagenBox .FotoPerfil {
        width: 50%;
        height: 100%;
        position: absolute;
        object-fit: contain;
    }
    header .InfoBox {
        display: flex;
        align-items: center;
    }
    header .InfoBox .InfoFloatBox {
        padding: 2em;
        border-radius: 1em;
        margin: 2em;
        max-width: 30%;
    }
    
    header .InfoBox .InfoFloatBox .Logo {
        max-height: 7em;
    }

    .ProyectosBoxMin ul {
        grid-template-columns: 1fr 1fr;
    }

    .Exp-Card .infoExp {
        grid-template-columns: 1fr 2fr;
    }
    .Exp-Card .PublicacionesExp {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .Exp-Card .PublicacionesExp img {
        display: block;
    }
    
    footer .contenedorMain {
        grid-template-columns: 10em 2fr 1fr;
        gap: 1em
    }

    footer .Logo {
        max-width: 100%;
        height: auto;
    }

    footer .FooterContactosBox {
        text-align: left;
    }
    footer .FooterContactosBox .RedesBox {
        margin: 0;
    }
    /* ------------------- Boton ---------------------  */
    .boton {
        display: inline-block;
        margin: auto;
    }

}