/* ==============================================================================
   FLORARIUM EC — ESTILOS ADAPTADOS (VIVARIUM PARADIGM + TRENDS 2026)
   - Elementos 3D e inmersivos (Perspective & Tilt)
   - Modo Oscuro / Dark Mode Invernadero
   - Glassmorphism & Microinteracciones fluidas
   - Tipografía audaz y editorial
   - Interfaz de Voz & Asistente IA Concierge
   ============================================================================== */

:root {
  /* Modo Claro (Luz Diurna) */
  --bg-primary: #fcfbf9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f3ef;
  --text-main: #141b18;
  --text-muted: #5e6863;
  --border-subtle: #e5e3dc;
  --border-focus: #064e3b;
  
  /* Acentos de Marca Vibrantes (Trend 2026) */
  --primary-emerald: #064e3b;
  --primary-emerald-hover: #043527;
  --primary-emerald-glow: rgba(6, 78, 59, 0.25);
  --accent-rose: #f43f5e;
  --accent-orchid: #d946ef;
  --accent-gold: #c5a880;
  --accent-gold-light: #fef3c7;
  
  /* Glassmorphism & Sombras */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.07);
  --shadow-float: 0 25px 50px -12px rgba(6, 78, 59, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Modo Oscuro (Invernadero Nocturno) */
  --bg-primary: #080d0a;
  --bg-surface: #101813;
  --bg-surface-elevated: #16221b;
  --text-main: #f3f4f1;
  --text-muted: #95a39b;
  --border-subtle: #1f2f26;
  --border-focus: #10b981;
  
  --primary-emerald: #10b981;
  --primary-emerald-hover: #059669;
  --primary-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-rose: #fb7185;
  --accent-orchid: #e879f9;
  --accent-gold: #e2c196;
  --accent-gold-light: #292015;
  
  --glass-bg: rgba(16, 24, 19, 0.85);
  --glass-border: rgba(31, 47, 38, 0.8);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ==============================================================================
   VIVARIUM STORE HEADER & HORIZONTAL TABS (REPLICA EXACTA ADAPTADA)
   ============================================================================== */
.vivarium-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #74a453 0%, #5b8e3a 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

[data-theme="dark"] .vivarium-top-header {
  background: linear-gradient(180deg, #23401f 0%, #162a13 100%);
}

.vivarium-header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Izquierda: Menú Hamburguesa & Back Button */
.vivarium-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
}

.btn-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-back-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition);
}

.btn-back-pill:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(-2px);
}

/* Centro: Logo Florarium Store con Signo Distintivo */
.vivarium-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.vivarium-brand:hover {
  transform: scale(1.02);
}

.vivarium-brand-badge-3d {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: 3px;
  overflow: hidden;
  transition: var(--transition);
}

.vivarium-brand:hover .vivarium-brand-badge-3d {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 0 2px #fef3c7;
  transform: rotate(-3deg);
}

.brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vivarium-brand-text {
  display: flex;
  flex-direction: column;
}

.vivarium-brand-text .brand-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.vivarium-brand-text .brand-store {
  font-weight: 500;
  color: #1e3a15;
  margin-left: 0.2rem;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .vivarium-brand-text .brand-store {
  background: #064e3b;
  color: #a7f3d0;
}

.vivarium-brand-text .brand-subtitle {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==============================================================================
   SELLO DISTINTIVO FLORARIUM (MARCA DE AGUA EN ESQUINA SUPERIOR DERECHA)
   ============================================================================== */
.florarium-watermark-seal {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(197, 168, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.product-specimen-card:hover .florarium-watermark-seal {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.35), 0 0 0 1.5px #c5a880;
}

.florarium-watermark-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

[data-theme="dark"] .florarium-watermark-seal {
  background: rgba(16, 24, 19, 0.9);
  border-color: rgba(31, 47, 38, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(226, 193, 150, 0.35);
}

/* Derecha: Buscador, Carrito y Perfil */
.vivarium-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vivarium-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.25rem 0.15rem 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.vivarium-search-box input {
  border: none;
  outline: none;
  font-size: 0.82rem;
  width: 135px;
  color: #1f2937;
  font-family: var(--font-sans);
}

.vivarium-search-btn {
  background: #5b8e3a;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.vivarium-search-btn:hover {
  background: #467329;
}

.vivarium-cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #234716;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.vivarium-cart-btn:hover {
  transform: scale(1.05);
  background: #193410;
}

.vivarium-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #4ade80;
  color: #052e16;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.4rem;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vivarium-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.vivarium-profile-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.btn-theme-minimal {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* ==============================================================================
   VIVARIUM SUB-BAR DE PESTAÑAS (ROSAS, CLAVELES, ORQUÍDEAS, BOUQUETS, ETC.)
   ============================================================================== */
.vivarium-tabs-nav {
  background: #dbead3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 53px;
  z-index: 99;
}

[data-theme="dark"] .vivarium-tabs-nav {
  background: #142419;
  border-bottom: 1px solid #1f3626;
}

.vivarium-tabs-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  overflow-x: auto;
  padding: 0 1rem;
}

.vivarium-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b5c2a;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

[data-theme="dark"] .vivarium-tab {
  color: #93c5a0;
}

.vivarium-tab:hover {
  color: #1e3a15;
}

.vivarium-tab.active {
  color: #1b3812;
  font-weight: 800;
  border-bottom-color: #44742e;
}

[data-theme="dark"] .vivarium-tab.active {
  color: #a7f3d0;
  border-bottom-color: #10b981;
}

/* ==============================================================================
   HERO BANNER: HOJAS TROPICALES CON GOTAS DE ROCÍO (VIVARIUM PARADIGM)
   ============================================================================== */
/* ==============================================================================
   HERO BANNER: HOJAS TROPICALES VIVAS CON GOTAS DE ROCÍO (VIVARIUM VIBRANT PARADIGM)
   ============================================================================== */
.vivarium-hero-banner {
  position: relative;
  background: #25581e url('vivarium_leaves_dew.jpg') center center / cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.45);
}

.vivarium-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 60, 24, 0.45) 0%, rgba(6, 78, 59, 0.65) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
}

.vivarium-hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.vivarium-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vivarium-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.vivarium-hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bef264;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.vivarium-hero-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #ffffff;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 840px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.vivarium-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-vivarium-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #a3e635;
  color: #052e16;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.btn-vivarium-primary:hover {
  transform: translateY(-2px) scale(1.03);
  background: #bef264;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.btn-vivarium-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #15803d;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.btn-vivarium-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-vivarium-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-vivarium-secondary:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ==============================================================================
   SECCIÓN DE HISTORIA, BIODIVERSIDAD Y ESTADO NATURAL
   ============================================================================== */
.florarium-history-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.history-container {
  max-width: 1300px;
  margin: 0 auto;
}

.history-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.history-header .history-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 78, 59, 0.1);
  color: var(--primary-emerald);
  margin-bottom: 1rem;
}

.history-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.history-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .history-grid {
    grid-template-columns: 4.5fr 7.5fr;
    gap: 3.5rem;
  }
}

.history-brand-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.history-brand-card .brand-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, #ffffff 0%, #f4f3ef 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.history-brand-card .brand-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.history-brand-card:hover .brand-card-img-wrap img {
  transform: scale(1.05);
}

.history-brand-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.history-brand-card .slogan {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-emerald);
  margin-top: 0.35rem;
}

.history-brand-card .sub-slogan {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.history-brand-card .brand-whatsapp-btn {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.history-brand-card .brand-whatsapp-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary-emerald);
  color: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.history-brand-card .brand-whatsapp-btn a:hover {
  background: var(--primary-emerald-hover);
  transform: translateY(-2px);
}

.history-cards-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.history-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.history-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-float);
}

.history-card-item .item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 78, 59, 0.1);
  color: var(--primary-emerald);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  shrink: 0;
}

.history-card-item .item-content h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.history-card-item .item-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-vivarium-secondary:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: #ffffff;
}

/* ==============================================================================
   PIN GATE MODAL & KEYPAD
   ============================================================================== */
.pin-input-container {
  margin: 1rem 0;
}

.pin-input-container input {
  font-family: monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-align: center;
  width: 170px;
  padding: 0.4rem 0.5rem;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.pin-input-container input:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 3px var(--primary-emerald-glow);
}

.pin-error-text {
  color: var(--accent-rose);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 240px;
  margin: 1.25rem auto 0;
}

.pin-keypad button {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.65rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.pin-keypad button:hover {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
}

.btn-cancel-flat {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.btn-cancel-flat:hover {
  color: var(--text-main);
}

/* ==============================================================================
   ADMIN SUBTABS & GOOGLE AI STUDIO (BUILD FUNCTION) PANEL
   ============================================================================== */
.admin-subtabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.admin-subtab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-subtab-btn.active {
  background: var(--primary-emerald);
  color: #ffffff;
}

.ai-studio-panel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.ai-studio-badge {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Tarjeta Inmersiva 3D Tilt (Trend 1) */
.tilt-card-container {
  perspective: 1200px;
}

.tilt-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-surface-elevated));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-float);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.tilt-card:hover {
  box-shadow: 0 30px 60px -15px var(--primary-emerald-glow);
}

.tilt-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.tilt-preview-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #022c22;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tilt-preview-img svg,
.tilt-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tilt-info h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tilt-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================================
   LAYOUT PRINCIPAL: SIDEBAR DE FILTROS CIENTÍFICOS + GRID DE PRODUCTOS
   (ADAPTADO DE VIVARIUM-STORE)
   ============================================================================== */
.main-store-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar de Filtros Botánicos */
.filters-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filters-header h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-reset-filters {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-rose);
  cursor: pointer;
  text-transform: uppercase;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* Checkboxes estilizados */
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.filter-checkbox-label input {
  accent-color: var(--primary-emerald);
  width: 16px;
  height: 16px;
}

/* Sliders de Rango Botánico (Altura, Hidratación, Durabilidad) */
.range-slider-wrapper {
  margin-top: 0.5rem;
}

.range-slider-wrapper input[type="range"] {
  width: 100%;
  accent-color: var(--primary-emerald);
}

.range-values-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==============================================================================
   GRID DE PRODUCTOS Y TARJETAS BOTÁNICAS
   ============================================================================== */
.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-omnibox {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.search-omnibox input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.search-omnibox input:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 3px var(--primary-emerald-glow);
}

.search-omnibox .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta de Producto */
.product-specimen-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
}

.product-specimen-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-float);
}

.product-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

.product-media-wrap img,
.product-media-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-specimen-card:hover .product-media-wrap img,
.product-specimen-card:hover .product-media-wrap svg {
  transform: scale(1.05);
}

.product-origin-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-category-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-emerald);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.product-presentation {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Micro-métricas de Terroir */
.specimen-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  font-size: 0.68rem;
  text-align: center;
}

.metric-item strong {
  display: block;
  color: var(--text-main);
  font-weight: 700;
}

.metric-item span {
  color: var(--text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-add-cart {
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary-emerald-hover);
  transform: translateY(-2px);
}

/* ==============================================================================
   MODAL DE GESTIÓN FOTOGRÁFICA Y EDICIÓN (ADAPTADO DE VIVARIUM-STORE)
   SOPORTE DE DRAG & DROP, PORTADA, REORDENAR, ACTIVE, ARCHIVED, DELETED
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
}

/* Drag and Drop Zone */
.drag-drop-zone {
  border: 2px dashed var(--primary-emerald);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.drag-drop-zone.dragover {
  background: var(--primary-emerald-glow);
  border-color: var(--primary-emerald-hover);
  transform: scale(1.01);
}

.drag-drop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-emerald);
}

/* Malla de Fotos Subidas con Estados */
.photo-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.photo-card-item.cover-photo {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  margin-bottom: 0.5rem;
}

.photo-thumb img,
.photo-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cover-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #f59e0b;
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.photo-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-photo-action {
  font-size: 0.72rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
}

.btn-photo-action:hover {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
}

/* Status Filter Pills (ACTIVE / ARCHIVED / DELETED) */
.status-pills-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.status-pill-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  cursor: pointer;
}

.status-pill-btn.active {
  background: var(--primary-emerald);
  color: #fff;
}

/* ==============================================================================
   CONSOLA ADMINISTRATIVA DE CATÁLOGO & INVENTARIO CRUD (TRENDS 2026)
   Soporte completo para Crear, Editar, Eliminar y Sincronizar Especímenes
   ============================================================================== */
.admin-subtabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.admin-subtab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-subtab-btn:hover {
  color: var(--primary-emerald);
  background: var(--bg-surface-elevated);
}

.admin-subtab-btn.active {
  color: var(--primary-emerald);
  border-bottom-color: var(--primary-emerald);
  background: var(--bg-surface-elevated);
}

/* Toolbar de Control de Inventario */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: var(--bg-surface-elevated);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.admin-toolbar-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search-input {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  background: var(--bg-surface);
  color: var(--text-main);
  min-width: 200px;
  outline: none;
  transition: var(--transition);
}

.admin-search-input:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 2px var(--primary-emerald-glow);
}

.admin-select {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.admin-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-btn-primary {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
}

.admin-btn-primary:hover {
  background: var(--primary-emerald-hover);
  color: #ffffff;
}

.admin-btn-danger {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

.admin-btn-danger:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

/* Tabla de Inventario */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  max-height: 480px;
  overflow-y: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-surface-elevated);
  z-index: 2;
  padding: 0.75rem 1rem;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: var(--bg-surface-elevated);
}

.admin-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: #000;
  flex-shrink: 0;
}

.admin-cell-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  display: block;
}

.admin-cell-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sku-badge {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--bg-surface-elevated);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.stock-in {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.stock-low {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.stock-out {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.admin-actions-cell {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.btn-table-action {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-table-action:hover {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
}

.btn-table-delete:hover {
  background: var(--accent-rose);
  color: #ffffff;
  border-color: var(--accent-rose);
}

/* Modal Formulario de Producto (Crear / Editar) */
.product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.82rem;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 2px var(--primary-emerald-glow);
  background: var(--bg-surface);
}

.ai-assistant-banner {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.12), rgba(16, 185, 129, 0.14));
  border: 1px solid var(--primary-emerald);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ai-assistant-text {
  flex: 1;
  min-width: 240px;
}

.ai-assistant-text h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-bottom: 0.2rem;
}

.ai-assistant-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .product-form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-span-2 {
    grid-column: span 1;
  }
}

/* ==============================================================================
   AI CONCIERGE CHATBOT ("FLORA IA" - TREND 2026)
   ============================================================================== */
.flora-ai-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, var(--primary-emerald), #022c22);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--primary-emerald-glow);
  z-index: 99;
  transition: var(--transition);
}

.flora-ai-fab:hover {
  transform: translateY(-3px) scale(1.03);
}

.flora-ai-drawer {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  width: 360px;
  height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
}

.flora-ai-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.flora-ai-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-emerald), #022c22);
  color: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flora-ai-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-bubble {
  background: var(--bg-surface-elevated);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  max-width: 85%;
  align-self: flex-start;
  border: 1px solid var(--border-subtle);
}

.user-bubble {
  background: var(--primary-emerald);
  color: #ffffff;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  max-width: 85%;
  align-self: flex-end;
}

.flora-ai-input-bar {
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

.flora-ai-input-bar input {
  flex: 1;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  outline: none;
}

/* ==============================================================================
   RESPONSIVIDAD Y BREAKPOINTS
   ============================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-pills {
    justify-content: center;
  }
  .main-store-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  .nav-dock {
    display: none; /* En móvil se usa el menú inferior o drawer */
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .flora-ai-drawer {
    width: calc(100vw - 2rem);
    left: 1rem;
    right: 1rem;
  }
}
