@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fraunces:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --cream:    #fdf6ee;
  --sand:     #f0e4d0;
  --clay:     #d4956a;
  --clay-d:   #b8734a;
  --sage:     #7aab8a;
  --sage-d:   #5a8a6a;
  --coral:    #e8725a;
  --ink:      #2c2016;
  --ink-soft: #6b5744;
  --white:    #ffffff;
  --radius:   16px;
  --shadow:   0 4px 24px rgba(44,32,22,0.10);
  --shadow-lg:0 8px 40px rgba(44,32,22,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* ─── CARDS ─────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

/* ─── INPUTS ─────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.input-group label {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sand);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clay);
  background: var(--white);
}
textarea { resize: vertical; min-height: 80px; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary  { background: var(--clay);  color: var(--white); }
.btn-primary:hover { background: var(--clay-d); }
.btn-success  { background: var(--sage);  color: var(--white); }
.btn-success:hover { background: var(--sage-d); }
.btn-danger   { background: var(--coral); color: var(--white); }
.btn-ghost    { background: var(--sand);  color: var(--ink); }
.btn-whatsapp { background: #25D366;      color: var(--white); }
.btn-full { width: 100%; }

/* ─── ALERTS ─────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0;
  display: none;
}
.alert.show  { display: block; }
.alert-ok    { background: #e8f5e8; color: #2e7d32; }
.alert-err   { background: #fdecea; color: #c62828; }
.alert-info  { background: #e3f2fd; color: #1565c0; }

/* ─── NAV ────────────────────────────────────── */
.nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(44,32,22,0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
}
.nav-logo span { color: var(--sage); }

/* ─── BADGE ──────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}
.badge-ok   { background: #e8f5e8; color: #2e7d32; }
.badge-warn { background: #fff3e0; color: #e65100; }

/* ─── SPINNER ────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 4px solid var(--sand);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── PAGE WRAPPER ───────────────────────────── */
.page { max-width: 520px; margin: 0 auto; padding: 32px 20px; }
.page-wide { max-width: 960px; margin: 0 auto; padding: 32px 20px; }
