html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: #000;
  overflow-x: hidden;
  overflow-y: auto;

}

.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

.left, .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.left {
  background: #cba052;
  color: #fff;
  text-align: center;
  transition: background 1s ease;
}

.right {
  background: #fff;
  text-align: center;
}

.build-text {
  font-size: 2.5em;
  margin: 0;
  word-break: keep-all;
  white-space: nowrap;
}

.tagline {
  font-size: 1.3em;
  margin: 10px 0 20px;
}

.icons {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.icons div {
  text-align: center;
  animation: float 2s ease-in-out infinite alternate;
}

.icons i {
  font-size: 3em;
  display: block;
  margin-bottom: 10px;
}

.chessboard {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 2px solid #cba052;
  position: relative;
}

.square {
  width: 100%;
  height: 100%;
}

.light {
  background: #f9f4ef;
}

.dark {
  background: #e1c69a;
}

.piece {
  position: absolute;
  font-size: calc(100% / 8);
  width: calc(100% / 8);
  height: calc(100% / 8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  transition: transform 1s ease;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* 🔷 Responsive para móviles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .left {
    height: 50vh;
    width: 100%;
    padding: 20px;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .build-text {
    font-size: clamp(1.5em, 5vw, 2em);
    margin: 0;
  }

  .tagline {
    font-size: clamp(1em, 4vw, 1.2em);
    margin: 10px 0 15px;
    text-align: center;
    max-width: 90%;
  }

  .icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    z-index: 2;
  }

  .icons i {
    font-size: clamp(2em, 6vw, 2.5em);
  }

  .icons span {
    font-size: clamp(0.8em, 3.5vw, 1em);
  }

  .right {
    position: relative;
    height: 50vh;
    width: 100%;
    background: #fff;
    padding-top: calc(45vw / 2); /* para dejar espacio para la mitad superior del tablero */
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .chessboard {
    width: 90vw;
    aspect-ratio: 1 / 1;
    position: absolute;
    top: -15vw; /* sube la mitad del tablero al fondo dorado */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .piece {
    font-size: calc(90vw / 8);
    width: calc(90vw / 8);
    height: calc(90vw / 8);
  }
}










