/**
 * ========================================================================================
 * SAU YUL TECH - SISTEMA DE DISEÑO VISUAL & PALETA OFICIAL AGTECH 2026
 * "El latido digital de tu tierra."
 *
 * PALETA OFICIAL RIGUROSA:
 * 🖤 Negro:         #000000 (RGB: 0, 0, 0)       -> Estructura, contraste, footer, tecnología
 * 🤎 Café claro:    #907151 (RGB: 144, 113, 81)  -> Tierra, madera, agricultura, bordes cálidos
 * 🏺 Cerámica:      #CEBDA3 (RGB: 206, 189, 163) -> Fondos de apoyo, superficies, tarjetas
 * 🟡 Dorado:        #C89844 (RGB: 200, 152, 68)  -> Acentos elegantes, indicadores, estadísticas
 * 🟢 Verde:         #1FA971 (RGB: 31, 169, 113)  -> Identidad principal, tecnología, naturaleza, botones
 * ========================================================================================
 */

:root {
  /* ========================================================================================
   * 🎨 IDENTIDAD CROMÁTICA EXCLUSIVA SAU YUL TECH:
   * #000000 -> NEGRO (Estructura principal, fondos profundos, sidebar, modales)
   * #907151 -> CAFÉ CLARO (Bordes, elementos secundarios, detalles, hovers)
   * #CEBDA3 -> CERÁMICA (Superficies, cards, textos secundarios cálidos, áreas de contenido)
   * #C89844 -> DORADO (Acentos premium exclusivos, botones destacados, indicadores clave)
   * #1FA971 -> VERDE (Estados positivos, confirmaciones, saldo positivo, badges activos)
   * ======================================================================================== */
  --color-black: #000000;
  --color-brown: #907151;
  --color-ceramic: #CEBDA3;
  --color-gold: #C89844;
  --color-green: #1FA971;

  /* Aliases canónicos de colores */
  --gold: #C89844;
  --green: #1FA971;
  --brown: #907151;
  --ceramic: #CEBDA3;

  /* Variables del Sistema */
  --negro: #000000;
  --negro-superficie: #080605;
  --negro-card: #0f0c09;
  --negro-card-hover: #191410;
  --negro-borde: rgba(144, 113, 81, 0.35);

  --cafe-claro: #907151;
  --cafe-hover: #785c41;
  --cafe-borde: rgba(144, 113, 81, 0.45);
  --cafe-suave: #bda68e;

  --ceramica: #CEBDA3;
  --ceramica-ecomercado: #CEBDA3;
  --ceramica-suave: #FAF4EB;
  --ceramica-bg: rgba(206, 189, 163, 0.08);
  --ceramica-muted: #D2C4B2;
  --ceramica-dark: #A8957E;

  --dorado: #C89844;
  --dorado-hover: #deb05c;
  --dorado-light: rgba(200, 152, 68, 0.16);
  --dorado-glow: 0 0 20px rgba(200, 152, 68, 0.35);

  --verde: #1FA971;
  --verde-vivo: #1FA971;
  --verde-hover: #26c283;
  --verde-light-bg: rgba(31, 169, 113, 0.15);
  --verde-glow: 0 0 20px rgba(31, 169, 113, 0.4);
  --verde-glass: rgba(31, 169, 113, 0.18);

  --blanco: #FFFFFF;
  --blanco-calido: #FAF8F5;

  /* Superficies de Fondo Dinámicas */
  --bg-body: #000000;
  --bg-card: #0d0a08;
  --bg-card-elevated: #16120e;
  --bg-muted: #14100c;
  --bg-input: #080605;

  --border-subtle: rgba(144, 113, 81, 0.25);
  --border-strong: rgba(144, 113, 81, 0.55);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.9);

  --text-main: #FFFFFF;
  --text-secondary: #EDE4D8;
  --text-muted: #D2C4B2;
  --text-inverse: #000000;

  --color-danger: #e53935;
  --bg-danger: rgba(229, 57, 53, 0.15);
  --color-warn: #C89844;
  --bg-warn: rgba(200, 152, 68, 0.15);
  --color-info: #CEBDA3;
  --bg-info: rgba(206, 189, 163, 0.15);

  /* Texto de títulos y párrafos con contraste garantizado en fondos oscuros */
  --brown-text: #EDE4D8;
  --brown-title: #FFFFFF;

  /* Escala de Bordes */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global & Control de Desbordamiento */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}

a {
  color: var(--verde);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--dorado);
}

/* ========================================================================================
 * 📜 CARTAS OFICIALES SAU YOUL-TECH & TRASPASOS DE GANADO
 * ======================================================================================== */
.carta-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.carta-sheet-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  background: #FFFFFF;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--brown);
}

.carta-canvas-render {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1240 / 1754;
  object-fit: contain;
  background: #FFFFFF;
}

.carta-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 14px 0 6px;
}

.carta-template-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}
.carta-template-card strong {
  color: #FFFFFF !important;
}
.carta-template-card small {
  color: #EDE4D8 !important;
}
.carta-template-card:hover, .carta-template-card.active {
  border-color: var(--gold);
  background: var(--verde-light-bg);
  transform: translateY(-2px);
}

/* Firebase Realtime & Firestore Cloud Badges */
.firebase-cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 44, 25, 0.85);
  border: 1px solid var(--verde);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.firebase-cloud-badge.connected .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDotAnim 1.8s infinite;
}
@keyframes pulseDotAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Impresión Formal de Cartas Oficiales */
@media print {
  body * {
    visibility: hidden !important;
  }
  #cartaPrintRoot, #cartaPrintRoot * {
    visibility: visible !important;
  }
  #cartaPrintRoot {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF !important;
    z-index: 99999999 !important;
  }
  #cartaPrintRoot img, #cartaPrintRoot canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    object-fit: contain !important;
  }
}

/* Toast Notifications */
.toast-area {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--negro-card);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
  border-left: 5px solid var(--verde);
  border: 1px solid var(--cafe-borde);
  border-left-width: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 460px;
  opacity: 0;
  transform: translateY(-15px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.success { border-left-color: var(--verde); }
.toast.warn { border-left-color: var(--dorado); }
.toast.error { border-left-color: var(--color-danger); }
.toast.info { border-left-color: var(--cafe-claro); }

.toast i { font-size: 1.25rem; }
.toast.success i { color: var(--verde); }
.toast.warn i { color: var(--dorado); }
.toast.error i { color: var(--color-danger); }
.toast.info i { color: var(--cafe-claro); }

/* ========================================================================================
 * 🌐 2. ESTRUCTURA DEL SITIO PÚBLICO & FONDOS DINÁMICOS (CAFÉ + VERDE + CERÁMICA)
 * ======================================================================================== */
.public-site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: 
    radial-gradient(circle at 12% 18%, rgba(144, 113, 81, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 88% 30%, rgba(31, 169, 113, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(200, 152, 68, 0.09) 0%, transparent 50%),
    linear-gradient(180deg, #090604 0%, #150f0a 35%, #0c1c13 70%, #050b07 100%);
  background-attachment: fixed;
  position: relative;
}

#publicContainerWrap.hidden-shell,
#publicContainerWrap[style*="display: none"],
#publicContainerWrap[style*="display:none"] {
  display: none !important;
}

#appPrivateShell.hidden-shell,
#appPrivateShell[style*="display: none"],
#appPrivateShell[style*="display:none"] {
  display: none !important;
}

/* Header Navbar Superior: Fusión Café Tostado + Verde Bosque con Glassmorphism */
.main-app-navbar {
  background: linear-gradient(135deg, rgba(14, 10, 7, 0.96) 0%, rgba(28, 20, 14, 0.94) 45%, rgba(13, 33, 22, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--cafe-borde);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
  padding: 12px 28px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 900;
  color: #FFFFFF;
  width: 100%;
}

.navbar-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

body.user-authenticated .main-app-navbar,
body.user-authenticated .enterprise-app-footer {
  display: none !important;
}

/* ========================================================================================
 * ✨ 2.1 ANIMACIONES PROGRESIVAS DEL HERO (6 FASES) & ANIMACIÓN TEMÁTICA
 * ======================================================================================== */
/* Fase 1: Fondo degradado panorámico con fotografía real de hacienda */
.hero-progressive-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 7, 5, 0.92) 0%, rgba(28, 20, 14, 0.86) 45%, rgba(13, 36, 24, 0.88) 85%, rgba(144, 113, 81, 0.35) 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ no-repeat center center;
  background-size: cover;
  border-bottom: 2px solid var(--cafe-borde);
  padding: 95px 24px 85px;
  text-align: center;
}

/* Fase 2: Siluetas y overlays */
.hero-nature-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(31, 169, 113, 0.16) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  animation: heroPhaseReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Fase 3: Circuitos, datos y partículas tecnológicas */
.hero-tech-particles-layer {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(31, 169, 113, 0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(200, 152, 68, 0.6), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 280px 140px, rgba(31, 169, 113, 0.6), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 220px, rgba(200, 152, 68, 0.7), rgba(0,0,0,0));
  background-size: 550px 350px;
  opacity: 0;
  animation: heroPhaseReveal 1.4s ease 0.5s forwards, telemetryFloat 18s linear infinite;
  pointer-events: none;
}

@keyframes telemetryFloat {
  0% { background-position: 0 0; }
  100% { background-position: 550px 350px; }
}

/* Fase 4: Logotipo central con resplandor perfectamente escalable y centrado */
.hero-logo-box-animated {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
  opacity: 0;
  animation: heroLogoPhase 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-logo-box-animated img {
  max-width: min(85vw, 320px);
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

@keyframes heroLogoPhase {
  0% { opacity: 0; transform: scale(0.85) translateY(18px); }
  60% { opacity: 1; transform: scale(1.04) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Fase 5: Título Principal */
.hero-title-animated {
  opacity: 0;
  animation: heroPhaseReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
  max-width: 100%;
  word-break: break-word;
}

/* Fase 6: Subtítulo, Badges y Botones */
.hero-subcontent-animated {
  opacity: 0;
  animation: heroPhaseReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards;
  max-width: 100%;
}

@keyframes heroPhaseReveal {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Banner Interactivo de Filosofía Sau Yul Tech (Naturaleza -> Tecnología -> Datos -> Inteligencia -> Producción) */
.thematic-story-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  max-width: 100%;
  margin: 18px auto 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.thematic-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ceramica-suave);
  transition: var(--transition);
}
.thematic-step-node i {
  color: var(--verde);
}
.thematic-step-node:hover {
  color: var(--dorado);
  transform: translateY(-2px);
}
.thematic-step-node:hover i {
  color: var(--dorado);
}

.thematic-arrow-sep {
  color: var(--dorado);
  font-size: 0.8rem;
  opacity: 0.7;
}

.app-brand-logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  max-width: 100%;
}
.app-brand-logo:hover {
  transform: scale(1.03);
}

.app-brand-logo img {
  height: clamp(38px, 6vw, 64px);
  max-width: min(65vw, 220px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(31, 169, 113, 0.35));
  display: block;
}

.nav-app-scroll-wrap {
  display: flex;
  align-items: center;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  max-width: 100%;
  flex: 1;
  justify-content: center;
}

.nav-app-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.nav-app-links-list {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
}

.nav-app-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(206, 189, 163, 0.3);
  color: var(--ceramica-suave);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  touch-action: manipulation;
}

.nav-app-btn:hover {
  background: rgba(31, 169, 113, 0.3);
  border-color: var(--verde);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-app-btn.active {
  background: var(--verde) !important;
  border-color: var(--verde) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 16px rgba(31, 169, 113, 0.6) !important;
}
.nav-app-btn.active i {
  color: #000000 !important;
}

.nav-app-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ========================================================================================
 * 🔘 3. BOTONES Y BADGES GENERALES
 * ======================================================================================== */
.btn-gold-action {
  background: var(--dorado);
  color: #000000;
  border: 1.5px solid #deb460;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.94rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 18px rgba(200, 152, 68, 0.4);
}
.btn-gold-action:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 152, 68, 0.5);
}

.primary-action {
  background: var(--verde);
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.94rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(31, 169, 113, 0.45);
}
.primary-action:hover {
  background: var(--verde-hover);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(31, 169, 113, 0.6);
}
.primary-action.wide { width: 100%; }

.secondary-btn {
  background: rgba(144, 113, 81, 0.25);
  border: 1.5px solid var(--cafe-claro);
  color: var(--ceramica-suave);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.secondary-btn:hover {
  background: var(--cafe-claro);
  color: #FFFFFF;
  border-color: var(--dorado);
  transform: translateY(-2px);
}

.ghost-action {
  background: transparent;
  border: 1.5px solid var(--verde);
  color: var(--verde);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ghost-action:hover {
  background: var(--verde);
  color: #000000;
  box-shadow: 0 0 16px rgba(31, 169, 113, 0.5);
  transform: translateY(-2px);
}

.danger-btn {
  background: var(--bg-danger);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.danger-btn:hover {
  background: var(--color-danger);
  color: #FFFFFF;
}

.opportunity-action {
  background: var(--verde);
  color: #000000;
  border: 1.5px solid var(--dorado);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.opportunity-action:hover {
  background: var(--dorado);
  color: #000000;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-status.active {
  background: rgba(31, 169, 113, 0.18);
  color: var(--verde);
  border: 1px solid var(--verde);
}
.badge-status.warn {
  background: var(--dorado-light);
  color: var(--dorado);
  border: 1px solid var(--dorado);
}
.badge-status.danger {
  background: var(--bg-danger);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}
.badge-status.info {
  background: var(--bg-info);
  color: var(--color-info);
  border: 1px solid var(--color-info);
}

/* Vistas */
.app-view-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.app-view {
  display: none;
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========================================================================================
 * 🔐 4. PANTALLA DE ACCESO / LOGIN (PALETA OFICIAL)
 * ======================================================================================== */
.auth-full-screen-wrap {
  flex: 1 0 auto;
  min-height: calc(100vh - 94px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(31, 169, 113, 0.28) 50%, rgba(0, 0, 0, 0.95) 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  width: 100%;
}

.auth-glassmorphic-card {
  background: rgba(10, 20, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-lg);
  max-width: 530px;
  width: 100%;
  padding: 40px 36px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(31, 169, 113, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-logo-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-logo-center-wrap img {
  height: 90px;
  max-width: 290px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(31, 169, 113, 0.3));
}

.login-profile-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.login-profile-selector-grid .profile-select-btn {
  background: linear-gradient(180deg, #1A1F1C 0%, #121614 100%);
  border: 1.5px solid rgba(200, 152, 68, 0.35);
  border-radius: 10px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #F3F4F6;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.login-profile-selector-grid .profile-select-btn i {
  font-size: 1.25rem;
  color: #C89844;
  transition: transform 0.2s ease, color 0.2s ease;
}

.login-profile-selector-grid .profile-select-btn:hover {
  background: linear-gradient(180deg, #222B25 0%, #171E19 100%);
  border-color: rgba(31, 169, 113, 0.6);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.login-profile-selector-grid .profile-select-btn:hover i {
  color: #34D399;
  transform: scale(1.1);
}

.login-profile-selector-grid .profile-select-btn.active {
  background: linear-gradient(135deg, #1FA971 0%, #13754E 100%);
  border-color: #34D399;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(31, 169, 113, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.login-profile-selector-grid .profile-select-btn.active i {
  color: #FFFFFF;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.profile-select-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(206, 189, 163, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ceramica);
  cursor: pointer;
  transition: var(--transition);
}
.profile-select-btn.active {
  background: rgba(31, 169, 113, 0.22);
  border-color: var(--verde);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(31, 169, 113, 0.35);
}

.auth-tabs-header {
  display: flex;
  border-bottom: 2px solid rgba(206, 189, 163, 0.2);
}
.auth-tab-pill {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ceramica-suave);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-tab-pill.active {
  color: var(--verde);
  border-bottom-color: var(--verde);
}
.auth-sub-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.auth-sub-panel.active { display: flex; }

/* Formularios */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-secondary);
}
.two-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--dorado) !important;
  box-shadow: 0 0 0 3px rgba(200, 152, 68, 0.2) !important;
}

/* Placeholder de alto contraste en toda la aplicación */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #A89885 !important;
  opacity: 0.9 !important;
}

/* ========================================================================================
 * 🦶 5. PIE DE PÁGINA: LENGUAJE VISUAL CONTINUO (PALETA OFICIAL NEGRO & CAFÉ)
 * ======================================================================================== */
.enterprise-app-footer {
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border-top: 1.5px solid var(--cafe-borde);
  padding: 46px 32px 22px;
  width: 100%;
  margin-top: auto;
  box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

.enterprise-app-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--dorado) 25%, var(--cafe-claro) 50%, var(--dorado) 75%, transparent 100%);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.1fr;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand-logo {
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(31, 169, 113, 0.3));
}

.footer-slogan {
  color: var(--dorado);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.footer-desc {
  color: var(--ceramica-suave);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-socials-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(206, 189, 163, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-icon-btn:hover {
  background: var(--dorado);
  color: #000000;
  transform: translateY(-2px);
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--dorado);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-item a,
.footer-link-item button {
  background: none;
  border: none;
  padding: 0;
  color: var(--ceramica-suave);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-link-item a:hover,
.footer-link-item button:hover {
  color: var(--dorado);
  transform: translateX(3px);
}

.footer-payment-methods-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1300px;
  margin: 0 auto 14px;
}

.payment-badges-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ceramica-suave);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1300px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright-link {
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0;
}
.footer-copyright-link:hover {
  color: var(--dorado);
}

.footer-legal-links-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 2px 4px;
}
.footer-legal-btn:hover {
  color: var(--dorado);
  text-decoration: underline;
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

/* ========================================================================================
 * 🌲 6. APLICACIÓN PRIVADA (SIDEBAR COMPACTO 250px & APP SHELL)
 * ======================================================================================== */
.app-private-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(144, 113, 81, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(31, 169, 113, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #070504 0%, #130e0a 40%, #0a1810 80%, #050c08 100%);
  position: relative;
}

.mobile-sidebar-toggle-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10001;
  background: var(--bosque-profundo);
  color: #FFFFFF;
  border: 1.5px solid var(--dorado);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.mobile-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
}

/* Sidebar Izquierda Fija / Estática 260px (Fusión Café Tostado + Verde Bosque) */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #0d0906 0%, #17110c 45%, #0d2015 90%, #06110b 100%);
  color: #FFFFFF;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1.5px solid var(--cafe-borde);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
  transition: width 0.26s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.26s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-sidebar.collapsed {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  padding: 18px 8px;
}

.app-sidebar.collapsed .sidebar-text,
.app-sidebar.collapsed .sidebar-user-pill,
.app-sidebar.collapsed .sidebar-menu-title,
.app-sidebar.collapsed .sidebar-badge {
  display: none !important;
}

.app-sidebar.collapsed .sidebar-logo-box img {
  max-width: 48px;
  height: 48px;
  object-fit: contain;
}

.sidebar-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(144, 113, 81, 0.25);
  position: relative;
}

/* Logotipo Grande y Protagonista en el Menú Lateral */
.sidebar-logo-box img {
  max-width: 225px;
  width: 95%;
  height: clamp(62px, 8vw, 78px);
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(200, 152, 68, 0.3));
  cursor: pointer;
  transition: var(--transition);
  margin-top: 2px;
}
.sidebar-logo-box img:hover {
  transform: scale(1.04);
}

.sidebar-collapse-toggle {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--cafe-borde);
  color: var(--ceramica-suave);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.sidebar-collapse-toggle:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: #000000;
}
@media (max-width: 992px) {
  .sidebar-collapse-toggle {
    display: none !important;
  }
}

.sidebar-mobile-close-btn {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(220, 38, 38, 0.25);
  border: 1.5px solid #EF4444;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 20;
}
.sidebar-mobile-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: scale(1.08);
}
@media (max-width: 992px) {
  .sidebar-mobile-close-btn {
    display: flex !important;
  }
}

.sidebar-user-pill {
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid var(--dorado);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--dorado);
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-menu-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ceramica);
  letter-spacing: 0.06em;
  padding: 10px 10px 4px;
  opacity: 0.85;
}

.sidebar-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-btn {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.sidebar-nav-btn i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--ceramica);
  flex-shrink: 0;
}

.sidebar-nav-btn:hover {
  background: rgba(144, 113, 81, 0.22);
  color: #FFFFFF;
  transform: translateX(3px);
}
.sidebar-nav-btn:hover i {
  color: var(--dorado);
}

.sidebar-nav-btn.active {
  background: linear-gradient(135deg, var(--dorado) 0%, #deb05c 100%);
  color: #000000 !important;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(200, 152, 68, 0.45);
}
.sidebar-nav-btn.active i {
  color: #000000 !important;
}

.sidebar-logout-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--cafe-borde);
  color: #FFFFFF;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.84rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-logout-btn:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.app-content-area {
  flex: 1;
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
  overflow-y: auto;
  overflow-x: hidden;
  transition: margin-left 0.26s cubic-bezier(0.4, 0, 0.2, 1), width 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar.collapsed + .app-content-area {
  margin-left: 76px;
  width: calc(100% - 76px);
}

/* ========================================================================================
 * 🛍️ 7. TOP HEADER DEL MARKETPLACE (EXPERIENCIA MODERNA & VIBRANTE SAU YUL TECH)
 * ======================================================================================== */
.marketplace-top-header {
  background: linear-gradient(135deg, #0a0705 0%, #1c140d 45%, #0d2216 85%, #06110a 100%);
  border-bottom: 2px solid var(--cafe-borde);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 850;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.marketplace-header-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketplace-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-menu-toggle-btn {
  display: none;
  background: rgba(144, 113, 81, 0.2);
  color: var(--dorado);
  border: 1.5px solid var(--dorado);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.header-menu-toggle-btn:hover {
  background: var(--dorado);
  color: #000000;
}
.header-menu-toggle-btn:active {
  transform: scale(0.95);
}

.header-brand-name {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  display: none;
}

.marketplace-search-bar {
  flex: 1;
  max-width: 680px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.marketplace-search-bar:focus-within {
  border-color: var(--dorado);
  box-shadow: 0 0 16px rgba(200, 152, 68, 0.35);
  background: rgba(14, 11, 8, 0.95);
}

.marketplace-search-category-select {
  background: rgba(144, 113, 81, 0.2);
  color: #FFFFFF;
  border: none;
  border-right: 1.5px solid var(--cafe-borde);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.marketplace-search-category-select option {
  background: #14100c;
  color: #FFFFFF;
}

.marketplace-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  outline: none;
}
.marketplace-search-input::placeholder {
  color: var(--text-muted);
}

.marketplace-search-btn {
  background: var(--dorado);
  border: none;
  color: #000000;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
  transition: var(--transition);
}
.marketplace-search-btn:hover {
  background: #deb05c;
}

.marketplace-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketplace-action-pill-btn {
  background: rgba(0, 0, 0, 0.65);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.marketplace-action-pill-btn:hover {
  border-color: var(--dorado);
  background: rgba(144, 113, 81, 0.25);
}

.deals-action-btn {
  border-color: rgba(200, 152, 68, 0.4);
  background: rgba(200, 152, 68, 0.12);
}
.notifs-action-btn {
  border-color: rgba(144, 113, 81, 0.4);
}
.cart-action-btn {
  background: linear-gradient(135deg, rgba(31,169,113,0.25) 0%, rgba(31,169,113,0.4) 100%);
  border-color: var(--verde);
}
.user-action-btn {
  border-color: rgba(200, 152, 68, 0.4);
}

.action-count-badge {
  background: var(--verde-vivo);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 8px rgba(31, 169, 113, 0.6);
}

.action-count-badge.notifs-badge {
  background: #e53935;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
}
.action-count-badge.cart-badge {
  background: var(--dorado);
  color: #000000;
  box-shadow: 0 0 8px rgba(200, 152, 68, 0.6);
}
.action-count-badge.deals {
  background: #e53935;
}

/* ========================================================================================
 * 🌾 8. BANNERS, PRODUCT CARDS Y CATEGORÍAS
 * ======================================================================================== */
.market-hero-banner {
  background: linear-gradient(135deg, rgba(8, 28, 16, 0.96) 0%, rgba(14, 44, 25, 0.94) 50%, rgba(6, 18, 11, 0.98) 100%), url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?w=1600&auto=format&fit=crop&q=80') no-repeat center center;
  background-size: cover;
  border-radius: var(--radius);
  padding: 38px 32px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid rgba(205, 188, 162, 0.25);
}

.market-hero-highlights {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.market-highlight-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ceramica-suave);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-categories-scroll-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-pill-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ceramica);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
}
.category-pill-btn:hover {
  border-color: var(--dorado);
  color: #FFFFFF;
  background: rgba(144, 113, 81, 0.25);
  transform: translateY(-2px);
}
.category-pill-btn.active {
  background: var(--dorado);
  border-color: var(--dorado);
  color: #000000;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(200, 152, 68, 0.45);
}

.market-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
}

/* Tarjetas de Producto Eco-Mercado - Estilo AgTech Premium 2026 */
.market-product-card {
  background: linear-gradient(180deg, #16120E 0%, #0D0A08 100%);
  border: 1.5px solid rgba(200, 152, 68, 0.35);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(206, 189, 163, 0.08);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.market-product-card:hover {
  transform: translateY(-6px);
  border-color: #34D399;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(31, 169, 113, 0.3);
  background: linear-gradient(180deg, #1C1712 0%, #120E0A 100%);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1.5px solid rgba(200, 152, 68, 0.25);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.product-badge-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.product-badge-flag.deal {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-badge-flag.featured {
  background: linear-gradient(135deg, #F59E0B 0%, #C89844 100%);
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(206, 189, 163, 0.35);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--ceramica-suave);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.product-fav-btn:hover { transform: scale(1.15); color: #ef4444; border-color: #ef4444; }
.product-fav-btn.active { color: #ef4444; background: rgba(239, 68, 68, 0.25); border-color: #ef4444; }

.product-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}

.product-card-body h3 {
  color: #FFFFFF;
  font-weight: 800;
  transition: color 0.2s ease;
  line-height: 1.3;
}
.product-card-body h3:hover {
  color: var(--dorado-hover);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #FFFFFF;
}

.star-gold {
  color: #f59e0b;
}

.product-price-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1.5px solid rgba(200, 152, 68, 0.2);
  padding-top: 12px;
  margin-top: 6px;
}

.product-price-display-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-price-display {
  color: #E5B869;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.product-old-price {
  text-decoration: line-through;
  color: var(--ceramica-muted);
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}

.card-dynamic-total-badge {
  font-size: 0.86rem;
  font-weight: 900;
  color: #34D399;
  background: rgba(31, 169, 113, 0.16);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-stepper-action-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Stepper Interactivo con Soporte Táctil Completo y Teclado */
.qty-stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(200, 152, 68, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px 6px;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.qty-stepper-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(206, 189, 163, 0.35);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  line-height: 1;
}

.qty-stepper-btn:hover {
  background: var(--verde);
  border-color: var(--verde);
  color: #000000;
  transform: scale(1.05);
}

.qty-stepper-input {
  width: 48px;
  background: transparent;
  border: 1px solid transparent;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  outline: none;
  border-radius: 4px;
  padding: 2px;
  -moz-appearance: textfield;
  transition: var(--transition);
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper-input:focus {
  background: rgba(31, 169, 113, 0.22);
  border-color: #34D399;
  box-shadow: 0 0 10px rgba(31, 169, 113, 0.45);
  color: #FFFFFF;
}

/* Caja Desplegable de Sugerencias y Coincidencias en Tiempo Real */
.search-live-suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 18, 14, 0.97);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--verde);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  max-height: 380px;
  overflow-y: auto;
  z-index: 99999;
  display: none;
  flex-direction: column;
  padding: 8px;
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-live-suggestions-box.active {
  display: flex;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(206, 189, 163, 0.1);
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background: rgba(31, 169, 113, 0.22);
}

.search-suggestion-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--cafe-borde);
  flex-shrink: 0;
}

/* ========================================================================================
 * 🚚 9. VISTAS DEL COMPRADOR (CATÁLOGO, SEGUIMIENTO, OFERTAS, CATEGORÍAS)
 * ======================================================================================== */
.catalog-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.catalog-filter-sidebar {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
}

.filter-group-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(206, 189, 163, 0.15);
  padding-bottom: 14px;
}
.filter-group-block:last-child { border-bottom: none; }

.filter-group-title {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dorado);
}

.categories-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.category-card-box {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.category-card-box:hover {
  transform: translateY(-4px);
  border-color: var(--verde);
  box-shadow: 0 8px 24px rgba(31, 169, 113, 0.25);
}

.category-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 1px solid rgba(144, 113, 81, 0.3);
}

.category-card-info {
  padding: 12px;
}
.category-card-info h4 {
  color: #FFFFFF;
}

.order-tracking-card {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tracking-stepper-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 16px 8px;
  margin: 10px 0;
}

.tracking-stepper-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 3px;
  background: rgba(206, 189, 163, 0.25);
  z-index: 1;
  transform: translateY(-50%);
}

.tracking-step-node {
  position: relative;
  z-index: 2;
  background: var(--negro-card);
  border: 2.5px solid rgba(206, 189, 163, 0.4);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ceramica);
  transition: var(--transition);
}

.tracking-step-node.completed {
  background: var(--verde);
  border-color: var(--verde);
  color: #000000;
}

.tracking-step-node.current {
  background: var(--dorado);
  border-color: var(--dorado);
  color: #000000;
  box-shadow: 0 0 0 5px rgba(200, 152, 68, 0.3);
}

/* ========================================================================================
 * 🐄 10. ESTADÍSTICAS, MAPA SATELITAL, LOTES Y TABLAS
 * ======================================================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.admin-stat-card {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-stat-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ceramica);
}
.admin-stat-card strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dorado);
}

.satellite-map-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--cafe-borde);
  box-shadow: var(--shadow-md);
}

.map-control-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  background: rgba(0, 0, 0, 0.9);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  border: 1.5px solid var(--verde);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
thead th {
  background: rgba(0, 0, 0, 0.6);
  color: var(--dorado);
  padding: 12px 14px;
  font-weight: 800;
  border-bottom: 2px solid var(--cafe-borde);
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(206, 189, 163, 0.15);
  color: var(--ceramica-suave);
}
tbody tr:hover {
  background: rgba(31, 169, 113, 0.1);
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card-item {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.lotes-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.lote-card {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.lote-progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 8px;
}

.lote-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--verde), var(--dorado));
  border-radius: var(--radius-pill);
}

.orders-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ========================================================================================
 * 📜 11. MODALES DEL SISTEMA (POPUP OVERLAYS)
 * ======================================================================================== */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.25s ease;
}

.hidden,
.app-modal-overlay.hidden,
.chat-dialog-overlay.hidden {
  display: none !important;
}

.app-modal-box {
  background: var(--negro-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  border: 1.5px solid var(--cafe-borde);
  position: relative;
  animation: modalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: #FFFFFF;
}

.app-modal-box h1,
.app-modal-box h2,
.app-modal-box h3,
.app-modal-box h4 {
  color: #FFFFFF !important;
}

.app-modal-box p,
.app-modal-box small {
  color: #CEBDA3;
}

.app-modal-box label {
  color: #FFFFFF;
}

@keyframes modalPop {
  0% { transform: scale(0.92) translateY(14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.legal-modal-container {
  max-width: 840px !important;
}

.legal-tabs-header {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 2px solid rgba(206, 189, 163, 0.2);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.legal-tab-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(206, 189, 163, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ceramica);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.legal-tab-btn:hover {
  background: rgba(31, 169, 113, 0.2);
  border-color: var(--verde);
  color: #FFFFFF;
}
.legal-tab-btn.active {
  background: var(--verde);
  border-color: var(--verde);
  color: #000000;
  font-weight: 900;
}

.legal-content-scrollbox {
  flex: 1;
  max-height: 55vh;
  overflow-y: auto;
  padding: 10px 4px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ceramica-suave);
}

.legal-content-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.legal-content-panel.active { display: flex; }

.legal-section-block {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border-left: 4px solid var(--dorado);
  border: 1px solid rgba(206, 189, 163, 0.15);
  border-left-width: 4px;
}
.legal-section-block h4 {
  color: #FFFFFF;
  margin-bottom: 6px;
}

/* ========================================================================================
 * 🎓 12. ESTILOS DE PÁGINAS INFORMATIVAS EDUCATIVAS & MODERNAS (PALETA OFICIAL)
 * ======================================================================================== */
.info-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.info-header-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.info-header-center h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.info-header-center p {
  color: var(--ceramica);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ========================================================================================
 * 🌾 ATMÓSFERAS FOTOGRÁFICAS & TARJETAS REALISTAS (FUSIÓN CAFÉ + VERDE + CERÁMICA)
 * ======================================================================================== */
.photo-atmosphere-card {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center center !important;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--cafe-borde);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  transition: var(--transition);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}

.photo-atmosphere-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 4, 0.82) 0%, rgba(14, 10, 7, 0.90) 50%, rgba(5, 18, 12, 0.96) 100%);
  z-index: 1;
  transition: var(--transition);
}

.photo-atmosphere-card > * {
  position: relative;
  z-index: 2;
}

.photo-atmosphere-card:hover {
  transform: translateY(-5px);
  border-color: var(--dorado);
  box-shadow: 0 16px 44px rgba(200, 152, 68, 0.28);
}
.photo-atmosphere-card:hover::before {
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.3) 0%, rgba(20, 14, 10, 0.78) 45%, rgba(13, 33, 22, 0.92) 100%);
}

.showcase-photo-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cafe-borde);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}
.showcase-photo-thumb:hover {
  transform: scale(1.03);
  border-color: var(--verde);
}

.organic-cafe-verde-box {
  background: linear-gradient(145deg, #18120d 0%, #1c1510 45%, #0e2016 100%);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.organic-cafe-verde-box:hover {
  border-color: var(--dorado);
  box-shadow: 0 10px 28px rgba(200, 152, 68, 0.2);
  transform: translateY(-3px);
}

/* Grilla de Audiencia y Usuarios */
.audience-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.audience-card-item {
  background: linear-gradient(145deg, #150f0b 0%, #1a130e 55%, #0e1d14 100%);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid var(--verde);
}
.audience-card-item:hover {
  transform: translateY(-5px);
  border-color: var(--verde);
  box-shadow: 0 10px 28px rgba(31, 169, 113, 0.25);
  background: var(--negro-card-hover);
}

.audience-card-item h3 {
  color: #FFFFFF;
}

.audience-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(31, 169, 113, 0.18);
  border: 1px solid var(--verde);
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Grilla de Problema vs Solución */
.problem-vs-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.problem-card {
  background: linear-gradient(180deg, #160c0c 0%, #0d0707 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card h3 {
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ceramica-suave);
  line-height: 1.5;
}
.problem-list li i {
  color: #ef4444;
  margin-top: 3px;
  flex-shrink: 0;
}

.solution-card {
  background: linear-gradient(180deg, #091a11 0%, #06110a 100%);
  border: 1.5px solid rgba(31, 169, 113, 0.5);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-card h3 {
  color: var(--verde);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ceramica-suave);
  line-height: 1.5;
}
.solution-list li i {
  color: var(--verde);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Tarjetas de Pilares */
.pillar-card-box {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.pillar-card-box:hover {
  transform: translateY(-5px);
  border-color: var(--verde);
  box-shadow: 0 12px 32px rgba(31, 169, 113, 0.3);
}

.pillar-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1.5px solid rgba(144, 113, 81, 0.35);
}

.pillar-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-card-content h3 {
  color: #FFFFFF;
}

/* Diagrama de Flujo Interactivo */
.interactive-flow-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  align-items: center;
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.flow-node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(206, 189, 163, 0.2);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}
@media (hover: hover) {
  .flow-node-item:hover {
    background: rgba(31, 169, 113, 0.2);
    border-color: var(--verde);
    transform: translateY(-3px);
  }
}

.flow-node-icon {
  font-size: 1.4rem;
  color: var(--verde);
}

.flow-node-item strong {
  font-size: 0.88rem;
  color: #FFFFFF;
}

.flow-node-item small {
  font-size: 0.74rem;
  color: var(--ceramica);
}

/* Valores Corporativos */
.value-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.value-card-item {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--dorado);
  background: var(--negro-card-hover);
  box-shadow: 0 8px 24px rgba(200, 152, 68, 0.2);
}

.value-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(200, 152, 68, 0.16);
  border: 1px solid var(--dorado);
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Estadísticas de Nicaragua con Fotografía Real */
.nicaragua-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.nicaragua-stat-card {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center center !important;
  color: #FFFFFF;
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.75);
  transition: var(--transition);
  min-height: 200px;
  justify-content: flex-end;
}

.nicaragua-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.45) 0%, rgba(20, 14, 10, 0.85) 50%, rgba(8, 22, 14, 0.95) 100%);
  z-index: 1;
  transition: var(--transition);
}

.nicaragua-stat-card > * {
  position: relative;
  z-index: 2;
}

.nicaragua-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--dorado);
  box-shadow: 0 16px 44px rgba(200, 152, 68, 0.3);
}

.nicaragua-stat-card:hover::before {
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.3) 0%, rgba(20, 14, 10, 0.78) 45%, rgba(13, 33, 22, 0.9) 100%);
}

.nicaragua-stat-card strong {
  font-size: 2.3rem;
  color: var(--dorado);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.nicaragua-stat-card span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.nicaragua-stat-card small {
  font-size: 0.84rem;
  color: var(--ceramica-suave);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Componentes de Hardware con Fotos Reales */
.hardware-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.hardware-card {
  background: linear-gradient(145deg, #18120d 0%, #1c1510 50%, #0e2016 100%);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.hardware-card:hover {
  transform: translateY(-5px);
  border-color: var(--dorado);
  box-shadow: 0 12px 36px rgba(200, 152, 68, 0.25);
}

.hardware-card h4 {
  color: #FFFFFF;
}

/* Tarjetas de Categorías con Fotos de Cosechas */
.category-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.category-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--cafe-borde);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  background: linear-gradient(145deg, #18120d 0%, #150f0b 60%, #0e1d14 100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.category-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--verde);
  box-shadow: 0 14px 36px rgba(31, 169, 113, 0.25);
}
.category-photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1.5px solid var(--cafe-borde);
  transition: transform 0.4s ease;
}
.category-photo-card:hover img {
  transform: scale(1.05);
}
.category-photo-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hardware-card-badge {
  background: rgba(31, 169, 113, 0.2);
  border: 1px solid var(--verde);
  color: var(--verde);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* Alertas de Ejemplo Veterinarias */
.vet-alerts-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.vet-alert-sample-card {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border-left: 5px solid var(--color-warn);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vet-alert-sample-card.danger { border-left-color: var(--color-danger); }
.vet-alert-sample-card.info { border-left-color: var(--color-info); }
.vet-alert-sample-card.success { border-left-color: var(--verde); }

/* Disclaimer Médico / IA */
.vet-official-disclaimer-box {
  background: rgba(200, 152, 68, 0.12);
  border: 2px solid var(--dorado);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: var(--ceramica-suave);
  box-shadow: 0 8px 30px rgba(200, 152, 68, 0.2);
}

.vet-official-disclaimer-box i {
  font-size: 2rem;
  color: var(--dorado);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Ecosistema Integrado */
.ecosystem-integration-diagram {
  background: linear-gradient(135deg, #120e0b 0%, #000000 100%);
  color: #FFFFFF;
  border: 1.5px solid var(--dorado);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.85);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ecosystem-nodes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: center;
}

.ecosystem-node {
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(144, 113, 81, 0.35);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.ecosystem-node:hover {
  background: rgba(144, 113, 81, 0.25);
  border-color: var(--dorado);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(200, 152, 68, 0.3);
}

.ecosystem-node-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--dorado);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 16px rgba(200, 152, 68, 0.4);
}

/* Tarjeta y Opciones de Métodos de Pago (100% Alto Contraste) */
.payment-methods-card {
  background: linear-gradient(135deg, #0d0a08 0%, #16120e 50%, #000000 100%) !important;
  border: 2px solid var(--dorado) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
}
.payment-option-row {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  border-radius: var(--radius) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1.5px solid rgba(144, 113, 81, 0.35) !important;
  transition: var(--transition) !important;
}
.payment-option-row:hover {
  background: rgba(144, 113, 81, 0.2) !important;
  border-color: var(--dorado) !important;
}
.payment-option-title {
  color: #FFFFFF !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}
.payment-option-desc {
  color: #EADFCB !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  display: block !important;
}

/* ========================================================================================
 * 🌾 12.1 ECO-MERCADO: AMBIENTE CERÁMICA #CDBCA2 & COMPOSICIONES AGROPECUARIAS
 * ======================================================================================== */
.market-ambient-container {
  background: 
    radial-gradient(circle at 15% 25%, rgba(31, 169, 113, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(200, 152, 68, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #091a11 0%, #12281b 40%, #06110a 100%);
  position: relative;
  overflow: hidden;
}

.market-ceramic-badge {
  background: var(--ceramica-ecomercado) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.82rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-green-badge {
  background: var(--verde) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.82rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(31, 169, 113, 0.5) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-gold-badge {
  background: var(--dorado) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.82rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(200, 152, 68, 0.5) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-hero-ceramic-box {
  background: linear-gradient(135deg, rgba(8, 24, 16, 0.96) 0%, rgba(18, 38, 26, 0.94) 50%, rgba(5, 14, 9, 0.98) 100%), url('https://lh3.googleusercontent.com/d/1yOzN_fDi-i8z4kGaxhKMRLstqnkJqilN') /* https://drive.google.com/uc?export=view&id=1yOzN_fDi-i8z4kGaxhKMRLstqnkJqilN */ no-repeat center center;
  background-size: cover;
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 42px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================================================================
 * 🛒 12.2 COMPONENTES DEL ECO-MERCADO INTELIGENTE (CANTIDAD DINÁMICA, ROLES & INVENTARIO)
 * ======================================================================================== */

/* Selector de Cantidad Dinámico [- 1 +] */
.qty-stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.qty-stepper-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.qty-stepper-btn:hover {
  background: var(--verde);
  color: #000000;
}
.qty-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

.qty-stepper-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: inherit;
  outline: none;
}

/* Badges de Clasificación de Mercado */
.badge-market-type {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}
.badge-market-type.convencional {
  background: rgba(31, 169, 113, 0.2);
  border: 1px solid var(--verde);
  color: var(--verde);
}
.badge-market-type.descartes {
  background: rgba(200, 152, 68, 0.2);
  border: 1px solid var(--dorado);
  color: var(--dorado);
}
.badge-market-type.ganadero {
  background: rgba(144, 113, 81, 0.25);
  border: 1px solid var(--cafe-suave);
  color: var(--ceramica-suave);
}
.badge-market-type.agotado {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--color-danger);
  color: #f87171;
}

/* Banner de Economía Circular */
.circular-economy-box {
  background: linear-gradient(135deg, rgba(8, 26, 16, 0.92) 0%, rgba(144, 113, 81, 0.25) 50%, rgba(5, 16, 10, 0.95) 100%);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.circular-economy-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid rgba(206, 189, 163, 0.2);
}

.circular-flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ceramica-suave);
}
.circular-flow-step i {
  color: var(--verde);
}

/* Aviso de Seguridad Ganadera */
.livestock-safety-banner {
  background: rgba(200, 152, 68, 0.14);
  border: 1.5px solid var(--dorado);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ceramica-suave);
  font-size: 0.88rem;
  line-height: 1.5;
}
.livestock-safety-banner i {
  font-size: 1.6rem;
  color: var(--dorado);
  flex-shrink: 0;
}

/* Tarjetas KPI de Inventario para el Agricultor */
.inventory-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.inventory-kpi-card {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.inventory-kpi-card strong {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--dorado);
}
.inventory-kpi-card span {
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
}
.inventory-kpi-card small {
  font-size: 0.75rem;
  color: var(--ceramica);
}

/* Selector Dual de Publicación */
.dual-publish-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.dual-publish-option {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--cafe-borde);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dual-publish-option:hover {
  border-color: var(--verde);
  background: rgba(31, 169, 113, 0.15);
}
.dual-publish-option.active {
  border-color: var(--verde);
  background: rgba(31, 169, 113, 0.22);
  box-shadow: 0 0 14px rgba(31, 169, 113, 0.35);
}
.dual-publish-option strong {
  font-size: 0.95rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dual-publish-option small {
  font-size: 0.78rem;
  color: var(--ceramica-suave);
  line-height: 1.4;
}

/* Selector de Pestañas de Mercado en Panel Agricultor */
.seller-market-tabs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.seller-tab-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ceramica);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.seller-tab-btn:hover {
  border-color: var(--verde);
  color: #FFFFFF;
}
.seller-tab-btn.active {
  background: var(--verde);
  border-color: var(--verde);
  color: #000000;
  font-weight: 900;
}

/* ========================================================================================
 * 📱 13. CLASES AUXILIARES RESPONSIVAS & ADAPTATIVAS (MÓVIL, TABLET & PC)
 * ======================================================================================== */

.info-banner-card {
  background: var(--negro-card);
  border: 1.5px solid var(--cafe-borde);
  border-radius: var(--radius);
  padding: clamp(16px, 3.5vw, 34px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 3vw, 26px);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.info-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  width: 100%;
  box-sizing: border-box;
}

.info-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 2.5vw, 22px);
  width: 100%;
  box-sizing: border-box;
}

.modal-product-detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: start;
  width: 100%;
}

.modal-product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.checkout-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.publish-prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* CONTENCIÓN GLOBAL PARA EVITAR DESPLAZAMIENTOS HORIZONTALES */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Pantallas Grandes & Desktop (1440px+) */
@media (min-width: 1440px) {
  .app-content-area {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
  .app-sidebar.collapsed + .app-content-area {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .market-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
  }
}

/* Laptops & Tablets Horizontales (993px a 1280px) */
@media (min-width: 993px) {
  .mobile-sidebar-toggle-btn {
    display: none !important;
  }
  .mobile-sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .market-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
  }
  .catalog-layout-grid {
    grid-template-columns: 210px 1fr;
    gap: 16px;
  }
}

/* Tablets (768px a 992px) - Conversión a Drawer Off-Canvas */
@media (max-width: 992px) {
  .mobile-sidebar-toggle-btn {
    display: inline-flex;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 10000;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-sidebar-backdrop.mobile-open {
    display: block;
  }
  .app-content-area {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .catalog-layout-grid {
    grid-template-columns: 1fr;
  }
  .catalog-filter-sidebar {
    position: static;
    margin-bottom: 16px;
    width: 100%;
  }
  .modal-product-detail-layout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .marketplace-search-bar {
    max-width: 100%;
  }
  .main-app-navbar {
    padding: 10px 16px;
  }
  .market-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
}

/* Celulares Medianos & Pequeños (360px a 767px) */
@media (max-width: 767px) {
  .app-view {
    padding: 14px 10px !important;
  }
  .main-app-navbar {
    flex-direction: column !important;
    padding: 8px 12px 10px !important;
    gap: 8px !important;
    min-height: auto !important;
  }
  .navbar-brand-row {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .app-brand-logo img {
    height: 36px !important;
    max-width: 135px !important;
  }
  .nav-app-actions .btn-gold-action {
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
  }
  .nav-app-scroll-wrap {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    padding: 2px 2px 6px !important;
  }
  .nav-app-links-list {
    display: flex !important;
    gap: 8px !important;
  }
  .nav-app-btn {
    padding: 7px 14px !important;
    font-size: 0.84rem !important;
  }
  .hero-progressive-container {
    padding: 36px 14px 44px;
  }
  .hero-logo-box-animated img {
    max-width: min(82vw, 240px) !important;
    max-height: 95px !important;
  }
  .hero-title-animated {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  .thematic-story-bar {
    border-radius: var(--radius-sm);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    padding: 10px;
    gap: 6px;
    width: 100%;
  }
  .thematic-arrow-sep {
    display: none;
  }
  .interactive-flow-bar {
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)) !important;
    gap: 8px !important;
  }
  .info-page-container {
    padding: 20px 10px 50px;
    gap: 28px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .footer-brand-col {
    align-items: center;
  }
  .footer-socials-row {
    justify-content: center;
  }
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links-list {
    align-items: center;
  }
  .marketplace-top-header {
    flex-direction: column;
    padding: 10px 12px;
    gap: 10px;
    background: linear-gradient(180deg, #000000 0%, #120e0b 100%);
    border-bottom: 2px solid var(--dorado);
  }
  .marketplace-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .header-menu-toggle-btn {
    display: inline-flex !important;
  }
  #mobileHeaderLogo {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .marketplace-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .marketplace-action-pill-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 38px;
    border-radius: 12px;
  }
  .marketplace-search-bar {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
  .marketplace-search-category-select {
    padding: 6px 8px;
    font-size: 0.76rem;
    max-width: 110px;
  }
  .marketplace-search-input {
    padding: 8px 10px;
    font-size: 0.84rem;
    min-width: 0;
  }
  .marketplace-search-btn {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
  .market-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .product-image-container {
    height: 155px;
  }
  .product-card-body {
    padding: 12px 10px;
    gap: 8px;
  }
  .product-card-body h3 {
    font-size: 0.98rem !important;
    line-height: 1.25;
    color: #FFFFFF !important;
  }
  .product-price-display {
    font-size: 1.18rem !important;
    color: #E5B869 !important;
  }
  .card-dynamic-total-badge {
    font-size: 0.82rem;
    padding: 3px 8px;
  }
  .card-stepper-action-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .card-stepper-action-wrap .primary-action {
    width: 100%;
    min-height: 44px; /* Cumple estándar internacional de accesibilidad táctil */
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px;
  }
  .qty-stepper-wrap {
    justify-content: center;
    width: 100%;
    padding: 3px 8px;
  }
  .qty-stepper-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.2rem !important;
  }
  .qty-stepper-input {
    width: 48px !important;
    font-size: 1rem !important;
    color: #FFFFFF !important;
  }
  .two-fields-row {
    grid-template-columns: 1fr;
  }
  .dual-publish-selector {
    grid-template-columns: 1fr;
  }
  .checkout-pay-grid {
    grid-template-columns: 1fr !important;
  }
  .publish-prices-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-product-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .inventory-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .app-modal-overlay {
    padding: 8px;
  }
  .app-modal-box {
    padding: 16px 12px !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .satellite-map-container {
    height: 320px;
  }

  /* Mejoras de contraste y legibilidad global móvil */
  .profile-select-btn {
    font-size: 0.82rem !important;
    padding: 10px 6px !important;
  }
  .auth-label {
    font-size: 0.92rem !important;
    color: #FAF4EB !important;
  }
  .auth-input-field {
    font-size: 1rem !important;
    min-height: 46px !important;
    color: #FFFFFF !important;
  }
  .auth-submit-btn {
    min-height: 48px !important;
    font-size: 1.02rem !important;
  }
  .badge-status, .badge-market-type {
    font-size: 0.78rem !important;
    padding: 3px 8px !important;
  }
  .styled-table th, .styled-table td {
    font-size: 0.84rem !important;
    padding: 8px 6px !important;
  }

  /* 📱 Optimización de Iconos y Tarjetas en Dispositivos Móviles */
  .pillar-card-box {
    padding: 18px 16px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }
  .pillar-card-box > div:first-child {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.45rem !important;
    border-radius: 10px !important;
  }
  .pillar-card-box h3 {
    font-size: 1.18rem !important;
    line-height: 1.3 !important;
  }
  .pillar-card-box p {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }
  .step-circle-badge {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }
  .info-page-container {
    padding: 16px 12px 60px !important;
    gap: 28px !important;
  }
}

/* Celulares Extra Pequeños (320px a 375px) */
@media (max-width: 375px) {
  .market-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 8px;
  }
  .product-image-container {
    height: 140px;
  }
  .inventory-kpi-grid {
    grid-template-columns: 1fr;
  }
  .circular-economy-flow {
    flex-direction: column;
    align-items: flex-start;
  }
  .thematic-story-bar {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================================
 * 🛒 BOTÓN FLOTANTE DEL CARRITO (FAB DRAGGABLE & RESPONSIVE)
 * ======================================================================================== */
.floating-cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  background: linear-gradient(135deg, #1FA971 0%, #157950 100%);
  color: #FFFFFF;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(31, 169, 113, 0.55), 0 0 20px rgba(200, 152, 68, 0.35);
  display: none !important; /* Oculto estrictamente en Inicio, Login, Admin, IoT, etc. */
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  cursor: grab;
  touch-action: none !important; /* Permite arrastrar libremente en móviles sin bloquear con scroll */
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  animation: floatBounce 3.2s ease-in-out infinite;
}

.floating-cart-fab.is-visible {
  display: flex !important; /* Solo visible en secciones donde se compra o se usa el carrito */
}

.floating-cart-fab:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 14px 34px rgba(31, 169, 113, 0.7), 0 0 24px rgba(200, 152, 68, 0.5);
}

.floating-cart-fab:active,
.floating-cart-fab.is-dragging {
  cursor: grabbing !important;
  animation: none !important;
  transition: none !important;
  transform: scale(1.14) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6), 0 0 28px rgba(200, 152, 68, 0.8) !important;
  opacity: 0.96;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gold, #C89844);
  color: #2C1E12;
  font-size: 0.8rem;
  font-weight: 900;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================================================================
 * 📱 BARRA DE NAVEGACIÓN MÓVIL INFERIOR (MOBILE BOTTOM NAV)
 * ======================================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(13, 10, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(200, 152, 68, 0.35);
  z-index: 99990;
  padding: 0 4px calc(env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #CEBDA3;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
  font-size: 1.22rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #FFFFFF;
}

.mobile-nav-item.active i {
  color: var(--verde);
  transform: translateY(-2px);
}

.mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: #E53935;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 900;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #000;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block !important;
  }
  body {
    padding-bottom: 70px !important;
  }
  .app-view-container,
  .app-content-area {
    padding-bottom: 74px !important;
  }
}

/* ========================================================================================
 * 📜 TABLA DE TRASPASOS PECUARIOS
 * ======================================================================================== */
.transfers-table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--brown);
  background: #FFFFFF;
  margin-top: 14px;
}
.transfers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.transfers-table th {
  background: #EFE8DE;
  color: #182B20 !important;
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--brown);
}
.transfers-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: #2C1E12 !important;
}
.transfers-table tr:hover {
  background: #FAF6F0;
}


/* ========================================================================================
 * 🔐 AUTH CARD EXACTA SEGÚN MOCKUP
 * ======================================================================================== */
.auth-full-screen-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(239, 232, 222, 0.95) 0%, rgba(206, 189, 163, 0.98) 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ center/cover no-repeat;
}

.auth-glassmorphic-card {
  background: #FAF6F0 !important;
  border: 1.5px solid var(--brown) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14) !important;
  padding: 38px 32px !important;
  max-width: 520px !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-logo-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4px;
}
.auth-logo-center-wrap img {
  max-height: 95px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}
.auth-logo-center-wrap h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: #182B20 !important;
}
.auth-logo-center-wrap p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5C4033 !important;
}

.auth-tabs-header {
  display: flex;
  background: #EFE8DE;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 6px;
  margin: 6px 0;
}
.auth-tab-pill {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
  color: #182B20 !important;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab-pill.active {
  background: var(--green) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(31, 169, 113, 0.35);
}

.auth-sub-panel {
  display: none !important;
}
.auth-sub-panel.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

@keyframes pulseBadge {
  0% { transform: scale(0.6); }
  80% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ========================================================================================
 * 💬 BURBUJAS DE CONVERSACIÓN (CHAT IA VETERINARIA)
 * ======================================================================================== */
.chat-vet-box {
  background: #FAF6F0 !important;
  border: 2px solid var(--brown) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  box-shadow: var(--shadow-md) !important;
}
.chat-vet-messages-list {
  background: #EFE8DE !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius) !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-height: 380px !important;
  max-height: 480px !important;
  overflow-y: auto !important;
}

.chat-bubble-user {
  align-self: flex-end !important;
  background: var(--brown-dark) !important;
  color: #FFFFFF !important;
  padding: 12px 18px !important;
  border-radius: 18px 18px 4px 18px !important;
  max-width: 80% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  animation: bubblePop 0.25s ease;
}
.chat-bubble-vet {
  align-self: flex-start !important;
  background: #FFFFFF !important;
  border: 1.5px solid var(--brown) !important;
  border-left: 6px solid var(--green) !important;
  padding: 16px 20px !important;
  border-radius: 18px 18px 18px 4px !important;
  max-width: 88% !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  animation: bubblePop 0.25s ease;
}
@keyframes bubblePop {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ========================================================================================
 * 🔐 LOGIN / REGISTRO SEGÚN REFERENCIA VISUAL EXACTA
 * ======================================================================================== */
.auth-full-screen-wrap {
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background: #EAE2D5;
}

.auth-card-container {
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1) !important;
  padding: 32px 28px !important;
  max-width: 500px !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.auth-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
}

.auth-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-headings-box {
  text-align: left;
  margin: 10px 0 16px 0;
}

.auth-title {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  color: #382517 !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #5C4033 !important;
  margin: 0 !important;
}

.auth-tabs-pill-bar {
  display: flex;
  background: #EAE2D5;
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  color: #382517;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: #1FA971 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(31, 169, 113, 0.35);
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.auth-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 2px;
}

@media (max-width: 580px) {
  .auth-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .auth-card-container {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }
  .auth-logo-img {
    max-width: 260px !important;
  }
}

.auth-card-container label,
.auth-card-container span {
  color: #182B20;
}

.auth-label {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: #182B20 !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.auth-input-field::placeholder {
  color: #78716C !important;
}

.auth-input-field {
  width: 100% !important;
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  font-size: 0.9rem !important;
  color: #382517 !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-field:focus {
  border-color: #1FA971 !important;
  box-shadow: 0 0 0 3px rgba(31, 169, 113, 0.18) !important;
}

.auth-submit-btn {
  width: 100% !important;
  background: #1FA971 !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  font-size: 1.02rem !important;
  padding: 13px !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  box-shadow: 0 4px 14px rgba(31, 169, 113, 0.4) !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.auth-submit-btn:hover {
  background: #157950 !important;
  transform: translateY(-1px);
}


/* ========================================================================================
 * 🩺 IA VETERINARIO - ALTO CONTRASTE Y LEGIBILIDAD WCAG AAA
 * ======================================================================================== */
.info-banner-card {
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: var(--radius) !important;
  padding: 26px !important;
  box-shadow: var(--shadow-sm) !important;
}
.info-banner-card h2 {
  color: #382517 !important;
}
.info-banner-card p {
  color: #2C1E12 !important;
}

.value-card-item {
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: var(--radius-sm) !important;
  padding: 16px !important;
  box-shadow: var(--shadow-sm) !important;
}
.value-card-item strong {
  color: #382517 !important;
}
.value-card-item small {
  color: #4E3724 !important;
  font-weight: 600 !important;
}

.interactive-flow-bar .flow-node-item {
  background: #14100C !important;
  border: 1.5px solid #8C7355 !important;
  color: #EDE4D8 !important;
  transform: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.interactive-flow-bar .flow-node-item strong {
  color: #FFFFFF !important;
}
.interactive-flow-bar .flow-node-item small {
  color: #CEBDA3 !important;
}
@media (hover: hover) {
  .interactive-flow-bar .flow-node-item:hover {
    background: rgba(31, 169, 113, 0.18) !important;
    border-color: var(--verde) !important;
    transform: translateY(-3px) !important;
  }
}

.vet-alert-sample-card {
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: var(--radius-sm) !important;
  padding: 16px !important;
  box-shadow: var(--shadow-sm) !important;
}
.vet-alert-sample-card p {
  color: #2C1E12 !important;
  font-weight: 500 !important;
}


/* ========================================================================================
 * 🔐 LOGIN / REGISTRO EN 2 ÁREAS (TWO-PANEL CINEMATIC LAYOUT)
 * ======================================================================================== */
.auth-split-wrapper {
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: #EAE2D5;
}

.auth-split-container {
  display: grid;
  grid-template-columns: 480px 1fr;
  max-width: 1040px;
  width: 100%;
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.auth-card-container {
  padding: 32px 28px !important;
  display: flex;
  flex-direction: column;
  background: #FAF6F0;
  box-sizing: border-box;
}

.auth-visual-showcase-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 16, 11, 0.85) 0%, rgba(10, 35, 22, 0.88) 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 38px;
  border-left: 1.5px solid #8C7355;
}

.auth-visual-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-feature-pills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.auth-feature-pill-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 152, 68, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.auth-feature-pill-item i {
  font-size: 1.35rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .auth-split-container {
    grid-template-columns: 1fr !important;
    max-width: 520px;
  }
  .auth-visual-showcase-panel {
    display: none !important;
  }
}

/* ========================================================================================
 * 🌟 MEJORA VISUAL DE TARJETAS DE PILARES Y FOTOGRAFÍAS
 * ======================================================================================== */
.pillar-card-box {
  background: var(--bg-card) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.pillar-card-box:hover {
  transform: translateY(-4px);
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-md) !important;
}

.pillar-card-box h3,
.pillar-card-content h3 {
  color: #FFFFFF !important;
  font-weight: 900 !important;
}
.pillar-card-box p,
.pillar-card-content p {
  color: #EDE4D8 !important;
  font-weight: 500 !important;
}

.pillar-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.pillar-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pillar-card-box:hover .pillar-card-img {
  transform: scale(1.05);
}

.pillar-floating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(31, 169, 113, 0.92);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.4);
}

.pillar-card-content {
  padding: 20px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.pillar-specs-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--brown-title);
  font-weight: 700;
  margin-bottom: 18px;
  background: #EFE8DE;
  padding: 8px 12px;
  border-radius: 8px;
}


/* ========================================================================================
 * 🌿 ESTILOS DE ARMONIZACIÓN VISUAL PARA SECCIONES PÚBLICAS
 * ======================================================================================== */
.organic-cafe-verde-box {
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: var(--radius) !important;
  padding: 28px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
.organic-cafe-verde-box h3 {
  color: #382517 !important;
}
.organic-cafe-verde-box .solution-list li strong {
  color: #382517 !important;
}
.organic-cafe-verde-box .solution-list li span {
  color: #2C1E12 !important;
}

.hardware-card {
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: var(--radius-sm) !important;
  padding: 20px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}
.hardware-card h4 {
  color: #382517 !important;
  font-weight: 800 !important;
}
.hardware-card p {
  color: #2C1E12 !important;
  line-height: 1.6 !important;
}

.category-photo-card {
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.category-photo-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
}
.category-photo-card img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
}
.category-photo-card-body {
  padding: 14px !important;
}
.category-photo-card-body strong {
  color: #382517 !important;
  display: block !important;
  font-size: 1.05rem !important;
  margin-bottom: 4px !important;
}
.category-photo-card-body small {
  color: #4E3724 !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}


/* ========================================================================================
 * 🌄 FONDO FOTOGRÁFICO DE ALTO CONTRASTE PARA LOGIN / REGISTRO
 * ======================================================================================== */
.auth-split-wrapper {
  min-height: calc(100vh - 75px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 20px !important;
  background: linear-gradient(135deg, rgba(18, 12, 8, 0.75) 0%, rgba(10, 32, 20, 0.82) 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ center/cover no-repeat fixed !important;
}

.auth-split-container {
  display: grid !important;
  grid-template-columns: 480px 1fr !important;
  max-width: 1040px !important;
  width: 100% !important;
  background: #FAF6F0 !important;
  border: 2px solid #8C7355 !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
}

.auth-card-container {
  padding: 34px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #FAF6F0 !important;
  box-sizing: border-box !important;
}

.auth-visual-showcase-panel {
  position: relative !important;
  background: linear-gradient(135deg, rgba(22, 16, 11, 0.82) 0%, rgba(10, 35, 22, 0.88) 100%), url('https://lh3.googleusercontent.com/d/18yiOW6bqtvU5PzjvQ47XjwV1j90Z0J3O') /* https://drive.google.com/uc?export=view&id=18yiOW6bqtvU5PzjvQ47XjwV1j90Z0J3O */ center/cover no-repeat !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 44px 38px !important;
  border-left: 2px solid #8C7355 !important;
}

@media (max-width: 920px) {
  .auth-split-container {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    border-radius: 20px !important;
  }
  .auth-visual-showcase-panel {
    display: none !important;
  }
}

@media (max-width: 540px) {
  .auth-split-wrapper {
    padding: 20px 12px !important;
  }
  .auth-card-container {
    padding: 24px 18px !important;
  }
  .auth-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .auth-logo-img {
    max-width: 240px !important;
  }
  .auth-title {
    font-size: 1.25rem !important;
  }
  .auth-subtitle {
    font-size: 0.84rem !important;
  }
  .auth-tab-btn {
    font-size: 0.82rem !important;
    padding: 8px 12px !important;
  }
}

/* ========================================================================================
 * 📱 RESPONSIVE GLOBAL OPTIMIZATION
 * ======================================================================================== */
@media (max-width: 768px) {
  .floating-cart-fab {
    bottom: 84px;
    right: 18px;
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
  }
  .floating-cart-badge {
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
}


/* ========================================================================================
 * 🛑 REGLAS DE ORO: MÁXIMO CONTRASTE EN TODAS LAS TARJETAS CLARAS
 * ======================================================================================== */
.pillar-card-box {
  background: var(--bg-card) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: 20px !important;
}
.pillar-card-box h3,
.pillar-card-content h3 {
  color: #FFFFFF !important;
  font-weight: 900 !important;
}
.pillar-card-box p,
.pillar-card-content p {
  color: #EDE4D8 !important;
  font-weight: 500 !important;
}
.pillar-specs-mini-list {
  background: #EFE8DE !important;
  border: 1px solid #D5C7B5 !important;
}
.pillar-specs-mini-list div span {
  color: #2C1E12 !important;
  font-weight: 800 !important;
}

.info-banner-card {
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
}
.info-banner-card h2, .info-banner-card h3 {
  color: #382517 !important;
  font-weight: 900 !important;
}
.info-banner-card p {
  color: #2C1E12 !important;
  font-weight: 500 !important;
}

.audience-card-item {
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
}
.audience-card-item h3 {
  color: #382517 !important;
  font-weight: 900 !important;
}
.audience-card-item p {
  color: #2C1E12 !important;
  font-weight: 500 !important;
}

.problem-card {
  background: #FFF5F5 !important;
  border: 1.5px solid #EF9A9A !important;
}
.problem-card h3 {
  color: #C62828 !important;
}
.problem-card li span strong {
  color: #B71C1C !important;
}
.problem-card li span {
  color: #37474F !important;
}

.solution-card {
  background: #F1F8E9 !important;
  border: 1.5px solid #A5D6A7 !important;
}
.solution-card h3 {
  color: #2E7D32 !important;
}
.solution-card li span strong {
  color: #1B5E20 !important;
}
.solution-card li span {
  color: #263238 !important;
}


/* ========================================================================================
 * 🛒 FILAS DEL MODAL DE CARRITO (ALTO CONTRASTE Y CONTROLES VISIBLES)
 * ======================================================================================== */
.cart-item-card-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #FAF6F0 !important;
  border: 1.5px solid #8C7355 !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  gap: 12px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
}

.cart-item-card-img {
  width: 58px !important;
  height: 58px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1.5px solid #8C7355 !important;
  flex-shrink: 0 !important;
}

.cart-item-card-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.cart-item-title {
  color: #382517 !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.cart-item-price-unit {
  color: #C89844 !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
}

.cart-item-farmer {
  color: #5C4033 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  display: block !important;
  margin-top: 2px !important;
}

.cart-item-actions-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.cart-stepper-box {
  display: flex !important;
  align-items: center !important;
  background: #EFE8DE !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 9999px !important;
  padding: 2px 6px !important;
}

.cart-step-btn {
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  border: none !important;
  color: #382517 !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}
.cart-step-btn:hover {
  color: #1FA971 !important;
}

.cart-step-input {
  width: 40px !important;
  text-align: center !important;
  font-weight: 900 !important;
  border: none !important;
  background: transparent !important;
  color: #382517 !important;
  font-size: 0.95rem !important;
  outline: none !important;
}

.cart-item-subtotal-box {
  min-width: 90px !important;
  text-align: right !important;
}
.cart-item-subtotal-box small {
  color: #5C4033 !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: block !important;
}
.cart-item-subtotal-box strong {
  color: #15803D !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  display: block !important;
}

/* Botones de Llamada Directa para Chats (Senior / Accesibilidad 45+) */
.chat-call-btn,
.wa-header-call-btn {
  background: #15803D !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.4) !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
  cursor: pointer !important;
}
.chat-call-btn:hover,
.wa-header-call-btn:hover {
  background: #16A34A !important;
  transform: scale(1.05) !important;
  color: #FFFFFF !important;
}
.chat-call-btn i,
.wa-header-call-btn i {
  font-size: 0.95rem !important;
}

.cart-item-delete-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(211, 47, 47, 0.12) !important;
  border: 1.5px solid #D32F2F !important;
  color: #D32F2F !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}
.cart-item-delete-btn:hover {
  background: #D32F2F !important;
  color: #FFFFFF !important;
  transform: scale(1.1) !important;
}

/* ========================================================================================
 * 🔥 CARRUSEL INFINITO DE PRODUCTOS MÁS HOT (SCROLL CONTINUO)
 * ======================================================================================== */
.hot-deals-banner-wrap {
  background: linear-gradient(135deg, rgba(22, 16, 11, 0.95) 0%, rgba(10, 32, 20, 0.95) 100%);
  border-bottom: 2px solid var(--dorado);
  padding: 22px 0 26px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hot-deals-header-row {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hot-flame-icon {
  font-size: 1.4rem;
  animation: flameFlicker 1.5s infinite alternate;
}
@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-5deg); filter: drop-shadow(0 0 4px #ff5722); }
  100% { transform: scale(1.2) rotate(5deg); filter: drop-shadow(0 0 12px #ff9800); }
}

.hot-deals-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.hot-deals-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeLoop 65s linear infinite;
}

.hot-deals-marquee-container:hover .hot-deals-marquee-track,
.hot-deals-marquee-container:active .hot-deals-marquee-track,
.hot-deals-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hot-marquee-card {
  width: 240px;
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.hot-marquee-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--dorado);
}
.hot-marquee-img-box {
  position: relative;
  width: 100%;
  height: 130px;
}
.hot-marquee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-marquee-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #D32F2F;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.hot-marquee-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.hot-marquee-title {
  color: #382517;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-marquee-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hot-marquee-price {
  color: #1FA971;
  font-size: 1.05rem;
  font-weight: 900;
}
.hot-marquee-old-price {
  color: #9E9E9E;
  font-size: 0.78rem;
  text-decoration: line-through;
}

/* ========================================================================================
 * 🩺 HUD TECNOLÓGICO IA VETERINARIA
 * ======================================================================================== */
.vet-high-tech-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .vet-high-tech-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.vet-tech-explanation-box {
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vet-hud-telemetry-card {
  background: #18110B;
  border: 1.5px solid var(--dorado);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.vet-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1FA971;
  box-shadow: 0 0 8px #1FA971;
  animation: dotPulse 1.5s infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.vet-hud-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 152, 68, 0.4);
}
.vet-hud-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vet-hud-floating-tag {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tag-top { top: 10px; left: 10px; border-color: #1FA971; color: #E8F5E9; }
.tag-bottom { bottom: 10px; right: 10px; border-color: #C89844; color: #FFF8E1; }

.vet-hud-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(200, 152, 68, 0.25);
  text-align: center;
}
.vet-hud-metric-item small {
  display: block;
  font-size: 0.68rem;
  color: #BCAAA4;
  font-weight: 700;
}
.vet-hud-metric-item strong {
  font-size: 0.84rem;
  color: #FFFFFF;
  margin-top: 2px;
  display: block;
}


/* ========================================================================================
 * 🛑 REGLAS PARA ELEMENTOS SELECT Y DROPDOWNS (NUNCA TEXTO BLANCO SOBRE BLANCO)
 * ======================================================================================== */
select {
  background-color: #FFFFFF !important;
  color: #382517 !important;
  border: 1.5px solid #8C7355 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

select option {
  background-color: #FAF6F0 !important;
  color: #382517 !important;
  font-weight: 600 !important;
  padding: 8px !important;
}

select option:hover, select option:checked {
  background-color: #1FA971 !important;
  color: #FFFFFF !important;
}

/* ========================================================================================
 * 👑 ESTILOS PARA TABLAS DE LIQUIDACIÓN MAESTRA
 * ======================================================================================== */
.settlement-table-row {
  border-bottom: 1px solid #D5C7B5 !important;
  transition: background 0.15s ease !important;
}
.settlement-table-row:hover {
  background: #EFE8DE !important;
}
.settlement-table-row td {
  padding: 12px 14px !important;
  font-size: 0.88rem !important;
  color: #2C1E12 !important;
}

.bank-details-box {
  background: #FFFFFF !important;
  border: 1.2px solid #8C7355 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.bank-name-badge {
  color: #1FA971 !important;
  font-weight: 900 !important;
  font-size: 0.82rem !important;
}
.bank-account-num {
  font-family: monospace !important;
  font-weight: 800 !important;
  color: #382517 !important;
  font-size: 0.88rem !important;
}
.bank-holder-text {
  color: #5C4033 !important;
  font-size: 0.76rem !important;
}


/* ========================================================================================
 * 👑 SUB-PESTAÑAS DEL PANEL MAESTRO
 * ======================================================================================== */
.master-tab-content {
  display: block;
  animation: fadeInFast 0.25s ease-out;
}
@keyframes fadeInFast {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ========================================================================================
 * 🛑 REGLAS DE ORO: TABLA DE TRASPASOS CON MÁXIMA LEGIBILIDAD (CAPTURA 3)
 * ======================================================================================== */
.transfers-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #FFFFFF !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.transfers-table thead tr {
  background: #EFE8DE !important;
  border-bottom: 2.5px solid #8C7355 !important;
}
.transfers-table th {
  padding: 12px 14px !important;
  color: #382517 !important;
  font-weight: 900 !important;
  font-size: 0.88rem !important;
  text-align: left !important;
}
.transfers-table tbody tr {
  border-bottom: 1px solid #D5C7B5 !important;
  background: #FAF6F0 !important;
  transition: background 0.15s ease !important;
}
.transfers-table tbody tr:hover {
  background: #EFE8DE !important;
}
.transfers-table td {
  padding: 12px 14px !important;
  color: #2C1E12 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}
.transfers-table td strong {
  color: #382517 !important;
  font-weight: 900 !important;
  font-size: 0.94rem !important;
  display: block !important;
}
.transfers-table td small {
  color: #5C4033 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  display: block !important;
}

/* ========================================================================================
 * 🩺 CHAT IA VETERINARIA: CAMPO DE ENTRADA Y BURBUJAS 100% VISIBLES Y NÍTIDAS
 * ======================================================================================== */
#chatVetMessageInput {
  background: #FFFFFF !important;
  color: #1A1108 !important;
  border: 2px solid #8C7355 !important;
  border-radius: 9999px !important;
  padding: 14px 22px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06) !important;
  outline: none !important;
}
#chatVetMessageInput:focus {
  border-color: #1FA971 !important;
  box-shadow: 0 0 0 3px rgba(31, 169, 113, 0.25) !important;
}
#chatVetMessageInput::placeholder {
  color: #7A5C43 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.chat-vet-box {
  background: #FAF6F0 !important;
  border: 2px solid #8C7355 !important;
  border-radius: 20px !important;
  padding: 26px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.chat-vet-messages-list {
  background: #EFE8DE !important;
  border: 1.5px solid #D5C7B5 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-height: 380px !important;
  max-height: 500px !important;
  overflow-y: auto !important;
}

.chat-bubble-user {
  align-self: flex-end !important;
  background: #1B4D3E !important;
  color: #FFFFFF !important;
  padding: 14px 20px !important;
  border-radius: 18px 18px 4px 18px !important;
  max-width: 82% !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}
.chat-bubble-user * {
  color: #FFFFFF !important;
}

.chat-bubble-vet {
  align-self: flex-start !important;
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-left: 6px solid #1FA971 !important;
  padding: 18px 22px !important;
  border-radius: 18px 18px 18px 4px !important;
  max-width: 88% !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}
.chat-bubble-vet strong {
  color: #382517 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}
.chat-bubble-vet p {
  color: #2C1E12 !important;
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
  font-weight: 600 !important;
  margin: 6px 0 !important;
}
.chat-bubble-vet small {
  color: #5C4033 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: block !important;
  margin-top: 8px !important;
}

/* ========================================================================================
 * 🌲 SIDEBAR LLAMATIVO Y ELEGANTE (CAPTURA 1)
 * ======================================================================================== */
.main-app-sidebar {
  background: linear-gradient(180deg, #18110B 0%, #0D2618 100%) !important;
  border-right: 1.5px solid #8C7355 !important;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4) !important;
}

.sidebar-category-header {
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  color: #C89844 !important;
  padding: 12px 14px 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sidebar-nav-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  color: #FAF6F0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100% !important;
  text-align: left !important;
  position: relative !important;
}

.sidebar-nav-btn:hover {
  background: rgba(200, 152, 68, 0.15) !important;
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

.sidebar-nav-btn.active {
  background: linear-gradient(90deg, rgba(31, 169, 113, 0.35) 0%, rgba(200, 152, 68, 0.2) 100%) !important;
  color: #FFFFFF !important;
  border-left: 4px solid #1FA971 !important;
  box-shadow: 0 4px 14px rgba(31, 169, 113, 0.25) !important;
  font-weight: 900 !important;
}

.sidebar-nav-btn i {
  font-size: 1.15rem !important;
  width: 22px !important;
  text-align: center !important;
  color: #C89844 !important;
  transition: transform 0.2s ease !important;
}
.sidebar-nav-btn.active i {
  color: #1FA971 !important;
  transform: scale(1.1) !important;
}

.sidebar-badge-count {
  margin-left: auto !important;
  background: #1FA971 !important;
  color: #FFFFFF !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
}


/* ========================================================================================
 * 📿 ESTILOS DE TARJETAS DE COLLARES IOT INTERACTIVOS
 * ======================================================================================== */
.iot-collars-interactive-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
}

.iot-collar-card {
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}
.iot-collar-card:hover {
  transform: translateY(-3px) !important;
  border-color: #1FA971 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.iot-metrics-mini-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  background: #FAF6F0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
  border: 1px solid #D5C7B5 !important;
}

.iot-mini-metric small {
  display: block !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #5C4033 !important;
}
.iot-mini-metric strong {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  margin-top: 2px !important;
}


/* ========================================================================================
 * 🩺 CHIPS DE SUGERENCIAS Y CHAT ELEGANTE DE IA VETERINARIA
 * ======================================================================================== */
.chat-suggestion-chip {
  background: #FFFFFF !important;
  color: #382517 !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}
.chat-suggestion-chip:hover {
  background: #1FA971 !important;
  color: #FFFFFF !important;
  border-color: #1FA971 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(31, 169, 113, 0.25) !important;
}

.chat-bubble-vet {
  align-self: flex-start !important;
  background: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
  border-left: 6px solid #1FA971 !important;
  padding: 18px 22px !important;
  border-radius: 20px 20px 20px 4px !important;
  max-width: 88% !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  animation: bubblePop 0.25s ease-out !important;
}

.chat-bubble-vet strong {
  color: #382517 !important;
  font-weight: 900 !important;
}

.chat-bubble-vet p {
  color: #2C1E12 !important;
  font-size: 0.96rem !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
  margin: 6px 0 !important;
}

.chat-bubble-vet ul {
  margin: 8px 0 8px 20px !important;
  padding: 0 !important;
}
.chat-bubble-vet ul li {
  color: #2C1E12 !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
  margin-bottom: 4px !important;
}

.chat-bubble-user {
  align-self: flex-end !important;
  background: linear-gradient(135deg, #1B4D3E 0%, #0E3326 100%) !important;
  color: #FFFFFF !important;
  padding: 14px 20px !important;
  border-radius: 20px 20px 4px 20px !important;
  max-width: 80% !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  animation: bubblePop 0.25s ease-out !important;
}
.chat-bubble-user * {
  color: #FFFFFF !important;
}


/* ========================================================================================
 * 🩺 FONDO FOTOGRÁFICO Y ATMÓSFERA PROFESIONAL DE IA VETERINARIA
 * ======================================================================================== */
#view-app-veterinary {
  background: linear-gradient(135deg, rgba(16, 11, 7, 0.88) 0%, rgba(9, 28, 17, 0.91) 100%), url('https://lh3.googleusercontent.com/d/1-pH2S8dhy4Fh2pRlLkf0KX4AIrw-ZsIm') /* https://drive.google.com/uc?export=view&id=1-pH2S8dhy4Fh2pRlLkf0KX4AIrw-ZsIm */ center/cover no-repeat fixed !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
}

.chat-vet-box {
  background: rgba(250, 246, 240, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 2px solid #C89844 !important;
  border-radius: 24px !important;
  padding: 26px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

.chat-vet-messages-list {
  background: rgba(239, 232, 222, 0.94) !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 18px !important;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-height: 420px !important;
  max-height: 520px !important;
  overflow-y: auto !important;
}


/* ========================================================================================
 * 🔒 INPUT CON VISUALIZADOR DE CONTRASEÑA (OJITO) & CONFIRMACIÓN
 * ======================================================================================== */
.input-with-eye-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-with-eye-wrapper input {
  width: 100%;
  padding-right: 44px !important;
}
.btn-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #8C7355;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 1rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.btn-password-toggle:hover {
  color: var(--gold);
}
.password-match-indicator {
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.password-match-indicator.matching {
  color: #1FA971;
}
.password-match-indicator.mismatch {
  color: #E53935;
}

/* ========================================================================================
 * 💳 REDISEÑO ENTERPRISE DE MÉTODOS DE PAGO
 * ======================================================================================== */
.payment-enterprise-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.payment-hero-banner {
  background: linear-gradient(135deg, rgba(20, 14, 9, 0.96) 0%, rgba(11, 34, 21, 0.96) 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ center/cover no-repeat;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.payment-methods-grid-enterprise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.payment-tile-card {
  background: linear-gradient(180deg, #18201B 0%, #111613 100%) !important;
  border: 1.5px solid rgba(200, 152, 68, 0.45) !important;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.payment-tile-card:hover {
  transform: translateY(-3px);
  border-color: var(--dorado) !important;
  box-shadow: 0 12px 35px rgba(200, 152, 68, 0.2) !important;
}

.payment-tile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(200, 152, 68, 0.15) !important;
  border: 1.5px solid var(--dorado) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--dorado) !important;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.payment-tile-icon.green {
  background: rgba(31, 169, 113, 0.18) !important;
  border-color: #1FA971 !important;
  color: #34D399 !important;
}

.payment-bank-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.bank-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(200, 152, 68, 0.35) !important;
  color: #F1F5F9 !important;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.payment-instructions-box {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px dashed rgba(200, 152, 68, 0.35) !important;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.85rem;
  color: #FFFFFF !important;
}

/* ========================================================================================
 * 👤 REDISEÑO PROFESIONAL DE PERFIL DE USUARIO
 * ======================================================================================== */
.profile-enterprise-card {
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.profile-header-banner {
  background: linear-gradient(135deg, #182B20 0%, #0E1B13 100%), url('https://lh3.googleusercontent.com/d/1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1') /* https://drive.google.com/uc?export=view&id=1RoYpeTKnBkhdYwKTle411iNVZ3WQXU_1 */ center/cover no-repeat;
  padding: 32px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #C89844;
  color: #182B20;
  font-size: 2.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.profile-nav-tabs {
  display: flex;
  background: #EFE8DE;
  border-bottom: 1.5px solid #8C7355;
  overflow-x: auto;
}
.profile-tab-item {
  padding: 14px 22px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #5C4033;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.profile-tab-item:hover, .profile-tab-item.active {
  color: #182B20;
  border-bottom-color: var(--gold);
  background: #FAF6F0;
}

.profile-content-body {
  padding: 28px 32px;
}

/* ========================================================================================
 * 👑 PANEL ADMINISTRATIVO PROFESIONAL (CERO EMOJIS)
 * ======================================================================================== */
.admin-badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Selector Rápido de Rol en Sidebar */
.sidebar-role-badge-box {
  display: none !important;
}
.role-quick-select {
  width: 100%;
  background: #182B20;
  color: #FFFFFF;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* ========================================================================================
 * 📜 PANEL PLEGABLE / ACORDEÓN DE CARTAS OFICIALES & TRASPASOS (DARK AGTECH)
 * ======================================================================================== */
.foldable-accordion-box {
  background: linear-gradient(180deg, #151C18 0%, #101512 100%);
  border: 1.5px solid rgba(200, 152, 68, 0.45);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-top: 18px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.foldable-accordion-box.open {
  border-color: var(--gold, #C89844);
  box-shadow: 0 10px 32px rgba(200, 152, 68, 0.18);
}

.foldable-accordion-header {
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(30, 24, 16, 0.95) 0%, rgba(17, 22, 19, 0.95) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-bottom: 1.5px solid rgba(200, 152, 68, 0.3);
  transition: background 0.2s ease;
}

.foldable-accordion-header:hover {
  background: rgba(200, 152, 68, 0.12);
}

.foldable-accordion-header h3 {
  margin: 0;
  color: #F8F6F0;
  font-size: 1.12rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.foldable-toggle-icon {
  font-size: 1.15rem;
  color: var(--gold, #C89844);
  transition: transform 0.3s ease;
}

.foldable-accordion-box.open .foldable-toggle-icon {
  transform: rotate(180deg);
  color: #2ECC71;
}

.foldable-accordion-body {
  padding: 22px 24px;
  background: #111613;
  display: none;
  animation: fadeIn 0.3s ease;
}

.foldable-accordion-box.open .foldable-accordion-body {
  display: block;
}

/* Campos de Formulario dentro del Panel Plegable con Alto Contraste */
.foldable-accordion-body .form-group label {
  color: #EDE4D8 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.foldable-accordion-body input,
.foldable-accordion-body select,
.foldable-accordion-body textarea {
  background: #18201B !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(200, 152, 68, 0.45) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.foldable-accordion-body input:focus,
.foldable-accordion-body select:focus,
.foldable-accordion-body textarea:focus {
  border-color: var(--gold, #C89844) !important;
  box-shadow: 0 0 0 3px rgba(200, 152, 68, 0.25) !important;
  outline: none !important;
  background: #1D2721 !important;
  color: #FFFFFF !important;
}

.foldable-accordion-body input::placeholder,
.foldable-accordion-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.foldable-accordion-body select option {
  background: #161E1A;
  color: #FFFFFF;
}

/* ========================================================================================
 * 👤 AVATAR PERSONALIZABLE & SELECTOR DE FOTO
 * ======================================================================================== */
.profile-avatar-container {
  position: relative;
  display: inline-block;
}
.profile-avatar-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #182B20;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  overflow: hidden;
  object-fit: cover;
}
.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--gold);
  color: #182B20;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.profile-avatar-edit-badge:hover {
  transform: scale(1.15);
}
.avatar-presets-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.avatar-preset-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #8C7355;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #1A1410;
  color: #C89844;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.avatar-preset-chip i {
  color: #C89844;
  transition: transform 0.2s ease, color 0.2s ease;
}
.avatar-preset-chip:hover, .avatar-preset-chip.active {
  border-color: var(--gold);
  background: rgba(200, 152, 68, 0.25);
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(200, 152, 68, 0.5);
}
.avatar-preset-chip:hover i, .avatar-preset-chip.active i {
  color: #FFFFFF;
}
.avatar-preset-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rol Bloqueado para auto-asignación */
.carta-template-card.role-locked {
  opacity: 0.7;
  cursor: not-allowed !important;
  border-style: dashed;
  background: rgba(20, 16, 12, 0.8) !important;
}
.carta-template-card.role-locked:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #8C7355 !important;
}

/* ========================================================================================
 * 💰 MONEDERO VIRTUAL DEL PRODUCTOR
 * ======================================================================================== */
.producer-wallet-hero {
  background: linear-gradient(135deg, #182B20 0%, #0F1C15 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  color: #FFFFFF;
  margin-bottom: 24px;
}
.wallet-balance-display {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(200,152,68,0.3);
}
.wallet-transactions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.wallet-tx-item {
  background: #FFFFFF;
  border: 1.5px solid #8C7355;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.wallet-tx-item.credit {
  border-left: 5px solid #1FA971;
}
.wallet-tx-item.debit {
  border-left: 5px solid #F59E0B;
}

/* ========================================================================================
 * 💬 SISTEMA DE CHAT DIRECTO (COMPRADOR <-> PRODUCTOR)
 * ======================================================================================== */
.chat-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.chat-dialog-overlay.hidden {
  display: none !important;
}
.chat-dialog-box {
  background: #FFFFFF;
  border: 2px solid var(--gold);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  height: 85vh;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-dialog-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #182B20 0%, #0F1C15 100%);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}
.chat-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-close-btn:hover {
  background: #E53935;
  border-color: #E53935;
  color: #FFFFFF;
  transform: scale(1.1);
}
.chat-producer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-producer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #182B20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  border: 2px solid #FFFFFF;
}
.chat-product-context-bar {
  padding: 8px 16px;
  background: #FAF6F0;
  border-bottom: 1px solid #D5C7B5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #5C4033;
  font-weight: 700;
}
.chat-messages-scroll {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FDFBF7;
}
.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #1FA971 0%, #13754E 100%);
  color: #FFFFFF !important;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(31, 169, 113, 0.35);
}
.chat-bubble.mine * {
  color: #FFFFFF !important;
}
.chat-bubble.peer {
  align-self: flex-start;
  background: #FAF6F0;
  color: #182B20 !important;
  border: 1.5px solid #8C7355;
  border-bottom-left-radius: 4px;
}
.chat-bubble.peer * {
  color: #182B20 !important;
}
.chat-bubble small {
  display: block;
  font-size: 0.72rem;
  margin-top: 6px;
  opacity: 0.8;
  text-align: right;
}
.chat-quick-suggestions {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: #FAF6F0;
  border-top: 1px solid #D5C7B5;
}
.chat-suggestion-chip {
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid #8C7355;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  color: #382517;
  transition: all 0.2s ease;
}
.chat-suggestion-chip:hover {
  background: var(--gold);
  color: #182B20;
  border-color: var(--gold);
}
.chat-input-footer {
  padding: 14px 18px;
  background: #FFFFFF;
  border-top: 1.5px solid #8C7355;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-text {
  flex: 1;
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 0.92rem;
  outline: none;
  font-weight: 600;
  color: #182B20 !important;
}
.chat-input-text:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  color: #182B20 !important;
}
.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #182B20;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.chat-send-btn:hover {
  transform: scale(1.08);
  background: #B38334;
}

/* ========================================================================================
 * ⭐ SISTEMA DE RESEÑAS POST-COMPRA (ESTRELLAS Y COMENTARIOS)
 * ======================================================================================== */
.star-rating-picker {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  cursor: pointer;
  justify-content: center;
  margin: 14px 0;
}
.star-rating-picker .star-item {
  color: #D5C7B5;
  transition: transform 0.2s ease, color 0.2s ease;
}
.star-rating-picker .star-item.active,
.star-rating-picker .star-item:hover,
.star-rating-picker .star-item.hovered {
  color: #F59E0B;
  transform: scale(1.15);
}
.review-item-card {
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.review-item-card .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* ========================================================================= */
/* PANEL PLEGABLE DE RETIRO BANCARIO DEL PRODUCTOR (ACCORDION)               */
/* ========================================================================= */
.foldable-accordion-box {
  background: linear-gradient(180deg, #161D19 0%, #101512 100%);
  border: 1.5px solid rgba(200, 152, 68, 0.4);
  border-radius: 12px;
  margin-top: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.foldable-accordion-box.open {
  border-color: var(--dorado);
}

.foldable-accordion-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
  user-select: none;
}

.foldable-accordion-header:hover {
  background: rgba(200, 152, 68, 0.08);
}

.accordion-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(200, 152, 68, 0.15);
  border: 1.5px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dorado);
  flex-shrink: 0;
}

.accordion-balance-pill {
  background: rgba(31, 169, 113, 0.18);
  border: 1px solid var(--verde);
  color: #34D399;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
}

.accordion-chevron {
  font-size: 1.1rem;
  color: var(--dorado);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.foldable-accordion-box.open .accordion-chevron {
  transform: rotate(180deg);
}

.foldable-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.foldable-accordion-box.open .foldable-accordion-body {
  max-height: 1200px;
  opacity: 1;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(206, 189, 163, 0.15);
}

.amount-preset-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.amount-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 152, 68, 0.35);
  border-radius: 6px;
  color: #F1F5F9;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-preset-chip:hover {
  background: rgba(200, 152, 68, 0.2);
  border-color: var(--dorado);
  color: #FFFFFF;
}

.amount-preset-chip.highlight {
  background: rgba(31, 169, 113, 0.2);
  border-color: var(--verde);
  color: #34D399;
}

.amount-preset-chip.highlight:hover {
  background: var(--verde);
  color: #FFFFFF;
}

.retiro-summary-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(200, 152, 68, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ========================================================================= */
/* CHECKOUT CARD & PAYMENT METHOD STYLES                                     */
/* ========================================================================= */
.checkout-method-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 4px;
}

.input-card-icon-wrapper {
  position: relative;
}

.input-card-icon-wrapper input {
  padding-right: 44px;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-family: monospace, sans-serif;
  font-size: 1rem;
}

.card-brand-detected {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  transition: all 0.2s ease;
}

.card-security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 8px;
  background: var(--bg-muted);
  padding: 6px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--verde);
}

/* ========================================================================= */
/* TARJETAS DE HISTORIAL DE PEDIDOS (MIS PEDIDOS) - DARK AGTECH HIGH CONTRAST */
/* ========================================================================= */
.order-history-card {
  background: linear-gradient(180deg, #18201B 0%, #111613 100%) !important;
  border: 1.5px solid rgba(200, 152, 68, 0.45) !important;
  border-radius: 14px !important;
  padding: 22px 26px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.order-history-card:hover {
  border-color: var(--dorado) !important;
  transform: translateY(-2px);
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.order-history-id {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.order-history-date {
  margin-left: 12px;
  font-size: 0.86rem;
  color: #CEBDA3 !important;
}

.order-history-status-badge {
  background: rgba(31, 169, 113, 0.2) !important;
  border: 1px solid #1FA971 !important;
  color: #34D399 !important;
  font-weight: 800 !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-history-status-badge.pending {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: #F59E0B !important;
  color: #FBBF24 !important;
}

.order-history-items-box {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(200, 152, 68, 0.25) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-history-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(200, 152, 68, 0.2);
  padding-bottom: 10px;
}

.order-history-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-history-item-name {
  color: #FFFFFF !important;
}

.order-history-item-name strong {
  color: var(--dorado) !important;
  font-size: 1.05rem;
}

.order-history-item-price {
  color: var(--dorado) !important;
  font-size: 1.1rem;
  font-weight: 900;
}

.order-history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(206, 189, 163, 0.2);
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-history-delivery-info {
  color: #CEBDA3 !important;
  font-size: 0.88rem;
  display: block;
}

.order-history-delivery-info strong {
  color: #FFFFFF !important;
}

.order-history-total {
  font-weight: 900;
  color: #34D399 !important;
  font-size: 1.35rem;
  display: block;
  margin-top: 2px;
}

/* ========================================================================= */
/* WHATSAPP-STYLE INBOX & MESSENGER DEL PRODUCTOR                            */
/* ========================================================================= */
.whatsapp-messenger-card {
  background: #111B21;
  border: 1.5px solid rgba(200, 152, 68, 0.45);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.whatsapp-messenger-header {
  background: #202C33;
  padding: 16px 20px;
  border-bottom: 1.5px solid rgba(200, 152, 68, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.whatsapp-container-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 580px;
  background: #0C1317;
}

@media (max-width: 860px) {
  .whatsapp-container-grid {
    grid-template-columns: 1fr !important;
    height: 600px !important;
    position: relative;
    overflow: hidden;
  }
  .whatsapp-chat-column.hidden-mobile {
    display: none !important;
  }
  .whatsapp-threads-column.hidden-mobile {
    display: none !important;
  }
  .whatsapp-chat-column:not(.hidden-mobile) #waBackBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Columna Izquierda: Lista de Chats */
.whatsapp-threads-column {
  background: #111B21;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wa-search-bar-wrap {
  padding: 10px 14px;
  background: #111B21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-search-input {
  width: 100%;
  background: #202C33;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: #E9EDEF;
  outline: none;
}
.wa-search-input:focus {
  border-color: #00A884;
}

.wa-threads-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wa-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
  user-select: none;
}

.wa-thread-item:hover {
  background: #202C33;
}

.wa-thread-item.active {
  background: #2A3942;
  border-left: 4px solid #00A884;
}

.wa-thread-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00A884;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
}

.wa-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #111B21;
}

.wa-thread-info {
  flex: 1;
  min-width: 0;
}

.wa-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wa-thread-name {
  color: #E9EDEF;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-thread-time {
  color: #8696A0;
  font-size: 0.72rem;
}

.wa-thread-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wa-thread-snippet {
  color: #8696A0;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.wa-thread-badge {
  background: #25D366;
  color: #111B21;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 12px;
  padding: 2px 7px;
}

/* Columna Derecha: Conversación Activa */
.whatsapp-chat-column {
  display: flex;
  flex-direction: column;
  background: #0B141A;
  position: relative;
}

.wa-chat-header {
  background: #202C33;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-chat-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #0B141A;
  background-image: radial-gradient(rgba(0, 168, 132, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.wa-bubble {
  max-width: 78%;
  padding: 8px 12px 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  display: inline-flex;
  flex-direction: column;
}

.wa-bubble.incoming {
  align-self: flex-start;
  background: #202C33;
  color: #E9EDEF;
  border-top-left-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-bubble.outgoing {
  align-self: flex-end;
  background: #005C4B;
  color: #E9EDEF;
  border-top-right-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: rgba(233, 237, 239, 0.6);
  margin-top: 4px;
  align-self: flex-end;
}

.wa-check-double {
  color: #53BDEB;
  font-size: 0.8rem;
}

.wa-quick-chips-bar {
  padding: 8px 14px;
  background: #182229;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.wa-chip-btn {
  background: #202C33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D1D7DB;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wa-chip-btn:hover {
  background: #005C4B;
  color: #FFFFFF;
  border-color: #00A884;
}

.wa-chat-input-bar {
  background: #202C33;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-input-field {
  flex: 1;
  background: #2A3942;
  border: none;
  border-radius: 24px;
  padding: 10px 18px;
  color: #E9EDEF;
  font-size: 0.92rem;
  outline: none;
}
.wa-input-field:focus {
  background: #32424B;
}

.wa-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00A884;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-send-btn:hover {
  background: #06CF9C;
  transform: scale(1.06);
}

/* ========================================================================= */
/* 🌟 SISTEMA MULTIPLATAFORMA & DINAMISMO SAU YUL-TECH                       */
/* ========================================================================= */

/* 1. ANIMACIONES DE ENTRADA Y MICROINTERACCIONES */
@keyframes pageEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-view:not(.hidden) {
  animation: pageEntrance 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(31, 169, 113, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(31, 169, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 169, 113, 0); }
}

@keyframes pulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.14); }
  70% { transform: scale(1); }
}

.beacon-pulse-green {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1FA971;
  animation: pulseGreen 1.8s infinite;
  vertical-align: middle;
}

.beacon-pulse-amber {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F59E0B;
  animation: pulseAmber 1.8s infinite;
  vertical-align: middle;
}

.beacon-pulse-red {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulseRed 1.4s infinite;
  vertical-align: middle;
}

.heartbeat-icon {
  display: inline-block;
  color: #EF4444;
  animation: heartbeat 1.4s infinite ease-in-out;
}

/* Shimmer Loading Skeleton */
@keyframes shimmerSkeleton {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(200,152,68,0.12) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.6s infinite;
  border-radius: 8px;
}

/* Micro-Hover para tarjetas en Desktop */
@media (min-width: 1025px) {
  .admin-stat-card, .inventory-kpi-card, .product-card, .iot-collar-card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  }
  .admin-stat-card:hover, .inventory-kpi-card:hover, .product-card:hover, .iot-collar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    border-color: rgba(200, 152, 68, 0.6) !important;
  }
}

/* 2. BARRA DE NAVEGACIÓN INFERIOR PARA TELÉFONO MÓVIL (NATIVE DOCK) */
.mobile-bottom-dock {
  display: none;
}

/* El dock móvil inferior SOLO debe ser visible cuando el usuario esté autenticado en la app privada */
body:not(.user-authenticated) .mobile-bottom-dock {
  display: none !important;
}

@media (max-width: 768px) {
  body.user-authenticated .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(11, 20, 26, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid rgba(200, 152, 68, 0.35);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  /* Padding inferior condicional: SOLO cuando el usuario está autenticado */
  body.user-authenticated,
  body.user-authenticated .app-main-content,
  body.user-authenticated .app-view {
    padding-bottom: 84px !important;
  }

  /* Control de visualización en cabecera móvil */
  .header-logout-pill-btn span.desktop-only-inline {
    display: none;
  }

  .mobile-dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #8696A0;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.2s ease;
    border-radius: 10px;
    position: relative;
    user-select: none;
  }

  .mobile-dock-item i {
    font-size: 1.25rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .mobile-dock-item span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  .mobile-dock-item.active {
    color: var(--dorado);
  }

  .mobile-dock-item.active i {
    transform: translateY(-2px) scale(1.14);
    color: var(--dorado);
    filter: drop-shadow(0 0 8px rgba(200, 152, 68, 0.5));
  }

  .mobile-dock-item:active {
    transform: scale(0.92);
  }

  .mobile-dock-badge {
    position: absolute;
    top: 3px;
    right: 22%;
    background: #25D366;
    color: #111B21;
    font-size: 0.62rem;
    font-weight: 900;
    border-radius: 10px;
    padding: 1px 5px;
    line-height: 1.2;
    box-shadow: 0 0 6px rgba(37, 211, 102, 0.6);
  }
}

/* ========================================================================================
 * 👑 BOTONES DE SALIDA DE LUJO (LUXURY EXIT / LOGOUT SUITE - AGTECH 2026)
 * Obsidian Glass + Ruby Core + Golden Leaf Accents (Cero botones blancos sin estilo)
 * ======================================================================================== */
.header-luxury-exit-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(22, 12, 12, 0.88) !important;
  border: 1.5px solid rgba(220, 50, 50, 0.45) !important;
  color: #FEE2E2 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  line-height: 1 !important;
}

.header-luxury-exit-btn i {
  color: #F87171 !important;
  font-size: 0.88rem !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.header-luxury-exit-btn:hover,
.header-luxury-exit-btn:active {
  background: linear-gradient(135deg, rgba(62, 16, 16, 0.96) 0%, rgba(28, 14, 12, 0.98) 100%) !important;
  border-color: rgba(239, 68, 68, 0.85) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35), 0 0 12px rgba(200, 152, 68, 0.22) !important;
}

.header-luxury-exit-btn:hover i,
.header-luxury-exit-btn:active i {
  transform: translateX(2px) !important;
  color: #FFFFFF !important;
}

.sidebar-luxury-exit-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  background: rgba(22, 12, 12, 0.88) !important;
  border: 1.5px solid rgba(220, 50, 50, 0.38) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #FEE2E2 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.22s ease !important;
  user-select: none !important;
}

.sidebar-luxury-exit-btn i {
  color: #F87171 !important;
  font-size: 0.92rem !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.sidebar-luxury-exit-btn:hover,
.sidebar-luxury-exit-btn:active {
  background: linear-gradient(135deg, rgba(58, 18, 18, 0.96) 0%, rgba(24, 12, 10, 0.98) 100%) !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35) !important;
}

.sidebar-luxury-exit-btn:hover i,
.sidebar-luxury-exit-btn:active i {
  transform: translateX(3px) !important;
  color: #FFFFFF !important;
}

.admin-luxury-exit-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: linear-gradient(135deg, rgba(35, 12, 12, 0.92) 0%, rgba(18, 12, 10, 0.96) 100%) !important;
  border: 1px solid rgba(220, 50, 50, 0.45) !important;
  color: #FEE2E2 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-luxury-exit-btn i {
  color: #F87171 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.admin-luxury-exit-btn:hover,
.admin-luxury-exit-btn:active {
  background: linear-gradient(135deg, rgba(62, 16, 16, 0.96) 0%, rgba(28, 14, 12, 0.98) 100%) !important;
  border-color: rgba(239, 68, 68, 0.85) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.38), 0 0 12px rgba(200, 152, 68, 0.22) !important;
}

.admin-luxury-exit-btn:hover i,
.admin-luxury-exit-btn:active i {
  transform: translateX(3px) !important;
  color: #FFFFFF !important;
}

.profile-logout-banner {
  background: linear-gradient(135deg, rgba(20, 14, 12, 0.95) 0%, rgba(10, 8, 7, 0.98) 100%) !important;
  border: 1px solid rgba(200, 152, 68, 0.35) !important;
  border-left: 4px solid #EF4444 !important;
  border-radius: 14px !important;
  padding: 18px 24px !important;
  margin: 20px 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  color: #FAF4EB !important;
}

.profile-logout-banner strong {
  display: block;
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.profile-logout-banner small {
  display: block;
  font-size: 0.84rem;
  color: #CEBDA3;
}


/* 3. MAPA Y RASTREO: INSPECTOR LATERAL EN DESKTOP VS. BOTTOM SHEET EN MÓVIL */
.satellite-map-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(200, 152, 68, 0.35);
  height: 520px;
}

@media (max-width: 768px) {
  .satellite-map-container {
    height: 65vh;
    min-height: 420px;
  }
}

/* Panel Inspector Desktop (Flotante a la derecha del mapa) */
.desktop-animal-inspector {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 340px;
  max-height: calc(100% - 28px);
  background: rgba(17, 27, 33, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(200, 152, 68, 0.45);
  border-radius: 14px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.desktop-animal-inspector.open {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-animal-inspector {
    display: none !important;
  }
}

/* Sliding Bottom Sheet para Móvil */
.mobile-animal-bottom-sheet {
  position: fixed;
  bottom: 64px; /* Justo arriba del dock */
  left: 0;
  right: 0;
  background: #111B21;
  border-top: 2px solid rgba(200, 152, 68, 0.5);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 9998;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 75vh;
  overflow-y: auto;
  padding: 12px 18px 20px;
}

.mobile-animal-bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-drag-pill {
  width: 44px;
  height: 5px;
  background: rgba(206, 189, 163, 0.3);
  border-radius: 4px;
  margin: 0 auto 12px;
}

/* 4. MEDIDOR DE BATERÍA Y BARRAS DE SEÑAL LORA/GSM */
.battery-meter-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery-pill-box {
  width: 28px;
  height: 14px;
  border: 1.5px solid #CEBDA3;
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
  display: flex;
  align-items: center;
}

.battery-pill-box::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: #CEBDA3;
  border-radius: 0 1px 1px 0;
}

.battery-pill-level {
  height: 100%;
  border-radius: 1.5px;
  transition: width 0.4s ease, background 0.3s ease;
}

.signal-bars-box {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.signal-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

.signal-bar.bar-1 { height: 4px; }
.signal-bar.bar-2 { height: 7px; }
.signal-bar.bar-3 { height: 10px; }
.signal-bar.bar-4 { height: 14px; }

.signal-bar.active {
  background: #1FA971;
  box-shadow: 0 0 4px rgba(31, 169, 113, 0.6);
}

/* 5. TARJETAS DE GANADO ADAPTATIVAS PARA MÓVIL (EN LUGAR DE TABLA DESBORDADA) */
.cattle-mobile-cards-feed {
  display: none;
}

@media (max-width: 768px) {
  .cattle-desktop-table-wrap {
    display: none !important;
  }
  .cattle-mobile-cards-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cattle-mobile-card {
    background: #111613;
    border: 1.5px solid rgba(200, 152, 68, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
  .cattle-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cattle-mobile-vitals-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(200, 152, 68, 0.15);
  }
  .cattle-mobile-vital-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cattle-mobile-vital-item small {
    font-size: 0.68rem;
    color: #CEBDA3;
  }
  .cattle-mobile-vital-item strong {
    font-size: 0.88rem;
  }
}

/* 6. ECO-MERCADO: CARRUSEL HORIZONTAL TÁCTIL Y FAB EN MÓVIL */
.mobile-market-categories-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-market-categories-bar {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 4px 12px;
    margin-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-market-categories-bar::-webkit-scrollbar {
    display: none;
  }
  .mobile-category-chip {
    flex-shrink: 0;
    background: #18201B;
    border: 1px solid rgba(200, 152, 68, 0.3);
    color: #CEBDA3;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-category-chip.active {
    background: #1FA971;
    color: #FFFFFF;
    border-color: #1FA971;
    box-shadow: 0 2px 10px rgba(31, 169, 113, 0.4);
  }
}

/* Botón Flotante de Acción (FAB) para publicar en móvil */
.mobile-fab-publish {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fab-publish {
    display: flex;
    position: fixed;
    bottom: 76px;
    right: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C89844 0%, #907151 100%);
    color: #182B20;
    box-shadow: 0 6px 20px rgba(200, 152, 68, 0.55);
    border: 2px solid #FAF6F0;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 9990;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .mobile-fab-publish:active {
    transform: scale(0.9);
  }
}

/* 7. COLLARES IOT: PESTAÑAS DE FILTRO Y TARJETAS DARK AGTECH */
.iot-filter-tabs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.iot-filter-pill-btn {
  background: #111613;
  border: 1px solid rgba(200, 152, 68, 0.3);
  color: #CEBDA3;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.iot-filter-pill-btn.active {
  background: rgba(200, 152, 68, 0.2);
  border-color: var(--dorado);
  color: #FFFFFF;
}

.iot-collar-card.dark-tech {
  background: #111613 !important;
  border: 1.5px solid rgba(200, 152, 68, 0.4) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55) !important;
}

/* 8. TABLET ADAPTATIONS (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .market-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .secondary-btn, .btn-gold-action, .primary-action, .opportunity-action {
    min-height: 46px;
    font-size: 0.92rem;
    padding: 10px 18px;
  }
  .desktop-animal-inspector {
    width: 290px;
  }
}

/* ========================================================================================
 * 👑 PANEL ADMINISTRATIVO - VISTA TIPO LISTA & DESGLOSE DE CANTIDADES DE USUARIOS
 * ======================================================================================== */
.admin-users-quantities-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.user-qty-summary-card {
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.user-qty-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--dorado);
}

.user-qty-summary-card.highlight {
  border-color: var(--dorado);
  background: linear-gradient(145deg, #FAF6F0 0%, #F5EBDD 100%);
}

.user-qty-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.user-qty-summary-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #5C4033;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-qty-summary-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #382517;
  line-height: 1.1;
  margin: 4px 0;
}

.user-qty-summary-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1FA971;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Barra de Filtros y Controles */
.admin-users-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #FFFFFF;
  border: 1.5px solid #D5C7B5;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 18px;
}

.admin-users-role-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.user-role-pill-btn {
  background: #FAF6F0;
  border: 1.5px solid #8C7355;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #382517;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.user-role-pill-btn:hover {
  background: #EFE8DE;
  border-color: var(--dorado);
}

.user-role-pill-btn.active {
  background: #382517;
  color: #FAF6F0;
  border-color: #382517;
  box-shadow: 0 2px 8px rgba(56, 37, 23, 0.25);
}

.user-role-pill-btn .count-badge {
  background: rgba(200, 152, 68, 0.25);
  color: #C89844;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.user-role-pill-btn.active .count-badge {
  background: var(--dorado);
  color: #1E1308;
}

/* Píldora de Lista Negra */
.user-role-pill-btn.is-blacklist-pill {
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.35);
  background: #FFFDFD;
}

.user-role-pill-btn.is-blacklist-pill:hover {
  background: #FEF2F2;
  border-color: #DC2626;
  color: #B91C1C;
}

.user-role-pill-btn.is-blacklist-pill.active {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.user-role-pill-btn.is-blacklist-pill .count-badge {
  background: #FEE2E2;
  color: #991B1B;
}

.user-role-pill-btn.is-blacklist-pill.active .count-badge {
  background: #FFFFFF;
  color: #DC2626;
}

/* Conmutador de Vista (Lista vs Tabla) */
.user-view-toggle-group {
  display: inline-flex;
  border: 1.5px solid #8C7355;
  border-radius: 10px;
  overflow: hidden;
  background: #FAF6F0;
}

.user-view-toggle-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #5C4033;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.user-view-toggle-btn.active {
  background: #382517;
  color: #FAF6F0;
}

/* Vista Tipo Lista: Tarjetas de Usuario */
.admin-user-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-user-card-item {
  background: #FFFFFF;
  border: 1.5px solid #D5C7B5;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.admin-user-card-item:hover {
  border-color: #8C7355;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.admin-user-card-item.is-admin {
  border-left: 5px solid var(--dorado);
}

.admin-user-card-item.is-farmer {
  border-left: 5px solid #1FA971;
}

.admin-user-card-item.is-cattle {
  border-left: 5px solid #C89844;
}

.admin-user-card-item.is-buyer {
  border-left: 5px solid #3B82F6;
}

.admin-user-card-item.is-vet {
  border-left: 5px solid #8B5CF6;
}

.admin-user-card-item.is-blacklisted,
.senior-user-card {
  border: 2px solid #EF4444;
  border-left: 8px solid #DC2626;
  background: #FFFDFD;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  word-break: break-word;
}

/* Clases de Alta Accesibilidad para Adultos Mayores (45+ Años) y Dispositivos Móviles */
.senior-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.senior-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  border: 2.5px solid #EF4444;
  flex-shrink: 0;
}

.senior-user-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #182B20;
  margin: 0;
  line-height: 1.25;
}

.senior-meta-badge {
  font-size: 0.92rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.senior-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0FDF4;
  border: 2px solid #22C55E;
  color: #15803D;
  font-weight: 900;
  font-size: 1.02rem;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.senior-call-btn:hover {
  background: #DCFCE7;
  transform: translateY(-1px);
}

.senior-password-box {
  background: #FFFFFF;
  border: 2px solid #22C55E;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 10px 0;
  box-sizing: border-box;
  width: 100%;
}

.btn-senior-restore {
  background: #16A34A !important;
  color: #FFFFFF !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  min-height: 56px !important;
  padding: 14px 24px !important;
  border: none !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-senior-restore:hover {
  background: #15803D !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45) !important;
}

.btn-senior-restore:active {
  transform: translateY(0) !important;
}

@media (max-width: 768px) {
  .admin-user-card-item.is-blacklisted {
    padding: 14px 12px;
    border-radius: 14px;
  }
  #masterSubTab-blacklist {
    padding: 12px 6px !important;
  }
  .senior-user-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .senior-user-name {
    font-size: 1.2rem;
  }
  .btn-senior-restore {
    font-size: 0.98rem !important;
    min-height: 52px !important;
    padding: 12px 16px !important;
  }
}


.admin-user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.user-identity-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #382517 0%, #18110B 100%);
  color: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  border: 2px solid var(--dorado);
  flex-shrink: 0;
}

.user-identity-details h3 {
  margin: 0;
  color: #2C1E12;
  font-size: 1.08rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-identity-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #5C4033;
}

.user-email-code {
  background: #FAF6F0;
  border: 1px solid #D5C7B5;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #182B20;
}

/* Grilla de Cantidades de la Persona */
.user-quantities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: #FAF6F0;
  border: 1px solid #E5D9C8;
  border-radius: 12px;
  padding: 12px 14px;
}

.user-qty-chip {
  background: #FFFFFF;
  border: 1px solid #D5C7B5;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.user-qty-chip:hover {
  border-color: var(--dorado);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-qty-chip-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #5C4033;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.user-qty-chip-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: #2C1E12;
  line-height: 1.2;
}

.user-qty-chip-value.positive {
  color: #1FA971;
}

.user-qty-chip-value.gold {
  color: #C89844;
}

.user-qty-chip-sub {
  font-size: 0.68rem;
  color: #7D6352;
  font-weight: 600;
  margin-top: 1px;
}

/* Barra de Acciones del Usuario */
.user-card-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #E5D9C8;
}

.user-card-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #5C4033;
  font-weight: 700;
}

.user-card-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modal de Cantidades - Tema Oscuro Luxury AgTech Alta Legibilidad (WCAG AAA) */
.modal-user-quantities-box {
  background: #110D0A !important;
  border: 2px solid #8C7355 !important;
  border-radius: 20px !important;
  padding: 26px !important;
  width: 95% !important;
  max-width: 820px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
  color: #FFFFFF !important;
}

.modal-user-quantities-box .user-quantities-grid {
  background: #18130E !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  gap: 12px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.modal-user-quantities-box .user-qty-chip {
  background: #241A13 !important;
  border: 1.5px solid rgba(140, 115, 85, 0.45) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease !important;
}

.modal-user-quantities-box .user-qty-chip:hover {
  border-color: #C89844 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55) !important;
}

.modal-user-quantities-box .user-qty-chip-label {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: #EDE4D8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

.modal-user-quantities-box .user-qty-chip-value {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  line-height: 1.2 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-user-quantities-box .user-qty-chip-value.positive {
  color: #34D399 !important;
}

.modal-user-quantities-box .user-qty-chip-value.gold {
  color: #F59E0B !important;
}

.modal-user-quantities-box .user-qty-chip-value.blue {
  color: #60A5FA !important;
}

.modal-user-quantities-box .user-qty-chip-sub {
  font-size: 0.74rem !important;
  color: #CEBDA3 !important;
  font-weight: 600 !important;
  margin-top: 3px !important;
}

.modal-user-quantities-box .quantities-modal-section {
  background: #18130E !important;
  border: 1.5px solid #8C7355 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  margin-top: 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.modal-user-quantities-box .quantities-modal-section-title {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  margin: 0 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.modal-user-quantities-box .bovine-telemetry-chip {
  background: #241A13 !important;
  border: 1.5px solid rgba(140, 115, 85, 0.45) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 0.84rem !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
}

.modal-user-quantities-box .bovine-telemetry-chip:hover {
  border-color: #C89844 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

.modal-user-quantities-box .bovine-telemetry-chip-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 6px !important;
}

.modal-user-quantities-box .bovine-telemetry-chip-name {
  color: #FFFFFF !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px !important;
}

.modal-user-quantities-box .bovine-telemetry-chip-meta {
  color: #CEBDA3 !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

.modal-user-quantities-box .bovine-telemetry-chip-meta strong {
  color: #FFFFFF !important;
}

.admin-user-card-item .user-qty-chip-label {
  color: #382517 !important;
  font-weight: 800 !important;
}
.admin-user-card-item .user-qty-chip-value {
  color: #18110B !important;
  font-weight: 900 !important;
}
.admin-user-card-item .user-qty-chip-sub {
  color: #5C4033 !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .admin-users-quantities-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-quantities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-card-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .user-card-actions-right {
    justify-content: flex-end;
  }
}

/* ========================================================================================
 * 📲 TRANSFORMACIÓN MÓVIL Y ACCESIBILIDAD RURAL (SAU YUL TECH 2026)
 * ======================================================================================== */

/* 1. BARRA DE ESTADO DE RED (OFFLINE FIRST) */
.network-status-banner {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 10px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.network-status-banner.offline {
  background: #FEF3C7;
  color: #92400E;
  border-bottom: 2px solid #F59E0B;
}
.network-status-banner.online {
  background: #D1FAE5;
  color: #065F46;
  border-bottom: 2px solid #10B981;
}
.network-status-banner.hidden {
  display: none !important;
}

/* 3. BARRA DE NAVEGACIÓN INFERIOR MÓVIL (DOCK) */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background: #121815;
  border-top: 1.5px solid rgba(200,152,68,0.35);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  z-index: 9995;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-dock-container {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}
.mobile-dock-btn {
  flex: 1;
  height: 100%;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #A0AEC0;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 3px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
  text-decoration: none;
}
.mobile-dock-btn i {
  font-size: 1.25rem;
}
.mobile-dock-btn.active {
  color: var(--gold) !important;
}
.mobile-dock-btn.active i {
  color: var(--gold);
}
.mobile-dock-badge {
  position: absolute;
  top: 6px;
  right: 25%;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  border-radius: 9999px;
  padding: 1px 6px;
}

/* 4. ONBOARDING DOTS */
.onboarding-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D5C7B5;
  transition: all 0.3s ease;
}
.onboarding-dot.active {
  background: var(--verde);
  width: 24px;
  border-radius: 6px;
}

/* 5. MULTI-STEP WIZARD */
.wizard-step, .publish-wizard-step, .checkout-wizard-step {
  display: none;
}
.wizard-step.active, .publish-wizard-step.active, .checkout-wizard-step.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.publish-wizard-dot.active, .checkout-wizard-dot.active {
  background: var(--gold) !important;
}
.publish-wizard-dot.completed, .checkout-wizard-dot.completed {
  background: var(--verde) !important;
}

/* 6. EXPERIENCIA MÓVIL DEDICADA (< 768px) */
@media (max-width: 768px) {
  /* Barra lateral en móvil: Drawer Off-Canvas fluido y visible */
  .app-sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 285px !important;
    min-width: 285px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: translateX(-100%) !important;
    z-index: 10000 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: none !important;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.95) !important;
  }

  .mobile-sidebar-backdrop {
    z-index: 9999 !important;
  }

  .mobile-sidebar-backdrop.mobile-open {
    display: block !important;
  }

  /* Mostrar la barra inferior fija */
  .mobile-bottom-dock {
    display: block !important;
  }

  /* Dejar espacio inferior para que el dock no tape nada */
  .app-private-shell, 
  .public-site-wrapper, 
  .app-view-container, 
  .dashboard-main-area {
    padding-bottom: 78px !important;
  }

  /* Tipografía accesible para personas de 30 a 60+ años */
  body {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  input, select, textarea {
    font-size: 17px !important;
    min-height: 48px !important;
  }

  /* Botones táctiles grandes (min 48-56px de alto) */
  .primary-action, 
  .btn-gold-action, 
  .secondary-btn, 
  .danger-btn, 
  .btn-comprar-ahora {
    min-height: 48px !important;
    font-size: 1rem !important;
    padding: 12px 20px !important;
  }

  /* Tarjetas de productos a 1 sola columna en celular */
  .marketplace-products-grid, 
  .market-catalog-grid, 
  .seller-products-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .market-product-card {
    border-radius: 16px !important;
  }

  .market-product-card .btn-comprar-ahora,
  .market-product-card .primary-action {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 1.05rem !important;
    justify-content: center !important;
  }

  /* Tablas responsivas convertidas en tarjetas verticales (cero scroll horizontal) */
  .responsive-table-mobile table,
  .responsive-table-mobile thead,
  .responsive-table-mobile tbody,
  .responsive-table-mobile th,
  .responsive-table-mobile td,
  .responsive-table-mobile tr {
    display: block !important;
  }

  .responsive-table-mobile thead {
    display: none !important;
  }

  .responsive-table-mobile tr {
    border: 1.5px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    padding: 14px !important;
    background: var(--bg-card) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
  }

  .responsive-table-mobile td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px dashed var(--border-subtle) !important;
    font-size: 0.95rem !important;
  }

  .responsive-table-mobile td:last-child {
    border-bottom: none !important;
    margin-top: 8px !important;
    justify-content: flex-end !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: experiencia intermedia */
  .marketplace-products-grid, 
  .market-catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1025px) {
  /* PC: límite de lectura para párrafos */
  p {
    max-width: 800px;
  }
}

/* ========================================================================================
 * 📱 NAVEGACIÓN INFERIOR MÓVIL MODERNA (BOTTOM NAVIGATION BAR) & OPTIMIZACIÓN MÓVIL
 * ======================================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(13, 10, 8, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(200, 152, 68, 0.35);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 10px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #CEBDA3;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 4px;
  cursor: pointer;
  flex: 1;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #C89844 !important;
  transform: translateY(-1px);
}

.mobile-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #1FA971;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Modales legibilidad garantizada */
.app-modal-box {
  background: #110D0A !important;
  color: #EDE4D8 !important;
}

.app-modal-box h1,
.app-modal-box h2,
.app-modal-box h3,
.app-modal-box h4 {
  color: #FFFFFF !important;
}

.app-modal-box p,
.app-modal-box small,
.app-modal-box span {
  color: #EDE4D8;
}

.app-modal-box label {
  color: #FFFFFF !important;
}

.app-modal-box input,
.app-modal-box select,
.app-modal-box textarea {
  background: #18130E !important;
  color: #FFFFFF !important;
  border: 1.5px solid #8C7355 !important;
}
.app-modal-box input::placeholder,
.app-modal-box textarea::placeholder {
  color: #A89885 !important;
  opacity: 1 !important;
}

/* Tablas con fondo claro mantienen texto legible */
.transfers-table th,
.transfers-table td,
.auth-glassmorphic-card label {
  color: inherit;
}

#waBackBtn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block !important;
  }

  body {
    padding-bottom: 74px !important;
  }

  /* Ajustar botón flotante de carrito para no solapar con barra inferior */
  .floating-cart-fab,
  #btnFloatingCart {
    bottom: 80px !important;
    right: 18px !important;
  }

  /* Escala balanceada de círculos e íconos en móvil */
  .step-circle,
  [class*="step-circle"] {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
  }

  .app-modal-box {
    padding: 20px 14px !important;
    border-radius: 16px !important;
    width: 96% !important;
    max-height: 90vh !important;
  }
}

/* WhatsApp Switcher Responsivo */
@media (max-width: 860px) {
  .whatsapp-container-grid {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 220px) !important;
    min-height: 480px !important;
  }

  .whatsapp-threads-column.hidden-mobile,
  .whatsapp-chat-column.hidden-mobile {
    display: none !important;
  }

  .whatsapp-threads-column,
  .whatsapp-chat-column {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border-right: none !important;
  }

  #waBackBtn {
    display: inline-flex !important;
  }
}



