@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

/* html {
    scroll-behavior: smooth;
} */

nav {
    position: fixed;
    top: 0;
    left: 0;
    display: inline-block;
    transition: 0.7s;
    /* padding: 16px 10px; */
    height: 90px;
    width: 100%;
    /* width: 100vw; */
    z-index: 100;
}

nav.abajo {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
}

.enlace {
    position: absolute;
    height: 70px;
    padding: 6px;
    margin: 8px 0 0 16px;

    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: 60px;
    border-radius: 10px;
    margin-right: 10px;

    animation: rotate-logo 6s ease-in-out infinite;
}

/* @keyframes rotate-logo {
    from {
        transform: rotateY(360deg);
    }
} */

@keyframes rotate-logo {
    0% {
        transform: rotateY(360deg);
    }

    60% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.main-name {
    color: #21d5fa;
    font-weight: bold;
    /* negrita */
    text-transform: uppercase;
    font-size: 1.6rem;

    transition: 0.5s;
}

.main-name:hover {
    text-shadow: 2px 2px #ffffff;
    transition: 0.5s;
}

nav ul {
    float: right;
    margin: 3px 20px 4px 4px;
}

nav ul li {
    display: inline-block;
    line-height: 70px;
    margin: 6px 5px;
}

nav ul li a {
    position: relative;
    color: #21d5fa;
    font-size: 1.125rem;
    border-radius: 5px;
    text-transform: uppercase;
    padding: 0 12px;
}

/* nuevo */
li a:after {
    content: "";
    position: absolute;
    background-color: #ff3c78;
    height: 4px;
    width: 0;
    left: 0;
    bottom: -10px;
    transition: 0.3s;
}

li a:hover {
    color: #ffffff;
}

li a:hover:after {
    width: 100%;
}

.checkbtn {
    font-size: 34px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

/* nav.abajo .main-name, */
nav.abajo ul li a {
    color: white;
}

nav.abajo .logo,
nav.abajo ul li a:hover {
    color: #21d5fa;
}

nav.abajo .main-name {
    color: #ffffff;
}

nav.abajo .main-name:hover {
    text-shadow: 2px 2px #21d5fa;
}

/**********************************************/
/* **** Zona central de la primer pagina **** */
#zona1 {
    background: url(../img/fondo19.jpg) no-repeat;
    /* Es para que sea SOLO una imagen */
    background-size: cover;
    background-position: center center;
    /* height: calc(100vh - 100px); */

    /* nuevo */
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow-x: hidden;
}

.presentacion {
    max-width: 100%;
    text-align: center;
}

.presentacion h1 {
    color: #00eeff;
    font-size: 5.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 #ff4081,
        0 0 5px #00eeff,
        0 0 10px #00eeff,
        0 0 20px #00eeff,
        0 0 40px #00eeff;

    /* fotograma */
    animation: slide-in 20s infinite;
    animation-timing-function: linear;
}

/* **** Fotograma de LA INFORMATICA, presentacion h1 **** */
@keyframes slide-in {
    from {
        transform: translateX(180%);
    }

    to {
        transform: translateX(-220%);
    }
}

.presentacion p {
    color: white;
    font-weight: 600;
    font-size: 46px;
    margin-bottom: 5px;
    text-shadow: 1px 1px #0a0a0a,
        0 0 10px #070707,
        0 0 20px #070707,
        0 0 40px #070707;
}

/* ******** Datos sobre mi ******** */
#sobremi {
    background-color: #fecec1;
    padding: 120px 50px;
}

.container .sobre-mi {
    font-size: clamp(24px, 3vw, 32px);
}

.sobremi-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 80%;
    margin: 0 auto;
    text-align: justify;
}

.sobremi-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

p.historiamia {
    font-family: "Chewy", system-ui;
    font-weight: 400;
    font-style: normal;
    /* font-size: 2.2rem; */
    font-size: clamp(1.5rem, 2vw + 1rem, 2.188rem);
    color: rgba(46, 2, 95, 0.4);
    padding-bottom: 15px;
}

p.actualidad {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(1.313rem, 2vw + 0.75rem, 2.063rem);
    color: rgba(95, 78, 2, 0.4);
}


/***************************/
section h2 {
    /* todos los h2 */
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    color: #284696;
}

/***************************/
/* ****** Lenguajes ****** */
#container-slider {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    background-image: url(/img/fondoform2.jpg);
    background-position: center;
    background-size: cover;
}

#container-slider h2 {
    font-size: clamp(24px, 3vw, 32px);
    padding-top: 120px;
    color: #ffffff;
    text-shadow: 2px 2px #F8B83F;
}

.slider {
    width: 75vw;
    height: 75vh;
    margin: 20px auto;
    overflow: hidden;
}

.slider .slide-track {
    display: flex;
    gap: 10px;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 50s linear infinite;
    width: calc(200px * 32);
    /* es la cantidad TOTAL de imagenes que pusimos */
}

.slider .slide {
    width: 200px;
    height: 200px;
}

.slider .slide img {
    color: #fff;
    /* si la imagen no se carga, entonces de vera el alt= BLANCO */
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(calc(-200px * 16));
        transform: translateX(calc(-200px * 16));
        /* Cantidad que NO se repiten */
    }
}


/* *************************************** */
/* ********** Certificados 3d ************ */
#container-certificad {
    background-color: #f7d9d1;
    /* background-color: #EBE6DC; */
    padding-bottom: 30px;
}

#container-certificad h2 {
    font-size: clamp(24px, 3vw, 32px);
    padding-top: 120px;
}

.container-card3d {
    perspective: 2200px;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding: 10px;
    gap: 1.6rem;
}

.card3d {
    width: 300px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2.8s ease;
}

.card3d:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    color: white;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.front {
    /* background-image: url('/img/tecnologia1.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container-card3d .card3d:nth-child(1) .front {
    background-image: url('/img/tecnologia1.png');
}

.container-card3d .card3d:nth-child(2) .front {
    background-image: url('/img/tecnologia2.png');
}

.container-card3d .card3d:nth-child(3) .front {
    background-image: url('/img/tecnologia3.png');
}

.container-card3d .card3d:nth-child(4) .front {
    background-image: url('/img/tecnologia4.png');
}

.container-card3d .card3d:nth-child(5) .front {
    background-image: url('/img/tecnologia5.png');
}

.container-card3d .card3d:nth-child(6) .front {
    background-image: url('/img/tecnologia6.png');
}

.container-card3d .card3d:nth-child(7) .front {
    background-image: url('/img/tecnologia7.png');
}

.container-card3d .card3d:nth-child(8) .front {
    background-image: url('/img/tecnologia8.png');
}

.container-card3d .card3d:nth-child(9) .front {
    background-image: url('/img/tecnologia9.png');
}

.container-card3d .card3d:nth-child(10) .front {
    background-image: url('/img/tecnologia6.png');
}

.back {
    background: linear-gradient(135deg, #042e46, #64748b, #042e46);
    transform: rotateY(180deg);
    padding: 10px 14px;
    display: grid;
    grid-template-rows: 20% 60% 20%;
}

.front h3 {
    position: absolute;
    bottom: 0;
    transform: translateZ(30px);
    text-shadow: 0 2px 10px #000;
    margin-bottom: 10px;
    text-align: center;
    color: #0ef;
    font-size: 1.8rem;
}

.back h3 {
    transform: translateZ(50px);
    text-shadow: 0 2px 8px #000;
    margin-bottom: 10px;
    font-size: 1.8rem;
    margin-inline: auto;

    grid-row: 1/2;
}

.back p {
    transform: translateZ(30px);
    text-shadow: 0 1px 4px #000;
    text-align: center;
    font-size: 1.3rem;
    grid-row: 2/3;
}

.back a {
    transform: translateZ(30px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #0ef;
    font-size: 1.1rem;
    /* text-align: center; */
    margin-inline: auto;
    grid-row: 3/4;
}

.back a:hover {
    color: #00eeff;
}


/****** Links de descarga ******/
.container-download {
    display: block;
    text-align: center;
    /* height: 20vh;
    width: 100%; */
    margin-bottom: 30px;
}

.container-download h2 {
    /* font-size: 2em; */
    /* los h2 ya tiene el tamaño, aqui le cambiamos el color */
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 60px;
    color: #476b5d;
}

.button-download {
    display: inline;
    text-align: center;
    margin-top: 5px;
    width: 100px;
}

/* pequeña trampita, para que este mas lejos de Python */
.button-download .img3 {
    margin-left: 20px;
}

.button-download a img {
    width: clamp(100px, 18%, 160px);
    height: clamp(35px, 18%, 50px);

    margin: 0 20px 60px;
    transition: 0.5s;
}

.button-download a img:hover {
    scale: 1.05;
}


/**********************************************/
/* *********** Card de los proyectos ******** */
#container-proyectos {
    background-color: #f7e9f7;
    padding-bottom: 60px;
}

#container-proyectos h2 {
    font-size: clamp(24px, 3vw, 32px);
    padding-top: 120px;
}

.card-container {
    min-height: 100vh;
    width: 80%;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    grid-auto-rows: 500px;
    gap: 2.2em;
}

.card {
    display: grid;
    grid-template-rows: 50% 10% 30% 10%;
    border-radius: 8px;
    box-shadow: 4px 4px 12px rgb(0, 0, 0, 0.6);
    background-color: #f0f0f0;
    width: 100%;
    /* height: 600px; */
    object-fit: cover;
    overflow: hidden;

    transition: 0.5s;
}

.card:hover {
    box-shadow: 2px 2px 6px rgb(0, 0, 0, 0.6);
}

.card-img {
    grid-row: 1 / 2;
    /* Imagen ocupa la primera fila */
    transition: 0.4s;
}

.card-img:hover {
    scale: 1.03;
    transition: 0.4s;
}

.card-img img {
    width: 100%;
    height: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-title {
    grid-row: 2 / 3;
    /* Título ocupa la segunda fila */
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.card-title h3 {
    font-size: 28px;
    margin: 0;
}

.card-description {
    grid-row: 3 / 4;
    /* Descripción ocupa la tercera fila */
    margin: 0 16px;
    padding-right: 6px;
    display: flex;
    align-items: flex-start;
    overflow-y: scroll;
    /* Hacer que el contenido desbordado sea desplazable verticalmente */
    max-height: 100%;
    /* Asegurar que no crezca más allá del contenedor */
    text-align: justify;
}

.card-description p {
    color: #666;
    font-size: 18px;
    padding: 10px 0;
    line-height: 1.2;
}

/* botones de la card */
.card-btns {
    grid-row: 4 / 5;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* Espacio entre los botones */
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
    border: 1px solid #333;

    padding: 0.5rem 1rem;
    background-color: #333;
    text-decoration: none;
    border-radius: 4px;
    color: #ffffff;
    flex: 1;
    text-align: center;
    min-width: 100px;
    /* podria poner auto, si se requiere */
}

.btn:hover {
    border: 1px solid #7a8f96;
    color: #185163;
    font-weight: bold;
    /* background-color: #474646; */
}

.btn::after {
    content: "";
    background: #7a8f96;
    /* color de fondo hover */

    position: absolute;
    z-index: -1;
    padding: 16px 20px;
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transform: scale(0, 0);
    transition: all 0.35s ease;
}

.btn:hover::after {
    transition: all 0.35s ease-out;
    transform: scale(1, 1);
}


/* ************************************************************* */
/* Texto de formulario */
/* Estilos para centrar el formulario en el medio del contenedor */
#section-form {
    max-width: 100%;
    background-image: url(/img/portada.png);
    background-size: 100vw 100vh;
    background-attachment: fixed;
    /* para que la imagen quede fija en el fondo */
    padding-bottom: 16px;
}

.titulo-form {
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    padding: 120px 3px 2px 3px;
    margin: 0;
    color: #ffffff;
    text-shadow: #ff4081 2px 2px;
}

form {
    max-width: 40%;
    margin: auto;
    background-color: rgba(9, 72, 110, 0.5);
    padding: 20px 20px 10px 20px;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 200px;
    border-radius: 5px;
}

form p {
    color: #fff;
    text-align: center;
    margin: 0;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

input.nombre,
input.apellido {
    text-transform: capitalize;
}

input.email {
    text-transform: lowercase;
}

input,
textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 8px;
    box-sizing: border-box;

    font-size: 16px;
    /* el font-family, es mas que nada para el textarea */
    font-family: sans-serif, 'Courier New', Courier, monospace;

    border-radius: 5px;
    border: 1px solid rgb(168, 168, 168);
    color: #ffffff;
    background-color: transparent;
}

textarea {
    min-height: 140px;
    max-height: 140px;
    min-width: 100%;
    max-width: 100%;
}

::placeholder {
    color: #bea7bc;
}

.aceptar {
    display: flex;
    flex-direction: row;
}

#check-priv {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.text-priv {
    color: #fff;
    font-size: clamp(0.938rem, 3vw, 1.125rem);
}

.btns-form {
    display: flex;
    gap: 1rem;
}

.btn-f {
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw + 0.25rem, 1.125rem);
    text-align: center;
    /* si el boton fuese type="button" quedaria en el centro, pero como es type="subnit" no queda en el centro */
    color: #fff;
    background: transparent;
    border: 1px solid #15a4fa;
    margin-bottom: 14px;
    padding: 6px;

    transition: 0.4s;
}

.btn-f:hover {
    color: #ffffff;
    background-color: #15a4fa;
}


/*************************/
/* ******* Footer ****** */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

p.contac {
    font-size: clamp(24px, 3vw, 32px);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: #333;
    padding-bottom: 10px;
    text-shadow: #2fcdcd 2px 2px;
}

.mimail {
    font-size: clamp(18px, 2vw, 20px);
    padding-bottom: 12px;
}

.mimail a {
    color: #ffffff;
}

.sociales {
    padding-bottom: 10px;
}

.sociales a {
    padding: 0 4px;
}

.linkedin,
.github,
.facebook,
.whatsapp {
    width: 36px;
    height: 36px;
    border-radius: 50px;

    transition: 0.5s;
}

.linkedin:hover,
.github:hover,
.facebook:hover,
.whatsapp:hover {
    /* background-color: #ffffff; */
    box-shadow: 1px 1px 14px 0 #abacaf, -1px -1px 14px 0 #abacaf;
}

footer .copyright {
    font-size: clamp(12px, 1.5vw, 18px);
    font-stretch: ultra-expanded;
    color: #fcb4a0;
}



/*************************************/
/* ***** Media Query con 1368px ***** */
@media (max-width: 1368px) {
    .btn-certificad a {
        padding: 4px 16px;
        font-size: 10px;
    }
}


/*************************************/
/* ***** Media Query con 1090px ***** */
@media (max-width: 1090px) {
    nav ul li a {
        font-size: 1rem;
        padding: 0 8px;
    }

    .main-name {
        font-size: 1.4rem;
    }
}


/*************************************/
/* ***** Media Query con 952px ***** */
@media (max-width: 952px) {
    .logo {
        height: 50px;
        width: 50px;
    }

    .main-name {
        font-size: 1.3rem;
    }

    .checkbtn {
        display: block;
        margin-top: 8px;
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: 70vh;
        background: rgba(44, 62, 80, 0.9);
        top: 90px;
        left: -100%;
        margin: 0;
        text-align: center;
        transition: all .5s;
        overflow-y: auto;
    }

    nav ul li {
        display: block;
        margin: 20px 0;
        line-height: 50px;
    }

    nav ul li a {
        font-size: 20px;
    }

    li a:hover,
    li a.active {
        background: none;
        color: red;
    }

    #check:checked~ul {
        left: 0;
    }

    .presentacion p {
        font-size: 38px;
    }

    form {
        max-width: 50%;
    }
}



/*************************************/
/* ***** Media Query con 858px ***** */
/*************************************/
@media (max-width: 858px) {
    .presentacion h1 {
        font-size: 4rem;

        animation: slide-in 20s infinite;
        animation-timing-function: linear;
    }

    /* **** Fotograma de LA INFORMATICA, presentacion h1 **** */
    @keyframes slide-in {
        from {
            transform: translateX(140%);
        }

        to {
            transform: translateX(-140%);
        }
    }

    .presentacion p {
        color: white;
        font-weight: 400;
        font-size: 34px;
    }

    .card-description p {
        font-size: 18px;
        line-height: 1.1;
    }

    form {
        max-width: 60%;
    }
}



/*************************************/
/* ***** Media Query con 560px ***** */
/*************************************/
@media (max-width: 560px) {
    .sobremi-content {
        max-width: 96%;
    }
}



/*************************************/
/* ***** Media Query con 490px ***** */
/*************************************/
@media (max-width: 490px) {
    .presentacion h1 {
        font-size: 3rem;
        /* fotograma */
        animation: slide-in 18s infinite;
        animation-timing-function: linear;
    }

    /* **** Fotograma de LA INFORMATICA, presentacion h1 **** */
    @keyframes slide-in {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(-100%);
        }
    }

    .presentacion p {
        color: white;
        font-weight: 300;
        font-size: 28px;
    }

    /*  p.historiamia {
        font-size: 1.8rem;
    }
    
    p.actualidad {
        font-size: 1.7rem;
    } */

    .card {
        grid-template-rows: 48% 10% 30% 12%;
    }

    .card-title h3 {
        font-size: 22px;
    }

    .card-description p {
        font-size: 15px;
        line-height: 1.1;
    }

    .btn {
        padding: 0.3rem 1rem;
        min-width: 80px;
    }

    section h2,
    .titulo-form {
        font-size: 1.5em;
    }

    form {
        max-width: 86%;
    }

    /* ************************** */
    footer {
        padding: 30px 0;
    }

    p.contac {
        font-size: 1.6rem;
    }

    p.mimail {
        font-size: 1rem;
    }

    .social-links a {
        font-size: 1.1rem;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s;
    }

    footer .copyright {
        font-size: 0.74rem;
        font-stretch: normal;
    }
}



/*************************************/
/* ***** Media Query con 430px ***** */
/*************************************/
@media (max-width: 430px) {
    .logo {
        height: 40px;
        width: 40px;
    }

    .container-certificad {
        height: 86vh;
        width: 66%;
        gap: 1.5rem;
    }

    .btn-certificad a {
        padding: 2px 16px;
        margin-bottom: 6px;
        font-size: 10px;
    }

    .button-download a img {
        width: 120px;
        height: 30px;
        margin: 4px 15px;
        transition: 0.5s;
    }
}