/* ServiSalo — base compartida */
:root {
  --turquoise: #1db9b3;
  --turquoise-dark: #148a86;
  --black: #0d0d0d;
  --gray-deep: #1a1a1a;
  --gray-mid: #2e2e2e;
  --gray-bottom: #454545;
  --surface: #161616;
  --surface-elevated: #1c1c1c;
  --gold: #d4af37;
  --gold-muted: #b8962e;
  --text: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --border: rgba(29, 185, 179, 0.35);
  --radius: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --content-max: 420px;
  --app-max: 480px;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

/* Degradado negro → gris (home, login, registro) */
.page-gradient {
  background: linear-gradient(180deg, var(--black) 0%, var(--gray-deep) 45%, var(--gray-mid) 78%, var(--gray-bottom) 100%);
  background-attachment: fixed;
}

/* Catálogo: fondo en catalog.css (pantalla completa) */

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-servi {
  color: var(--turquoise);
}

.brand-salo {
  color: var(--gold);
}

.brand--hero {
  font-size: clamp(2.5rem, 10vw, 7rem);
}

.brand--auth {
  font-size: 1.75rem;
  text-align: center;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn--uppercase {
  text-transform: uppercase;
}

.btn--primary {
  background: var(--turquoise);
  color: var(--black);
  border-color: var(--turquoise);
}

.btn--primary:hover {
  background: #25cfc8;
  border-color: #25cfc8;
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn:active {
  transform: scale(0.98);
}

/* ── Campos de formulario (compartido: auth + perfil) ─────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--turquoise);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(29, 185, 179, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  -webkit-appearance: none;
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.field__input:hover {
  border-color: rgba(29, 185, 179, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.field__input:focus {
  outline: none;
  border-color: var(--turquoise);
  background: rgba(29, 185, 179, 0.06);
  box-shadow: 0 0 0 3px rgba(29, 185, 179, 0.15);
}

.field__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%231db9b3' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field__select option {
  background: #1a1a1a;
  color: #f5f5f5;
}

.field-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.field--grow {
  flex: 1;
}

.field--dv {
  flex: 0 0 72px;
}

.field--dv .field__input {
  text-align: center;
}

/* ── Mapa (compartido: registro + perfil) ─────────────────────────────────── */
.map-container {
  width: 100%;
  height: 270px;
  border-radius: 10px;
  border: 1px solid rgba(29, 185, 179, 0.3);
  overflow: hidden;
  background: #1a1a1a;
}

.map-hint {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.map-coords {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.map-locate-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.map-locate-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Desktop: centrar contenido de páginas auth/home (no aplica al catálogo) */
@media (min-width: 600px) {
  :root {
    --content-max: 440px;
  }
}

@media (min-width: 900px) {
  :root {
    --content-max: 460px;
  }
}
