* { box-sizing: border-box; margin: 0; padding: 0; }

/* Montserrat, la del portal (rediseño 2026): Oswald salió del portal. */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/montserrat-latin-variable.woff2') format('woff2');
}
:root {
  --red: #c8102e;
  --red-dark: #a30d24;
  --black: #0f0f0f;
  --black-soft: #171715;
  --paper: #f5f5f4;
  --white: #fff;
  --line: #e5e3e0;
  --ink-muted: #62625e;
  --amber-bg: #fffbeb;
  --amber-line: #f3d486;
  --amber-ink: #7c4b08;
  --display: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--black);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 20;
  padding: 10px 14px; border-radius: 6px;
  background: #fff; color: #111; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.access-shell { width: min(100% - 40px, 980px); margin: 0 auto; }

.access-hero {
  position: relative;
  padding: 54px 0 44px;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  border-bottom: 3px solid var(--red);
}
.access-hero::before,
.access-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
}
.access-hero::before { width: 6px; height: 6px; top: 70px; right: 17%; opacity: .75; }
.access-hero::after { width: 10px; height: 10px; bottom: 92px; right: 30%; opacity: .35; }

.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 24px;
  border-radius: 12px; background: var(--red);
  box-shadow: 0 0 34px rgba(200,16,46,.28);
}
.brand-mark img { width: 26px; height: 26px; object-fit: contain; }

.hero-copy { max-width: 670px; }
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: .98;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero-copy p {
  max-width: 640px;
  margin-top: 16px;
  color: #cdcdca;
  font-size: 14px;
  line-height: 1.7;
}

.portal-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.feature-item {
  min-height: 88px;
  padding: 16px;
  border: 1px solid #2d2d29;
  border-radius: 10px;
  background: var(--black-soft);
}
.feature-item strong { display: block; margin-bottom: 8px; font-size: 12px; }
.feature-item span { display: block; color: #9b9b96; font-size: 11px; line-height: 1.5; }

.access-main { padding: 42px 0 64px; }
.form-intro {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 22px;
}
.form-intro h2 {
  font-family: var(--display); font-size: 28px; line-height: 1;
  text-transform: uppercase;
}
.form-intro p { max-width: 620px; margin-top: 9px; color: var(--ink-muted); font-size: 13px; line-height: 1.55; }
.form-intro a { color: var(--red); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.form-intro a:hover { text-decoration: underline; }

.request-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20,20,18,.045);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.form-divider { height: 1px; margin: 24px 0; background: #efeeeb; }
.field { display: flex; flex-direction: column; }
.field-narrow { width: min(100%, 410px); margin: 24px 0; }
.field label {
  margin-bottom: 8px;
  color: #5e5e5a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.field label span { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--black);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input,
.field select { height: 44px; padding: 0 13px; }
.field textarea { min-height: 108px; padding: 13px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #aaa9a5; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: var(--red); }
.field-help { margin-top: 7px; color: #878781; font-size: 10.5px; line-height: 1.45; }
.field-error { min-height: 0; margin-top: 5px; color: var(--red); font-size: 10.5px; font-weight: 600; }
.field-error:not(:empty) { min-height: 15px; }

.credential-note {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 22px; padding: 14px 16px;
  border: 1px solid var(--amber-line);
  border-radius: 8px;
  background: var(--amber-bg);
  color: var(--amber-ink);
}
.credential-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.credential-note p { font-size: 11.5px; line-height: 1.55; }

.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-top: 22px;
}
.form-footer p { max-width: 510px; color: #85857f; font-size: 10.5px; line-height: 1.45; }
.form-footer p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-footer p a:hover { color: #55554f; }
.form-footer button,
.success-state a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: none; border-radius: 8px;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 750; text-decoration: none;
  cursor: pointer; transition: background .15s;
}
.form-footer button:hover,
.success-state a:hover { background: var(--red-dark); }
.form-footer button:disabled { cursor: wait; opacity: .65; }

.form-message { margin-bottom: 22px; padding: 12px 14px; border-radius: 8px; background: #fdeeef; border: 1px solid #f5b9c2; color: #9c1830; font-size: 12.5px; line-height: 1.5; }
.success-state { max-width: 570px; margin: 26px auto; text-align: center; }
.success-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 50%; background: #eaf7ee; color: #22773c; font-size: 24px; font-weight: 800; }
.success-state h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.success-state p { margin: 10px auto 22px; color: var(--ink-muted); font-size: 13.5px; line-height: 1.65; }

.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid rgba(200,16,46,.34); outline-offset: 3px; }

@media (max-width: 760px) {
  .access-shell { width: min(100% - 28px, 980px); }
  .access-hero { padding: 36px 0 32px; }
  .portal-features { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .request-card { padding: 22px 18px; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 34px; }
  .portal-features { grid-template-columns: 1fr; gap: 8px; }
  .feature-item { min-height: 0; }
  .form-intro { align-items: flex-start; flex-direction: column; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Salida para quien no es cliente: el formulario de mayoristas. */
.nota-mayoristas {
  margin-top: 10px; padding: 12px 14px;
  background: #fdeeef; border-left: 3px solid #C8102E; border-radius: 0 8px 8px 0;
  display: grid; gap: 8px; justify-items: start;
}
/* display:grid le ganaba al atributo hidden: el cartel se veía siempre (06/10). */
.nota-mayoristas[hidden] { display: none; }
.nota-mayoristas p { font-size: 11.5px; line-height: 1.55; color: #3d3d3a; }
.nota-mayoristas a {
  font-size: 11.5px; font-weight: 700; color: #C8102E;
  text-decoration: underline; text-underline-offset: 3px;
}

/* Debajo del botón de /mayoristas/: más chica, es una aclaración. */
.success-state .nota-fin { margin: 14px auto 0; font-size: 12px; }

/* Campos a 16 px mínimo en celular: debajo de eso iOS Safari hace zoom al tocar
   el campo. La misma regla que css/tokens.css (esta página no la carga). */
@media (pointer: coarse), (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  select, textarea { font-size: 16px !important; }
}
