/* Experienza Store — variables y componentes compartidos.
   Antes cada vista redefinía estos mismos valores en su propio <style>;
   este archivo es la única fuente de verdad para colores/espaciados base. */

:root {
  --brand: #ee2448;
  --brand-hover: #d11234;
  --brand-light: #fff0f2;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --success: #10b981;
  --radius: 18px;
  --shadow-sm: 0 4px 10px -2px rgba(238, 36, 72, 0.02);
  --shadow-premium: 0 20px 40px -12px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.03);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: none; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
  transition: var(--transition); cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px -4px rgba(238, 36, 72, 0.3);
}
.btn:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 8px 24px -4px rgba(238, 36, 72, 0.4); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-dark { background: #1e293b; box-shadow: none; }
.btn-dark:hover { background: #0f172a; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); transform: none; }
.btn-block { width: 100%; }

/* --- Tarjeta de autenticación (login, registro, recuperar contraseña) --- */
.auth-wrapper {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
  background-color: #fcfdfe;
  background-image:
    linear-gradient(180deg, rgba(252, 253, 254, 0.72) 0%, rgba(252, 253, 254, 0.82) 100%),
    url('/images/login-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.auth-card { background: #fff; width: 100%; max-width: 440px; padding: 40px; border-radius: 24px; box-shadow: var(--shadow-premium); border: 1px solid rgba(226, 232, 240, 0.8); }
.auth-card-wide { max-width: 520px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .icon { font-size: 48px; }
.auth-header h1 { color: var(--ink); font-size: 24px; font-weight: 900; margin: 16px 0 8px; letter-spacing: -0.02em; }
.auth-header p { color: var(--muted); font-size: 14px; margin: 0; }

.auth-form { display: grid; gap: 20px; }
.auth-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-form-grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }

.field { display: grid; gap: 8px; }
.field label { color: #334155; font-size: 12px; font-weight: 700; }
.field .error { color: var(--brand); font-size: 12px; font-weight: 600; }

.input {
  height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; outline: none; transition: var(--transition); width: 100%; box-sizing: border-box;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(238, 36, 72, 0.08); }

.auth-alert { border-radius: 12px; padding: 14px 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.auth-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.auth-remember { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.auth-remember label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #475569; font-size: 13px; font-weight: 500; }
.auth-remember input[type=checkbox] { accent-color: var(--brand); }
.auth-link { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; }
.auth-footer { text-align: center; margin-top: 16px; }
.auth-link-btn { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* --- Badges de estado (usados en Mis Cotizaciones/Pedidos) --- */
.badge-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-reviewed { background: #dbeafe; color: #1e40af; }
.badge-received { background: #dbeafe; color: #1e40af; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* --- Header / navegación principal --- */
body { margin: 0; background: #f9fafb; color: var(--ink); font-family: 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.site-header { background: #fff; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03); border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; z-index: 40; }
.site-header-inner { max-width: 80rem; margin: 0 auto; padding: 0 16px; height: 80px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .site-header-inner { padding: 0 24px; } }
@media (min-width: 1024px) { .site-header-inner { padding: 0 32px; } }

.site-logo { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-logo-img { height: 56px; width: auto; object-fit: contain; }
.site-logo-text { color: var(--ink); display: flex; align-items: center; gap: 4px; font-weight: 700; }
.site-logo-icon { width: 20px; height: 20px; color: var(--brand); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.site-logo:hover .site-logo-icon { transform: scale(1.1); }

.site-header-tagline { font-size: 14px; font-weight: 500; color: var(--muted); display: none; }
@media (min-width: 768px) { .site-header-tagline { display: block; } }

.site-header-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; }
.site-header-divider { color: #9ca3af; }
.site-header-username { color: var(--muted); display: none; }
@media (min-width: 640px) { .site-header-username { display: inline; } }
.site-header-link { background: none; border: none; padding: 0; font: inherit; color: #4b5563; cursor: pointer; text-decoration: none; transition: color 0.2s ease; }
.site-header-link:hover { color: var(--brand); }

.site-main { padding-top: 32px; padding-bottom: 32px; }

/* --- Toasts (reemplazan el alert() nativo) --- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 100000; display: grid; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-premium);
  min-width: 240px; max-width: 360px; animation: toast-in .25s ease;
}
.toast-error { background: var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
