@font-face {
  font-family: "Sans";
  src: url("/fonts/SaansVF.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Serif";
  src: url("/fonts/SerrifVF.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: Sans, sans-serif;
  background: #bababaff;
  min-height: 100vh;
}

/* NAVEGACIÓN */
nav {
  background: white;
  width: 100%;
  padding: 8px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

h1 {
  padding: 20px;
  padding-bottom: 0;
}

.nav-content {
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  border: 1px solid #2d3748;
  font-family: "Sans", "Helvetica", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #2d3748;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #f7fafc;
  border-color: #2d3748;
}

.nav-link.active {
  background: #2d3748;
  color: white;
}

/* CONTENEDOR PRINCIPAL */
.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 40px 20px;
}

/* GRID PARA TARJETAS (INDEX) */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 40px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 30px;
}

.card-title {
  font-family: "Sans", "Helvetica", sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 20px;
}

.title {
  font-size: 3.5rem;
  font-family: "Sans", "Helvetica", sans-serif;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 20px;
}

.card-description {
  font-family: Serif, "Times New Roman", serif;
  font-size: 1.4rem;
  color: #4a5568;
}

/* CONTROLES (THEREMIN Y MANOS) */
.controls {
  margin: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

button,
.file-label,
.start-btn {
  font-family: "Sans", "Helvetica", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #2d3748;
  background: white;
  border: 1px solid #2d3748;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-btn {
  margin-top: 20px;
}

button:hover,
.file-label:hover,
.start-btn:hover {
  background: #2d3748;
  color: white;
  transform: translateY(-2px);
}

#fileInput {
  display: none;
}

.file-label {
  display: inline-block;
}

.status {
  font-family: Serif, "Times New Roman", serif;
  font-size: 1.3rem;
  color: #4a5568;
  margin: 20px 0;
}

/* CANVAS */
#canvas-container {
  display: none;
  margin-top: 40px;
}

#canvas-container.active {
  display: flex;
  justify-content: center;
}

canvas {
  border-radius: 4px;
}

/* RESPONSIVE TABLETS Y DESKTOP */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .card-title {
    font-size: 2.5rem;
  }

  .card-description {
    font-size: 1.5rem;
  }

  .card-image {
    height: 450px;
  }
}

/* RESPONSIVE PANTALLAS GRANDES */
@media (min-width: 1200px) {
  .card-title {
    font-size: 2.5rem;
  }

  .card-description {
    font-size: 1.6rem;
  }

  .card-image {
    height: 500px;
  }
}

/* RESPONSIVE MÓVILES */
@media (max-width: 768px) {
  nav {
    padding: 8px 15px;
  }

  .nav-content {
    gap: 6px;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 8px;
  }

  .container {
    padding-top: 70px;
  }

  .controls {
    gap: 10px;
  }

  button,
  .file-label,
  .start-btn {
    font-size: 0.9rem;
    padding: 8px;
  }

  .status {
    font-size: 1.1rem;
  }

  canvas {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 25px;
  }

  .card-title {
    font-size: 2rem;
  }

  .card-description {
    font-size: 1.2rem;
  }

  .card-image {
    height: 300px;
  }

  .title {
    font-size: 2.5rem;
  }
}