/* ==========================================================================
   PÁGINAS DEL SISTEMA · buzón y error 404
   --------------------------------------------------------------------------
   Se cargan después de portada.css. Comparten chasis, CRT y tipografías;
   aquí solo van el formulario de transmisión y la pantalla de señal perdida.
   ========================================================================== */

.simple {
  width: min(1100px, calc(100vw - 28px));
  margin-inline: auto;
  padding: clamp(22px, 3.4vw, 44px) 0 clamp(40px, 6vw, 78px);
}
.simple > .eyebrow { margin-bottom: 14px; }

.barra__nav a.activo {
  background: var(--amber);
  color: var(--bg);
}
.barra__nav a.activo span { color: var(--bg); }

.transmision {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.transmision__copy {
  padding: clamp(20px, 3.4vw, 36px);
  border-right: 1px solid var(--line-dim);
  background:
    linear-gradient(180deg, rgba(255, 176, 0, .035), transparent 48%),
    var(--panel);
}
.transmision__title {
  margin: 0 0 16px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.6vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .82;
  text-transform: uppercase;
  word-spacing: .09em;
  transform: scaleX(.88);
  transform-origin: left;
}
.transmision__title em {
  display: block;
  color: var(--amber);
  font-style: normal;
  text-shadow: 0 0 26px rgba(255, 176, 0, .12);
}
.transmision__copy > p {
  max-width: 42ch;
  margin: 0 0 10px;
  color: #b8b2a7;
  font-size: .8rem;
  line-height: 1.7;
}
.transmision__copy .firma {
  margin-top: 16px;
  color: var(--green);
  font-size: .56rem;
  letter-spacing: .14em;
}

.transmision__readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}
.transmision__readout div {
  padding: 8px 9px;
  border-right: 1px solid var(--line-dim);
}
.transmision__readout div:last-child { border-right: 0; }
.transmision__readout span {
  display: block;
  color: var(--steel);
  font-size: .42rem;
  letter-spacing: .12em;
}
.transmision__readout b {
  color: var(--bone);
  font-family: var(--label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.volver {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--amber);
  font-size: .52rem;
  letter-spacing: .08em;
}
.volver:hover { color: var(--green); border-color: var(--green); }

.form-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3.4vw, 34px);
  min-width: 0;
}
.form-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-green);
  color: var(--green);
  font-size: .46rem;
  letter-spacing: .1em;
}
.form-panel__head span:last-child { color: var(--steel); }

.field { display: block; margin-top: 15px; }
.field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--steel);
  font-size: .47rem;
  letter-spacing: .12em;
  line-height: 1.4;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-dim);
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: #070a09;
  color: var(--bone);
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.5;
}
.field input { height: 42px; }
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #7a827b; opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.form-panel__send { width: 100%; margin-top: 16px; }
.form-status { margin-top: 11px; }
.form-status:empty { display: none; }
.nota-form {
  margin: 10px 0 0;
  color: var(--steel);
  font-size: .43rem;
  letter-spacing: .1em;
  line-height: 1.5;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin: 0;
  padding: 8px 10px;
  border-left: 2px solid var(--line);
  font-size: .56rem;
  letter-spacing: .03em;
  line-height: 1.5;
}
.alert--ok { border-left-color: var(--green); background: rgba(0, 255, 102, .06); color: var(--green); }
.alert--error { border-left-color: var(--red); background: rgba(255, 0, 51, .07); color: #ff6b85; }

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  width: min(1000px, calc(100vw - 28px));
  margin-inline: auto;
  padding: clamp(30px, 6vw, 80px) 0;
}
.error-panel {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--red);
  background:
    linear-gradient(180deg, rgba(255, 0, 51, .06), transparent 46%),
    var(--panel);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.error-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(45deg, var(--red) 0 8px, transparent 8px 16px);
  opacity: .8;
}
.error-panel h1 {
  margin: 4px 0 10px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .9;
  text-transform: uppercase;
  word-spacing: .06em;
}
.error-panel > p:not(.eyebrow):not(.error-code) {
  max-width: 48ch;
  margin: 0 0 18px;
  color: #b8b2a7;
  font-size: .72rem;
  line-height: 1.65;
}
.error-panel > p.error-code {
  margin: 10px 0 8px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(5.5rem, 16vw, 10rem);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .88;
  text-shadow: 0 0 34px rgba(255, 0, 51, .16);
}
.error-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.error-note { margin-top: 12px !important; color: var(--steel) !important; font-size: .44rem !important; letter-spacing: .08em; }

/* ---------- puerta del taller ---------- */
.acceso {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  width: min(1100px, calc(100vw - 28px));
  min-height: calc(100vh - 40px);
  margin-inline: auto;
  padding: clamp(26px, 5vw, 60px) 0;
}
.acceso__panel {
  position: relative;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 176, 0, .04), transparent 46%),
    var(--panel);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.acceso__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--amber);
  font-size: .45rem;
  letter-spacing: .12em;
}
.acceso__head span:last-child { color: var(--red); }
.acceso__title {
  margin: 12px 0 14px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .84;
  text-transform: uppercase;
  word-spacing: .09em;
  transform: scaleX(.88);
  transform-origin: left;
}
.acceso__title em { display: block; color: var(--amber); font-style: normal; }
.acceso__intro {
  max-width: 44ch;
  margin: 0 0 18px;
  color: #b8b2a7;
  font-size: .78rem;
  line-height: 1.68;
}
.acceso .field { margin-top: 12px; }
.acceso .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--steel);
  font-size: .46rem;
  letter-spacing: .08em;
  cursor: pointer;
}
.acceso .check input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.acceso .btn { width: 100%; }
.acceso .nota-form { margin-top: 10px; }
.acceso .volver { margin-top: 16px; }
.acceso__side {
  padding-left: clamp(16px, 3vw, 32px);
  border-left: 1px solid var(--line-dim);
  color: var(--steel);
  font-size: .46rem;
  letter-spacing: .1em;
  line-height: 1.8;
}
.acceso__side .jp {
  display: block;
  color: var(--green);
  font-size: 2.2rem;
  letter-spacing: .2em;
  line-height: 1;
  opacity: .8;
}
.acceso__side strong {
  display: block;
  margin: 18px 0 6px;
  color: var(--amber);
  font-family: var(--label);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.acceso__side .barcode { margin-top: 22px; height: 44px; opacity: .35; }
.acceso__side .acceso__nivel {
  color: var(--red);
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .8;
}
.alert--info { border-left-color: var(--line); background: rgba(255, 176, 0, .04); color: var(--steel); }
.aviso-error:empty { display: none; }
.aviso-error { margin-bottom: 10px; }

@media (max-width: 820px) {
  .transmision { grid-template-columns: 1fr; }
  .transmision__copy { border-right: 0; border-bottom: 1px solid var(--line-dim); }
  .transmision__title { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .transmision__copy > p { max-width: 52ch; }
  .acceso { grid-template-columns: 1fr; min-height: 0; }
  .acceso__side { display: none; }
  .acceso__title { font-size: clamp(2.7rem, 12vw, 4.2rem); }
}


/* En estas páginas la barra tiene 3 enlaces: no queremos que el activo
   desaparezca con las reglas de la portada. */
@media (max-width: 760px) {
  .barra__nav a:nth-child(1) { display: none; }
  .barra__nav a:nth-child(2),
  .barra__nav a:nth-child(3) { display: flex; }
}
@media (max-width: 520px) {
  .simple { width: calc(100vw - 20px); padding-top: 18px; }
  .transmision__copy { padding: 18px 14px; }
  .form-panel { padding: 16px 14px 18px; }
  .transmision__readout span { font-size: .38rem; }
  .transmision__readout b { font-size: .55rem; }
  .error-page { width: calc(100vw - 20px); min-height: calc(100vh - 160px); }
  .error-actions .btn { width: 100%; }
}

/* ==========================================================================
   PÁGINAS LEGALES (/privacidad y /en/privacy)
   Texto largo y legible: una sola columna, sin adornos que estorben.
   ========================================================================== */
.legal { max-width: 78ch; margin-inline: auto; }
.legal__title {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  font-weight: 900;
  line-height: .98;
  color: var(--bone);
}
.legal__title em { font-style: italic; color: var(--amber); }
.legal__meta {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tenue);
}
.legal section {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dim);
}
.legal h2 {
  margin: 0 0 12px;
  font-family: var(--label);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.legal h2 span { color: var(--tenue); margin-right: 8px; }
.legal p,
.legal li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--bone);
}
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--bone); font-weight: 700; }
.legal__aviso {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--amber);
  background: var(--tinte);
  font-size: .88rem;
}
.legal__firma {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--tenue);
}

/* Aviso corto bajo formularios y en el muro. */
.nota-legal {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.6;
  color: var(--tenue);
}
.nota-legal a { color: var(--amber); }
.check-legal {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--bone);
  cursor: pointer;
}
.check-legal input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--amber);
  cursor: pointer;
}
.check-legal a { color: var(--amber); }
.muro-reporte {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--tenue);
}
.muro-reporte a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
