/* ==========================================================================
   Firulapp Web - Sistema de Diseño Oficial
   Basado 1:1 en AppTheme.dart y StyleSettings.dart de Firulapp
   ========================================================================== */

@font-face {
  font-family: 'FirulappFont';
  src: url('../assets/fonts/Fredoka-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FirulappFont';
  src: url('../assets/fonts/Fredoka-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FirulappFont';
  src: url('../assets/fonts/Fredoka-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FirulappFont';
  src: url('../assets/fonts/Fredoka-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FirulappFont';
  src: url('../assets/fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta Oficial (AppTheme.dart) */
  --primary-purple: #7713B5;
  --secondary-pink: #FB3E63;
  --accent-teal: #00BFA6;
  --dark-purple-text: #2C003E;
  --deep-purple-text: #2E0A5C;
  --accent-magenta: #E1006F;
  --accent-cyan: #1CCFCF;
  --accent-gold: #FFD600;
  --surface-light: #FFFFFF;
  --background-grey: #F7F7F9;
  --muted-text: #5F506B;
  --border-subtle: rgba(44, 0, 62, 0.08);

  /* Gradientes Oficiales */
  --gradient-app: linear-gradient(180deg, var(--primary-purple) 20%, var(--secondary-pink) 65%);
  --gradient-diagonal: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-pink) 100%);
  --gradient-teal: linear-gradient(135deg, #00BFA6 0%, #1CCFCF 100%);

  /* Glassmorphism estilo iOS (FEAT-058 / FIX-092) */
  --glass-bg: rgba(255, 255, 255, 0.44);
  --glass-nav-scrolled: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.50);

  /* Dimensiones y Sombras */
  --radius-panel: 30px;
  --radius-card: 22px;
  --radius-pill: 9999px;
  --shadow-soft: 0 14px 40px rgba(44, 0, 62, 0.08);
  --shadow-glow: 0 20px 50px rgba(119, 19, 181, 0.24);
  --shadow-teal: 0 12px 28px rgba(0, 191, 166, 0.28);

  --container-max: 1200px;
  --nav-height: 76px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'FirulappFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-purple-text);
  background-color: var(--surface-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-teal), var(--secondary-pink), var(--primary-purple));
  z-index: 1100;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Navbar Flotante Glassmorphism
   ========================================================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--container-max);
  height: var(--nav-height);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 32px rgba(44, 0, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.navbar.scrolled {
  top: 10px;
  background: var(--glass-nav-scrolled);
  box-shadow: 0 16px 40px rgba(44, 0, 62, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark-purple-text);
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(119, 19, 181, 0.25);
}

.nav-brand span.brand-accent {
  background: var(--gradient-diagonal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--deep-purple-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gradient-diagonal);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-purple);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--accent-teal);
  color: #FFFFFF;
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  background: #00ad96;
  box-shadow: 0 16px 32px rgba(0, 191, 166, 0.36);
}

.btn-primary {
  background: var(--gradient-diagonal);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-outline-purple {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-outline-purple:hover {
  background: rgba(119, 19, 181, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--dark-purple-text);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero Section + Parallax Floating Shapes
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 136px 0 96px;
  background: var(--gradient-app);
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Capa de formas flotantes ligadas al scroll */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.float-shape {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

.shape-blob-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -90px;
  border-radius: 44% 56% 62% 38% / 42% 35% 65% 58%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03));
  filter: blur(2px);
}

.shape-blob-2 {
  width: 320px;
  height: 320px;
  bottom: 40px;
  left: -100px;
  border-radius: 60% 40% 35% 65% / 50% 62% 38% 50%;
  background: radial-gradient(circle, rgba(0, 191, 166, 0.30), rgba(0, 191, 166, 0.02));
}

.shape-dog-ghost {
  width: 110px;
  opacity: 0.16;
  filter: brightness(0) invert(1);
}

.shape-paw {
  font-size: 2.4rem;
  opacity: 0.18;
  color: #FFFFFF;
}

.shape-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 6px solid rgba(255, 214, 0, 0.30);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.35);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--accent-gold);
}

.hero p.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 560px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(44, 0, 62, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-pill:hover {
  transform: translateY(-2px);
  background: rgba(44, 0, 62, 0.52);
}

.store-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.store-pill strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
}

/* Hero Visual / Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  pointer-events: auto;
  width: 310px;
  border-radius: 42px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 32px 70px rgba(44, 0, 62, 0.36);
  backdrop-filter: blur(14px);
}

.phone-mascots-stage {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.phone-screen {
  background: var(--surface-light);
  border-radius: 32px;
  overflow: hidden;
  color: var(--dark-purple-text);
}

.phone-header {
  background: var(--gradient-diagonal);
  color: #FFFFFF;
  padding: 20px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.phone-header-brand img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.phone-live-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-teal);
  color: #FFFFFF;
}

.phone-body {
  padding: 16px;
  background: var(--background-grey);
}

.phone-mascots-stage {
  position: relative;
  width: 100%;
  height: 205px;
  border-radius: 20px;
  margin-bottom: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(119, 19, 181, 0.14), rgba(251, 62, 99, 0.10) 65%, rgba(0, 191, 166, 0.12));
  border: 1px solid rgba(119, 19, 181, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.phone-mascots-stage canvas {
  width: 230px;
  height: 185px;
  display: block;
}

.mascots-hint {
  position: absolute;
  bottom: 6px;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--deep-purple-text);
  background: rgba(255, 255, 255, 0.82);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.phone-mini-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(44, 0, 62, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.phone-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.phone-mini-icon.purple { background: rgba(119, 19, 181, 0.12); color: var(--primary-purple); }
.phone-mini-icon.teal { background: rgba(0, 191, 166, 0.14); color: var(--accent-teal); }

.phone-mini-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.phone-mini-card span {
  font-size: 0.76rem;
  color: var(--muted-text);
}

/* Tarjetas flotantes alrededor del teléfono (con parallax) */
.floating-badge {
  position: absolute;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--dark-purple-text);
  padding: 12px 16px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(44, 0, 62, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
}

.floating-badge.top-left {
  top: 24px;
  left: -34px;
}

.floating-badge.bottom-right {
  bottom: 36px;
  right: -28px;
}

.floating-badge img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

/* Ola divisoria inferior del Hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg {
  width: 100%;
  height: 76px;
}

/* ==========================================================================
   Secciones Generales y Encabezados
   ========================================================================== */
section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section-grey {
  background-color: var(--background-grey);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 58px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(119, 19, 181, 0.10);
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.section-tag.teal {
  background: rgba(0, 191, 166, 0.12);
  color: #008f7c;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--dark-purple-text);
}

.section-header p {
  font-size: 1.08rem;
  color: var(--muted-text);
}

/* ==========================================================================
   Franja de Estadísticas
   ========================================================================== */
.stats-strip {
  padding: 40px 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-diagonal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--muted-text);
  font-weight: 500;
}

/* ==========================================================================
   Sección Quiénes Somos
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-panel {
  background: var(--gradient-diagonal);
  border-radius: var(--radius-panel);
  padding: 36px;
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.about-panel img.main-pet {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.14);
}

.about-quote {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.5;
}

.about-badge-corner {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background: #FFFFFF;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
}

.about-pillars {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--background-grey);
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pillar-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-soft);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient-diagonal);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-item h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pillar-item p {
  font-size: 0.94rem;
  color: var(--muted-text);
}

/* ==========================================================================
   Sección Qué Hacemos (B2C Features Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-light);
  border-radius: var(--radius-panel);
  padding: 30px 26px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(44, 0, 62, 0.12);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #FFFFFF;
}

.icon-purple { background: var(--gradient-diagonal); }
.icon-teal { background: var(--gradient-teal); }
.icon-magenta { background: linear-gradient(135deg, var(--accent-magenta), var(--secondary-pink)); }
.icon-gold { background: linear-gradient(135deg, #FFB300, var(--accent-gold)); color: var(--dark-purple-text); }

.feature-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted-text);
  font-size: 0.96rem;
}

.feature-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.mini-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--background-grey);
  color: var(--deep-purple-text);
}

/* ==========================================================================
   Sección Tienda (B2C & B2B)
   ========================================================================== */
.store-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9F5FC 50%, #FFFFFF 100%);
}

.store-steps-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.store-step-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(119, 19, 181, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 8px 22px rgba(45, 0, 77, 0.05);
}

.store-step-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--gradient-diagonal);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(119, 19, 181, 0.22);
}

.store-step-pill strong {
  display: block;
  font-size: 0.96rem;
  color: var(--dark-purple-text);
  line-height: 1.25;
}

.store-step-pill span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted-text);
}

.store-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.store-card {
  border-radius: 26px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-card:hover {
  transform: translateY(-4px);
}

.store-card-b2c {
  background: #FFFFFF;
  border: 1px solid rgba(119, 19, 181, 0.14);
  box-shadow: 0 18px 42px rgba(45, 0, 77, 0.08);
}

.store-card-b2b {
  background: var(--gradient-diagonal);
  color: #FFFFFF;
  box-shadow: 0 22px 48px rgba(119, 19, 181, 0.26);
}

.store-card-b2b::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  top: -80px;
  right: -70px;
  pointer-events: none;
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.store-card-icon.b2c {
  background: linear-gradient(135deg, rgba(0, 191, 166, 0.16), rgba(0, 210, 211, 0.24));
  border: 1px solid rgba(0, 191, 166, 0.28);
}

.store-card-icon.b2b {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.store-audience-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.store-audience-badge.b2c {
  background: rgba(0, 191, 166, 0.14);
  color: #009B86;
}

.store-audience-badge.b2b {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.store-card h3 {
  font-size: 1.34rem;
  line-height: 1.24;
}

.store-card-b2c h3 {
  color: var(--dark-purple-text);
}

.store-card-lead {
  font-size: 0.96rem;
  line-height: 1.55;
}

.store-card-b2c .store-card-lead {
  color: var(--muted-text);
}

.store-card-b2b .store-card-lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Mini-preview visual del buscador de tienda */
.store-mini-preview {
  background: #FAF8FC;
  border: 1px solid rgba(119, 19, 181, 0.12);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-mini-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(119, 19, 181, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--dark-purple-text);
}

.store-mini-query {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.store-mini-live {
  background: rgba(0, 191, 166, 0.14);
  color: #009B86;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.store-mini-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-mini-cats span {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(119, 19, 181, 0.1);
  color: var(--muted-text);
}

.store-mini-cats span.active {
  background: var(--primary-purple);
  color: #FFFFFF;
  border-color: var(--primary-purple);
}

.store-mini-items {
  display: grid;
  gap: 8px;
}

.store-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(119, 19, 181, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.store-mini-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(119, 19, 181, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.store-mini-info {
  flex: 1;
  min-width: 0;
}

.store-mini-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--dark-purple-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-mini-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-text);
}

.store-mini-price {
  text-align: right;
  flex-shrink: 0;
}

.store-mini-price strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-purple);
}

.store-mini-price span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #009B86;
}

/* Highlights numéricos B2B */
.store-b2b-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.store-b2b-stat {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.store-b2b-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.store-b2b-stat span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.86);
}

/* Lista de beneficios limpia */
.store-benefit-list {
  display: grid;
  gap: 12px;
}

.store-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
}

.store-card-b2c .store-benefit-item {
  background: rgba(119, 19, 181, 0.04);
  border: 1px solid rgba(119, 19, 181, 0.08);
}

.store-card-b2b .store-benefit-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.store-benefit-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.store-card-b2c .store-benefit-badge {
  background: #FFFFFF;
  box-shadow: 0 4px 10px rgba(45, 0, 77, 0.08);
}

.store-card-b2b .store-benefit-badge {
  background: rgba(255, 255, 255, 0.2);
}

.store-benefit-item strong {
  display: block;
  font-size: 0.93rem;
  margin-bottom: 2px;
}

.store-card-b2c .store-benefit-item strong {
  color: var(--dark-purple-text);
}

.store-benefit-item p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.store-card-b2c .store-benefit-item p {
  color: var(--muted-text);
}

.store-card-b2b .store-benefit-item p {
  color: rgba(255, 255, 255, 0.88);
}

.store-card-actions {
  margin-top: auto;
  padding-top: 4px;
}

.store-cta-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   Sección Destacada firulAIs & Muñeco 3D
   ========================================================================== */
.ai-showcase {
  background: var(--dark-purple-text);
  color: #FFFFFF;
  position: relative;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.ai-showcase .section-tag {
  background: rgba(0, 191, 166, 0.20);
  color: var(--accent-cyan);
}

.ai-showcase h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 16px;
}

.ai-showcase p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.ai-checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.ai-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.ai-checklist .check-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ai-chat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-panel);
  padding: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.ai-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ai-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar-row img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient-diagonal);
  padding: 6px;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.94rem;
  margin-bottom: 12px;
  max-width: 92%;
}

.chat-bubble.user {
  background: rgba(255, 255, 255, 0.14);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  background: linear-gradient(135deg, rgba(119, 19, 181, 0.65), rgba(251, 62, 99, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-left-radius: 4px;
}

.pet-3d-stage {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 191, 166, 0.14);
  border: 1px dashed rgba(28, 207, 207, 0.45);
  display: flex;
  align-items: center;
  gap: 16px;
}

@keyframes ghibliFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

.pet-3d-stage img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  background: #F4F9F4;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 191, 166, 0.25);
  flex-shrink: 0;
  animation: ghibliFloat 3.6s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.pet-3d-stage:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   Sección B2B (Clínicas, Veterinarias, Groomistas, Hoteles)
   ========================================================================== */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.b2b-card {
  background: var(--surface-light);
  border-radius: var(--radius-panel);
  padding: 30px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.25s ease;
}

.b2b-card:hover {
  transform: translateY(-4px);
}

.b2b-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(119, 19, 181, 0.09);
  color: var(--primary-purple);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.b2b-card h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.b2b-card p {
  color: var(--muted-text);
  font-size: 0.95rem;
}

/* ==========================================================================
   Planes (B2C vs B2B Switch)
   ========================================================================== */
.plan-switch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

.plan-switch {
  display: inline-flex;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  gap: 6px;
}

.plan-tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted-text);
  transition: all 0.22s ease;
}

.plan-tab.active {
  background: var(--gradient-diagonal);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(119, 19, 181, 0.25);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-grid.hidden {
  display: none;
}

.pricing-card {
  background: var(--surface-light);
  border-radius: var(--radius-panel);
  padding: 34px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  background: var(--gradient-app);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  right: 26px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-teal);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-price {
  font-size: 2.35rem;
  font-weight: 700;
  margin: 12px 0 6px;
  line-height: 1.1;
}

.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
}

.pricing-desc {
  font-size: 0.94rem;
  opacity: 0.85;
  margin-bottom: 22px;
}

.pricing-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.94rem;
}

.pricing-list li::before {
  content: '✓ ';
  color: var(--accent-teal);
  font-weight: 700;
}

.pricing-card.featured .pricing-list li::before {
  color: var(--accent-gold);
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   CTA & Contacto
   ========================================================================== */
.cta-banner {
  background: var(--gradient-diagonal);
  border-radius: var(--radius-panel);
  padding: 54px 44px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.cta-banner > * {
  min-width: 0;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.04rem;
}

.contact-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form .btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-purple-text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  text-overflow: ellipsis;
}

.contact-form textarea {
  resize: vertical;
  min-height: 78px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 191, 166, 0.28);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.recaptcha-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #1B0027;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 42px;
}

.footer h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

/* Toast Notification (estilo FirulappToast) */
.firulapp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark-purple-text);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 16px;
  border-left: 5px solid var(--accent-teal);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  font-weight: 500;
  z-index: 1200;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

/* ==========================================================================
   Animaciones de Entrada (Reveal on Scroll)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Formas Parallax en Secciones Internas */
.section-shape-blob {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 19, 181, 0.09), transparent 70%);
}

.section-shape-pink {
  width: 240px;
  height: 240px;
  border-radius: 42% 58% 45% 55% / 55% 45% 55% 45%;
  background: radial-gradient(circle, rgba(251, 62, 99, 0.10), transparent 70%);
}

.section-shape-dog {
  width: 88px;
  opacity: 0.08;
}

/* ==========================================================================
   Responsividad
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .ai-grid,
  .cta-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-badge.top-left { left: 0; }
  .floating-badge.bottom-right { right: 0; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar.mobile-open {
    border-radius: 26px;
    height: auto;
    flex-wrap: wrap;
    padding: 16px 22px;
  }

  .navbar.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 0 8px;
    gap: 14px;
  }

  .navbar.mobile-open .nav-actions {
    display: flex;
    width: 100%;
    padding-bottom: 8px;
  }

  .navbar.mobile-open .nav-actions .btn {
    width: 100%;
  }

  .features-grid,
  .b2b-grid,
  .store-steps-bar,
  .store-showcase-grid,
  .pricing-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .store-card {
    padding: 24px 18px;
    gap: 18px;
  }

  .store-b2b-highlights {
    gap: 8px;
  }

  .store-b2b-stat {
    padding: 10px 6px;
  }

  .cta-banner {
    padding: 28px 16px;
    gap: 22px;
  }

  .contact-form {
    padding: 18px 14px;
  }

  .b2b-card {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .recaptcha-box > div {
    transform: scale(0.84);
    transform-origin: center;
    margin: -4px 0;
  }
}

@media (max-width: 375px) {
  .recaptcha-box > div {
    transform: scale(0.75);
    transform-origin: center;
    margin: -8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-shape { transform: none !important; }
}

/* ==========================================================================
   Directorio Público y Mapa Interactivo (FEAT-081)
   ========================================================================== */
.directory-section {
  background: var(--surface-light);
}

.dir-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dir-search-box {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.dir-search-icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  pointer-events: none;
}

.dir-search-box input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--dark-purple-text);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-search-box input:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(119, 19, 181, 0.12);
}

.dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-chip {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--dark-purple-text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.dir-chip:hover {
  border-color: var(--primary-purple);
}

.dir-chip.active {
  background: var(--gradient-app);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(119, 19, 181, 0.25);
}

.dir-near-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.dir-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.dir-count-pill,
.dir-source-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(119, 19, 181, 0.08);
  color: var(--primary-purple);
}

.dir-source-pill.is-live {
  background: rgba(0, 191, 166, 0.14);
  color: #007E6D;
}

.dir-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 24px;
  align-items: stretch;
}

.dir-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.dir-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 18px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-card:hover {
  transform: translateY(-2px);
  border-color: rgba(119, 19, 181, 0.35);
}

.dir-card.is-selected {
  border-color: var(--secondary-pink);
  box-shadow: 0 12px 28px rgba(251, 62, 99, 0.16);
}

.dir-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.dir-card h3 {
  font-size: 1.06rem;
  color: var(--dark-purple-text);
  line-height: 1.25;
}

.dir-company {
  font-size: 0.84rem;
  color: #6B587A;
  font-weight: 500;
}

.dir-dist-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #007E6D;
  background: rgba(0, 191, 166, 0.14);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.dir-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.dir-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(119, 19, 181, 0.08);
  color: var(--primary-purple);
}

.dir-badge.urgent {
  background: rgba(251, 62, 99, 0.12);
  color: var(--secondary-pink);
}

.dir-badge.hotel {
  background: rgba(0, 191, 166, 0.14);
  color: #007E6D;
}

.dir-meta {
  font-size: 0.86rem;
  color: #544263;
  margin-bottom: 4px;
}

.dir-services {
  font-size: 0.82rem;
  color: #7A698A;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(44, 0, 62, 0.10);
}

.dir-map-wrap {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  min-height: 520px;
  height: 560px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  background: #EDE7F3;
}

.dir-map {
  width: 100%;
  height: 100%;
}

.dir-reset-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44, 0, 62, 0.12);
  color: var(--dark-purple-text);
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 4px 12px rgba(44, 0, 62, 0.14);
}

.dir-reset-btn:hover {
  background: #FFFFFF;
}

/* Marcadores estilo Firulapp (replica fiel de _buildSucursalMarker en myMap.dart) */
.firulapp-marker {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: none !important;
}

.firulapp-marker.is-selected {
  z-index: 10;
}

.firulapp-marker-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform-origin: bottom center;
  transition: transform 0.22s ease;
}

.firulapp-marker:hover .firulapp-marker-inner {
  transform: scale(1.08);
}

.firulapp-marker.is-selected .firulapp-marker-inner {
  transform: scale(1.15);
}

.firulapp-marker-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-app);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.34);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.firulapp-marker.is-selected .firulapp-marker-pin {
  background: linear-gradient(135deg, var(--secondary-pink), var(--primary-purple));
  border-width: 3px;
  box-shadow: 0 6px 16px rgba(251, 62, 99, 0.50);
}

.firulapp-marker-pin svg {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
}

.firulapp-marker-label {
  background: rgba(255, 255, 255, 0.94);
  color: var(--dark-purple-text);
  font-family: 'FirulappFont', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  max-width: 145px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firulapp-marker.is-selected .firulapp-marker-label {
  font-weight: 700;
}

/* Marcador ubicación de usuario (replica _buildUserLocationMarker) */
.firulapp-user-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 8px rgba(0, 191, 166, 0.25), 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Popup de MapLibre estilizado */
.maplibregl-popup-content {
  border-radius: 18px !important;
  padding: 14px 16px !important;
  box-shadow: 0 14px 32px rgba(44, 0, 62, 0.18) !important;
  font-family: 'FirulappFont', sans-serif !important;
}

.dir-popup {
  max-width: 240px;
  color: var(--dark-purple-text);
}

.dir-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.dir-popup-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(119, 19, 181, 0.10);
  color: var(--primary-purple);
}

.dir-popup strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.dir-popup-company {
  display: block;
  font-size: 0.8rem;
  color: #6B587A;
  margin-bottom: 6px;
}

.dir-popup-addr,
.dir-popup-hours {
  font-size: 0.8rem;
  color: #4A3958;
  margin-bottom: 4px;
}

.dir-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dir-popup-link,
.dir-popup-cta {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  text-align: center;
  flex: 1;
}

.dir-popup-link {
  background: rgba(119, 19, 181, 0.08);
  color: var(--primary-purple);
}

.dir-popup-cta {
  background: var(--gradient-teal);
  color: #FFFFFF;
}

.dir-empty,
.dir-map-fallback {
  padding: 32px;
  text-align: center;
  color: #5E4B6E;
}

@media (max-width: 960px) {
  .dir-layout {
    grid-template-columns: 1fr;
  }

  .dir-list {
    max-height: 360px;
    order: 2;
  }

  .dir-map-wrap {
    height: 400px;
    min-height: 400px;
    order: 1;
  }
}

/* Botones en tarjetas de listado */
.dir-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dir-card-detail-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(119, 19, 181, 0.08);
  color: var(--primary-purple);
  transition: background 0.2s ease;
}

.dir-card-detail-btn:hover {
  background: rgba(119, 19, 181, 0.16);
}

.dir-card-detail-btn.store {
  background: rgba(0, 191, 166, 0.14);
  color: #007E6D;
}

.dir-card-detail-btn.store:hover {
  background: rgba(0, 191, 166, 0.24);
}

/* ==========================================================================
   Tarjeta Resumida Glassmorphism sobre el Mapa (Estilo myMap.dart)
   ========================================================================== */
.dir-glass-summary {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  z-index: 8;
  padding: 16px;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dir-glass-summary.hidden {
  display: none;
}

.dir-glass-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.dir-glass-company {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark-purple-text);
  line-height: 1.2;
}

.dir-glass-branch {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-purple);
  margin-top: 2px;
}

.dir-glass-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: var(--dark-purple-text);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.dir-glass-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}

.dir-glass-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark-purple-text);
}

.dir-glass-meta {
  font-size: 0.8rem;
  color: var(--dark-purple-text);
  margin-bottom: 10px;
}

.dir-glass-actions {
  display: flex;
  gap: 8px;
}

.dir-glass-link,
.dir-glass-cta {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.dir-glass-link {
  background: rgba(255, 255, 255, 0.78);
  color: var(--dark-purple-text);
}

.dir-glass-cta {
  flex: 1;
  background: var(--gradient-app);
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(119, 19, 181, 0.25);
}

/* ==========================================================================
   Modal Detalle Completo de Sucursal (Estilo Original Firulapp)
   ========================================================================== */
.dir-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(24, 0, 36, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.dir-detail-backdrop.hidden {
  display: none;
}

.dir-detail-sheet {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: #F7F5FA;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(24, 0, 36, 0.38);
}

.dir-detail-header {
  background: var(--gradient-app);
  color: #FFFFFF;
  padding: 22px 26px 0;
}

.dir-detail-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dir-detail-company {
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dir-detail-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
}

.dir-detail-header h3 {
  font-size: 1.5rem;
  margin-top: 4px;
}

.dir-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.dir-detail-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.dir-detail-badge.urgent {
  background: #FFFFFF;
  color: var(--secondary-pink);
}

.dir-detail-tabs {
  display: flex;
  gap: 8px;
}

.dir-detail-tab {
  padding: 10px 18px;
  border-radius: 14px 14px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
}

.dir-detail-tab.active {
  background: #F7F5FA;
  color: var(--dark-purple-text);
}

.dir-detail-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  flex: 1;
}

.dir-detail-panel {
  display: none;
}

.dir-detail-panel.active {
  display: block;
}

.dir-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dir-info-item {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
}

.dir-info-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--primary-purple);
  margin-bottom: 4px;
}

.dir-info-item span {
  font-size: 0.92rem;
  color: var(--dark-purple-text);
}

.dir-subtitle {
  font-size: 1rem;
  color: var(--dark-purple-text);
  margin-bottom: 10px;
}

.dir-services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.dir-service-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark-purple-text);
}

.dir-detail-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-glass-purple {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(119, 19, 181, 0.10);
  color: var(--primary-purple);
  font-weight: 700;
}

/* Tienda dentro del detalle */
.dir-store-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.dir-store-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dir-store-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dir-store-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #F4F0FA;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.dir-store-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dir-store-placeholder {
  font-size: 1.6rem;
}

.dir-store-info {
  flex: 1;
  min-width: 0;
}

.dir-store-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dir-store-stock {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.dir-store-stock.ok {
  background: rgba(0, 191, 166, 0.14);
  color: #007E6D;
}

.dir-store-stock.out {
  background: rgba(251, 62, 99, 0.12);
  color: var(--secondary-pink);
}

.dir-store-info h5 {
  font-size: 0.94rem;
  color: var(--dark-purple-text);
  margin-bottom: 4px;
}

.dir-store-desc {
  font-size: 0.78rem;
  color: #6B587A;
  margin-bottom: 8px;
}

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

.dir-store-price {
  font-size: 1rem;
  color: var(--primary-purple);
}

.dir-store-cta {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--gradient-teal);
  color: #FFFFFF;
}

.dir-store-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: #6B587A;
}

@media (max-width: 680px) {
  .dir-info-grid,
  .dir-store-grid {
    grid-template-columns: 1fr;
  }

  .dir-detail-header,
  .dir-detail-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ==========================================================================
   Subpáginas Dedicadas (explorar.html y tienda.html)
   ========================================================================== */
.nav-active {
  color: var(--primary-purple) !important;
  font-weight: 700 !important;
}

.subpage-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.subpage-main {
  flex: 1;
  padding-top: 96px;
}

.subpage-explorer,
.subpage-store {
  padding-top: 28px;
  padding-bottom: 56px;
}

.subpage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.subpage-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--dark-purple-text);
  line-height: 1.18;
  margin: 8px 0 8px;
}

.subpage-header p {
  color: #5C4B6D;
  max-width: 680px;
  font-size: 0.98rem;
}

.subpage-dir-layout .dir-list,
.subpage-dir-layout .dir-map-wrap {
  height: calc(100vh - 300px);
  min-height: 520px;
  max-height: 760px;
}

/* Tienda Global (tienda.html) */
.store-global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.store-global-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 18px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-global-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(44, 0, 62, 0.11);
}

.store-global-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.store-global-head {
  flex: 1;
  min-width: 0;
}

.store-global-head h3 {
  font-size: 1.02rem;
  color: var(--dark-purple-text);
  margin: 4px 0 4px;
  line-height: 1.25;
}

.store-global-seller {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #F7F4FA;
  font-size: 0.82rem;
  color: #4D3B5E;
}

.store-global-seller strong,
.store-global-seller span,
.store-global-seller small {
  display: block;
}

.store-global-seller small {
  color: #746385;
  margin-top: 2px;
}
