/* Home: cartelera de flyers + terminal de links fijos.
   Colores del logo (teal) y del flyer de talleres de git y LaTeX (naranja). */
:root {
  --inicio-teal: #008c95;
  --inicio-teal-claro: #8dd4d9;
  --inicio-teal-texto: #00727a;
  --inicio-naranja: #cc3300;
  --inicio-texto-suave: #4a3f2e;
  --inicio-sombra: rgba(43, 33, 19, 0.18);
  --inicio-puntos: rgba(141, 212, 217, 0.9);
  --inicio-mono: "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --inicio-teal-texto: #8dd4d9;
    --inicio-naranja: #ff6a3d;
    --inicio-texto-suave: var(--light-text-color);
    --inicio-sombra: rgba(0, 0, 0, 0.5);
    --inicio-puntos: rgba(141, 212, 217, 0.18);
  }
}

.inicio {
  font-family: Ubuntu, "Segoe UI", sans-serif;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.inicio .prompt {
  margin: 0;
  font-family: var(--inicio-mono);
  font-size: 14px;
  color: var(--inicio-teal-texto);
}

.inicio h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}

/* Hero, sobre el fondo de puntitos del flyer de git */
.inicio-hero {
  padding: 40px 0;
  background-image: radial-gradient(var(--inicio-puntos) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
}

.inicio-hero > * {
  max-width: 720px;
  background-color: var(--background-color);
}

.inicio-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.inicio-hero .acento { color: var(--inicio-naranja); }

.inicio-hero p {
  margin: 0;
  font-size: 19px;
  color: var(--inicio-texto-suave);
}

.inicio-hero .inicio-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  background: none;
}

.boton {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--main-text-color);
  border-radius: 999px;
  background-color: var(--background-color);
  color: var(--main-text-color);
  font-weight: 700;
}

.boton:hover { text-decoration: none; }

.boton-principal {
  border-color: var(--inicio-naranja);
  background-color: var(--inicio-naranja);
  color: #fff;
}

.inicio-titulo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 36px;
}

/* Cartelera: flyers pegados con cinta, apenas torcidos */
.cartelera {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px 32px;
}

@media screen and (max-width: 600px) {
  .cartelera { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .flyer-titulo { font-size: 16px; }
}

.flyer { position: relative; transition: transform .2s ease; }
.flyer:nth-child(4n+1) { transform: rotate(-1.5deg); }
.flyer:nth-child(4n+2) { transform: rotate(1deg); }
.flyer:nth-child(4n+3) { transform: rotate(-0.5deg); }
.flyer:nth-child(4n)   { transform: rotate(1.5deg); }
.flyer:hover { transform: translateY(-4px); }

.flyer::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -12px;
  left: calc(50% - 40px);
  width: 80px;
  height: 24px;
  background: rgba(141, 212, 217, 0.75);
  transform: rotate(3deg);
}

.flyer:nth-child(even)::before { transform: rotate(-4deg); }

.flyer a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--main-text-color);
}

.flyer a:hover { text-decoration: none; }
.flyer a:hover .flyer-titulo { text-decoration: underline; }

.flyer img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 4px;
  box-shadow: 0 10px 24px var(--inicio-sombra);
}

.flyer-fecha {
  font-family: var(--inicio-mono);
  font-size: 13px;
  color: var(--inicio-texto-suave);
}

.flyer-titulo {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

/* Recursos: terminal como la del flyer de Oktubre */
.inicio-siempre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.inicio-siempre p:not(.prompt) {
  margin-top: 12px;
  color: var(--inicio-texto-suave);
}

.terminal {
  overflow: hidden;
  border-radius: 10px;
  background: #36354a;
  box-shadow: 0 14px 32px var(--inicio-sombra);
  font-family: var(--inicio-mono);
}

.terminal-barra {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #d9d9de;
  color: #36354a;
  font-size: 13px;
}

.terminal-barra span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e63a00;
}

.terminal-barra span:nth-child(2) { background: #f2b705; }
.terminal-barra span:nth-child(3) { background: #2fa84f; margin-right: 8px; }

.terminal ul {
  list-style: none;
  margin: 0;
  padding: 20px 24px 24px;
  font-size: 15px;
  line-height: 1.4;
}

.terminal a { display: inline-block; padding: 7px 0; }
.terminal li:nth-child(5n+2) a { color: #8db4ff; }
.terminal li:nth-child(5n+3) a { color: #ff6f9c; }
.terminal li:nth-child(5n+4) a { color: #ffd23f; }
.terminal li:nth-child(5n+5) a { color: #8dd4d9; }
.terminal li:nth-child(5n+1) a { color: #7be3a4; }

.terminal-comando { color: #a9a7c2; padding: 6px 0; }

.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  vertical-align: -3px;
  background: #e9e8f2;
  animation: parpadeo 1.1s steps(1) infinite;
}

@keyframes parpadeo { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .flyer { transition: none; }
}
