:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1d2623;
  --muted: #5b6561;
  --line: #e6dfd4;
  --field-line: #cdc5b8;

  --primary: #1f4d45;
  --primary-hover: #163a34;
  --primary-soft: #e3eeeb;
  --accent: #c2613a;
  --accent-hover: #a5502e;
  --accent-soft: #f7e6dd;

  --danger: #b3261e;
  --danger-soft: #fdecea;
  --success: #1e7a4f;
  --success-soft: #e2f3ea;

  --radius: 16px;
  --shadow: 0 12px 32px rgba(29, 38, 35, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--field-line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

/* Campos de formulario */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-size: 0.9rem;
  font-weight: 600;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.select:focus {
  border-color: var(--primary);
  outline: 3px solid var(--primary-soft);
}

.alert {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
}
