/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  box-sizing: border-box;
}

*::selection {
  color: white;
  background: black;
}

:root {
  --glass-background:
    rgba(255, 255, 255, 0.68);

  --site-font:
    "MuseoModerno",
    sans-serif;

  --title-font:
    var(--site-font);

  --label-font:
    var(--site-font);

  --accent-font:
    var(--site-font);

  --site-header-height: 95px;
  --content-width: 700px;

  --text-color: #111;
  --soft-border: rgba(0, 0, 0, 0.18);
  --strong-border: rgba(0, 0, 0, 0.65);
}

html,
body {
  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;
}

body {
  position: relative;

  overflow: hidden;

  color: var(--text-color);
  background: #111;

  font-family:
    var(--site-font);

  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  font-size: 13px;
}


/* =========================================================
   ORIGINAL BACKGROUND
========================================================= */

.bgdiv {
  position: fixed;
  top: 0;
  left: 0;

  z-index: 0;

  width: 100%;
  height: 100%;

  background-image:
    url("/src/bg/Proyecto nuevo(1)(1)(1).png");

  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;

  filter:
    contrast(1.12)
    saturate(1.2)
    brightness(0.9);
}


/* =========================================================
   WEBSITE WRAPPER
========================================================= */

.site-wrapper {
  position: relative;
  z-index: 10;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}


/* =========================================================
   BLANK TOP BANNER
========================================================= */

.site-header {
  flex: 0 0 var(--site-header-height);

  width: 100%;

  background: var(--glass-background);

}


/* =========================================================
   PAGE AREA
========================================================= */

.page-layout {
  flex: 1;
  min-height: 0;

  width: 100%;

  display: flex;
  flex-direction: column;

  margin: 0;

  background: var(--glass-background);

  overflow: hidden;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-nav {
  position: relative;

  flex: 0 0 42px;

  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);
  align-items: center;

  padding: 8px 20px;

  border-bottom:
    1px solid rgba(0, 0, 0, 0.16);

  font-family: var(--accent-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;

  white-space: nowrap;
}

.site-nav-links {
  grid-column: 2;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 12px;
}

.site-nav-link {
  padding: 4px 2px;

  color: rgba(0, 0, 0, 0.68);

  text-decoration: none;

  transition:
    color 120ms ease,
    opacity 120ms ease;
}

.site-nav-link:hover {
  color: #000;
}

.site-nav-link[aria-current="page"] {
  color: #000;
  font-weight: bold;
}

.site-nav-link:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.site-nav-sep {
  color: rgba(0, 0, 0, 0.4);

  user-select: none;
}


/* =========================================================
   CENTERED CONTENT AREA
========================================================= */

.page-content {
  position: relative;

  flex: 1;
  min-height: 0;

  width: min(
    var(--content-width),
    calc(100% - 32px)
  );

  margin: 0 auto;
  padding: 22px 30px 80px;

  background: transparent;


  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-width: thin;

  scrollbar-color:
    rgba(0, 0, 0, 0.42)
    rgba(255, 255, 255, 0.12);
}


/* Chrome, Edge and Safari scrollbar */

.page-content::-webkit-scrollbar {
  width: 11px;
}

.page-content::-webkit-scrollbar-track {
  background:
    rgba(255, 255, 255, 0.12);
}

.page-content::-webkit-scrollbar-thumb {
  border:
    3px solid transparent;

  border-radius: 20px;

  background:
    rgba(0, 0, 0, 0.38);

  background-clip: padding-box;
}


/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.language-switcher {
  grid-column: 3;
  justify-self: end;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  gap: 5px;

  width: auto;

  margin: 0;

  font-family: var(--accent-font);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.language-button {
  appearance: none;

  margin: 0;
  padding: 2px 4px;

  border: 0;

  color: rgba(0, 0, 0, 0.55);
  background: transparent;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  font: inherit;
  font-weight: normal;

  cursor: pointer;

  transition:
    color 120ms ease,
    background-color 120ms ease;
}

.language-button:hover {
  color: #000;
}

.language-button.active {
  color: #000;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.language-button:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.language-icon {
  width: 18px;
  height: 12px;

  display: block;

  object-fit: cover;

  border:
    1px solid rgba(0, 0, 0, 0.45);
}

.language-separator {
  color: rgba(0, 0, 0, 0.35);

  user-select: none;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 14px;

  margin: 0 0 20px;
}

.section-title h1 {
  flex: 0 0 auto;

  margin: 0;

  color: #111;

  font-family: var(--title-font);
  font-size: 42px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.section-title-line {
  flex: 1;

  height: 1px;

  background: var(--strong-border);
}


/* =========================================================
   TEXT CONTENT
========================================================= */

.content-section {
  width: 100%;

  margin: 0 0 26px;

  font-size: 13px;
  line-height: 1.55;
}

.content-section::after {
  content: "";

  display: block;
  clear: both;
}

.content-section p {
  margin: 0 0 15px;
}

.content-section a,
.updates-panel a {
  color: #111;

  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-section a:hover,
.updates-panel a:hover {
  text-decoration-thickness: 2px;
}


/* =========================================================
   FLOATING CONTENT IMAGE
========================================================= */

.content-image-hero {
  float: right;

  width: 250px;
  max-width: 46%;
  height: auto;

  margin:
    0
    0
    14px
    24px;

  object-fit: cover;

  border:
    1px solid rgba(0, 0, 0, 0.2);
}


/* =========================================================
   UPDATES PANEL
========================================================= */

.updates-panel {
  width: 100%;

  margin-top: 26px;

  border:
    1px solid rgba(0, 0, 0, 0.7);

  background:
    rgba(255, 255, 255, 0.12);
}

.updates-panel-title {
  padding: 5px 9px;

  color: white;
  background: #111;

  font-family: var(--label-font);
  font-size: 17px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.02em;
}

.updates-panel-body {
  padding: 10px 14px;

  font-size: 12px;
  line-height: 1.45;
}

.updates-panel-body ul {
  margin: 0;
  padding-left: 20px;
}

.updates-panel-body li {
  margin: 0;
}


/* =========================================================
   OPTIONAL CONTENT LABEL
========================================================= */

.content-label {
  display: inline-block;

  margin: 18px 0 12px;
  padding: 4px 8px;

  color: white;
  background: #111;

  font-family: var(--label-font);
  font-size: 17px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.04em;
}


/* =========================================================
   OPTIONAL DIVIDER
========================================================= */

.content-divider {
  width: 100%;
  height: 1px;

  margin: 24px 0;

  border: 0;

  background:
    rgba(0, 0, 0, 0.58);
}


/* =========================================================
   CRT SCREEN FILTER
========================================================= */

.filterdiv {
  position: fixed;
  inset: 0;

  z-index: 999999;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.055) 0px,
      rgba(255, 255, 255, 0.055) 1px,
      rgba(0, 0, 0, 0.18) 2px,
      rgba(0, 0, 0, 0.18) 4px
    ),

    repeating-linear-gradient(
      to right,
      rgba(255, 0, 0, 0.035) 0px,
      rgba(255, 0, 0, 0.035) 1px,
      rgba(0, 255, 0, 0.025) 1px,
      rgba(0, 255, 0, 0.025) 2px,
      rgba(0, 0, 255, 0.035) 2px,
      rgba(0, 0, 255, 0.035) 3px
    ),

    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 45%,
      rgba(0, 0, 0, 0.45) 85%,
      rgba(0, 0, 0, 0.75) 100%
    );

  mix-blend-mode: overlay;

  opacity: 0.95;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {
  :root {
    --site-header-height: 72px;
  }

  .site-nav {
    padding-inline: 10px;

    font-size: 14px;
  }

  .site-nav-links {
    gap: 7px;
  }

  .language-switcher {
    font-size: 13px;
  }

  .page-content {
    width: calc(100% - 20px);

    padding:
      20px
      22px
      70px;
  }

  .section-title h1 {
    font-size: 36px;
  }
}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 500px) {
  :root {
    --site-header-height: 55px;
  }

  .site-nav {
    display: flex;

    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-start;

    min-height: 54px;

    gap: 4px 10px;

    padding:
      9px
      8px;
  }

  .language-switcher {
    position: static;

    order: 1;

    margin-left: auto;

    transform: none;
  }

  .site-nav-links {
    order: 0;

    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 4px 10px;
  }

  .site-nav-sep {
    display: none;
  }

  .site-nav-link {
    font-size: 13px;
  }

  .page-content {
    width: 100%;

    padding:
      18px
      17px
      60px;

    border-left: 0;
    border-right: 0;
  }

  .content-image-hero {
    float: none;

    display: block;

    width: min(100%, 320px);
    max-width: 100%;

    margin:
      0
      auto
      18px;
  }

  .section-title {
    gap: 10px;
  }

  .section-title h1 {
    font-size: 32px;
  }
}
