/* StremerMania — hoja de estilos compartida */

* { box-sizing: border-box; }

:root {
  --bg: #0a0d10;
  --surface: #12161b;
  --border: #232931;
  --text: #f2f5f7;
  --text-muted: #94a1ac;
  --text-dim: #7c8792;
  --text-soft: #c3cbd2;
  --accent-teal: #2dd4bf;
  --accent-blue: #3b9eff;
  --warn-bg: rgba(239, 68, 68, 0.08);
  --warn-border: rgba(239, 68, 68, 0.3);
  --warn-text: #f2b4b4;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

h1, h2, .h {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: #6ab8ff; }

img { max-width: 100%; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  padding: 0 24px 48px 24px;
}

@media (min-width: 720px) {
  .section { padding: 0 64px 56px 64px; }
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #1b2027;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 720px) {
  .nav { padding: 22px 64px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}

.brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

@media (min-width: 720px) {
  .nav-links { gap: 36px; }
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.nav-links a.active {
  font-weight: 700;
  color: var(--accent-teal);
}

/* ---------- Header / hero ---------- */

.header {
  padding: 40px 24px 24px 24px;
  max-width: 760px;
}

@media (min-width: 720px) {
  .header { padding: 56px 64px 40px 64px; }
}

.header h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}

@media (min-width: 720px) {
  .header h1 { font-size: 38px; }
}

.header p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.card-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.span-2 { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .grid-2 .span-2 { grid-column: span 2; }
}

/* Feature icon cards (Inicio) */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.feature-card svg { flex-shrink: 0; }

.feature-card .card-title { color: var(--text); }
.feature-card .card-body { color: var(--text-muted); }

/* Pills (Marcas) */
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-soft);
  display: inline-block;
}

.pill.pill-active {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  font-weight: 600;
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* Warning / transparency boxes */
.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--warn-text);
}

.warn-stack { display: flex; flex-direction: column; gap: 10px; }

/* Numbered rule cards (Discord) */
.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
}

.rule-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-teal);
  width: 20px;
  flex-shrink: 0;
}

.rule-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.rule-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */

.form-wrap {
  max-width: 640px;
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--text);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .field-row.two-col { grid-template-columns: 1fr 1fr; }
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: block;
}

.field-input,
.field-input select,
select.field-input,
textarea.field-input {
  width: 100%;
  background: #171c22;
  border: 1px solid #2a313a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

textarea.field-input { resize: vertical; }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.check-row.small {
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
}

.check-row input { accent-color: var(--accent-teal); }
.check-row.small input { margin-top: 3px; }

.btn {
  margin-top: 6px;
  align-self: flex-start;
  background: var(--accent-teal);
  color: #052420;
  border: none;
  border-radius: 24px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
}

.btn:hover { background: #4de0cc; }

.post-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.post-note a { font-size: 12px; }

/* Registro voluntario block (Inicio) */
.signup-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 860px) {
  .signup-box { flex-direction: row; padding: 36px 40px; align-items: flex-start; }
  .signup-box .signup-copy { flex: 1; }
  .signup-box .signup-form { width: 340px; flex-shrink: 0; }
}

.signup-copy .h { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.signup-copy p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }

.signup-form { display: flex; flex-direction: column; gap: 12px; }

.signup-form input[type="email"] {
  width: 100%;
  background: #171c22;
  border: 1px solid #2a313a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

.signup-form .check-row { font-size: 13px; }
.signup-form .check-row.tiny { font-size: 12px; color: var(--text-muted); }
.signup-form .btn { margin-top: 4px; padding: 12px 20px; font-size: 14px; }

/* ---------- Info box (Discord access) ---------- */

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
}

.info-box .title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.info-box .body { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid #1b2027;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

@media (min-width: 560px) {
  .footer { flex-direction: row; justify-content: center; gap: 8px; padding: 28px 64px; }
}

.footer a { font-size: 13px; }
