/* =============================================
   NEIX REFERIDOS -- base.css
   Reset, tipografía y layout. Estilo formal y prolijo.
   Paleta NEIX: rojo #AB1930, gris #3D3D3D, beige #F7F5F3.
   ============================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #F7F5F3;
  color: #2A2A2A;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #AB1930; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visualmente oculto pero accesible para lectores de pantalla. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Foco visible y consistente para inputs, selects, botones, links. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #AB1930;
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  margin: 0 0 8px;
  color: #2A2A2A;
}

h1 { font-size: 22px; line-height: 1.2; letter-spacing: -0.005em; font-weight: 500; }
h2 { font-size: 17px; line-height: 1.25; font-weight: 500; }
h3 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700; color: #5A5A5A; margin-bottom: 2px;
}

.eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #AB1930; margin-bottom: 6px; font-weight: 700;
}

/* ---- nav ---- */
.nav {
  background: #3D3D3D;
  color: #F7F5F3;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(171, 25, 48, 0.55);
}
.nav-left {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.nav-logo svg { height: 18px; display: block; }
.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }
.nav-right {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 14px 0; font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -11px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: #FFF; text-decoration: none; border-bottom-color: rgba(171, 25, 48, 0.5); }
.nav-links a.active { color: #FFF; border-bottom-color: #AB1930; }

@media (max-width: 720px) {
  .nav { padding: 10px 16px; }
  .nav-left { gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-links a { padding: 10px 0; margin-bottom: -7px; }
}

/* ---- main ---- */
main {
  max-width: 1280px; margin: 0 auto; padding: 16px 22px 22px;
}

.section {
  background: #FFFFFF;
  border: 1px solid #EAE6E0;
  padding: 18px 22px;
  margin-bottom: 12px;
  position: relative;
}

.section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px; flex-wrap: wrap; gap: 12px;
}
.section-head h1, .section-head h2 { margin-bottom: 4px; }
.section-head .muted { margin: 0; max-width: 640px; font-size: 12.5px; }

@media (max-width: 640px) {
  .section { padding: 14px 14px; }
  h1 { font-size: 20px; }
  main { padding: 12px 10px 16px; }
}

/* ---- user bar (referente compacto arriba del form) ---- */
.user-bar {
  position: relative;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 14px 8px 16px;
  background: linear-gradient(to right, #FBF8F4, #F7F5F3);
  border: 1px solid #EAE6E0;
  border-left: 3px solid #AB1930;
  font-size: 12px; color: #5A5A5A;
  margin-bottom: 12px;
}
.user-bar .ub-label {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #9A8E7D; font-weight: 700;
}
.user-bar .ub-val {
  color: #2A2A2A; font-weight: 500; font-size: 12.5px;
}
.user-bar .ub-val.email { color: #5A5A5A; font-weight: 400; }
.user-bar .ub-sep { width: 1px; height: 14px; background: #D6D2CB; }

/* ---- footer ---- */
footer {
  margin-top: 0; padding: 10px 24px;
  background: #3D3D3D; color: rgba(255,255,255,0.5);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center;
}

/* utilities */
.muted { color: #8A8A8A; }
.right { text-align: right; }
.row   { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
