:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f3f9;
  --surface-muted: #eef2f7;

  --text: #101218;
  --muted: #667085;
  --muted-strong: #475467;

  --border: #e7eaf3;
  --border-strong: #d8dde8;

  --shadow: 0 10px 30px rgba(16, 18, 24, 0.08);
  --shadow-soft: 0 6px 20px rgba(16, 18, 24, 0.06);

  --brand: #d91f32;
  --brand-dark: #a31424;
  --brand-soft: #fff1f3;

  --platinum: #16181d;
  --platinum-soft: #2a2f39;

  --success-soft: #ecfdf3;
  --warning-soft: #fff7ed;

  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --radius-xs: 12px;

  --container: 1200px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
}

label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
  color: var(--muted);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition:
    transform var(--transition),
    opacity var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-secondary {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-clear {
  min-height: 52px;
  white-space: nowrap;
}

/* Inputs */

.input,
.select,
.textarea,
.file-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.input::placeholder,
.textarea::placeholder {
  color: #98a2b3;
}

.input:focus,
.select:focus,
.textarea:focus,
.file-input:focus {
  border-color: rgba(217, 31, 50, 0.4);
  box-shadow: 0 0 0 4px rgba(217, 31, 50, 0.08);
}

.textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.file-input {
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 52px;
}

/* Estados */

.empty-state {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.empty-state--catalog {
  grid-column: 1 / -1;
  padding: 40px 24px;
}

.empty-state--catalog h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.status-message {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-weight: 600;
  text-align: center;
}

.status-message--hidden {
  display: none;
}

.status-message--success {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.status-message--error {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

/* Honeypot */

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}