@charset "utf-8";

/* =========================
   PUNTOBENEFICIO DESIGN SYSTEM CORE
   MULTI-TENANT READY (theme.php driven)
========================= */

/* =========================
   DESIGN TOKENS (UI LAYER)
========================= */

:root {

  /* ðŸŽ¨ BRAND (desde theme.php) */
  --fz-primary: var(--color-primario);
  --fz-secondary: var(--color-secundario);
  --fz-text: var(--color-texto);

  /* ðŸ”¥ VARIANTES AUTOMÃ�TICAS */
  --fz-primary-dark: color-mix(in srgb, var(--fz-primary) 80%, black);
  --fz-primary-light: color-mix(in srgb, var(--fz-primary) 85%, white);
  --fz-secondary-dark: color-mix(in srgb, var(--fz-secondary) 80%, black);

  /* ðŸ§± UI SYSTEM */
  --fz-bg: #f6f7fb;
  --fz-surface: #ffffff;
  --fz-border: color-mix(in srgb, var(--fz-secondary) 20%, #ddd);
  --fz-text-muted: color-mix(in srgb, var(--fz-text) 60%, #888);

  /* ðŸ”¤ TYPOGRAPHY */
  --fz-font-title: 'Montserrat', sans-serif;
  --fz-font-body: 'Inter', 'Segoe UI', sans-serif;

  /* ðŸ“� SYSTEM */
  --fz-radius: 14px;
  --fz-radius-sm: 8px;

  --fz-shadow: 0 6px 18px rgba(0,0,0,0.06);
  --fz-shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   BASE
========================= */

body {
  font-family: var(--fz-font-body);
  background: var(--fz-bg);
  color: var(--fz-text);
  margin: 0;
}

/* =========================
   Links
========================= */

a {
	color: var(--fz-text);
    transition: all 0.2s ease;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
	color: var(--fz-primary);
}

a.active {
    text-decoration: none;
    opacity: 0.8;
	color: var(--fz-primary);
	cursor:default;
}


/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4, h5, h6,
.fz-title {
  font-family: var(--fz-font-title);
  font-weight: 600;
  color: var(--fz-primary);
  margin: 0;
}

/* =========================
   LAYOUT
========================= */

.fz-container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  max-width: 1100px;
}

/* =========================
   HEADER
========================= */

.fz-header {
  width: 100%;
  background: var(--fz-surface);
  border-bottom: 1px solid var(--fz-border);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 18px;

  position: sticky;
  top: 0;
  z-index: 100;

  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* =========================
   BUTTON SYSTEM (BOOTSTRAP OVERRIDE CONTROLLED)
========================= */

.btn {
  transition: all 0.2s ease;
}

/* PRIMARY (MAIN ACTION) */
.btn.btn-primary {
  background-color: var(--fz-primary) !important;
  border-color: var(--fz-primary) !important;
  color: #fff !important;
}

.btn.btn-primary:hover {
  background-color: var(--fz-primary-dark) !important;
  border-color: var(--fz-primary-dark) !important;
  transform: translateY(-1px);
}

.btn.btn-primary:active {
  transform: scale(0.98);
}

.btn.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--fz-primary) 25%, transparent);
}

/* SUCCESS (ACTION / POSITIVE FLOW) */
.btn.btn-success {
  background-color: var(--fz-secondary) !important;
  border-color: var(--fz-secondary) !important;
  color: #fff;
}

.btn.btn-success:hover {
  background-color: var(--fz-secondary-dark);
  border-color: var(--fz-secondary-dark);
}

/* WARNING */
.btn.btn-warning {
  background-color: #FFC200;
  border-color: #FFC200;
  color: #000;
  font-weight: 600;
}

/* =========================
   CARDS
========================= */

.card {
  border: none;
  border-radius: var(--fz-radius);
  box-shadow: var(--fz-shadow);
  transition: 0.2s ease;
}

.card:hover {
  box-shadow: var(--fz-shadow-hover);
  transform: translateY(-2px);
}

/* =========================
   FORMS
========================= */

.form-control {
  border-radius: var(--fz-radius-sm);
  border: 1px solid var(--fz-border);
}

.form-control:focus {
  border-color: var(--fz-primary);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--fz-primary) 15%, transparent);
  outline: none;
}

/* =========================
   UTILITIES
========================= */

.fz-text-muted {
  color: var(--fz-text-muted);
}

.fz-bg-white {
  background: var(--fz-surface);
}

.fz-rounded {
  border-radius: var(--fz-radius);
}

.fz-shadow {
  box-shadow: var(--fz-shadow);
}

/* =========================
   LOGIN (MINIMAL SYSTEM)
========================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fz-bg);
}

.login-container {
  text-align: center;
  width: 100%;
}

.login-logo {
  margin-bottom: 25px;
}

.login-logo img {
  width: 280px;
}

.login-box {
  width: 90%;
  max-width: 400px;
  padding: 35px 25px;
  margin: 0 auto;
}

.login-title {
  color: var(--fz-primary);
}

.login-footer {
  margin-top: 15px;
  font-size: 13px;
  color: var(--fz-text-muted);
}

/* =========================
   WALLET HEADER COMPONENTS
========================= */

.wallet-header {
  /* Toma el color primario del tenant activo */
  background-color: var(--fz-primary);
  /* 40px top (status bar vibe), 20px lados, 90px bottom (para solapar la card) */
  padding: 40px 20px 40px 20px; 
  color: #ffffff;
}

.wallet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.wallet-greeting {
  font-family: var(--fz-font-body);
}

.wallet-greeting span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.wallet-greeting strong {
  font-size: 1.1rem;
  font-family: var(--fz-font-title);
}

.wallet-actions a {
  color: #ffffff;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.wallet-actions a:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

/* =========================
   ANIMACIONES (Micro-interacciones)
========================= */
.fz-fade-up {
    animation: fz-fade-up 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fz-fade-up {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   ALERTAS SAAS (Feedback Visual)
========================= */
.fz-alert {
    border-radius: var(--fz-radius-sm);
    box-shadow: var(--fz-shadow);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

/* Éxito: Absorbe el color secundario de tu theme.php */
.fz-alert-success {
    background: var(--fz-surface);
    color: var(--fz-text);
    border-left: 4px solid var(--fz-secondary);
}

/* Icono de éxito con fondo tenue */
.fz-alert-success .icon-box {
    background: color-mix(in srgb, var(--fz-secondary) 15%, transparent);
    color: var(--fz-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error: Color universal (no depende del tenant) */
.fz-alert-error {
    background: var(--fz-surface);
    color: var(--fz-text);
    border-left: 4px solid #dc3545;
}

.fz-alert-error .icon-box {
    background: rgba(220,53,69,0.12);
    color: #dc3545;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estenedor que ocupa el espacio de 2 tarjetas en Grid */
.instruction-card {
    grid-column: span 2; /* Ocupa 2 columnas en tu grid de productos */
    min-height: 180px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--fz-primary) 0%, var(--fz-secondary) 100%);
    position: relative;
    overflow: hidden;
    border: none;
}

.instruction-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Badge Superior */
.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Caja del número de teléfono */
.mini-icon-box {
    width: 32px;
    height: 32px;
    background: #fff;
    color: var(--fz-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Icono decorativo gigante de fondo */
.icon-background {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(-15deg) translate(20px, 20px);
    position: absolute;
    bottom: -10px;
    right: -10px;
}

/* Ajuste responsivo para móvil */
@media (max-width: 768px) {
    .instruction-card {
        grid-column: span 1; /* En móvil ocupa el ancho normal de una tarjeta */
        min-height: 200px;
    }
}