:root {
    --negro:black;
    --dorado:#efb810;
    --blanco:rgb(226, 226, 226);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--dorado);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

body {
    background-color: var(--negro);
}

header {
    background-color: var(--negro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

header h1 {
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(70deg, #FFD700, #FFA500, #FFD700,  #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;
    margin: 0px 40px;

    font-family: "Pinyon Script", cursive;
    font-weight: 500;
    font-style: normal;
}

header ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 40%;
    margin-right: 80px;
    list-style: none;
}

header ul li a {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: all .3s ease;
}

header ul li a:hover {
    background: linear-gradient(180deg, #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;
    font-size: 18px;
}

.inicio {
    background: url(img/portada.JPG);
    width: 100%;
    height: calc(100vh - 80px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    position: relative;
}

.capa {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.671);
}

.txtinicio{
    position: absolute;
    bottom: 3%;
    left: calc(50% - 25%);
    width: 50%;
    text-align: center;
    backdrop-filter: blur(1.6px);
    padding: 40px 0px;
}

.txtinicio h2 {
    font-size: 3.5vw;
    background: linear-gradient(70deg, #FFD700, #FFA500, #FFD700,  #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;

    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    font-style: normal;
}


.txtinicio p {
    font-size: 2vw;
    background: linear-gradient(70deg, #FFD700, #FFA500, #FFD700,  #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;
    margin: 30px 0px;
    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    font-style: normal;

}

.txtinicio a button{
    border-radius: 20px;
    background: linear-gradient(45deg, rgb(138, 138, 138), black 35%);
    transition: .5s all ease;
    cursor: pointer;
}

.txtinicio a button:hover {
    scale: 1.1;
}


.txtinicio a button p {
    padding: 7px 10px;
    font-size: 25px;
    margin: 0px;
    background: linear-gradient(70deg, #FFD700, #FFA500, #FFD700,  #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;
}

.galeria {
    width: 80%;
    margin: 140px 10%;
}

.galeria h2 {
    font-size: 54px;
    text-align: center;
    font-family: "Pinyon Script", cursive;
    font-weight: 700;
    font-style: normal;
    padding-bottom: 15px;
    width: fit-content;
    margin: auto;
    border-bottom: 1px solid gold;
}

.contenedorgaleria {
    width:80%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.videogaleria {
    width: 100%;
    border-bottom: 2px solid gold;
}

.videoframe {
    width: 100%;
    aspect-ratio: 5/3;
    margin: 0px 0%;
    position: relative;
}

.nosotros {
    width: 80%;
    margin: 140px 10%;
    position: relative;

}

.nosotros h2 {
    font-size: 54px;
    text-align: center;
    font-family: "Pinyon Script", cursive;
    font-weight: 700;
    font-style: normal;
    padding-bottom: 15px;
    width: fit-content;
    margin: auto;
    border-bottom: 1px solid gold;
}

.nosotros p {
    width: 50%;
    margin: 20px auto;
    margin-top: 70px;
    font-size: 19px;
    color: var(--blanco);
    text-align: center;
}

.nosotros .separador {
    width: 40%;
    margin: 0px 30%;
}

.sn_texto {
    width: 100%;
}

.servicios {
    width: 80%;
    margin: 140px 10%;
}

.servicios h2 {
    font-size: 54px;
    text-align: center;
    font-family: "Pinyon Script", cursive;
    font-weight: 700;
    font-style: normal;
    padding-bottom: 15px;
    width: fit-content;
    margin: auto;
    border-bottom: 1px solid gold;
}

.contenedorservicios {
    width:40%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contenedorservicios a {
    background: linear-gradient(70deg, #FFD700, #FFA500, #FFD700,  #FFD700, #FFA500, #FFD700, #FFFACD);
    background-clip: text;
    color: transparent;
    border: 1px solid gold;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
}

.contenedorservicios a:hover {
    color: white; 
}

.carrusel {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

.carrusel h2 {
    font-size: 54px;
    text-align: center;
    font-family: "Pinyon Script", cursive;
    font-weight: 700;
    font-style: normal;
    padding-bottom: 15px;
    width: fit-content;
    margin: auto;
    border-bottom: 1px solid gold;
}

.contenedorcarrusel {
    width: 100%;
    display: flex;
    margin-top: 60px;
    transition: 5s all ease;
    animation: carrusel 20s linear infinite;
}

.contenedorcarrusel:hover {
    animation-play-state: paused;
}

.contenedorcarrusel img {
    width: calc(100% / 3);
    padding: 0px 20px;
}

@keyframes carrusel {
    0%{
        transform: translateX(0%);
    }
    10% {
        transform: translateX(0%);
    }
    30% {
        transform: translateX(-100%);
    }
    45%{
        transform: translateX(-100%);
    }
    75% {
        transform: translateX(-200%);
    }
    90% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0%);
    }
}





footer {
    margin-top: 100px;
    border-top: #efb810 1px solid;
     display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

footer div {
    width: 50%;
}

footer div ul {
    margin-top: 60px;
    width: 100%; 
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

footer div ul li {
    list-style: none;
}

footer div ul li a {
     text-decoration: none;
}

footer div .pfooter {
    margin-bottom: 50px;
    text-align: center;
}

.float {
    position: fixed;
    transition: all ease-out .3s;
}

.f1 {
    bottom: 40px;
    left: 0px;
    transform: translateX(calc(-100% + 60px));
}

.f1:hover {
    transform: none;
}

.f2 {
    bottom: 40px;
    right: 0px;
    transform: translateX(calc(100% - 60px));
}

.f2:hover {
    transform: none;
}

.float p {
    padding: 10px 20px;
    background: linear-gradient(to left, #FFD700, #FFA500, #FFD700, #FFA500, #FFD700, #FFFACD);
    color: rgb(0, 0, 0);
    font-size: 20px;
    display: flex;
    align-items: center;
}

.float p img {
    height:20px ;
}

.fp1 {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    padding-right: 0px;
}

.fp1 img {
    margin-left: 20px;
}

.fp2 {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.fp2 img{
    margin-right: 20px;
}

.nopc {
    display: none;
}

.fondodorado {
    position: fixed;
    top: 0;
    z-index: -99;
}

.fondodorado img {
    height: 80vh;
    filter: brightness(0.1);
}

.fondodorado .fdderecha {
    position: fixed;
    right: 0px;
}

.fondodorado .fdizquierda {
    position: fixed;
    left: 0px;
}



@media (max-width:991px) {

    .nopc {
        display: initial;
        width: 100%;
        margin: 20px 0px;
    }

    header {
        flex-direction: column;
        height: auto;
    }

    header .contlogo {
        width: 100%;
    }

    header .contlogo h1 {
        font-size: 6.8vw;
        margin: 20px 0px;
        margin-top: 40px;
        text-align: center;
        font-weight: 700;
        letter-spacing: 1.5px;
    }

    header ul {
        display: none;
        width: calc(100% - 60px);
        margin: 10px 30px;
        margin-bottom: 20px;
    }

    .inicio {
        background: none;
        height:auto;
    }

    .capa {
        background-color: rgba(0, 0, 0, 0.301) ;
    }

    .txtinicio {
        position: relative;
        bottom: 5%;
        width: 70%;
        left: calc(50% - 35%);
    }

    .txtinicio h2 {
        font-size: 7vw;
        font-weight: 500;

    }

    .txtinicio p {
        font-size: 5vw;
    }

    .txtinicio a button p {
        font-size: 5vw;
    }

    .galeria {
        width: 90%;
        margin: 140px 5%;
    }

    .galeria h2 {
        font-size: 48px;
    }

    .contenedorgaleria {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .nosotros {
        width: 90%;
        margin: 140px 5%;
    }

    .nosotros h2 {
        font-size: 48px;
    }

    .nosotros p {
        width: 80%;
        font-size: 14px;
    }

    .nosotros .separador {
        width: 80%;
        margin: 0px 10%;
    }

    .videoframe {
        aspect-ratio: 6/3;
    }

    .servicios {
        width: 90%;
        margin: 140px 5%;
    }

    .contenedorservicios {
        width: 100%;
    }

    .contenedorservicios a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contenedorcarrusel {
        animation: carrusel 40s linear infinite;
    }

    @keyframes carrusel {
    0%{
        transform: translateX(0%);
    }
    5% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-100%);
    }
    22%{
        transform: translateX(-100%);
    }
    37% {
        transform: translateX(-200%);
    }
    45% {
        transform: translateX(-200%);
    }
    60% {
        transform: translateX(-300%);
    }
    66% {
        transform: translateX(-300%);
    }
    80% {
        transform: translateX(-400%);
    }
    87% {
        transform: translateX(-400%);
    }
    100% {
        transform: translateX(0%);
    }
}

    .contenedorcarrusel img {
        width: 100%;
    }

    footer div {
        width: 90%;
    }

    footer div ul li {
        padding: 0px 15px;
    }

    .f1{
        bottom: 80px;
    }

    .f2 {
        bottom: 80px;
    }

    .fondodorado img {
    height: 80vh;
    filter: brightness(0.31);
    }
    .fdderecha {
        display: none;
    }
}