:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;

    --primario: #784D3C;
    --gris: #e1e1e1;
    --blanco: #ffffff;
    --negro: #000000;
    --naranja: #e1602d;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}

/* Globales */
.dark-mode {
    background-color: #121212;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode p,
.dark-mode label {
    color: var(--blanco);
}

.dark-mode .boton--primario {
    background-color: #a24d2c;
}

.dark-mode .boton--primario:hover {
    -webkit-box-shadow: 0px 0px 19px 2px rgba(225, 96, 45, 1);
    -moz-box-shadow: 0px 0px 19px 2px rgba(225, 96, 45, 1);
    box-shadow: 0px 0px 19px 2px rgba(225, 96, 45, 1);
}

.dark-mode .boton--secundario {
    background-color: #656d4a;
}

.dark-mode .boton--secundario:hover {
    -webkit-box-shadow: 0px 0px 19px 2px rgba(96, 108, 56, 1);
    -moz-box-shadow: 0px 0px 19px 2px rgba(96, 108, 56, 1);
    box-shadow: 0px 0px 19px 2px rgba(96, 108, 56, 1);
}

.dark-mode .formulario {
    background-color: #1f2421;
    -webkit-box-shadow: 0px 0px 44px 3px rgba(255, 255, 255, 0.77);
    -moz-box-shadow: 0px 0px 44px 3px rgba(255, 255, 255, 0.77);
    box-shadow: 0px 0px 44px 3px rgba(255, 255, 255, 0.77);
}

.dark-mode .campo__field {
    background-color: #121212;
    color: var(--blanco);
}

.dark-mode .contact__btn {
    background-color: #bc6c25;
    color: var(--negro);
}

@media (max-width: 767px) {
    .dark-mode .contact__btn {
        display: block;
        width: 90%;
        margin: 0 1rem 0 6rem;
    }
}


.contenedor {
    width: min(90%, 120rem);
    margin: 0 auto;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeading);
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}

img {
    max-width: 100%;
}

/* Utilidades */
.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.centrar-texto {
    text-align: center;
}

.justify-text {
    text-align: justify;
}

/* Header */
.header {
    position: relative;
    background-image: url(../img/book-bg.jpg);
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.darken {
    background-color: rgba(34, 34, 34, 0.8);
    position: absolute;
    inset: 0;
}

.header__texto {
    text-align: center;
    color: var(--blanco);
    margin: 5rem 2rem 0 2rem;
}

@media (min-width: 768px) {
    .header__texto {
        margin-top: 15rem;
    }
}

.barra {
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    color: var(--blanco);
}

.logo__nombre {
    font-weight: 400;
}

.logo__span--bold {
    font-weight: 700;
    color: var(--naranja);
}

.navegacion {
    display: grid;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .navegacion {
        display: flex;
        gap: 2rem;
    }
}

.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
}

.navegacion__enlace:hover {
    text-shadow: 10px 5px 5px var(--naranja);
}

/* Main */
@media (min-width: 768px) {
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}

.entrada {
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}

.entrada:last-of-type {
    border: none;
    margin-bottom: 0;
}

.boton {
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    border: none;
    border-radius: .5rem;
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
        width: 25rem;
    }
}

.boton:hover {
    cursor: pointer;
}

.boton--primario {
    background-color: #606C38;
}

.boton--primario:hover {
    -webkit-box-shadow: 0px 0px 19px 2px rgba(53,79,82,1);
    -moz-box-shadow: 0px 0px 19px 2px rgba(53,79,82,1);
    box-shadow: 0px 0px 19px 2px rgba(53,79,82,1);
}

.boton:hover {
    border-radius: 1rem;
    text-shadow: 2px 8px 6px rgba(0, 0, 0, 0.2), 0px -5px 35px rgba(255, 255, 255, 0.3);

}

.boton--secundario {
    background-color: #DDA15E;
}

.boton--secundario:hover {
    -webkit-box-shadow: 0px 0px 19px 2px rgba(176, 137, 104, 1);
    -moz-box-shadow: 0px 0px 19px 2px rgba(176, 137, 104, 1);
    box-shadow: 0px 0px 19px 2px rgba(176, 137, 104, 1);
}

.cursos {
    list-style: none;
}

.widget-curso {
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}

.widget-curso:last-child {
    border: none;
    margin-bottom: 0;
}

.widget-curso__label {
    font-family: var(--fuenteHeading);
    font-weight: 700;
}

.widget-curso__info {
    font-weight: 400;
}

.widget-curso__info,
.widget-curso__label {
    font-size: 2rem;
}

.footer {
    background-color: var(--negro);
    padding-bottom: 3rem;
    margin-top: 4rem;
}

/* Nosotros */
@media (min-width: 768px) {
    .sobre-nosotros {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}



/* 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-family: var(--fuenteHeading);
    font-weight: 700;
}

.curso__info {
    font-weight: 400;
}

.curso__info,
.curso__label {
    font-size: 2rem;
}

/* Contacto */
.contacto-bg {
    background-image: url(../img/contact.jpg);
    height: 40rem;
    background-repeat: no-repeat;
    background-size: cover;
}

.formulario {
    background-color: var(--blanco);
    margin: -5rem auto 0 auto;
    width: 95%;
    padding: 5rem 0;
    -webkit-box-shadow: 0px 0px 44px 3px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 44px 3px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 44px 3px rgba(0, 0, 0, 1);
}

@media (min-width: 768px) {
    .formulario {
        padding: 5rem;
    }
}

.campo {
    display: flex;
    margin-bottom: 2rem;
}

.campo-btn {
    display: flex;
    justify-content: flex-end;
}

.campo__label {
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}

.campo__field {
    flex: 1;
    border: 1px solid var(--gris);
}

.campo__field--textarea {
    height: 20rem;
}

.contact__btn {
    appearance: none;
    background-color: transparent;
    border: 0.125em solid #1A1A1A;
    border-radius: 0.9375em;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-family: Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 3.75em;
    min-width: 0;
    outline: none;
    padding: 1em 2.3em;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    will-change: transform;
}

.contact__btn:disabled {
    pointer-events: none;
}

.contact__btn:hover {
    color: #fff;
    background-color: #1A1A1A;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
}

.contact__btn:active {
    box-shadow: none;
    transform: translateY(0);
}





/* Animations */

/* The switch - the box around the slider */
.switch {
    grid-row: 1/2;
    transform: scale(.7);
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    margin: 0 auto;
}


/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
    transition: .4s;
    border-radius: 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 0.1em;
    border-radius: 0px;
    left: 0.3em;
    bottom: 0.3em;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #171717;
    box-shadow: inset 2px 5px 10px rgb(0, 0, 0);
}

input:checked+.slider:before {
    transform: translateX(2.8em) rotate(360deg);
}