:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;

    --primario: #4F46E5;
    --acento: #14B8A6;
    --oscuro: #0B1120;
    --gris: #e1e1e1;
    --blanco: #ffffff;
    --negro: #0B1120;

    --bg: #ffffff;
    --bg-tarjeta: #ffffff;
    --bg-tarjeta-glass: rgba(255, 255, 255, 0.82);
    --texto: #1f2430;
    --borde: var(--gris);
}

[data-theme="dark"] {
    --bg: #0B1120;
    --bg-tarjeta: #151d31;
    --bg-tarjeta-glass: rgba(21, 29, 49, 0.72);
    --texto: #E5E7EB;
    --borde: #2a344c;
    --gris: #2a344c;
}
html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1 rem = 10px */
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
    color: var(--texto);
    background-color: var(--bg);
    transition: background-color .3s ease, color .3s ease;
}

/* Globales */
.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, svg {
    max-width: 100%;
}
/** Utilidades **/
.no-margin {
    margin: 0;
}
.no-padding {
    padding: 0;
}
.centrar-texto {
    text-align: center;
}

/* Header */
.header {
    background: radial-gradient(circle at 15% 20%, rgba(79,70,229,0.55), transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(20,184,166,0.5), transparent 45%),
                var(--oscuro);
    min-height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header__texto {
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem;
    padding: 0 2rem 6rem;
}
.header__texto p {
    font-size: 1.9rem;
    max-width: 60rem;
    margin: 1.5rem auto 0;
    opacity: .85;
}
@media (min-width: 768px) {
    .header__texto {
        margin-top: 12rem;
    }
}
.barra {
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
.logo {
    color: var(--blanco);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}
.logo__nombre {
    font-weight: 400;
}
.logo__bold {
    font-weight: 700;
    color: var(--acento);
}

@media (min-width: 768px) {
    .navegacion {
        display: flex;
        gap: 2rem;
    }
}
.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
    opacity: .8;
    transition: opacity .2s ease;
}
.navegacion__enlace:hover,
.navegacion__enlace--activo {
    opacity: 1;
    color: var(--acento);
}
@media (min-width: 768px) {
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}

.entrada {
    border-left: 1px solid var(--borde);
    margin-bottom: 2rem;
    padding-left: 0;
}
.entrada:last-of-type {
    border: none;
    margin-bottom: 0;
}
.entrada__contenido {
    padding: 0 2rem;
}
.entrada__icono {
    width: 8rem;
}
.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: 6px;
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
    }
}
.boton:hover {
    cursor: pointer;
    opacity: .9;
}
.boton--primario {
    background-color: var(--primario);
}
.boton--secundario {
    background-color: var(--acento);
}
.cursos {
    list-style: none;
}
.widget-curso {
    border-bottom: 1px solid var(--borde);
    margin-bottom: 2rem;
}
.widget-curso:last-of-type {
    border: none;
    margin-bottom: 0;
}

.widget-curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.widget-curso__info {
    font-weight: normal;
}
.widget-curso__label,
.widget-curso__info {
    font-size: 2rem;
}

.footer {
    background-color: var(--oscuro);
    padding-bottom: 3rem;
    margin-top: 4rem;
}
/* Sobre Nosotros */
@media (min-width: 768px) {
    .sobre-nosotros {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        align-items: center;
    }
}

 /* Servicios */
.curso {
    padding: 3rem;
    border-bottom: 1px solid var(--borde);
}
@media (min-width: 768px) {
    .curso {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
        align-items: center;
    }
}

.curso:last-of-type {
    border: none;
}
.curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.curso__info {
    font-weight: normal;
}
.curso__label,
.curso__info {
    font-size: 2rem;
}

  /* Contacto  */
.formulario {
    background: linear-gradient(120deg, var(--primario), var(--acento));
    margin: 4rem auto 0 auto;
    width: 95%;
    padding: 1.2rem;
    border-radius: 14px;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.2);
}
.formulario__interior {
    background-color: var(--bg-tarjeta-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    padding: 3.5rem;
    transition: background-color .3s ease;
}
@media (min-width: 768px) {
    .formulario {
        width: 80%;
        padding: 2rem;
    }
    .formulario__interior {
        padding: 5rem;
    }
}
.campo {
    display: flex;
    margin-bottom: 2rem;

}
.campo__label {
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}
.campo__field {
    flex: 1;
    border: 1px solid var(--borde);
    font-family: var(--fuenteParrafos);
    padding: 1rem;
    border-radius: 4px;
    background-color: var(--bg-tarjeta);
    color: var(--texto);
}
.campo__field--textarea {
    height: 20rem;
}
.campo__error {
    color: #d64545;
    font-size: 1.4rem;
    display: block;
    margin-top: .3rem;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toggle de modo oscuro */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 1.5rem auto 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--blanco);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
    transition: background .2s ease;
}
.theme-toggle:hover {
    background: rgba(255,255,255,.18);
}
@media (min-width: 768px) {
    .theme-toggle {
        margin: 0 0 0 2rem;
    }
}
