/* ================================
   JOACOONLINE — style.css (Windows XP Luna Theme)
   ================================ */

/* === VARIABLES === */
:root {
  --xp-blue-dark: #00138c;
  --xp-bg: #ece9d8;
  --xp-window-inner: #ffffff;
  --text: #000000;
  --text-link: #0033cc;
  --font-body: Tahoma, 'Trebuchet MS', sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  /* Fondo clásico de prado/nubes o un azul suave. Acá puse un celeste limpio */
  background: #3a6ea5 url('https://cyber.dabamos.de/bg/clouds3.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  padding-top: 20px;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; color: #ff0000; }

hr { border: none; border-top: 1px solid #c8c8c8; margin: 15px 0; }

/* === LAYOUT LIMPIO (2 Columnas) === */
.wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 15px;
  padding: 10px;
}

/* === VENTANAS ESTILO WINDOWS XP === */
.window {
  background: var(--xp-bg);
  border: 1px solid var(--xp-blue-dark);
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.4);
  margin-bottom: 15px;
  padding: 3px;
}

.window-header {
  background: linear-gradient(to bottom, #0058e6 0%, #3a93ff 5%, #2881fa 10%, #1263d5 100%);
  color: white;
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 6px 4px 8px;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 1px 1px 2px #0f1089;
}

.window-title-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Botoncitos de cerrar/minimizar de XP */
.window-controls { display: flex; gap: 2px; }
.xp-btn {
  width: 21px; height: 21px;
  border: 1px solid #fff;
  border-radius: 3px;
  color: white;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  font-weight: bold;
  cursor: default;
  text-shadow: none;
}
.xp-btn.min, .xp-btn.max {
  background: linear-gradient(to bottom, #729cfb 0%, #467efb 10%, #1f61f9 100%);
  border-color: #00138c;
}
.xp-btn.close {
  background: linear-gradient(to bottom, #e08b76 0%, #e44324 10%, #c41e01 100%);
  border-color: #ffffff;
}

.window-body {
  background: var(--xp-window-inner);
  border: 1px solid #7f9db9;
  padding: 15px;
  margin-top: 2px;
  min-height: 50px;
}

/* === SIDEBAR Y NAVEGACIÓN === */
.side-nav { list-style: none; }
.side-nav li { margin-bottom: 2px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.1s;
}
.side-nav a:hover, .side-nav a.active {
  background-color: #316ac5; /* Azul de selección clásico de Windows */
  color: white;
  border: 1px dotted #ffffff;
}
/* Invertir el texto del link cuando está seleccionado */
.side-nav a:hover *, .side-nav a.active * { color: white; }

/* === MAIN CONTENT TIPOGRAFÍA === */
main h1 { font-size: 1.8rem; font-weight: normal; margin-bottom: 15px; color: var(--xp-blue-dark); border-bottom: 1px solid #c8c8c8; padding-bottom: 5px; }
main h2 { font-size: 1.3rem; margin: 15px 0 10px; color: #333; }
main p { margin-bottom: 10px; }
main ul { margin-bottom: 15px; padding-left: 25px; list-style-type: square; }

.video-container {
  border: 1px solid #7f9db9;
  padding: 2px;
  background: #ece9d8;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 15px 0;
}
.video-container iframe { position: absolute; top: 2px; left: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .wrapper { grid-template-columns: 1fr; }
}