:root {
    --blanco: #ffffff;
    --primario: #FFC107;
    --secundario: #0097A7;
    --gris: #757575;
    --gris-claro: #DFE9F3;
    --iconos: #ff9300;
    --navegador: #0F0E0E;
    --raton: #7F7F7F;
    --body: #909090;

    --body-bg-color: #1a1c1d;
    --text-color: #F7FF8F;
    --hr-color: #26292a;
    --timing-function: cubic-bezier(0.82, 0.2, 0.42, 1);
    --red: #e74c3c;
}

/** Globales **/
html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
}

*,*:before,*:after {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    /*1 rem= 10px*/
    background-image: linear-gradient(to top, var(--body) 0%, var(--blanco) 110%);
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif; 
    font-weight: 700;
    line-height: 2;
}

/** Tipografia **/
a {
    text-decoration: none;
}

h1,h2,h3,h4 {
    line-height: 1.2;
    text-align: center;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}


/*** INICIO ***/

/** Titulos **/
.titulo {
    font-family: 'Sansita Swashed', cursive;
}

.titulo span {
    font-size: 2rem;
}

/** Contenedor **/
.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    /*si se repite dos valores puedes poner dos en vez de los 4*/
}

/** Scroll Snap **/
.servicios,
.navegacion-principal {
    scroll-snap-align: center;  
    scroll-snap-stop: always;
}

/** Navegacion Principal **/
.nav-bg {
    background-color: var(--navegador);
}

.navegacion-principal {
    display: flex;
    flex-direction: column;
}

.navegacion-principals {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

/*480 telf, 768tablet, 1140laptop, 1400tv */
@media (min-width:768px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width:768px) {
    .navegacion-principals {
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion-principal a {
    display: block;
    text-align: center;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: color 0s 0.25s var(--timing-function);
    /*como 4 veces le interpreta como 1rem*/
}

.navegacion-principals a {
    display: block;
    text-align: center;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: color 0s 0.25s var(--timing-function);
}

.navegacion-principal a:hover {
    background-color: var(--raton);
    color: transparent;
}

.navegacion-principals a:hover {
    background-color: var(--raton);
    color: transparent;
}

.navegacion-principal a::before,
.navegacion-principal a::after {
    position: absolute;
    left: 0;
    width: 100%;
}

.navegacion-principals a::before,
.navegacion-principals a::after {
    position: absolute;
    left: 0;
    width: 100%;
}

.navegacion-principal a::before {
    content: '';
    top: 50%;
    transform: translate(-101%, -50%);
    height: 50%;
    z-index: 1;
    background: var(--text-color);
    transition: transform 0.5s var(--timing-function);
}

.navegacion-principals a::before {
    content: '';
    top: 50%;
    transform: translate(-101%, -50%);
    height: 50%;
    z-index: 1;
    background: var(--text-color);
    transition: transform 0.5s var(--timing-function);
}

.navegacion-principal a::after {
    content: attr(data-icon);
    font-weight: 900;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0s 0.25s var(--timing-function);
}

.navegacion-principals a::after {
    content: attr(data-icon);
    font-weight: 900;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0s 0.25s var(--timing-function);
}

.navegacion-principal a:hover::before {
    transform: translate(101%, -50%);
}

.navegacion-principals a:hover::before {
    transform: translate(101%, -50%);
}

.navegacion-principal a:hover::after {
    opacity: 1;
}

.navegacion-principals a:hover::after {
    opacity: 1;
}

/** ANIMATIONS **/
.navegacion-principal[data-animation="to-left"] a::before {
    transform: translate(101%, -50%);
}

.navegacion-principals[data-animation="to-left"] a::before {
    transform: translate(101%, -50%);
}

.navegacion-principal[data-animation="to-left"] a:hover::before {
    transform: translate(-101%, -50%);
}

.navegacion-principals[data-animation="to-left"] a:hover::before {
    transform: translate(-101%, -50%);
}

/** Logo **/
.webp .logo {
    background-image: url(../img/Logo.webp);
}

.no-webp .logo {
    background-image: url(../img/Logo.jpg);
}

.logo {
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
    position: relative;
    background-position: center;
    margin-bottom: 2rem;
}

.contenido-logo {
    position: absolute;
    background-color: rgb(0 0 0 / 75%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contenido-logo h2,
.contenido-logo p {
    color: var(--blanco);
}

.contenido-logo .ubicacion {
    display: flex;
    align-items: flex-end;
}

/** Boton **/
.boton {
    background-color: #ff9300;
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}

@media (min-width: 768px) {
    .boton {
        width: auto;
    }
}

.boton:hover {
    cursor: pointer;
}

/** Ventana Modal **/
.modal-container {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    width: 40%;
    height: 50%;
    background: var(--blanco);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    transition: transform 1s;
    transform: translateY(0%);
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 5px;
    right: 1px;
    display: inline-block;
    width: 25px;
    height: 25px;
    background: red;
    color: var(--blanco);
    line-height: 25px;
    cursor: pointer;
    border-radius: 50%;
}

.modal-close {
    transform: translateY(-200%);
}

.modal>iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/** Sombra **/
.sombra {
    box-shadow: 0px 5px 15px 0px rgba(112, 112, 112, 0.48);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

/** Servicios **/
@media (min-width:768px) {
    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio h3 {
    color: #3C3C3C;
    font-weight: normal;
}

.servicio p {
    line-height: 2;
    text-align: center;
    font-size: 15px;
}

.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--iconos);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

/** Footer **/
.footer {
    text-align: center;
}


/*** SOBRE MI ***/
.sombra-s {
    box-shadow: 0px 5px 15px 0px rgba(112, 112, 112, 0.48);
    background-color: #393939;
    padding: 2rem;
    border-radius: 1rem;
}

.box {
    width: 500px;
    background: rgba(0, 0, 0, .4);
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    margin-top: 4%;
    color: white;
    border-radius: 15px;
}

@media (max-width:520px) {
    .box {
        width: 300px;
    }
}

.box-img {
    border-radius: 5%;
}

.box h1 {
    font-size: 40px;
    letter-spacing: 4px;
    font-weight: 100;
    margin: 30px 0 20px;
}

.box h2 {
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 100;
    margin-bottom: 30px;
}

.box p {
    text-align: justify;
}

.box ul {
    list-style: none;
    margin-top: 20px;
}

.box ul li {
    display: inline-block;
}

.box ul li a {
    color: white;
    font-size: 45px;
    padding: 10px 1px;
    display: block;
    padding-right: 26px;
    transition: all .5s ease-in-out;
}

@media (min-width:800px) {
    .box ul li a {
        padding: 10px 5px;
        padding-right: 40px;
    }
}

.box ul li a:hover {
    color: #adff2f;
    transform: scale(1.3);
}

.pa {
    text-transform: uppercase;
}

.p {
    color: #F3EA73;
}


/*** CLIENTES ***/
img {
    max-width: 100%;
}

/** Cursos **/
.curso {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gris);
}

@media (min-width: 768px) {
    .curso {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
    }
}

.curso:last-of-type {
    border: none;
}

.curso__label {
    font-weight: bold;
}
.curso__info {
    font-weight: normal;
}


/*** CONTACTO ***/
.formulario {
    background-color: #252525;
    width: min(60rem, 100%);
    /** Utilizar el valor más pequeño **/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.formulario fieldset {
    border: none;
}

.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primario);
}

@media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
    }

    .campo:nth-child(3),
    .campo:nth-child(4) {
        grid-column: 1 / 3;
    }
}

.campo {
    margin-bottom: 1rem;
}

.campo label {
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campo textarea {
    height: 20rem;
}

.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

/** Utilidades **/
.w-sm-100 {
    width: 100%;
    background-color: #ff9300;
}

@media (min-width: 768px) {
    .w-sm-100 {
        width: auto;
    }
}

.flex {
    display: flex;
}
.alinear-derecha {
    justify-content: flex-end;
    margin-top: 2rem;
}