/* ============ IMPORTS & VARIABLES ============ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900');

:root {
    --blanco: #f5f4f4;
    --negro: #3f3e3d;
    --negro2:rgb(70, 70, 70)8;
    /* Nota: var(--bHeader) se usa en header pero no se define aquí */
}


/* ============ REGLAS GLOBALES ============ */
html {
    width: 100%;
}

body {
    width: 100%;
    background-color: var(--blanco);
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Reset básico de box-sizing en móviles */


/* Enlaces y tipografía global */
a {
    transition: 500ms all ease-in-out;
}

p {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--negro);
}

h2 {
    width: 100%;
    height: fit-content;
    text-align: left;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-family: "Oswald", sans-serif;
    font-size: calc(2em + 0.5vw);
    padding-left: 10px;
    color: var(--negro);
  
}

/* ============ ESTRUCTURA BÁSICA ============ */
header {
    background-color: var(--bHeader);
    height: 100px;
    position: fixed;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-shrink: 0;
}

footer {
    width: 100%;
    z-index: 2;
    height: 80px;
    background-color: var(--blanco);
    flex-shrink: 0;
    margin-top: 100px;
    display: flex;
    align-content: center;
    align-items: center;
}

footer p,
footer a {
    width: 100%;
    text-align: center;
    font-weight: 300;
    color: var(--negro);
    font-size: 0.8em;
}

footer a {
    font-size: 1em;
}

main {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: var(--blanco);
}


/* ============ TIPOGRAFÍA Y ELEMENTOS VARIOS ============ */
.fileteTitulo {
    color: var(--negro);
}

/* ================= SECCIONES DE PÁGINA ================= */

/* Pantalla y artículos generales */
.pantalla {
    text-align: center;
    height: auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding-top: 140px;
}

article>div {
    height: auto;
    display: flex;
    background-color: var(--blanco);
    position: relative;
    flex-direction: column;
    align-content: center;
    margin: 0 auto;
}

div {
    width: 90%;
}
li{
    display: flex;
    flex-direction: row;
}
nav{
    display: flex;
    flex-direction: row;
}
/* ============ SECCIONES CON CLASES PERSONALIZADAS ============ */

/* .pDos: Sección dos (fondo, padding y comportamiento de divs internos) */
.pDos {
    /* Se definen ambas propiedades (la última prevalece en cascada) */
    padding-top: 100px;
    height: 100vh;
    width: 100%;
    background-color: var(--blanco);
    border: 0px;
}

.pDos div {
    background-color: transparent;
}

.pDos>div>p {
    height: 100px;
    margin: auto;
}

.pDos .btnflecha2 {
    margin-top: 0px;
}

/* .pTres: Sección tres */
.pTres {
    height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    align-content: center;
  
    margin-bottom: 200px;
}


/* .pSeis: Sección seis */
.pSeis {
    height: fit-content;
    margin-top: 0;
}

.pSeis .titProyec {
    margin-top: 0px;
    margin-bottom: 60px;
}

.pSeis article {
    padding-left: 20px;
    padding-right: 20px;
}

.pSeis article p {
    margin-top: 50px;
    line-height: 1.3em;
    
}

.pSeis ul li {
    list-style: disc;
}




.pCinco {
    height: calc(100vh + 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pCinco .titProyec {
    margin-top: 340px;
}

.cntsft {
    height: 200px;
}

.favi {
    width: 35px;
    height: 35px;
}

/* ============ COMPONENTES DE PROYECTOS ============ */
.titProyec {
    display: flex;
    flex-direction:column;
    align-items: baseline;
    justify-content: center;
    min-height: 100px;
    height: fit-content;
    width: 90%;
    padding: 0;
    margin-top: 100px;
}
.pSeis .titProyec {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    min-height: 100px;
    height: fit-content;
    width: 90%;
    padding: 0;
    margin-top: 100px;

}

.titProyec h2{
    width: fit-content;
    white-space: nowrap;
    font-family: "Rubik mono one", serif;
}
.pSeis .titProyec{
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items:end;
}
.pSeis .titProyec h2{
    display: flex;
    justify-content: space-between;    
    width: 50%;
}
.contProyec {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contProyec2 {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.proyecto {
    min-width: 400px;
    width: min-content;
    height: fit-content;
    background-color: #dcdcdc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: start;
    transition: 0.5s ease all;
}
.proyecto:hover{
background-color: bisque;

}
.proyecto>svg {
    display: inline;
}

.proyecto h3 {
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.proyecto>p {
    text-align: left;
    height: 200px;
    width: 80%;
}

.proyecto a {
    width: 350px;
    height: 220px;
    border-radius: 5px;
    transition: 0.5 easy all;
}



/* ============ SLIDER & GALERÍA DE IMÁGENES ============ */
.imgcnt {
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color: transparent;
    height: fit-content;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 10px;
}

.imgcnt img {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: row;
}

.slider {
    width: 70vw;
    height: auto;
    margin: auto;
    margin-top: 20px;
    overflow: hidden;
}

.slider .slide-track {
    display: flex;
    flex-direction: row;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(280px * 24);
    height: 220px;
}

.slider {
    max-width: 1400px;
    margin-top: 80px;
    padding-bottom: 80px;
}

.slide {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.slide img {
    width: 75px;
    height: 75px;
}

/* ============ BOTONES Y CONTROLES ============ */
.btnflecha {
    display: flex;
    position: absolute;
    width: 80px;
    bottom: 30px;
    right: 50%;
}

.btnflecha2 {
    display: flex;
    width: fit-content;
    padding: 10px;
    border-radius: 50px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    align-items: center;
    align-content: center;
    background-color: brown;
}

.btnflecha2 img {
    display: block;
    width: 40px;
    height: 40px;
}

.btnflecha2:hover {
    box-shadow: 0 0 15px 5px rgba(202, 56, 56, 0.6);
    transform: scale(1.05);
}

.btnflecha2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgb(202, 56, 56);
    filter: blur(10px);
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: glow 1.5s infinite alternate;
    z-index: -1;
}
.pCinco .enlaces .btnflecha2{
    filter: none;
    animation: none;
}
.pCinco .enlaces .btnflecha2:before{
    filter: none;
    animation: none;
}

/* Contenedores de botones */
.cntbtn {
    display: flex;
    height: 100px;
    text-align: center;
    margin-top: 100px;
    background-color: transparent;
    width: fit-content;
    border-radius: 50px;
}
.pTres .cntbtn{
    width: 100%;
}

.prybtn {
    display: flex;
    height: 50%;
    width: 100%;
    text-align: center;
    margin-top: 200px;
    background-color: transparent;
    width: fit-content;
    border-radius: 50px;
}

.cntbtn>a {
    margin: auto;
}

.cntbtnexp {
    width: 25%;
    display: flex;
    align-content: center;
    align-items: center;
    height: fit-content;
    margin-top: 140px;
}

/* Botón animado (.botonExp) */
.botonExp {
    display: inline-flex;
    width: 300px;
    height: 100px;
    align-items: center;
    justify-content: center;
    background-color: brown;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.7s ease all;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    
    color: var(--blanco);
    margin-top: 40px;
}
.botonExp:hover {
   background: rgb(103, 13, 13);
   color: var(--blanco);
   
}

.botonExp svg {
    width: 300px;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    
    background-color: transparent;
}

.botonExp rect {
    
    width: 100%;
    height: 100px;
    stroke: rgb(59, 152, 159);
    stroke-width: 10px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: 0.6s ease all;
}

.botonExp:hover rect {
    stroke-dashoffset: 0;
}

.botonExp :hover {
    background-color: rgba(215, 215, 215, 0);
}

.botonExp :active {
    background-color: rgba(255, 0, 0, 0.578);
    mix-blend-mode: lighten;
}

/* ============ ICONOS & ESTILOS ADICIONALES ============ */


.st0 {
    fill: none;
    stroke: var(--negro);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
}

.smiFilete {
    display: flex;
    justify-content: center;
    justify-items: center;
    width: 90%;
    height: 50px;
    margin: 0px;
    padding: 0;
}

.titlestf {
    margin-top: 100px;
}

.cntstf {
    width: 90%;
    height: fit-content;
}

/* Experiencia y secciones informativas */
.tituloExp {
    font-weight: 600;
    font-size: 1.5em;


}

.subtituloExp {
    width: fit-content;
    font-weight: 200;
    font-size: 1.3em;
}

.contentExp {
    width: 60vw;
    margin-top: 30px;
   
   
}

.cntExperiencia {
    display: flex;
    flex-direction: column;
    
    text-align: left;
    margin-top: 25px;
}

.cntExperiencias {
    height: fit-content;
}

/* Sección "Sobre Mi" */


.sobreMi {
    font-family: 'Roboto', sans-serif;
    text-align: left;
    width: 55%;
   
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1.4em;
    text-align: left;
}

.capital {
    font-family: 'kuboRubik Mono One', sans-serif;
    font-size: 3em;
    height: fit-content;
    width: fit-content;
    z-index: 2;
    font-weight: 900;
    font-style: oblique;
    margin-right: 5px;
}

/* Presentación y textos destacados */
#presentacion {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2em;
    text-align: left;
    color: #9089e4;
    border-radius: 50px;
    height: calc(auto + 200px);
    width: 50vw;
    color: var(--negro);
    white-space: nowrap;
    border: 5px dotted rgba(255, 166, 0, 0.274);
    padding: 20px;
    padding-bottom: 30px;
    margin-top: 0px;
    margin-bottom: 0px;
    height: fit-content;
}

.contHome {
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    align-items: center;
}



.active {
    font-weight: bold;
}




#maquina-de-escribir{
    font-size: 1em;
}
.typed-text {
  
 
    text-align: left;


}

/* ============ HOVER IMÁGENES (CALENDARIO, MC, PORTF, DHT) ============ */
#calendario {
    background-image: url(../img/minis/CapturacalendarioBN.PNG);
    background-repeat: no-repeat;
    background-size: cover;
}


.proyecto:hover #calendario {
    background-image: url(../img/minis/Capturacalendario.png);
    background-repeat: no-repeat;
    background-size: cover;
}

#mc {
    background-image: url(../img/minis/moneycareMini1.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.proyecto:hover #mc {
    background-image: url(../img/minis/moneycareMini2.png);
    background-repeat: no-repeat;
}

#portf {
    background-image: url(../img/minis/prtfolio1.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.proyecto:hover #portf {
    background-image: url(../img/minis/prtfolio2.png);
    background-repeat: no-repeat;
    background-size: cover;
}

#dht {
    background-image: url(../img/minis/dhtMini1.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.proyecto:hover #dht {
    background-image: url(../img/minis/dhtMini2.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============ CONTENEDORES ADICIONALES ============ */
.contHome {
    display: flex;
    flex-direction: row;
}

.contHome>img {
    width: 60%;
}

.cntdesc {
    height: fit-content;
    margin-top: 20px;
    margin-bottom: 70px;
    display: flex;
    flex-direction: row;
    padding: 20px;
}

.cntdesc {
    display: flex;
    align-items: center;
    align-content: center;
}

.foto {
    width: fit-content;
    
  
}

.cntcP {
    width: 75%;
    height: fit-content;
    display: flex;
    margin-top: auto;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    font-size: 0.8em;
    color: darkgray;
    margin-bottom: 140px;
}

/* Sección de textos adicionales */
.cntExperiencias {
    height: fit-content;
}

.smiFilete {
    margin-top: 80px;
    margin-bottom: 50px;
}

.titSmi>h2 {
    margin-top: 50px;
}
.smiTxt{
    height: fit-content;
    width:fit-content;
    background-color: transparent;
}
.iconomenu {
    background: transparent;
}

/* ============ ANIMACIONES ============ */
@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(calc(-200px * 7));
        transform: translateX(calc(-200px * 7));
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 1);
    }
}

.typed-text {
    border-right: 0.1em solid var(--negro);
    white-space: nowrap;
    overflow: hidden;
    display: inline;
    animation: blink-caret 0.50s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--negro);
    }
}

/* ============ ENLACES ============ */
.enlaces {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    padding-top: 80px;
    gap: 40px;
}

.enlace {
    width: 400px;
}

.enlace a {
    width: 400px;
    padding-left: 20px;
    white-space: nowrap;
}

.enlace a svg {
    width: 400px;
    border-color: white;
}

.imgcont {
    width: 50px;
    height: auto;
}


/* ============ CONTENEDOR DE MENÚ ============ */
.contenedorMenu {
    display: none;
}

.cntfavi {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: left;
    justify-items: left;
    margin-left: 50px;


}

ul .cntfavi :hover {
    background-color: black;
    border: 0px;
}
#home{
    height: 100vh;
    background-color: bisque;
}
#home.pantalla{
    height: 100vh;
    margin-top: 0;
}
.cntcP{
    margin-top: 50px;
}
/* ============ MEDIA QUERIES ============ */
@media (max-width: 1610px) {
    nav ul li a {
        display: none;
    }

    .contenedorMenu {
        display: block;
    }

    .contProyec {
        height: fit-content;
        flex-direction: column;
    }

    .proyecto {
        width: 100%;
    }

    .proyecto a {
        width: 400px;
        height: 270px;
        border-radius: 10px;
    }
    .pSeis .titProyec{
        height: fit-content;
        margin-top: 0;
    }

    .proyecto p {
        width: 100%;
    }

    .pTres {
        height: fit-content;
        margin-bottom: 0;
    }

    .pSeis {
        margin-top: 0px;
    }

    .pCinco {
        height: fit-content;

    }
}

@media (max-width: 1024px) {
    main {
        width: 100%;
    }
    

    .pTres {
        height: fit-content;
    }
#Capa_1{
    height: fit-content;
}
    .proyecto {
        height: fit-content;
        width: fit-content;
    }

    .proyecto p {
        width: 100%;
        height: fit-content;
    }

    .proyecto svg {
        height: fit-content;
    }

    .titProyec svg {
        width: 100%;
    }

    .mini {
        width: 270px;
        height: 270px;
    }

    .pSeis {
        margin-top: 0;
        padding-top: 0;
    }

    .pCinco {
        margin-top: 300px;
    }

    .slider {
        margin-top: 150px;
    }

    footer {
        bottom: 0;
        margin-top: 300px;
    }

    .contHome .cuervo {
        width: 55%;
        height: auto;
        box-shadow: 5px, 5px, var(--negro);

    }
}



@media (max-width: 860px) {
    .cntSmi {
        flex-direction: column-reverse;
    }

    .pCuatro {
        margin-top: 250px;
    }

    .sobreMi {
        width: 100%;
    }

    .contProyec2 {
        flex-direction: column;
    }

    .contHome {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        justify-items: center;
        align-items: center;

        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;


    }

    .contHome span {

        color: var(--negro);
        text-align: left;

        border-radius: 5px;

        line-height: 1em;

    }

    #presentacion {
        width: fit-content;

    }

    #hola {
        padding: 0px;
        background-color: transparent;
    }

    .cuervo {
        display: none;



    }
}
@media (max-width: 1220px){
    .cntSmi img{
       display: none;
    }
}
@media (max-width: 500px) {
    html {
        width: 100%;
    }

    body {
        width: 100%;
    }

    header {
        position: fixed;
        width: 100%;
        padding: 0;
    }

    main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pDos {
        padding-top: 50px;
    }

    .contHome {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        justify-items: center;
        align-items: center;

        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;


    }

    .contHome span {

        color: var(--negro);
        text-align: left;

        border-radius: 5px;

        line-height: 1em;

    }

    #presentacion {
        width: fit-content;
        border: 0px;

    }

    #hola {
        padding: 0px;
        background-color: transparent;
    }

    .cuervo {
        display: none;



    }

    .pantalla {

        width: 100%;
        height: fit-content;
    }

    #presentacion {
        width: 30%;
        font-size: 1em;
    }

    .proyecto a {
        min-height: 30vh;
        width: 90vw;
        background-position: center;
    }

    .cntSmi {
        flex-direction: column-reverse;
    }

    .foto {
        width: 60vw;
        height: auto;
    }

    .cntSmi p {
        width: 100%;
    }

    .iconomenu {
        background: transparent;
    }

    .enlaces {
        width: 100%;
    }

    .cntcP {
        margin-bottom: 0px;
    }

    .smiFilete {
        height: fit-content;
    }

    .titSmi {
        height: fit-content;
        font-size: 0.8em;
        margin-bottom: 0px;
    }

    .contenedorMenu {
        display: flex;
        flex-direction: column;
    }

    .paginas {
        top: 120px;
    }
}
@media (max-width: 890px){
    html{
        box-sizing: border-box;
        width: 100%;

    }
    body{
        width: 100%;
    }
    #VENIDO span{
        height: calc(20% + 0.5vw);
    }
}
@media (max-width: 600px){
    .pSeis .titProyec{
        display: flex;
        flex-direction: column-reverse;
     align-items: start;
        justify-content: left;
        margin-top: 0;
        gap: 50px;
    }
    .cntbtnexp{
        white-space: nowrap;
        width: fit-content;
    }
}
@media (max-width: 300px) {
    html {
        width: 100%;
    }

    header,
    ul,
    li {
        width: 100%;
    }

    .cntSmi {
        flex-direction: column-reverse;
    }
}
.st0{
    width: 100%;
}
b{
    font-size: 1.07em;
    font-weight: bolder;
}
.cntSmi {
    font-size: 0.8em;
    height: fit-content;
    width: fit-content;
    display: flex;
    align-items: top;
    align-content: center;
    gap: 30px;
    background-color: rgba(29, 29, 29, 0.068);
    padding: 50px;
    border-radius: 15px;
}
 .cntFoto{
width: 50vw;
height: fit-content;
background-color: transparent;
 }   
   

#asterisco{
    font-family: "Rubik mono one", serif;
    font-size: 3em;
    color: brown;
    line-height: 0;
}
#asterisco2{
    font-family: "Rubik mono one", serif;
    font-size: 3em;
    color: var(--blanco);
    line-height: 0;
    visibility: hidden;
   
    
}
.cntSpan{
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    align-items: bottom;
}
.cntAsterisco{
    height: fit-content;
    display: flex;
    justify-content:center;
    align-items: end;
}