@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Press+Start+2P&display=swap');

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --theme-white: #F5F5F0;
  --accent: #866043;

  --text: #08100d;
  --muted: #59635e;
  --panel: #ffffff;

  --brand-color: #ffffff;

  --line: rgba(8, 16, 13, .15);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: var(--theme-white);
  color: var(--text);

  font-family: Rajdhani, Arial, sans-serif;
  font-size: 19px;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;

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

  padding: 18px 6vw;

  background: #866043;

  border-bottom: 1px solid rgba(8, 16, 13, .15);

  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.brand {
  font-family: "Press Start 2P", monospace;
  font-size: 18px;

  color: var(--brand-color);

  text-shadow: 3px 3px rgba(0, 0, 0, .15);

  transition: color .2s ease;
}

.brand:hover {
  color: var(--brand-color);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;

  font-weight: 700;
}

nav a {
  color: #08100d;

  transition:
    color .2s ease,
    transform .2s ease;
}

nav a:hover {
  color: #ED405D;
  transform: translateY(-1px);
}

.nav-divider {
  width: 2px;
  height: 25px;

  background: rgba(8, 16, 13, .35);

  display: block;

  transform: skewX(-8deg);

  margin-left: -12px;
  margin-right: -12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.instagram-icon {
  width: 21px;
  height: 21px;

  flex: 0 0 auto;
}
/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 760px;

  display: grid;
  place-items: center;

  position: relative;
  overflow: hidden;

  padding: 130px 6vw 80px;

  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(146, 240, 127, .35),
      transparent 25%
    ),
    var(--theme-white);
}

.hero:before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: .10;

  background-image:
    linear-gradient(
      90deg,
      transparent 49%,
      rgba(8, 16, 13, .08) 50%,
      transparent 51%
    ),
    linear-gradient(
      0deg,
      transparent 49%,
      rgba(8, 16, 13, .08) 50%,
      transparent 51%
    );

  background-size: 64px 64px;
}

.hero-content {
  position: relative;
  width: min(900px, 100%);
}

.eyebrow,
.section-label {
  color: #866043;
  font-weight: 700;
  letter-spacing: .18em;
  margin: 0 0 18px;
}

h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.1;
  margin: 0;

  color: #08100d;

  text-shadow: 5px 5px rgba(134, 96, 67, .75);
}

.tagline {
  font-size: clamp(24px, 4vw, 40px);
  margin: 22px 0 45px;

  color: #08100d;
}
/* =========================================================
   SERVER CARD
   ========================================================= */

.server-card {
  display: flex;
  align-items: center;
  gap: 18px;

  width: min(600px, 100%);

  padding: 18px 20px;

  background: #ffffff;

  border: 1px solid rgba(8, 16, 13, .15);

  box-shadow: 0 20px 60px rgba(8, 16, 13, .12);
}

.server-card strong,
.server-card span {
  display: block;
}

.server-card span {
  color: var(--muted);
}

.status-dot {
  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: #ff0000;

  box-shadow: 0 0 18px rgba(123, 220, 66, .5);

  flex: 0 0 auto;
}

.server-card button,
.button {
  margin-left: auto;

  border: 0;

  background: var(--accent);
  color: #08100d;

  padding: 12px 16px;

  font: 700 15px Rajdhani, sans-serif;

  cursor: pointer;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section,
.history,
.community {
  width: min(1120px, 88%);
  margin: auto;
  padding: 110px 0;
}

h2 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  margin: 0 0 25px;
}

.intro,
.history p,
.community p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.55;
}


/* =========================================================
   CARDS
   ========================================================= */

.cards {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;

  margin-top: 55px;
}

.cards article {
  padding: 30px;

  min-height: 220px;

  background: var(--panel);

  border: 1px solid var(--line);
}

.cards article span {
  color: var(--accent);
}

.cards h3 {
  font-size: 32px;
  margin: 35px 0 10px;
}

.cards p {
  color: var(--muted);
  line-height: 1.4;
}


/* =========================================================
   HISTORY / TIMELINE
   ========================================================= */

.history {
  max-width: none;

  padding-left: 6%;
  padding-right: 6%;

  display: grid;

  grid-template-columns: 1.1fr .9fr;

  gap: 70px;

  background: #ffffff;
}

.timeline {
  display: grid;
}

.timeline div {
  display: grid;

  grid-template-columns: 100px 1fr;

  padding: 25px 0;

  border-bottom: 1px solid var(--line);
}

.timeline b {
  color: var(--accent);
}

.timeline span {
  color: var(--muted);
}


/* =========================================================
   COMMUNITY
   ========================================================= */

.community {
  text-align: center;
}

.community p {
  margin: 0 auto 35px;
}

.button {
  display: inline-block;
  margin: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 0 6vw;

  background: #866043;

  color: #08100d;

  border-top: 1px solid rgba(8, 16, 13, .15);
}


/* =========================================================
   AVISO MINECRAFT
   ========================================================= */

.footer-disclaimer {
  max-width: 1000px;

  margin: 0 auto;

  padding: 14px 0 10px;

  text-align: center;
}

.footer-disclaimer p {
  margin: 0;

  color: #08100d;

  font-size: 12px;

  line-height: 1.35;
}


/* =========================================================
   SEPARADOR
   ========================================================= */

.footer-divider {
  height: 1px;

  background: rgba(8, 16, 13, .20);
}


/* =========================================================
   PARTE INFERIOR
   ========================================================= */

.footer-bottom {
  min-height: 0;

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding: 10px 0 12px;
}


/* =========================================================
   ENLACES LEGALES
   ========================================================= */

.footer-legal {
  display: flex;

  align-items: center;

  gap: 7px;

  font-size: 13px;
}

.footer-legal a {
  color: #08100d;

  transition: opacity .2s ease;
}

.footer-legal a:hover {
  opacity: .65;
}

.footer-legal span {
  color: rgba(8, 16, 13, .55);
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.footer-copy {
  color: #08100d;

  font-size: 13px;

  font-weight: 600;
}

/* =========================================================
   RESPONSIVE - TABLET / MOBILE
   ========================================================= */

@media (max-width: 750px) {

  /* Header */

  .topbar {
    padding: 18px 5vw;
  }

  nav {
    display: none;
  }


  /* Hero */

  .hero {
    min-height: 680px;
  }


  /* Server */

  .server-card {
    flex-wrap: wrap;
  }

  .server-card button {
    margin-left: 32px;
  }


  /* Cards / History */

  .cards,
  .history {
    grid-template-columns: 1fr;
  }


 /* Footer */

.footer-bottom {
  flex-direction: column;

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

  gap: 6px;

  padding: 9px 0 11px;

  text-align: center;
}

.footer-legal {
  flex-wrap: wrap;

  justify-content: center;
}

.footer-disclaimer {
  padding: 12px 0 8px;
}

  
}

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */

.legal-page {
  width: min(1000px, 88%);
  margin: auto;

  padding: 180px 0 100px;
}

.legal-page h1 {
  margin: 0 0 30px;
}

.legal-intro {
  max-width: 800px;

  font-size: 22px;
  line-height: 1.5;

  color: #000000;

  margin: 0 0 60px;
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 30px;

  margin: 50px 0 15px;

  color: var(--accent);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #000000;

  font-size: 18px;
  line-height: 1.65;

  margin: 0 0 20px;
}

.legal-update {
  margin-top: 60px !important;

  padding-top: 20px;

  border-top: 1px solid var(--line);

  font-size: 14px !important;

  color: var(--muted) !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 750px) {

  .legal-page {
    width: 90%;
    padding: 140px 0 70px;
  }

  .legal-page h1 {
    font-size: 34px;
  }

  .legal-intro {
    font-size: 20px;
  }

  .legal-content h2 {
    font-size: 26px;
    margin-top: 40px;
  }

  .legal-content p {
    font-size: 17px;
  }

}
/* =========================================================
   CUENTA ATRÁS
   ========================================================= */

.countdown-section {
  position: relative;
  z-index: 2;

  width: min(700px, 100%);

  margin: 0 0 40px;

  text-align: left;
}


/* =========================================================
   FECHA DE APERTURA
   ========================================================= */

.countdown-date {
  margin: 0 0 22px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: #08100d;
  letter-spacing: .02em;
}


/* =========================================================
   TEXTO DEL CONTADOR
   ========================================================= */

.countdown-title {
  margin: 0 0 18px;

  color: #866043;

  font-family: "Press Start 2P", monospace;

  font-size: 13px;

  letter-spacing: .08em;

  line-height: 1.5;
}


/* =========================================================
   CONTADOR
   ========================================================= */

.countdown {
  display: flex;

  align-items: center;

  gap: 14px;
}


/* =========================================================
   UNIDADES
   ========================================================= */

.countdown-unit {
  min-width: 105px;

  padding: 15px 12px;

  background: rgba(255, 255, 255, .85);

  border: 1px solid rgba(8, 16, 13, .15);

  box-shadow: 0 10px 30px rgba(8, 16, 13, .08);

  text-align: center;
}

.countdown-unit strong {
  display: block;

  font-family: "Press Start 2P", monospace;

  font-size: clamp(22px, 4vw, 32px);

  line-height: 1.3;

  color: #08100d;
}

.countdown-unit span {
  display: block;

  margin-top: 9px;

  color: #59635e;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: .08em;
}


/* =========================================================
   SEPARADORES
   ========================================================= */

.countdown-separator {
  font-family: "Press Start 2P", monospace;

  font-size: 24px;

  color: #866043;

  transform: translateY(-5px);
}


/* =========================================================
   MENSAJE FINAL
   ========================================================= */

.countdown-finished {
  display: none;

  position: relative;
  z-index: 2;

  margin: 0 0 40px;

  text-align: left;
}

.countdown-finished.active {
  display: block;

  animation: celebrationAppear .8s ease-out;
}

.firework-text {
  font-family: "Press Start 2P", monospace;

  font-size: clamp(25px, 5vw, 45px);

  line-height: 1.4;

  color: #08100d;

  text-shadow:
    3px 3px #92F07F,
    6px 6px rgba(134, 96, 67, .45);
}

.countdown-finished p {
  margin: 15px 0 0;

  font-size: 25px;

  font-weight: 600;

  color: #59635e;
}


/* =========================================================
   ANIMACIÓN FINAL
   ========================================================= */

@keyframes celebrationAppear {

  from {
    opacity: 0;
    transform: scale(.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }

}


/* =========================================================
   FUEGOS ARTIFICIALES
   ========================================================= */

#fireworksCanvas {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;

  z-index: 1;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 750px) {

  .countdown-section {
    margin-bottom: 32px;
  }



  .countdown-date {
    font-family: "Press Start 2P", monospace !important;
    font-size: 14px !important;
    line-height: 1.8;
    margin-bottom: 17px;
  }



  .countdown-title {
    font-size: 10px;

    line-height: 1.6;

    margin-bottom: 14px;
  }

  .countdown {
    gap: 5px;

    justify-content: space-between;
  }

  .countdown-unit {
    min-width: 0;

    flex: 1;

    padding: 12px 5px;
  }

  .countdown-unit strong {
    font-size: 15px;
  }

  .countdown-unit span {
    font-size: 9px;

    margin-top: 7px;
  }

  .countdown-separator {
    font-size: 14px;
  }

  .firework-text {
    font-size: 23px;
  }

  .countdown-finished p {
    font-size: 20px;
  }

}

/* =========================================================
   AJUSTE FECHA DE APERTURA
   ========================================================= */

.hero .countdown-section .countdown-date {
  font-family: "Press Start 2P", monospace !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.5;
  color: #08100d;
  letter-spacing: .02em;
  margin: 0 0 22px;
}
/* =========================================================
   CHANGELOG
   ========================================================= */

.changelog-page {
  width: min(1200px, 88%);
  margin: 0 auto;

  padding: 150px 0 100px;
}


/* =========================================================
   CABECERA
   ========================================================= */

.changelog-header {
  max-width: 850px;

  margin-bottom: 55px;
}

.changelog-eyebrow {
  margin: 0 0 15px;

  color: #866043;

  font-family: "Press Start 2P", monospace;

  font-size: 12px;

  letter-spacing: .15em;

  font-weight: 700;
}


.changelog-header h1 {
  margin: 0 0 25px;

  font-family: "Press Start 2P", monospace;

  font-size: clamp(42px, 6vw, 70px);

  line-height: 1.15;

  color: #08100d;

  text-shadow:
    5px 5px rgba(134, 96, 67, .75);
}


.changelog-intro {
  max-width: 720px;

  margin: 0;

  color: #59635e;

  font-size: 18px;

  line-height: 1.55;
}


/* =========================================================
   LISTA
   ========================================================= */

.changelog-list {
  display: flex;

  flex-direction: column;

  gap: 20px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.changelog-entry {
  display: grid;

  grid-template-columns: 135px minmax(0, 1fr) 300px;

  min-height: 240px;

  background: #ffffff;

  border: 1px solid rgba(8, 16, 13, .15);

  box-shadow:
    0 18px 45px rgba(8, 16, 13, .08);

  overflow: hidden;
}


/* =========================================================
   VERSIÓN
   ========================================================= */

.changelog-version {
  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  align-items: center;

  padding: 28px 15px;

  background: #866043;

  color: #ffffff;

  text-align: center;
}


.changelog-version strong {
  font-family: "Press Start 2P", monospace;

  font-size: 17px;

  line-height: 1.4;

  margin-bottom: 12px;
}


.changelog-version span {
  font-family: Rajdhani, sans-serif;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: .04em;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.changelog-content {
  min-width: 0;

  padding: 25px 25px 22px;
}


.changelog-entry-header {
  margin-bottom: 18px;
}


.changelog-entry-header h2 {
  margin: 0 0 7px;

  font-family: "Press Start 2P", monospace;

  font-size: 18px;

  line-height: 1.5;

  color: #08100d;
}


.changelog-entry-header p {
  margin: 0;

  color: #59635e;

  font-size: 15px;

  line-height: 1.4;
}


/* =========================================================
   CAMBIOS
   ========================================================= */

.changelog-changes {
  display: flex;

  flex-direction: column;

  gap: 6px;
}


.changelog-change {
  display: flex;

  align-items: flex-start;

  min-height: 45px;

  padding: 8px 10px;

  background: #f5f5f0;

  border-left: 2px solid #866043;
}


/* =========================================================
   ICONO
   ========================================================= */

.change-icon {
  width: 30px;

  flex: 0 0 30px;

  font-size: 21px;

  font-weight: 700;

  line-height: 1;

  text-align: center;
}


/* =========================================================
   INFORMACIÓN DEL CAMBIO
   ========================================================= */

.change-info {
  min-width: 0;
}


.change-info strong {
  display: block;

  margin-bottom: 2px;

  font-size: 10px;

  line-height: 1.2;

  letter-spacing: .08em;
}


.change-info p {
  margin: 0;

  font-size: 13px;

  line-height: 1.35;

  color: #08100d;
}


.change-info p span {
  margin-right: 4px;

  color: #59635e;
}


/* =========================================================
   COLORES SEGÚN TIPO
   ========================================================= */

/* Añadido */

.changelog-change.added {
  border-left-color: #45b649;
}

.changelog-change.added .change-icon,
.changelog-change.added .change-info strong {
  color: #45a847;
}


/* Cambiado */

.changelog-change.changed {
  border-left-color: #ed7650;
}

.changelog-change.changed .change-icon,
.changelog-change.changed .change-info strong {
  color: #ed7650;
}


/* Corregido */

.changelog-change.fixed {
  border-left-color: #6f8ed8;
}

.changelog-change.fixed .change-icon,
.changelog-change.fixed .change-info strong {
  color: #6f8ed8;
}


/* Eliminado */

.changelog-change.removed {
  border-left-color: #d85c5c;
}

.changelog-change.removed .change-icon,
.changelog-change.removed .change-info strong {
  color: #d85c5c;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.changelog-image {
  padding: 10px;

  display: flex;

  align-items: stretch;

  justify-content: center;

  min-width: 0;
}


.changelog-image img {
  display: block;

  width: 100%;

  height: 100%;

  min-height: 200px;

  object-fit: cover;

  border: 1px solid rgba(8, 16, 13, .10);
}


/* =========================================================
   ERROR
   ========================================================= */

.changelog-error {
  padding: 30px;

  background: #ffffff;

  border: 1px solid rgba(8, 16, 13, .15);

  color: #d85c5c;

  text-align: center;

  font-weight: 700;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 900px) {

  .changelog-entry {
    grid-template-columns: 110px 1fr;
  }


  .changelog-image {
    grid-column: 1 / -1;

    height: 220px;

    padding: 10px;
  }


  .changelog-image img {
    min-height: 0;

    height: 100%;
  }

}


@media (max-width: 750px) {

  .changelog-page {
    width: 90%;

    padding: 130px 0 70px;
  }


  .changelog-header {
    margin-bottom: 35px;
  }


  .changelog-eyebrow {
    font-size: 9px;

    line-height: 1.6;
  }


  .changelog-header h1 {
    font-size: 34px;

    text-shadow:
      3px 3px rgba(134, 96, 67, .75);
  }


  .changelog-intro {
    font-size: 17px;
  }


  .changelog-entry {
    grid-template-columns: 85px 1fr;
  }


  .changelog-version {
    padding: 22px 8px;
  }


  .changelog-version strong {
    font-size: 12px;
  }


  .changelog-version span {
    font-size: 12px;
  }


  .changelog-content {
    padding: 20px 15px;
  }


  .changelog-entry-header h2 {
    font-size: 13px;

    line-height: 1.5;
  }


  .changelog-entry-header p {
    font-size: 13px;
  }


  .change-info p {
    font-size: 12px;
  }


  .changelog-image {
    height: 180px;
  }

}