@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap'); /*questrial*/
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Questrial&display=swap'); /*arimo*/

:root {
    --azul_turquesa: #1e83be;
    --azul_marino: #032ff8;
    --azul_oscuro: #044aae;
    --azul_cielo: #39b5fe;
    --negro: #020202;
    --azul_claro: rgb(191, 225, 255);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*cambiar el estilo cuando se subraya un texto seleccionado*/
::selection {
    background-color: var(--azul_turquesa);
    color: white;
}

video::-webkit-media-controls {
    display: none;
}

img {
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.25);
}

body {
    margin: 0;
    min-height: 100vh;
}

header {
    width: 100%;
    height: 13vh;
    background-color: white;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 20;
    font-family: "Arimo";
    font-size: 1em;
    background-color: rgb(195, 255, 255);
    box-shadow: 0 10px 10px 2px rgba(0, 0, 0, 0.25);
}

header > div {
    margin-left: 5%;
    width: 10%;
    height: 100%;
}

header > div > a {
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header > div > a > img {
    height: 100%;
    object-fit: contain;
    box-shadow: none;
}

header > div:nth-child(2) {
    display: none;
}

header > div > button {
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

header > nav {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
}

header > nav > a {
    width: 20%;
    height: 85%;
    text-decoration: none;
    color: black;
    border-radius: 5px;
    font-size: 1.5em;
    font-weight: bolder;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    transition: 0.5s;
}

header > nav > a:hover {
    background-color: var(--azul_cielo) !important;
    color: black;
}

header > nav > a.activo {
    background-color: var(--azul_claro);
}

header > nav > a > img {
    width: 10%;
    box-shadow: none;
}

header > nav > div {
    position: absolute;
    top: 11.5vh;
    left: 43vw;
    width: 27%;
    height: 30vh;
    background-color: var(--azul_claro);
    border-radius: 20px;
    border: 1px solid black;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header > nav > div::-webkit-scrollbar {
    width: 10px;
}

header > nav > div::-webkit-scrollbar-thumb {
    background-color: var(--azul_turquesa);
    border-radius: 10px;
}

header > nav > div > a {
    width: 100%;
    height: 22.5%;
    text-decoration: none;
    color: black;
    font-size: 1.2em;
    font-weight: bolder;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

header > nav > div > a:hover {
    background-color: var(--azul_cielo);
}

main {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 13vh;
}

main > section {
    width: 100%;
    height: auto;
    padding: 1%;
    text-align: justify;
    scroll-margin-top: 12vh;
    font-family: "Questrial";
}

main > section:first-child {
    position: relative;
    width: 100%;
    height: 87vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--azul_claro), white);
}

main > section:first-child > video {
    width: calc(100% / 3);
    height: 82.5vh;
    position: absolute;
    top: 2.5vh;
    opacity: 0.4;
}

main > section:first-child > video:first-child {
    left: 0;
}

main > section:first-child > video:last-of-type {
    right: 0;
}

main > section:first-child > h1 {
    font-family: "Arimo";
    font-size: 2em;
    z-index: 10;
    text-align: center;
}

main > section:first-child > a {
    position: absolute;
    bottom: 12.5vh;
    text-decoration: none;
    text-align: center;
    font-size: 1.25em;
    color: black;
    width: 25%;
    padding: 20px;
    background-color: var(--azul_claro);
    border-radius: 10px;
    border: 1px solid black;
    z-index: 10;
    transition: transform 0.8s ease;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.25);
}

main > section:first-child > a:hover {
    transform: scale(1.15);
}

@keyframes fadeY {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aparecer-link {
    animation: fadeY 0.8s ease forwards;
}

main > section > h2 {
    font-family: "Arimo";
    font-style: italic;
    /* text-align: center; */
}

main > #mi-historia > #contenedor > #parte1, main > #mi-historia > #contenedor > #parte2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

main > #mi-historia > #contenedor > #parte2 {
    margin-top: 2.5%;
}

main > #mi-historia > #contenedor > #parte1 > .texto {
    width: 65%;
}

main > #mi-historia > #contenedor > #parte2 > .texto {
    width: 75%;
}

main > #mi-historia > #contenedor > #parte1 > .texto > p, main > #mi-historia > #contenedor > #parte2 > .texto > p {
    font-size: 1.05em
}

main > #mi-historia > #contenedor > #parte1 > img,
main > #mi-historia > #contenedor > #parte2 > img {
    border-radius: 10px;
    object-fit: contain;
}

main > #mi-historia > #contenedor > #parte1 > img {
    width: 35%;
}

main > #mi-historia > #contenedor > #parte2 > img {
    width: 25%;
}

main > #servicios {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main > #servicios > h2 {
    align-self: flex-start;
}

main > #servicios > #servicios_grid {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5%;
}

main > #servicios > #servicios_grid > a {
    position: relative;
    width: 45%;
    height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3vh;
    border-radius: 10px;
    border: 1px solid black;
    transition: 1s;
    color: black;
    text-decoration: none;
    font-size: 1.25em;
    text-align: center;
}

main > #servicios > #servicios_grid > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
    border-radius: 10px;
}

main > #servicios > #servicios_grid > #e-personal::before {
    background-image: url(/media/images/servicios/entrenamiento-personal.webp);
    background-color: black;
    background-position: 0 0.25vh;
}

main > #servicios > #servicios_grid > #e-domicilio::before {
    background-image: url(/media/images/servicios/entrenamiento-domicilio.webp);
}

main > #servicios > #servicios_grid > #e-pareja::before {
    background-image: url(/media/images/servicios/entrenamiento-pareja.webp);
}

main > #servicios > #servicios_grid > #e-grupo::before {
    background-image: url(/media/images/servicios/entrenamiento-grupal.webp);
    background-position: top;
}

main > #servicios > #servicios_grid > #e-online::before {
    background-image: url(/media/images/servicios/entrenamiento-online.webp);
    /*background-position: bottom;*/
}

main > #servicios > #servicios_grid > #e-video::before {
    background-image: url(/media/images/servicios/entrenamiento-videollamada.webp);
}

main > #servicios > #servicios_grid > #e-empresas::before {
    background-image: url(/media/images/servicios/entrenamiento-empresas.webp);
}

main > #servicios > #servicios_grid > #tipologia-entrenamiento::before {
    background-image: url(/media/images/servicios/kettlebells.webp);
}

main > #servicios > #servicios_grid > #otros-servicios::before {
    background-image: url(/media/images/servicios/natacion.webp);
}

main > #servicios > #servicios_grid > a > * {
    position: relative;
    z-index: 1;
}

main > #servicios > #servicios_grid > a:hover {
    transform: scale(1.1);
}

main > #servicios > #servicios_grid > a > h4 {
    font-size: 1.2em;
    text-align: center;
}

main > #tarifas > h2 {
    margin-bottom: 0;
}

main > #tarifas > table {
    width: 100%;
    border: 1px solid black; 
    text-align: center;
    border-collapse: collapse;
    table-layout: fixed;
}

main > #tarifas > #domicilio {
    scroll-margin-top: 20vh;
}

main > #tarifas > table tr > th, main > #tarifas > table tr > td {
    border: 1px solid black;
    padding: 0.75%;
    width: calc(100% / 6);
}

main > #tarifas > table tr:nth-child(even) > td, main > #tarifas > table tr:nth-child(even) > th {
    background-color: rgb(230, 230, 230);
}

main > #tarifas > table tr:nth-child(odd) > td, main > #tarifas > table tr:nth-child(odd) > th {
    background-color: white
}

main > #tarifas > #entrenamientos thead tr:first-child > th,
main > #tarifas > #domicilio thead  tr:first-child > th,
main > #tarifas > #domicilio thead  tr:nth-child(2) > th,
main > #tarifas > #domicilio thead  tr:nth-child(3) > th {
    background-color: var(--azul_cielo);
    font-style: normal;
}

main > #tarifas > table tr > th:first-of-type {
    font-style: italic;
}

main > #tarifas > div {
    text-align: center;
    margin-top: 5%;
}

main > #tarifas > div > p > a {
    color: black;
}

main > #tarifas > div > p > a:hover {
    color: var(--azul_oscuro);
}

main > #contacto {
    scroll-margin-top: 10vh;
}

main > #contacto > form {
    position: relative;
    width: 80%;
    padding: 1%;
    display: flex;
    flex-direction: column;
    justify-self: center;
    justify-content: center;
    margin-bottom: 2vh;
    border: 2px dashed var(--azul_oscuro);
    border-radius: 15px;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.25);
}

main > #contacto > form::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/media/images/logos-iconos/logo-cuadrado-sin-fondo.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

main > #contacto > form > * {
    position: relative;
    z-index: 1;
}

main > #contacto > form > #input-fila {
    display: flex;
    justify-content: space-between;
}

main > #contacto > form > #input-fila > .campo {
    display: flex;
    flex-direction: column;
    width: 30%;
}

main > #contacto > form > textarea, main > #contacto > form > #input-fila > .campo > input {
    font-family: "Arimo";
    font-size: 1em;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid black;
    margin: 1% 0 5% 0;
    color: var(--azul_oscuro);
    transition: 0.5s;
}

main > #contacto > form > textarea {
    resize: none;
    height: 25vh;
}

main > #contacto > form > textarea::-webkit-scrollbar {
    width: 10px;
}

main > #contacto > form > textarea::-webkit-scrollbar-thumb {
    background-color: var(--azul_turquesa);
    border-radius: 5px;
}

main > #contacto > form > textarea:focus, main > #contacto > form > #input-fila > .campo > input:focus {
    background-color: var(--azul_claro);
    color: black;
}

main > #contacto > form > #privacidad {
    margin-bottom: 2.5%;
}

main > #contacto > form > #privacidad > input {
    transform: scale(1.2);
    accent-color: var(--azul_cielo); /*color cuando está checked*/
}

main > #contacto > form > #privacidad > label > a {
    color: black;
}

main > #contacto > form > #privacidad > label > a:hover {
    color: var(--azul_oscuro);
}

main > #contacto > form > #privacidad > label > a > img {
    width: 1.25%;
    box-shadow: none;
}

main > #contacto > form > input[type='submit'] {
    width: 15%;
    font-size: 1em;
    padding: 10px;
    align-self: center;
    font-family: "Questrial";
    background-color: var(--azul_claro);
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer;
}

main > #contacto > form > input[type='submit']:hover {
    background-color: var(--azul_cielo);
}

main > #contacto > iframe {
    border: 1px solid black;
    border-radius: 10px;
}

main > span > #whatsapp {
    position: fixed;
    right: 1%;
    bottom: 2.5%;
    height: 8%;
    z-index: 10;
    transition: 0.5s;
}

main > span > #whatsapp > a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

main > span > #whatsapp > a > img {
    height: 100%;
    object-fit: contain;
    box-shadow: none;
}

main > div {
    width: 100%;
    height: 113vh;
    background-color: rgba(128, 128, 128, 0.7);
    position: absolute;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

main > div > aside {
    width: 100%;
    height: 35vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--azul_turquesa);
    color: white;
    font-family: "Questrial";
    text-align: justify;
    padding: 0 2%;
}

main > div > aside > p > a {
    color: white;
}

main > div > aside > p > a:hover {
    color: var(--azul_oscuro);
}

main > div > aside > button {
    display: flex;
    justify-self: center;
    width: auto;
    font-size: 1em;
    text-align: center;
    padding: 10px;
    align-self: center;
    font-family: "Questrial";
    background-color: var(--azul_claro);
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer;
}

main > div > aside > button:hover {
    background-color: var(--azul_cielo);
}

footer {
    font-family: "Arimo";
    width: 100%;
    height: 15vh;
    display: flex;
    align-items: center;
    padding-left: 2.5vw;
    gap: 2.5vw;
    background: linear-gradient(to top, var(--azul_claro), white);
    text-align: center;
}

footer > p {
    margin-right: 15%;
}

footer > a {
    text-decoration: none;
    color: var(--azul_oscuro);
    font-weight: bolder;
}

footer > a:hover {
    color:var(--azul_cielo);
}

.oculto {
    display: none;
}

.oculto-visibility {
    visibility: hidden;
}

.visible {
    display: block;
}

.visible-visibility {
    visibility: visible;
}


.fuenteSweetAlert {
    font-family: "Arimo";
}

@media (max-width: 768px) {
    header {
        height: 8vh;
    }

    header > #logo {
        width: 50%;
    }

    header > #btn-rayitas {
        width: 25%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header > #btn-rayitas > #btn-nav {
        display: block;
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header > #btn-rayitas > #btn-nav > img {
        width: 70%;
        object-fit: contain;
        box-shadow: none;
    }

    header > nav {
        position: absolute;
        top: 8vh;
        left: 0;
        width: 100%;
        height: auto;
        background-color: rgb(195, 255, 255);
        border-bottom: 1px solid black;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    header > nav > a {
        width: 100%;
        height: 20%;
        margin: 4%;
        font-size: 1.2em;
        justify-content: start;
    }
    
    header > nav > a > img {
        width: 5%;
    }

    header > nav > div {
        position: static;
        width: 80%;
        height: auto;
    }

    main {
        padding-top: 8vh;
    }

    main > section {
        padding: 5%;
        scroll-margin-top: 5vh;
    }

    main > section:first-child {
        height: 92vh;
    }

    main > section:first-child > video {
        width: 100%;
        height: 90vh;
    }

    main > section:first-child > a {
        bottom: 15vh;
        width: 70%;
        transition: none;
    }

    main > #mi-historia > #contenedor > #parte1, main > #mi-historia > #contenedor > #parte2 {
        flex-direction: column;
    }

    main > #mi-historia > #contenedor > #parte1 > .texto, main > #mi-historia > #contenedor > #parte2 > .texto {
        width: 100%;
    }

    main > #mi-historia > #contenedor > #carrusel {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    main > #mi-historia > #contenedor > #carrusel > img {
        width: 49%;
        border-radius: 10px;
        object-fit: cover;
    }

    main > #servicios > #servicios_grid {
        justify-self: center;
        width: 90%;
    }

    main > #servicios > #servicios_grid > a {
        width: 100%;
        height: 30vh;
        transform: none;
        transition: none;
    }

    main > #servicios > #servicios_grid > a:hover {
        transform: none;
    }

    main > #tarifas > table {
        font-size: 0.7em;
    }

    main > #tarifas > div {
        margin-top: 10%;
    }

    main > #contacto > form {
        width: 100%;
        padding: 4%;
    }

    main > #contacto > form > #input-fila {
        flex-direction: column;
    }

    main > #contacto > form > #input-fila > .campo {
        width: 100%;
    }

    main > #contacto > form > input[type='submit'] {
        width: 40%;
    }
    
    main > #contacto > form > #privacidad > label > a > img {
        width: 5%;
    }
    
    main > span > #whatsapp {
        right: 3%;
        height: 6vh;
    }

    main > span > #btn-inicio {
        position: fixed;
        bottom: 12.5%;
        right: 3.5%;
        height: 5.5vh;
        z-index: 10;
    }

    main > span > #btn-inicio > button {
        width: 100%;
        height: 100%;
        background-color: var(--azul_cielo);
        border: none;
        border-radius: 5px;
        padding: 5px;
        cursor: pointer;
    }

    main > span > #btn-inicio > button > img {
        height: 100%;
        object-fit: contain;
        box-shadow: none;
    }

    footer {
        margin-top: 5vh;
        height: auto;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2vh;
    }

    footer > p {
        margin-right: 0;
    }
}