body {
  font-family: Arial, sans-serif;

  background:
    linear-gradient(
      rgba(2,6,23,0.55),
      rgba(2,6,23,0.65)
    ),
    url("Online Mastering - Paolo Vos 1.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: white;
  text-align: center;

  min-height: 100vh;
  
  /* CENTRADO FLEXIBLE SEGURO */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* Padding superior e inferior para evitar que toque los bordes si la pantalla es baja */
  padding: 40px 10px;
  box-sizing: border-box;
  margin: 0;
}

.container {
  max-width: 680px;
  width: 95%;
  margin: auto; /* Permite que se centre dinámicamente y respire */
  padding: 30px 20px;

  background:
    linear-gradient(
      rgba(15,23,42,0.82),
      rgba(2,6,23,0.88)
    ),
    url("Online Mastering - Paolo Vos 2.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid #5bbcc7;
  border-radius: 20px;

  box-shadow:
    0 0 8px rgba(91,188,199,0.8),
    0 0 20px rgba(91,188,199,0.6),
    0 0 40px rgba(91,188,199,0.35);

  box-sizing: border-box;
}

/* TITULO */

h1 {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 25px;

  color: #ffffff;

  text-shadow:
    0 0 5px rgba(91,188,199,0.85),
    0 0 12px rgba(91,188,199,0.65),
    0 0 25px rgba(91,188,199,0.45);
}

/* SUBTITULO */

.subtitle {
    margin-top: -20px;
    margin-bottom: 25px;

    font-family: "Arial Narrow", "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 300;

    color: #94a3b8;
    letter-spacing: 1px;
}

/* =========================
   MÓDULO ACCESS CODE (ÚNICA DECLARACIÓN)
========================= */

.access-code-rack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  width: 95%;
  max-width: 820px; /* <--- Ancho amplio y holgado alineado al contenedor */

  margin: 15px auto;
  padding: 12px 18px;
  
  /* METAL PLATEADO */
  background:
    linear-gradient(
      180deg,
      #e5e7eb 0%,
      #b8bec7 25%,
      #8f969f 50%,
      #c7ccd2 75%,
      #9da3aa 100%
    );

  border: 1px solid #5b6168;
  border-radius: 6px;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.9),
    inset 0 -2px 3px rgba(0,0,0,0.35),
    0 4px 10px rgba(0,0,0,0.7);

  box-sizing: border-box;
}

.code-input-wrapper {
  flex: 1;
  min-width: 130px;
}

.access-enter-btn {
  background: #020617;
  color: #00f2fe;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 12px;
  border: 1px solid #00f2fe;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
  transition: all 0.2s ease;
}

.access-enter-btn:hover {
  background: #00f2fe;
  color: #020617;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}



/* =========================
   ACCESS CODE Scrw
========================= */

.access-code-rack::before,
.access-code-rack::after {

  content: '';

  position: absolute;

  top: 6px;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  /* Cruz / scrw */

  background-image:

    linear-gradient(
      45deg,
      transparent 40%,
      #30343a 40%,
      #30343a 60%,
      transparent 60%
    ),

    linear-gradient(
      -45deg,
      transparent 40%,
      #30343a 40%,
      #30343a 60%,
      transparent 60%
    ),

    radial-gradient(
      circle at 35% 30%,
      #ffffff 0%,
      #c9cdd2 30%,
      #8a9098 65%,
      #4b5158 100%
    );

  border: 1px solid #555b62;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.9),
    0 1px 2px rgba(0,0,0,0.7);

  box-sizing: border-box;
}


/* scrw l */
.access-code-rack::before {
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
}

/* scrw r */
.access-code-rack::after {
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
}


/* Campo Access Code */

.code-input {

  width: 100%;

  padding: 8px 12px;

  box-sizing: border-box;

  background:
    linear-gradient(
      180deg,
      #d8dce2 0%,
      #a2a8b4 100%
    );

  color: #1a1c20;

  font-family: 'Courier New', Courier, monospace;

  font-weight: bold;
  font-size: 13px;

  border: 1px solid #2d323b;
  border-radius: 4px;

  outline: none;

  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.6),
    0 1px 1px rgba(255,255,255,0.2);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.code-input::placeholder {

  color: #525b68;

  font-weight: normal;
}

.code-input:focus {

  border-color: #00f2fe;

  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.6),
    0 0 8px rgba(0,242,254,0.5);
}


/* Precio + Buy Code */

.code-pricing-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #0d0f12;
  border: 1px solid #23272e;
  border-radius: 4px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
  white-space: nowrap; /* Evita que "BUY" y "CODE" se bajen de línea */
}

.price-tag {

  color: #94a3b8;

  font-size: 12px;

  font-family:
    system-ui,
    -apple-system,
    sans-serif;

  white-space: nowrap;
}

.buy-code-btn {

  background: transparent;

  color: #ffffff;

  font-size: 11px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  padding: 4px 10px;

  border: 1px solid #00f2fe;

  border-radius: 3px;

  cursor: pointer;

  box-shadow:
    0 0 6px rgba(0,242,254,0.3);

  transition: all 0.2s ease;
}

.buy-code-btn:hover {

  background: #00f2fe;

  color: #0d0f12;

  box-shadow:
    0 0 12px rgba(0,242,254,0.8);
}

/* =========================
   UPLOAD — RACK
========================= */

#file {
  display: none;
}

/* Contenedor principal lect */

.rack-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 95%;
  max-width: 820px;

  margin: 20px auto;
  padding: 8px 30px;

  background: linear-gradient(
    180deg,
    #383e47 0%,
    #1a1c20 100%
  );

  border: 1px solid #111317;
  border-radius: 6px;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.7);

  box-sizing: border-box;
}


/* scrw metal */

.rack-slot::before,
.rack-slot::after {

  content: '';

  position: absolute;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 35%,
      #d1d5db 0%,
      #4b5563 70%,
      #1f2937 100%
    );

  border: 1px solid #111;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.6),
    0 1px 2px rgba(0,0,0,0.8);
}


/* scrw l */

.rack-slot::before {

  left: 10px;

  background-image:
    linear-gradient(
      45deg,
      transparent 45%,
      #111 45%,
      #111 55%,
      transparent 55%
    ),
    radial-gradient(
      circle at 35% 35%,
      #d1d5db 0%,
      #4b5563 70%,
      #1f2937 100%
    );
}


/* scrw r */

.rack-slot::after {

  right: 10px;

  background-image:
    linear-gradient(
      45deg,
      transparent 45%,
      #111 45%,
      #111 55%,
      transparent 55%
    ),
    radial-gradient(
      circle at 35% 35%,
      #d1d5db 0%,
      #4b5563 70%,
      #1f2937 100%
    );
}


/* lect in / boton */

.cassette-button {

  display: block;

  width: 100%;

  padding: 10px 15px;

  text-align: center;

  color: #94a3b8;

  font-family: 'Courier New', Courier, monospace;

  font-size: 13px;
  font-weight: bold;

  letter-spacing: 1px;

  text-transform: uppercase;

  cursor: pointer;

  background: #090a0c;

  border: 1px solid #22262c;

  border-radius: 4px;

  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.9),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);

  transition: all 0.25s ease;

  box-sizing: border-box;
}


/* Hover — Led */

.cassette-button:hover {

  color: #00f2fe;

  border-color: #00f2fe;

  text-shadow:
    0 0 8px rgba(0, 242, 254, 0.6);

  box-shadow:

    inset 0 2px 4px rgba(0, 0, 0, 0.9),

    0 0 10px rgba(0, 242, 254, 0.3);
}


/* Click */

.cassette-button:active {

  transform: translateY(1px);

}


/* =========================
   BOTON PLAY PAUSE
========================= */


.player-controls {

display:flex;

justify-content:center;

gap:10px;

margin-bottom:20px;

}


.player-controls button {

  width:55px;
  height:40px;

  background: linear-gradient(
    135deg,
    #334155,
    #020617
  );

  border:1px solid #8b5cf6;

  border-radius:8px;

  color:#000000;

  font-size:18px;

  transition:
    transform .2s,
    box-shadow .2s,
    background .2s;

}



.player-controls button:hover {

  background: linear-gradient(
    135deg,
    #ec4899,   /* rosa fuerte */
    #6d28d9
  );

  transform:translateY(-2px);

  box-shadow:
    0 0 10px #a855f7,
    0 0 20px #7c3aed,
    0 0 35px rgba(168,85,247,0.7);

}

.player-controls button:active {

  transform:scale(.95);

  box-shadow:
    0 0 5px #7c3aed;

}


/* =========================
   MASTERING CONTROLS
========================= */

.mastering-controls {

  position: relative;

  width: 95%;
  max-width: 820px;

  margin: 20px auto;
  padding: 12px 15px;

  background:
    linear-gradient(
      rgba(20,22,26,0.40),
      rgba(5,7,10,0.50)
    ),
    url("Online Mastering - Paolo Vos 3.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid #111317;
  border-radius: 6px;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.15),
    0 4px 10px rgba(0,0,0,0.7);

  box-sizing: border-box;
}


/* =========================
   scrw Pan
========================= */

.mastering-controls::before,
.mastering-controls::after {

  content: '';

  position: absolute;

  top: 7px;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background-image:

    /* Cr scrw */
    linear-gradient(
      45deg,
      transparent 43%,
      #111 43%,
      #111 57%,
      transparent 57%
    ),

    linear-gradient(
      -45deg,
      transparent 43%,
      #111 43%,
      #111 57%,
      transparent 57%
    ),

    /* Metal */
    radial-gradient(
      circle at 35% 30%,
      #f1f3f5 0%,
      #c4c8cc 30%,
      #777e86 65%,
      #343940 100%
    );

  border: 1px solid #25292e;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.8),
    0 1px 2px rgba(0,0,0,0.8);

  box-sizing: border-box;
}


/* scrw l */

.mastering-controls::before {
  left: 7px;
}


/* scrw rd */

.mastering-controls::after {
  right: 7px;
  top: auto;
  bottom: 7px;
}

/* INPUTS */

input:not(.code-input),
select {

  background:#020617;
  color:#cbd5f5;

  border:1px solid #475569;

  border-radius:10px;

  padding:10px;

  width:80%;

  margin:10px;

  font-size:15px;
  
  box-sizing:border-box;

}

input::placeholder {
  color: #64748b;
}


input:focus,
select:focus {

  outline:none;

  border-color:#22c55e;

  box-shadow:
  0 0 10px rgba(34,197,94,.5);

}



/* BOTON MASTER */


button:active {

 transform:scale(.97);

}

/* =========================
   BOTÓN MASTERING — Paolo Vos
========================= */

.gold-mastering-btn {

  display: block;

  width: 40%;
  max-width: 300px;

  margin: 20px auto;

  padding: 0;

  border: none;

  border-radius: 6px;

  background: none;

  background-image: url("Online Mastering - Paolo Vos 4.png");

  background-size: 100% 100%;

  background-position: center;

  background-repeat: no-repeat;

  aspect-ratio: 1584 / 672;

  cursor: pointer;

  box-shadow:
    0 6px 12px rgba(0,0,0,0.6);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  box-sizing: border-box;
}


/* =========================
   HOVER
========================= */

.gold-mastering-btn:hover {

  transform: translateY(-1px);

  box-shadow:
    0 0 12px rgba(0,242,254,0.35),
    0 6px 14px rgba(0,0,0,0.7);
}


/* =========================
   ACTIVE — PRESIÓN
========================= */

.gold-mastering-btn:active {

  transform: translateY(2px);

  box-shadow:
    0 2px 5px rgba(0,0,0,0.8);
}

/* LOADER */

#loader {

 margin-top:20px;

 font-size:18px;

 color:#22c55e;

 animation:pulse 1s infinite;

}


@keyframes pulse {

50% {
opacity:.4;
}

}



/* WAVEFORMS */


#waveformOriginal,
#waveformProcessed {

 background:#020617;

 border-radius:12px;

 padding:15px;

 border:1px solid #334155;

 margin:20px 0;

}



/* AUDIO PLAYER */


audio {

 width:80%;

 margin-bottom:20px;

}



/* DESCARGA */


.btn-main {

  display:block;
  width:50%;
  margin:20px auto;

  padding:12px;

  font-size:18px;
  letter-spacing:2px;

  text-align:center;

  color:#d1d5db;

  background:
  linear-gradient(
    135deg,
    #d4af37,
    #8a6d1d
  );

  border:none;
  border-radius:12px;

  cursor:pointer;

  transition:
  transform .2s,
  box-shadow .2s;

  box-sizing:border-box;

  text-decoration:none;

}

.btn-main:hover {

 background: linear-gradient(
   135deg,
   #ffd700,
   #ffea00,
   #fff176
 );

 color:#020617;

 transform:translateY(-2px);

 box-shadow:
 0 0 10px #ffd700,
 0 0 20px #ffea00,
 0 0 40px rgba(255,215,0,0.8);

}

.btn-main:active {
 transform:scale(.97);
}




.hidden {

 display:none;

}




/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 600px) {

  body {
    padding: 10px;
  }


  .container {

    width: 95%;
    max-width: none;

    margin: 20px auto;

    padding: 20px 10px;

    border-radius: 15px;

  }


  h1 {

    font-size: 30px;
    margin-bottom: 15px;

  }


  .subtitle {

    font-size: 13px;

  }


  input,
  select {

    width: 90%;

    font-size: 17px;

    padding: 14px;

  }


  .rack-slot {
    width: 90%;
    padding: 8px 25px;
  }

  .cassette-button {
    padding: 14px 10px;
    font-size: 12px;
    white-space: nowrap;
  }


  .btn-main {

    width: 90%;

    font-size: 18px;

    padding: 15px;

  }


  audio {

    width: 95%;

  }


  #waveformOriginal,
  #waveformProcessed {

    width: 90%;

    margin:20px auto;

    padding:10px;

  }


  .player-controls button {

    width:60px;

    height:45px;

    font-size:22px;

  }

}


.contact {
  margin-top: 35px;
  margin-bottom: 15px;
  text-align: center;
}

.contact a {
  display: inline;            /* se comporta como texto */
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
}

.contact a:hover {
  color: #22c55e;
  text-decoration: underline;
}

/* NOTA DE PRIVACIDAD */

.privacy-note {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: #666;
}

/* =========================
   LOGO PRINCIPAL (MASTERING)
   ========================= */
.mastering-logo {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
  opacity: 0.85;
  max-width: 100%;
}

/* =========================
   BOTÓN ENTER ACCESS
   ========================= */
.access-enter-btn {
  background: #020617;
  color: #00f2fe;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border: 1px solid #00f2fe;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
  transition: all 0.2s ease;
}

.access-enter-btn:hover {
  background: #00f2fe;
  color: #020617;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}

.access-status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
}