@font-face {
    font-family: 'Castoro';
    src: url('../fonts/castoro/castoro-regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.woff') format('woff');
    font-display: swap;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins';
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100vw;
}

section {
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    background: var(--clr);
}

header[id="menu"] {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 130px;
    background: transparent;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;

    padding: 0px 30px 0;
    z-index: 100;
}


.oscureceHeader {
    animation: oscureceHeader;
}

.showHeader {
    animation: muestraHeader;
}
.ocultaHeader {
    animation: ocultaHeader;
}

.showHeader, .ocultaHeader, .oscureceHeader {
    animation-duration: .5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes muestraHeader {
    from {
        opacity: 0%;
    }
    to {
        opacity: 100%;
    }
}

@keyframes ocultaHeader {
    from {
        opacity: 100%;
    }
    to {
        opacity: 0%;
    }
}

@keyframes oscureceHeader {
    from {
        background: transparent;
    }
    to {
        background: rgba(0,0,0, .8);
    }
}

/* @keyframes showToRight {
    from {
        opacity: 10%;
        transform: translateX(-300px);
    }
    to {
        opacity: 100%;
        transform: translateX(0px);
    }
}

@keyframes showToLeft {
    from {
        opacity: 0%;
        transform: translateX(300px);
    }
    to {
        opacity: 100%;
        transform: translateX(0px);
    }
}

.aboutfpv .midron,
.aboutfpv .texto,
.aboutme div.texto,
.aboutme div.mifoto {
    view-timeline-name: --image;
    view-timeline-axis: horizontal;
    animation-timeline: --image;
    animation-range: entry 15% cover 30%;
    animation-fill-mode: both;
}

.aboutfpv .texto,
.aboutme .mifoto {
    animation-name: showToRight;
}

.aboutfpv .midron,
.aboutme div.texto {
    animation-name: showToLeft;
} */


.logo {
    position: relative;
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    padding: 20px;
    opacity: 80%;
    width: 70px;
    height: 70px;
}

header[id="menu"] nav {
    display: flex;
    gap: 10px;
}

header[id="menu"] nav a {
    position: relative;
    text-decoration: none;
    padding: 12px 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

header[id="menu"] nav a.active {
    background: var(--clr);
    color: #333;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


/* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */

.nh-selected {
    transition: .5s;
    border-radius: 10px;
    background: rgba(0,0,0 , .2);
}


/* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */ /* Menu No Hamburguesa  */






/* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home */

@keyframes mostrarTexto {
    from {
        opacity: 0;
        filter: blur(100);
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0px);
    }
}

section[id="home"] {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

section[id="home"] main {
    transform: translateY(-50px);
    opacity: 0;
    filter: blur(100);

    animation: mostrarTexto 1s ease-in-out .5s;
    animation-fill-mode: forwards;
    padding: 1em;
    padding-top: 250px;
    color: rgba(255,255, 255, .9);
    text-align: center;
}

h1, h2 {
    text-transform: uppercase;
}

section[id="home"] main h1 {
    font-family: 'Castoro';
    text-shadow: 2px 2px 3px  black;
    font-weight: 800;
    font-size: 8em;
    letter-spacing: .05rem;
}

section[id="home"] main h2 {
    font-size: 2em;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    text-shadow: 2px 2px 3px  black;
}
section[id="home"] main h2 .jaen,
section[id="home"] main h2 .fpv  {
    color: #4ea83f;
}

section[id="home"] footer {
    padding-bottom: 100px;
}

section[id="aboutfpv"] article .midron button,
section[id="about"] article .mifoto button,
section[id="home"] footer a button{
    color: white;
    font-size: 1rem;
    padding: 1em 2em;
    border: none;
    border-radius: 20px;
    background: transparent;
    border: 1px solid #eee;
    cursor: pointer;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: .5s;
}


section[id="aboutfpv"] article .midron button:hover,
section[id="about"] article .mifoto button:hover,
section[id="home"] footer a button:hover{
    transition: .5s;
    transition-delay: .2s;
    color: #111;
    letter-spacing: .2em;
    background: rgba(255,255,255, .8);
}


#homevideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter:brightness(70%);
    object-fit: cover;
    z-index: -1;
}

/* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home *//* CSS Sección Home */


/* Sección Sobre Mi */ /* Sección Sobre Mi *//* Sección Sobre Mi *//* Sección Sobre Mi */

section[id="aboutfpv"],
section[id="about"] {

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}

section[id="slider"] h2,
section[id="aboutfpv"] h2,
section[id="about"] h2 {
    text-align: center;
    color: #eee;
    font-family: 'Castoro';
    font-size: 3em;
    padding-top: 13vh;
}

section[id="about"] h2 span{
    color: rgba(200,200,200, .5);
}

section[id="aboutfpv"] article,
section[id="about"] article {
    padding-bottom: 20vh;
    width: 80vw;
}

section[id="about"] article[class="aboutme"] {
    display: grid;
    grid-template-columns: 40% 60%;
}


section[id="aboutfpv"] article .midron,
section[id="about"] article .mifoto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}



section[id="aboutfpv"] article .midron img,
section[id="about"] article .mifoto img {
    outline: none;
    padding: 27px;
    width: 500px;
}

section[id="aboutfpv"] article .texto,
section[id="about"] article .texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
}


section[id="aboutfpv"] article div[class="texto"] > p,
section[id="about"] article div[class="texto"] > p {
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.3;
    /* padding-right: 50px; */
    width: 70ch;
    margin-bottom: 0px;
    color : #DDD;
    text-align: left;
}

/* Sección Sobre Mi */ /* Sección Sobre Mi *//* Sección Sobre Mi *//* Sección Sobre Mi */


/* Sobre el FPV  */ /* Sobre el FPV  */ /* Sobre el FPV  */ /* Sobre el FPV  */ /* Sobre el FPV  */

section[id="aboutfpv"] h2 {
    color: #222;
}

section[id="aboutfpv"] h2 span{
    color: rgba(0,0,0, .5);
}

section[id="aboutfpv"] article[class="aboutfpv"] {
    display: grid;
    grid-template-columns: 60% 40%;
}

section[id="aboutfpv"] article div[class="texto"] > p {
    color : #222;
}

section[id="aboutfpv"] article .midron button {
    color: #222;
    border: 3px solid #222;
}


/* Sobre el FPV  */ /* Sobre el FPV  */ /* Sobre el FPV  */ /* Sobre el FPV  */ /* Sobre el FPV  */



/* Menu Hamburguesa  */ /* Menu Hamburguesa  */ /* Menu Hamburguesa  */ /* Menu Hamburguesa  */

nav[id="#hamburguesa"] {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

nav[id="hamburguesa"] img {
    width: 40px;
    height: 40px;
    filter: invert(1);
    cursor: pointer;
}

#hamburguesa ul {
    padding: .5em;
    position: absolute;
    background: rgba(0,0,0, .8);
    top: 130px;
    right: 0px;
    width: 300px;
    display: none;
    flex-direction: column;
    align-items: center;
    height: 300px;
}

#hamburguesa ul li {
    padding: 12px 20px;
    list-style: none;
    letter-spacing: .1em;
}

#hamburguesa ul li:hover {
    transition: .5s;
    border-radius: 50px;
    letter-spacing: .3em;
}

.showMenu {
    display:flex !important;
    animation: abrirHamburguesa;
    animation-duration: .5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}


@keyframes abrirHamburguesa {
    from {
        /* transform: scale(1,0); */
        opacity: 0%;
    }
    to {
        opacity: 100%;
        /* transform: scale(1, 1); */
    }
}


/* Menu Hamburguesa  *//* Menu Hamburguesa  *//* Menu Hamburguesa  *//* Menu Hamburguesa  */


/* Seccion Redes Sociales  */ /* Seccion Redes Sociales  */ /* Seccion Redes Sociales  */

section[id="rrss"] {
    font-family: 'Poppins';

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    gap: 50px;
    align-items: center;
    justify-content: space-between;
    margin:0;
    padding:0;

}

section[id="rrss"] h2 {

    font-family: 'Castoro';
    color: #eee;
    font-size: 3em;
    padding-top: 70px;
    text-align: center;

}

section[id="rrss"] .redesBox {
    position: relative;

    margin-bottom: 15%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}



/* Seccion Redes Sociales  */ /* Seccion Redes Sociales  *//* Seccion Redes Sociales  */



/* Sección de Contacto */ /* Sección de Contacto */ /* Sección de Contacto */


section[id="contact"] {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

form[id="contactform"] h2 {
    font-family: 'Castoro';
    padding-bottom: 5vh;
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
}

form[id="contactform"] {
    box-shadow: 2px 2px 5px #111;
    background: #eee;
    width:40vw;
    padding: 25px 50px;
    display: flex;
    flex-direction: column;
    border-radius: 15px;

}

form[id="contactform"] > label {
    font-family: 'Poppins';
    font-weight: 400;
    font-size: .9em;
    padding: 5px 2px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    justify-content: center;
}

form[id="contactform"]  label select,
form[id="contactform"]  label input {
    background: transparent;
    border-radius: 5px;
    width: 100%;
    padding: 15px 10px;
    font-size: 1.1em;
    border: none;
    border: 1px solid rgba(0,0,0,.5);
}

form[id="contactform"]  label select {
    background: #eee;
    width: 50%;
}

form[id="contactform"]  button {
    cursor: pointer;
    margin-top: 25px;

    background: #1a21e6;
    color : #eee;

    font-weight: 600;
    font-size: 1.1em;
    padding: 15px 65px;

    border:none;
    border-radius: 10px;
    box-shadow: 0px 0px 2px #333;

    transition: .5s;
}

form[id="contactform"]  button:hover {
    transition: .5s;
    box-shadow: 0px 0px 5px #333 inset;
    color : #333;
    background: #b0b2ff;
    letter-spacing: .1rem;
}

form[id="contactform"] label img {
    opacity: .6;
}


section[id="contact"] footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 10vh;
    width: 100%;
    background: #666;
}

section[id="contact"] footer p {
    color: #eee;
    font-weight: 400;
    font-family: Roboto, 'Open Sans', sans-serif;
    padding: 10px 30px;
}

@media screen and (max-width:1000px) {
    form[id="contactform"] > label {
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    form[id="contactform"]  label select,
    form[id="contactform"]  label input {
        width:90%;
    }
    form[id="contactform"] {
        width: 90vw;
    }

    section[id="contact"] h2 {
        font-size: 7vw;
    }


}




/* Sección de Contacto */ /* Sección de Contacto */ /* Sección de Contacto */



/* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */

span[id="avisos"] .alert {
    position: absolute;
    top: 130px;
    margin-left: calc(50vw - 200px);

    width: 400px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px #222;
    font-family: system-ui;
    font-size: 1.2em;
    font-weight: 600;

    display: flex;
    justify-content: center;
    align-items: center;

    animation: toBlack;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

@keyframes toBlack {
    from {
        opacity: 100%;
    }
    to {
        opacity: 0%;
    }
}

span[id="avisos"] .alert-fail {
    background: rgba(255,0,0,.7);
    color: white;
}

span[id="avisos"] .alert-ok {
    background: rgba(255,255,0,.4);
    color: black;
}



/* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */ /* AVISOS */



@media screen and (max-width:400px) {

    #hamburguesa {
        display: flex;
    }
    #nohamburguesa {
        display: none;
    }

    section[id="home"] main {
        padding-top: 25vh;
    }

    section[id="home"] main h1 {
        font-size: 14vw;
    }
    section[id="home"] main h2 {
        font-size: 10vw;
    }

    header[id="menu"] {
        padding-top: 20px;
    }


    /* Seccion About me */

    section[id="about"] h2 {
        display:none;
    }

    section[id="about"] article .mifoto img {
        width: 60vw;
    }

    section[id="about"] article[class="aboutme"] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    section[id="about"] article div[class="texto"] {
        width: 90vw;
    }

    section[id="rrss"] .redesBox {
        flex-direction: column;
    }

    section[id="about"] article div[class="texto"] > p {
        text-align: left;
        padding: 3px;
        margin-bottom: 10px;
        color : #CCC;
    }

    section[id="about"] article div[class="mifoto"] img {
        width: 50vw;
    }
    /* Seccion About me */


    /* Seccion About FPV */
    section[id="aboutfpv"] article[class="aboutfpv"] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    section[id="aboutfpv"] article div[class="midron"] img {
        width: 80vw;
    }

    section[id="aboutfpv"] article div[class="texto"] > p {
        padding: 3px;
    }
    /* Seccion About FPV */


    section[id="rrss"] .redesBox {
        flex-direction: column;
        gap: 50px;
    }

    section[id="rrss"] h2 {
        font-size: 2em;
    }


}


@media screen and (min-width: 400px) and (max-width:800px) {

    section[id="home"] main{
        padding-top: 25vh;
    }

    section[id="home"] main h1 {
        font-size: 14vw;
    }
    section[id="home"] main h2 {
        font-size: 10vw;
    }

    section[id="rrss"] .redesBox {
        flex-direction: column;
        gap: 50px;
    }

    section[id="rrss"] h2 {
        font-size: 2em;
    }

    #hamburguesa {
        display: flex;
    }
    #nohamburguesa {
        display: none;
    }

    /* Seccion About me */
    section[id="aboutfpv"] h2,
    section[id="about"] h2 {
        text-align: center;
        color: #eee;
        font-family: 'Castoro';
        font-size: 2em;
        padding-top: 50px;
    }

    section[id="aboutfpv"] article[class="aboutfpv"],
    section[id="about"] article[class="aboutme"] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    section[id="aboutfpv"] article div[class="midron"] img,
    section[id="about"] article div[class="mifoto"] img {
        width: 80vw;
    }

    section[id="aboutfpv"] article div[class="texto"],
    section[id="about"] article div[class="texto"] {
        width: 90vw;
    }

    section[id="aboutfpv"] article div[class="texto"] > p,
    section[id="about"] article div[class="texto"] > p {
        font-size: .9em;
        text-align: left;
        padding: 10px;
        margin-bottom: 10px;
        color : #CCC;
        text-transform: none;
    }

    section[id="aboutfpv"] h2,
    section[id="aboutfpv"] article div[class="texto"] > p {
        color: #222;
    }
    /* Seccion About me */



}


@media screen and (min-width:800px) and (max-width:1400px) {
    #rrss {
        gap: 50px;
    }

    section[id="rrss"] .redesBox {
        flex-direction: column;
        gap:50px;
    }

    section[id="rrss"] .redesBox .card {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    #hamburguesa {
        display: flex;
    }
    #nohamburguesa {
        display: none;
    }

    section[id="home"] main{
        padding-top: 25vh;
    }

    section[id="home"] main h1 {
        font-size: 14vw;
    }
    section[id="home"] main h2 {
        font-size: 5vw;
    }


    /* Seccion About me */

    section[id="about"] h2 {
        text-align: center;
        color: #eee;
        font-family: 'Castoro';
        font-size: 3em;
        padding-top: 10vh;
    }

    section[id="about"] article[class="aboutme"] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    section[id="about"] article div[class="texto"] {
        width: 80vw;
    }

    section[id="about"] article div[class="texto"] > p {
        text-align: left;
        padding: 10px;
        margin-bottom: 10px;
        color : #CCC;
    }

    /* Seccion About me */



    /* Seccion About FPV */

    section[id="aboutfpv"] h2 {
        text-align: center;
        color: #222;
        font-family: 'Castoro';
        font-size: 3em;
        padding-top: 10vh;
    }

    section[id="aboutfpv"] article[class="aboutfpv"] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    section[id="aboutfpv"] article div[class="texto"] {
        width: 80vw;
    }

    section[id="aboutfpv"] article div[class="texto"] > p {
        text-align: left;
        padding: 10px;
        margin-bottom: 10px;
        color : #222;
    }

    /* Seccion About FPV */

}


@media screen and (min-width:1400px) {
    #hamburguesa {
        display: none;
    }
    #nohamburguesa {
        display:flex;
    }
}
