/* ==========================================
   1. BASE
   Estilos elementales, normalización y fuentes.
   Selectores de elemento puro.
   ========================================== */

:root {

  --body-bg: url("./backgrounds/room.gif");
  --fondo: rgba(214, 221, 229, 0.9);
  --accent-pink: rgba(119, 156, 204, 1);
  --accent-hover: rgba(97, 162, 182, 1);
  --bg-dark: rgba(73, 90, 140, 1);
  --aside-bg: rgba(164, 208, 215, 0.9);
  --body-color: rgba(73, 90, 140, 1);
  --borde-box: rgba(119, 156, 204, 1);
  --fondo-box: rgba(234, 246, 255, 1);
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "VCR_OSD_MONO";
  src: url("./fonts/VCR_OSD_MONO.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "typewriter";
  src: url("./fonts/typewriter.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "VCR_OSD_MONO", sans-serif;
  font-size: 20px;
  line-height: 30px;
  margin: 0;
  color: var(--body-color);
  background-color: rgba(8, 3, 26, 1);
  background-image: var(--body-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

h1, h2, h3 {
  color: var(--accent-pink);
}

h1 {
  font-size: 25px;
}

strong {
  color: var(--accent-pink);
}

a {
  color: var(--accent-pink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* ==========================================
   2. LAYOUT
   Estructura general de la cuadrícula o página.
   Prefijo: "l-"
   ========================================== */

.l-container {
  max-width: 1000px;
  margin: 0 auto;
}

.l-header {
  width: 100%;
  height: 200px;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.l-topbar {
  width: 100%;
  height: 30px;
  padding: 10px;
  font-size: smaller;
  background-color: var(--bg-dark);
}

.l-main-layout {
  display: flex;
}

.l-secondary-layout {
  display: flex;
  max-width: 1000px;
  position: center;
  margin: 0 auto;
}

.l-sidebar {
  width: 225px;
  padding: 20px;
  font-size: smaller;
  background-color: var(--aside-bg);
}

.l-sidebar--left {
  order: 1;
}

.l-content {
  flex: 1;
  padding: 20px;
  order: 2;
  background-color: var(--fondo);
}

.l-sidebar--right {
  order: 3;
}

/* .l-footer {
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
  background-color: var(--bg-dark);
}
*/

/* Para moviles */
@media only screen and (max-width: 800px) {
  .l-main-layout {
    flex-wrap: wrap;
  }

  .l-sidebar {
    width: 100%;
  }

  .l-content {
    order: 1;
  }

  .l-sidebar--left {
    order: 2;
  }

  .l-sidebar--right {
    order: 3;
  }
}


/* ==========================================
   3. MODULES
   Componentes independientes y reutilizables.
   ========================================== */

/* Navbar */
.nav {
  min-height: 40px;
  background-color: var(--bg-dark);
  width: 100%;
}

.nav__list {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}

.nav__item {
  padding: 10px;
}

.nav__link {
  color: var(--accent-pink);
  font-weight: 800;
}

.nav__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media only screen and (max-width: 800px) {
  .nav__list {
    flex-wrap: wrap;
  }
}

/* Box Component */
.box {
  background-color: var(--fondo-box);
  border: 2px solid var(--borde-box);
  padding: 10px;
  line-height: 18px;
}

.box li {
  margin-bottom: 18px;
}

.box__list {
  padding-left:10px; 
}

.box__item--centered-bullet {
  display: list-item;
  list-style-type: disc;
}

.box__item--centered-bullet a {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
}

/* Utilidades para imágenes inline en texto */
.inline-icon {
  width: 50px;
  height: 50px;
  vertical-align: middle;
}

.inline-icon--sm {
  width: 40px;
  height: 40px;
}

