@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&display=swap');

:root {
  --negro: #000000;
  --blanco: #ffffff;
  --principal: #522C7F;
  --secundario: #F9BB00;
  --verde: #2D8044;
  --amarillo-crema: #FFF4D2;
  --tipo-principal: "Sanslem", sans-serif;
  --tipo-secundaria: "JUST Sans", sans-serif;
  --tipo-complemento: "Abhaya Libre", serif;
  --font-size-h1: 4.1rem;
  --font-size-h2: 2.6rem;
  --font-size-h3: 1.35rem;
  --font-size-p: 1.05rem;
  --line-height-heading: 1.05;
  --line-height-body: 1.55;
  --space-section-x: 25px;
  --space-section-y: 50px;
  --space-header-x: 15px;
  --space-header-y: 20px;
  --space-hero-top: 120px;
}

@font-face {
  font-family: "Sanslem";
  src: url("../fonts/Sanslem/Sanslem.otf") format("opentype"),
       url("../fonts/Sanslem/Sanslem.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans ExLight.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans ExLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans Light.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans Regular.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans Medium.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans SemiBold.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans Bold.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../fonts/Justsans/JUST Sans ExBold.woff2") format("woff2"),
       url("../fonts/Justsans/JUST Sans ExBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Las adaptamos al modo oscuro */

/* Opcional */
/* Configuramos si un usuario ha activado el modo alto contraste. (WD) */
/* Opcional */
/* Desactivamos los animations en el caso de que el usuario haya configurado el modo sin animation */
@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
}

/* Reseteamos los margin y paddings de todas las etiquetas */
* {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  vertical-align: baseline;
}

/* Evitamos problemas con las imagenes */
img,
picture,
video,
iframe,
figure {
  max-width: 100%;
  width: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
}

/* Reseteamos los enlaces para funcionar como cajas... */
a {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: inherit;
}

/* ... excepto los que se encuentran en parrafos */
p a {
  display: inline;
}

/* Quitamos los puntos de los <li> */
li {
  list-style-type: none;
}

/* Configuramos anclas suaves */
html {
  scroll-behavior: smooth;
}

/* Desactivamos estilos por defecto de las principales etiquetas de texto */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
strong,
blockquote,
i,
b,
u,
em {
  font-size: 1em;
  font-weight: inherit;
  font-style: inherit;
  text-decoration: none;
  color: inherit;
}

/* Evitamos problemas con los pseudoelementos de quotes */
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

/* Configuramos el texto que seleccionamos */
::-moz-selection {
  background-color: var(--principal);
  color: var(--blanco);
}

::selection {
  background-color: var(--principal);
  color: var(--blanco);
}

/* Nivelamos problemas de tipografias y colocacion de formularios */
form,
input,
textarea,
select,
button,
label {
  font-family: inherit;
  font-size: inherit;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  background-color: transparent;
  color: inherit;
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Reseteamos las tablas */
table,
tr,
td {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Evitamos problemas con los SVG */
svg {
  width: 100%;
  display: block;
  fill: currentColor;
}

/* Configuramos la tipografia para toda la web */
body {
  min-height: 100vh;
  font-size: 100%;
  font-family: var(--tipo-secundaria);
  color: var(--negro);
  line-height: 1.4em;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
