/* Tipografía de marca: Nunito Sans (variable, pesos 200-1000), alojada en el repo.
   Licencia SIL OFL 1.1: wwwroot/fonts/nunito-sans/OFL.txt. */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-sans/nunito-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-sans/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bs-font-sans-serif: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Paleta de marca Busquera (docs/brand/identidad-busquera.webp). */
  --ec-color-primary: #12345B;
  --ec-color-primary-dark: #0D2643;
  --ec-color-primary-deep: #081A30;
  --ec-color-primary-soft: #DCE4EF;
  --ec-color-primary-wash: #F0F4F9;

  /* Naranja: fondos de acento con texto azul (contraste 5.2:1); nunca texto blanco
     sobre naranja (2.4:1). Para texto naranja sobre fondo claro usar accent-text. */
  --ec-color-accent: #FF851B;
  --ec-color-accent-dark: #E8700A;
  --ec-color-accent-soft: #FFE8D4;
  --ec-color-accent-warm: #FF9A45;
  --ec-color-accent-text: #A84B00;

  /* Colores por supra-categoría de rubro para los pines del mapa "Comercios cerca
     tuyo" (issue #391); no forman parte de la paleta de marca general, sólo se
     usan para diferenciar chips/pines de esta sección. */
  --ec-map-cat-vestimenta: #6B5CE0;
  --ec-map-cat-gastronomia: #E2572B;
  --ec-map-cat-regaleria: #D6448C;
  --ec-map-cat-salud-belleza: #2E9E6D;
  --ec-map-cat-hogar-servicios: #8B5E3C;
  --ec-map-cat-none: #6B7280;

  --ec-bg: #F7F9FC;
  --ec-bg-rgb: 247, 249, 252;
  --ec-surface: #FFFFFF;
  --ec-surface-strong: #FFFFFF;
  --ec-text: #16243A;
  --ec-text-muted: #5B6B7F;
  --ec-border: rgba(18, 52, 91, 0.14);

  /* Tokens de tema (issue #488). En claro valen exactamente lo que antes eran literales
     en este archivo; el bloque :root[data-theme="dark"] del final los redefine. */
  --ec-surface-rgb: 255, 255, 255;      /* fondos translúcidos de tarjetas y paneles */
  --ec-wash-rgb: 240, 244, 249;         /* #F0F4F9 en forma rgba */
  --ec-warm-wash: #FFF4EA;              /* lavado cálido */
  --ec-warm-wash-rgb: 255, 244, 234;
  --ec-tint-rgb: 18, 52, 91;            /* bordes y lavados con el azul de marca */
  --ec-ink: #12345B;                    /* texto/íconos azul de marca */
  --ec-ink-strong: #0D2643;
  --ec-ink-deep: #081A30;
  --ec-ink-link: #1F4F8A;
  --ec-ink-neutral: #1F2937;
  --ec-line: #E8EEF5;
  --ec-focus-ring-gap: #FFFFFF;         /* anillo entre el control y el halo naranja de foco */
  --ec-light-bg: #F8F9FA;               /* equivalente a bg-light de Bootstrap */
  --ec-on-light: #000000;
  color-scheme: light;

  --ec-primary: var(--ec-color-primary); --ec-primary-dark: var(--ec-color-primary-dark); --ec-secondary: var(--ec-color-accent-warm); --ec-warning: var(--ec-color-accent); --ec-success: #18895F; --ec-muted: var(--ec-text-muted);
  --ec-font-xs: 0.8125rem;
  --ec-font-sm: 0.9rem;
  --ec-font-base: 1rem;
  --ec-font-md: 1.1rem;
  --ec-font-lg: 1.3rem;
  --ec-font-xl: 1.6rem;
}
html {
  font-size: 16px;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus { box-shadow: 0 0 0 0.1rem var(--ec-focus-ring-gap), 0 0 0 0.25rem rgba(255, 133, 27, 0.42); }
html { position: relative; min-height: 100%; }
body.elcentro-body { min-height: 100vh; margin: 0; color: var(--ec-text); font-size: var(--ec-font-base); line-height: 1.5; background: radial-gradient(circle at top left, rgba(255, 133, 27, 0.22), transparent 25%), radial-gradient(circle at top right, rgba(var(--ec-tint-rgb), 0.15), transparent 24%), linear-gradient(180deg, var(--ec-surface) 0%, var(--ec-surface-strong) 48%, var(--ec-bg) 100%); }
.elcentro-navbar { background: linear-gradient(135deg, rgba(8, 26, 48, 0.97), rgba(18, 52, 91, 0.95)); z-index: 1035; }
.brand-mark { width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.9rem; background: #fff; color: var(--ec-primary-dark); font-size: 1.15rem; }
.navbar-brand small { color: rgba(255,255,255,.72); font-size: var(--ec-font-xs); line-height: 1.25; }

.hero-urban, .plan-detail-card, .plan-mini-card, .panel-commerce-card, .stats-strip, .mobile-section, .mobile-image-card, .commerce-card, .recommendation-block { border: 1px solid var(--ec-border); background: rgba(var(--ec-surface-rgb), .9); box-shadow: 0 20px 45px rgba(13, 38, 67, 0.08); }
.hero-urban { background: linear-gradient(135deg, rgba(var(--ec-surface-rgb), .94), rgba(var(--ec-wash-rgb), .98)), linear-gradient(135deg, rgba(255,133,27,.12), rgba(var(--ec-tint-rgb), .09)); }
.eyebrow-pill { border-radius: 999px; padding: .55rem 1rem; background: var(--ec-color-primary-soft); color: var(--ec-ink); font-weight: 700; font-size: var(--ec-font-sm); line-height: 1.35; }
.search-panel .form-control, .search-panel .form-select, .comercio-mobile-form .form-control, .comercio-mobile-form .form-select { border-radius: 1rem; border-color: rgba(var(--ec-tint-rgb), 0.16); }
.stats-strip strong { display: block; font-size: 1.5rem; }
.stats-strip span { color: var(--ec-muted); }
.commerce-card { border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.commerce-card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.commerce-logo { width: 3.75rem; height: 3.75rem; border-radius: 1rem; object-fit: cover; border: 1px solid rgba(var(--ec-tint-rgb), 0.14); }
.commerce-card-centro { box-shadow: 0 22px 50px rgba(18, 52, 91, 0.16); }
.commerce-card-vidriera { box-shadow: 0 18px 40px rgba(255, 133, 27, 0.18); }
.plan-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; padding: .45rem .8rem; border-radius: 999px; font-size: var(--ec-font-xs); line-height: 1.15; font-weight: 700; backdrop-filter: blur(4px); }
.plan-badge-centro { background: rgba(255, 190, 11, 0.92); color: #4b3700; }
.plan-badge-vidriera { background: rgba(255, 107, 107, 0.92); color: white; }
.plan-badge-base { background: rgba(var(--ec-surface-rgb), 0.92); color: var(--ec-ink-strong); }
.plan-mini-card, .plan-detail-card, .panel-commerce-card { padding: 1.25rem; border-radius: 1.5rem; }
.imagen-inapropiada { border: 3px solid red !important; filter: blur(2px); opacity: 0.8; }
#resultadoEvaluacion { margin-top: 15px; transition: all 0.3s ease; }
.comercio-mobile-form { display: grid; gap: 1rem; }
.comercio-mobile-form .mobile-section { border-radius: 1.25rem; padding: 1rem; margin-bottom: 0; }
.comercio-mobile-form h5 { font-size: 1.05rem; margin-bottom: 0; }
.mobile-image-card { border-radius: 1rem; padding: 1rem; }
.comercio-image-preview { width: 100%; max-height: 240px; object-fit: cover; background: #fff; }
.comercio-map { width: 100%; min-height: 50vh; border-radius: 1rem; border: 1px solid #dee2e6; overflow: hidden; }

@media (min-width: 768px) { .comercio-mobile-form { max-width: 860px; margin: 0 auto; } .comercio-mobile-form .mobile-section { padding: 1.25rem; } .comercio-map { min-height: 420px; } }

.admin-body { background: linear-gradient(180deg, var(--ec-color-primary-wash) 0%, #fffaf2 100%); overflow-x: hidden; }
body.admin-drawer-open { overflow: hidden; }

.admin-layout { min-height: 100dvh; display: flex; }
.admin-sidebar { background: linear-gradient(180deg, rgba(18,52,91,.98), rgba(31,79,138,.98)); }
.admin-sidebar-inner { min-height: 100%; overflow-y: auto; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.admin-main-content { min-width: 0; flex: 1; width: 100%; }
.admin-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;
  background: linear-gradient(135deg, rgba(18,52,91,.98), rgba(31,79,138,.95));
  color: #fff;
}
.admin-mobile-brand { line-height: 1.2; }
.admin-mobile-brand small { display: block; color: rgba(255,255,255,.78); font-size: var(--ec-font-xs); line-height: 1.25; }
.admin-mobile-toggle { width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

.admin-nav .nav-link { color: rgba(255,255,255,.85); border-radius: 1rem; padding: .8rem 1rem; }
.admin-nav .nav-link:hover, .admin-nav .nav-link:focus { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav .nav-link.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }

.admin-card, .admin-stat-card, .admin-list-row, .plan-strip { border: 1px solid var(--ec-border); background: rgba(var(--ec-surface-rgb), .92); box-shadow: 0 20px 45px rgba(18, 52, 91, 0.08); border-radius: 1.5rem; }
.admin-card { padding: 1.25rem; }
.admin-stat-card { padding: 1.25rem; height: 100%; }
.admin-stat-card span, .plan-strip span { display: block; color: var(--ec-muted); font-size: clamp(.9rem, 3vw, 1rem); line-height: 1.45; }
.admin-stat-card strong, .plan-strip strong { display: block; font-size: 2rem; margin-top: .35rem; }
.admin-list-row { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding: .85rem 1rem; }
.plan-strip { padding: 1rem 1.15rem; }
.plan-strip-centro { background: linear-gradient(135deg, rgba(255,190,11,.22), rgba(var(--ec-surface-rgb), .96)); }
.plan-strip-vidriera { background: linear-gradient(135deg, rgba(255,107,107,.16), rgba(var(--ec-surface-rgb), .96)); }
.plan-strip-preferente { background: linear-gradient(135deg, rgba(31,79,138,.14), rgba(var(--ec-surface-rgb), .96)); }
.plan-strip-base { background: linear-gradient(135deg, rgba(31,79,138,.10), rgba(var(--ec-surface-rgb), .96)); }
.admin-table thead th { background: rgba(31,79,138,.06); color: var(--ec-ink-strong); font-size: clamp(.9rem, 3vw, 1rem); line-height: 1.45; text-transform: uppercase; letter-spacing: .03em; }
.admin-table td, .admin-table th { padding: 1rem; vertical-align: top; }
.admin-alert { border-radius: 1rem; }
.admin-approval-actions { min-width: min(100%, 320px); }

@media (max-width: 991.98px) {
  .admin-layout { display: block; }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(85vw, 320px);
    max-width: 100%;
    height: 100dvh;
    z-index: 1060;
    transform: translateX(-100%);
    transition: transform .24s ease;
    will-change: transform;
    box-shadow: 0 0 0 transparent;
  }
  .admin-layout.admin-layout-drawer-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 0 12px 42px rgba(21, 12, 58, .45);
  }
  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(20, 14, 40, .55);
    width: 100%;
  }
  .admin-main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  .admin-main-content .table-responsive,
  .admin-main-content .table {
    max-width: 100%;
  }
}


@media (min-width: 768px) {
  .quick-categories {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 992px) {
  .admin-layout { align-items: stretch; }
  .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: min(280px, 24vw);
    height: 100dvh;
    flex: 0 0 min(280px, 24vw);
    z-index: 1020;
  }
  .admin-sidebar-overlay { display: none !important; }
  .admin-main-content { overflow-x: hidden; }
}

.zone-quick-nav { scrollbar-width: thin; }
.zone-section { scroll-margin-top: 5rem; }
.zone-section-centro .commerce-card-image { aspect-ratio: 16/9; }
.zone-section-centro .commerce-card { border-width: 2px; }
.zone-section-vidriera .commerce-card-image { aspect-ratio: 16/10; }
.zone-section-base .commerce-card-image { aspect-ratio: 4/3; }
.commerce-card-base { box-shadow: 0 14px 30px rgba(31, 79, 138, 0.10); }
.recommendation-block { background: linear-gradient(135deg, rgba(var(--ec-surface-rgb), .94), rgba(247,244,255,.98)); }

@media (min-width: 768px) {
  .zone-section-centro .commerce-card-image { aspect-ratio: 21/9; }
  .zone-section-centro .commerce-logo { width: 4.25rem; height: 4.25rem; }
}

.route-panel { border: 1px solid var(--ec-border); background: rgba(var(--ec-surface-rgb), .92); box-shadow: 0 20px 45px rgba(18, 52, 91, 0.08); }
.route-stop-item { border: 1px solid rgba(31, 79, 138, 0.12); background: rgba(var(--ec-wash-rgb), 0.72); }

@media (max-width: 575.98px) {
  .route-stop-item { flex-direction: column; }
  .route-stop-item .btn { width: 100%; }
}

.hero-urban-compact .display-6 { font-size: clamp(1.65rem, 7vw, 2.35rem); }
.hero-urban-compact { padding-block: 1rem !important; }

.zone-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  scroll-snap-type: x mandatory;
}
.zone-carousel .zone-item { scroll-snap-align: start; }

.zone-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commerce-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
.commerce-card:hover,
.commerce-card:focus-within {
  transform: translateY(-2px) scale(1.01);
}

.commerce-card-content { padding: .8rem; }
.commerce-card-centro .commerce-card-content { padding: 1rem; }
.commerce-card-centro .commerce-card-image { aspect-ratio: 16 / 9; }
.commerce-card-centro { box-shadow: 0 22px 50px rgba(31, 79, 138, 0.24); }

.zone-section-vidriera .zone-carousel { grid-auto-columns: 74%; }
.commerce-card-vidriera .commerce-card-content { padding: .9rem; }

.commerce-card-base .commerce-card-image {
  aspect-ratio: 4 / 3;
  filter: grayscale(1);
}
.commerce-card-base .commerce-logo { width: 2.9rem; height: 2.9rem; }
.commerce-card-base .commerce-card-content { padding: .7rem; }

@media (min-width: 768px) {
  .hero-urban-compact { padding-block: 1.3rem !important; }
  .zone-carousel { grid-auto-columns: 48%; }
  .zone-section-vidriera .zone-carousel { grid-auto-columns: 38%; }
  .zone-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
}

@media (min-width: 1200px) {
  .zone-carousel { grid-auto-columns: 34%; }
  .zone-section-vidriera .zone-carousel { grid-auto-columns: 28%; }
}

.contextual-suggestion-popup {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(.85rem + env(safe-area-inset-bottom));
  z-index: 1080;
  margin: 0 auto;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  border-radius: 1.75rem;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(var(--ec-surface-rgb), .78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 60px rgba(8, 26, 48, .35), 0 2px 0 rgba(255, 133, 27, 0.35);
  padding: 0;
  transform: translateY(22px) scale(.96);
  opacity: 0;
  transition: opacity .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1);
  max-height: min(78vh, 540px);
  overflow: hidden;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contextual-suggestion-popup { background: rgba(var(--ec-surface-rgb), .97); }
}

.contextual-suggestion-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--ec-color-accent), var(--ec-color-primary));
}

.contextual-suggestion-popup.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contextual-suggestion-header {
  flex-shrink: 0;
  padding: 1.1rem 1.15rem .6rem;
}

.contextual-suggestion-header .badge {
  background: linear-gradient(135deg, var(--ec-color-accent), var(--ec-color-accent-warm)) !important;
  color: #0D2643 !important;
}

.contextual-suggestion-popup [data-contextual-close] {
  border-radius: 999px;
  border: 1px solid var(--ec-border);
  color: var(--ec-ink-strong);
  background: rgba(255,255,255,.6);
}

.contextual-suggestion-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .15rem 1.15rem .75rem;
  mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 10px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 10px), transparent 100%);
}

.contextual-suggestion-body::-webkit-scrollbar {
  width: 5px;
}

.contextual-suggestion-body::-webkit-scrollbar-thumb {
  background: rgba(18, 52, 91, .35);
  border-radius: 999px;
}

.contextual-suggestion-body::-webkit-scrollbar-track {
  background: transparent;
}

.contextual-suggestion-item {
  border: 1px solid var(--ec-border);
  border-radius: .9rem;
  padding: .6rem .7rem;
  background: rgba(var(--ec-surface-rgb), .85);
  transition: border-color .15s ease, transform .15s ease;
}

.contextual-suggestion-item:hover {
  border-color: var(--ec-color-primary);
  transform: translateY(-1px);
}

.contextual-suggestion-footer {
  flex-shrink: 0;
  padding: .8rem 1.15rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(var(--ec-tint-rgb), .12);
  box-shadow: 0 -8px 16px -12px rgba(8, 26, 48, .3);
}

.contextual-suggestion-popup .btn-primary {
  background: linear-gradient(135deg, var(--ec-color-primary), var(--ec-color-primary-dark));
  border-color: var(--ec-color-primary-dark);
  box-shadow: 0 10px 22px rgba(18, 52, 91, .3);
}

.contextual-suggestion-popup .btn-primary:hover {
  background: var(--ec-color-primary-dark);
  border-color: var(--ec-color-primary-dark);
}

@media (min-width: 768px) {
  .contextual-suggestion-popup {
    left: auto;
    right: 1.25rem;
    margin: 0;
    bottom: 1.25rem;
  }
}

.pizarra-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pizarra-card,
.pizarra-detail-card {
  border: 1px solid rgba(42, 30, 14, .25);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(175deg, #233238 0%, #162126 100%);
  color: #f8f5e8;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.pizarra-detail-card { max-width: 780px; margin: 0 auto; width: 100%; }
.pizarra-card h2,
.pizarra-detail-card h1,
.pizarra-detail-card h2 { color: #fffef2; }
.pizarra-card .text-secondary,
.pizarra-detail-card .text-secondary { color: #d5d6ca !important; }
.pizarra-logo { width: 44px; height: 44px; border-radius: .7rem; object-fit: cover; border: 1px solid rgba(255,255,255,.35); background: #fff; }
.pizarra-form-imagen-preview { width: 100%; max-width: 320px; max-height: 180px; border-radius: .75rem; object-fit: cover; border: 1px solid rgba(0,0,0,.12); display: block; }
.pizarra-precio { display: inline-flex; font-size: 1.35rem; font-weight: 800; color: #0b1220; background: #ffd86b; border-radius: .7rem; padding: .2rem .65rem; }
.pizarra-level-alta { border-color: rgba(255, 216, 107, .65); }
.pizarra-level-media { border-color: rgba(137, 212, 255, .55); }
.pizarra-level-estandar { border-color: rgba(226, 226, 226, .45); }

@media (min-width: 768px) {
  .pizarra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .pizarra-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* =========================================================
   Home Index v3 - responsive layout
   Consolidado: reemplaza todos los bloques Home anteriores.
   Objetivo: sin overflow global < 992px; solo carruseles scrollean.
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
}

body.home-index-body {
  min-height: 100vh;
  margin: 0;
  color: var(--ec-text);
  background:
    radial-gradient(circle at top left, rgba(255, 133, 27, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 79, 138, 0.12), transparent 25%),
    linear-gradient(180deg, var(--ec-bg) 0%, var(--ec-surface-strong) 52%, var(--ec-color-primary-wash) 100%);
  overflow-x: hidden;
}

.home-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-shell.home-page,
.home-page,
.home-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 96px;
  overflow-x: hidden;
  display: grid;
  gap: 1rem;
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 24px;
  margin: 16px 0 20px;
  padding: 18px 16px 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 52, 91, .94), rgba(18, 52, 91, .78)),
    url('/img/ui/fondo_hero.png') center / cover no-repeat;
  box-shadow: 0 18px 36px rgba(79, 70, 229, .25);
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 133, 27, .16), transparent 34%),
    linear-gradient(135deg, rgba(18, 52, 91, .35), rgba(31, 79, 138, .18));
  backdrop-filter: blur(2px);
}

.home-hero-top,
.home-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 10px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.home-brand > div,
.home-brand-text {
  min-width: 0;
}

.home-brand-icon,
.hero-brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF851B, #E8700A);
  color: #0D2643;
  overflow: hidden;
}

.home-brand-icon img,
.hero-brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.home-brand-title,
.hero-brand-title {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  overflow-wrap: anywhere;
}

.home-brand-subtitle,
.hero-brand-subtitle {
  margin: .2rem 0 0;
  font-size: clamp(.82rem, 3.1vw, .95rem);
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  max-width: min(62vw, 260px);
  overflow-wrap: anywhere;
}

.hero-icon-btn,
.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 0;
}

.home-desktop-nav {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin: -4px 0 8px;
}

.home-desktop-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(31, 79, 138, 0.10);
  color: var(--ec-ink);
  text-decoration: none;
  font-weight: 700;
}

.home-nav-offcanvas {
  z-index: 1085;
  --bs-offcanvas-width: min(92vw, 420px);
  background: linear-gradient(165deg, var(--ec-warm-wash) 0%, var(--ec-surface-strong) 45%, var(--ec-color-primary-wash) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 28px 56px rgba(18, 52, 91, 0.36);
  margin: .75rem;
  max-height: calc(100dvh - 1.5rem);
}
.offcanvas-backdrop.show { background-color: rgba(15, 10, 35, 0.55); backdrop-filter: blur(3px); }

.home-nav-header {
  padding: 1rem 1rem .9rem;
  border-bottom: 1px solid rgba(31, 79, 138, 0.12);
}

.home-nav-title {
  margin: 0;
  font-weight: 900;
  color: var(--ec-ink);
  letter-spacing: .01em;
}

.home-nav-subtitle {
  margin-top: .2rem;
  color: var(--ec-text-muted);
  font-size: clamp(.9rem, 3vw, 1rem);
  line-height: 1.45;
}

.home-nav-close {
  border-radius: 999px;
  background-color: rgba(120, 92, 255, 0.18);
  opacity: 1;
  width: 2.3rem;
  height: 2.3rem;
}

.home-nav-body {
  display: grid;
  gap: .95rem;
  padding: .9rem 1rem 1rem;
  overflow-x: hidden;
}

.home-nav-list {
  display: grid;
  gap: .55rem;
}

.home-nav-link {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  border: 1px solid rgba(31, 79, 138, 0.14);
  border-radius: 16px;
  background: var(--ec-surface-strong);
  color: var(--ec-ink);
  text-decoration: none;
  font-weight: 700;
  padding: .76rem .85rem;
  box-shadow: 0 10px 22px rgba(31, 79, 138, 0.09);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.home-nav-link__left {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
}

.home-nav-link__left i {
  font-size: clamp(1rem, 3vw, 1.1rem); line-height: 1.4;
  color: var(--ec-ink-link);
}

.home-nav-link__arrow {
  color: #8A9BB0;
  font-size: .85rem;
}
.ec-menu-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; }
.ec-menu-icon { width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(31, 79, 138, 0.12); font-size: 1rem; }
.ec-menu-text { min-width: 0; display: grid; }
.ec-menu-text > span { color: var(--ec-ink); font-weight: 800; line-height: 1.15; }
.ec-menu-desc { color: var(--ec-text-muted); font-size: var(--ec-font-sm); font-weight: 500; line-height: 1.4; margin-top: .18rem; }
.ec-menu-arrow { color: #8A9BB0; font-weight: 700; }

.home-nav-link:hover,
.home-nav-link:focus-visible {
  background: var(--ec-color-primary-wash);
  border-color: rgba(31, 79, 138, 0.32);
  box-shadow: 0 12px 24px rgba(31, 79, 138, 0.15);
  transform: translateY(-1px);
}

.home-nav-link:focus-visible {
  outline: 2px solid rgba(31, 79, 138, 0.5);
  outline-offset: 2px;
}
.home-nav-link:active { transform: scale(.995); }

.home-nav-link--danger {
  color: #8a1231;
  border-color: rgba(220, 53, 69, 0.25);
}

.home-nav-link--danger .home-nav-link__left i {
  color: #be123c;
}

.home-nav-logout-form {
  margin: 0;
}

.home-nav-cta {
  border-radius: 20px;
  padding: .9rem;
  background: linear-gradient(135deg, #12345B 0%, #1F4F8A 100%);
  box-shadow: 0 16px 28px rgba(18, 52, 91, 0.30);
  color: #fff;
}

.home-nav-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: var(--ec-font-xs);
  line-height: 1.25;
  font-weight: 800;
}

.home-nav-cta__title {
  margin-top: .65rem;
  font-size: 1rem;
  font-weight: 800;
}

.home-nav-cta__text {
  color: rgba(255, 255, 255, .9);
  font-size: .86rem;
  line-height: 1.3;
}

.home-nav-cta__button {
  margin-top: .75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .56rem .88rem;
  border-radius: 999px;
  background: #FF851B;
  color: #0D2643;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255, 133, 27, .3);
}

.home-nav-cta__button:hover,
.home-nav-cta__button:focus-visible {
  background: #ffe07b;
  color: var(--ec-ink-strong);
}
@media (max-width: 479.98px) {
  .home-nav-offcanvas { --bs-offcanvas-width: 94vw; margin: .55rem; max-height: calc(100dvh - 1.1rem); }
  .home-nav-header { padding: .95rem 1rem .75rem; }
  .home-nav-body { padding: .7rem 1rem .95rem; gap: .8rem; }
  .home-nav-link { padding: .62rem .72rem; min-height: 44px; }
  .ec-menu-icon { width: 1.8rem; height: 1.8rem; font-size: .95rem; }
  .ec-menu-desc { font-size: var(--ec-font-xs); line-height: 1.35; }
}

.home-search,
.home-search-row,
.search-pill {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-search-pill,
.home-search-row,
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 54px;
  margin-top: 12px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--ec-surface-strong);
  box-shadow: 0 12px 25px rgba(18, 52, 91, .18);
}

.home-search-pill input,
.home-search-row input,
.search-pill input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ec-ink);
  font-size: .95rem;
}

.search-pill__icon,
.home-search-icon {
  flex: 0 0 auto;
  color: var(--ec-ink);
  font-size: 1.2rem;
}

.home-filter-button,
.search-pill__filter-btn {
  flex: 0 0 auto;
  max-width: 104px;
  white-space: normal;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ec-color-primary-wash);
  color: var(--ec-ink-link);
  font-size: .88rem;
  font-weight: 800;
}

.home-location {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  min-width: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* ---------- Sections ---------- */
.home-section,
.home-section--flat,
.mobile-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section-header,
.home-section__header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin: 22px 0 12px;
}

.section-header h2,
.home-section__header h2,
.section-title {
  min-width: 0;
  margin: 0;
  color: var(--ec-ink);
  font-size: clamp(1.3rem, 5.5vw, 1.65rem);
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.section-link,
.home-section__ghost-link {
  flex: 0 0 auto;
  color: var(--ec-ink-link);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Horizontal scroll areas ---------- */
.premium-carousel,
.featured-carousel,
.business-carousel,
.business-card-track,
.quick-categories,
.premium-strip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.premium-carousel::-webkit-scrollbar,
.featured-carousel::-webkit-scrollbar,
.business-carousel::-webkit-scrollbar,
.business-card-track::-webkit-scrollbar,
.quick-categories::-webkit-scrollbar,
.premium-strip::-webkit-scrollbar {
  display: none;
}

.quick-categories {
  width: 100%;
  max-width: 100%;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 16px 14px;
  margin: -4px 0 10px;
}

.quick-categories__item {
  flex: 0 0 82px;
  min-width: 82px;
  max-width: 82px;
  text-align: center;
  text-decoration: none;
  color: var(--ec-ink);
  font-size: .94rem;
  line-height: 1.25;
}

.quick-categories__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-ink-link);
  background: var(--ec-color-primary-wash);
  font-size: 1.35rem;
}

.quick-categories__item.is-active .quick-categories__icon {
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .18);
}

.quick-categories__label {
  overflow-wrap: anywhere;
}

/* ---------- Business cards ---------- */
.business-card,
.plan-card {
  position: relative;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ec-surface-strong);
  color: #111933;
  border: 1px solid rgba(124,58,237,.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
  scroll-snap-align: start;
}

.business-card--premium,
.plan-card--premium {
  flex: 0 0 clamp(205px, 62vw, 230px);
  width: clamp(205px, 62vw, 230px);
  max-width: 230px;
  min-width: 0;
  min-height: 300px;
  height: auto;
  border-radius: 18px;
  background: #111827;
  border: 2px solid #7c3aed;
  box-shadow: 0 10px 24px rgba(76, 29, 149, .25);
  color: #fff;
}

.business-card--centro,
.business-card--free,
.featured-carousel .business-card,
.business-carousel .business-card {
  flex: 0 0 clamp(150px, 46vw, 175px);
  width: clamp(150px, 46vw, 175px);
  max-width: 175px;
  min-width: 0;
}

.business-card--centro,
.plan-card--centro {
  border-color: rgba(255, 190, 11, .65);
  box-shadow: 0 10px 24px rgba(255, 190, 11, .22);
}

.business-card--free,
.plan-card--free {
  border-color: rgba(200,200,220,.85);
  box-shadow: 0 8px 16px rgba(17,25,51,.08);
}

.business-card__cover,
.business-image,
.plan-card__cover {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
  background: #E8EEF5;
}

.business-card--premium .business-card__cover,
.business-card--premium .business-image,
.business-card--premium img,
.plan-card--premium .plan-card__cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.business-card__cover.is-fallback,
.business-image--fallback {
  background:
    radial-gradient(circle at 30% 20%, rgba(124,58,237,.9), transparent 40%),
    linear-gradient(135deg, #111827, #12345B);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  font-weight: 900;
  font-size: 1rem;
}

.business-card__body,
.business-content,
.plan-card__overlay {
  min-width: 0;
  padding: 10px;
}

.business-card--premium .business-card__body,
.business-card--premium .business-content,
.plan-card--premium .plan-card__overlay {
  padding: 12px;
  color: #fff;
}

.business-name,
.business-card h3,
.business-card__body h3 {
  min-width: 0;
  margin: .45rem 0 .2rem;
  color: inherit;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.business-card--premium .business-name,
.business-card--premium h3 {
  color: #fff;
  font-size: 1rem;
}

.business-rubro,
.business-category,
.business-address,
.card-text {
  min-width: 0;
  color: #6b7280;
  font-size: var(--ec-font-sm);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.business-address {
  overflow-wrap: anywhere;
}

.business-card--premium .business-rubro,
.business-card--premium .business-category,
.business-card--premium .business-address {
  color: rgba(255,255,255,.86);
  font-size: var(--ec-font-sm);
  line-height: 1.4;
}

.visibility-badge,
.plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: var(--ec-font-xs);
  font-weight: 900;
  line-height: 1.15;
}

.visibility-badge--premium,
.plan-badge-premium {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
}

.visibility-badge--centro,
.plan-badge-centro {
  background: #FF851B;
  color: #0D2643;
}

.visibility-badge--free,
.plan-badge-base {
  background: #ececf4;
  color: #4a4a6b;
}

/* ---------- Pizarras divider ---------- */
.pizarra-divider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fde68a, #fef3c7);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #221a0a;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(180,83,9,.10);
}

.pizarra-divider__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.pizarra-divider__content {
  flex: 1 1 auto;
  min-width: 0;
}

.pizarra-divider__title {
  margin: 0 0 .2rem;
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pizarra-divider__text {
  margin: 0;
  font-size: clamp(.9rem, 3vw, 1rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pizarra-divider__button {
  flex: 0 0 auto;
  max-width: 128px;
  white-space: normal;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--ec-surface-strong);
  color: var(--ec-ink);
  font-weight: 800;
  text-align: center;
}

/* ---------- CTA ---------- */
.upgrade-cta {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #12345B, #1F4F8A);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  box-shadow: 0 12px 26px rgba(18, 52, 91, .22);
}

.upgrade-cta > div,
.upgrade-cta__content {
  flex: 1 1 auto;
  min-width: 0;
}

.upgrade-cta h2,
.upgrade-cta h3,
.upgrade-cta__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 4.8vw, 1.25rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.upgrade-cta p,
.upgrade-cta__text {
  margin: .25rem 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(.9rem, 3vw, 1rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.upgrade-cta .btn,
.upgrade-cta__button {
  flex: 0 0 auto;
  max-width: 180px;
  white-space: normal;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: #FF851B;
  color: #0D2643;
  font-weight: 900;
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: .4rem .2rem calc(.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e8e8f1;
  background: rgba(var(--ec-surface-rgb), .98);
  box-shadow: 0 -6px 20px rgba(20,20,30,.08);
}

.mobile-bottom-nav a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: var(--ec-font-xs);
  line-height: 1.2;
  text-decoration: none;
}

.mobile-bottom-nav a.is-active {
  color: var(--ec-ink);
  font-weight: 800;
}

/* ---------- < 992px: no global overflow ---------- */
@media (max-width: 991.98px) {
  .site-shell.home-page,
  .home-page,
  .home-shell {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero,
  .pizarra-divider,
  .upgrade-cta {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .section-header,
  .premium-carousel,
  .featured-carousel,
  .business-carousel,
  .business-card-track,
  .quick-categories,
  .premium-strip {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 430px) {
  .upgrade-cta .btn,
  .upgrade-cta__button {
    max-width: 148px;
    padding: 9px 12px;
    font-size: .85rem;
  }
}

@media (max-width: 380px) {
  .pizarra-divider__button {
    max-width: 104px;
    padding: 9px 11px;
    font-size: .82rem;
  }
}

@media (max-width: 360px) {
  .home-hero,
  .pizarra-divider,
  .upgrade-cta {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .home-hero {
    margin-top: 10px;
    margin-bottom: 16px;
    border-radius: 20px;
    padding: 14px 12px;
  }

  .home-brand-icon,
  .hero-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .hero-icon-btn,
  .icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .home-search-pill,
  .home-search-row,
  .search-pill {
    min-height: 50px;
    padding: 6px 8px 6px 12px;
  }

  .home-filter-button,
  .search-pill__filter-btn {
    max-width: 82px;
    padding: 9px 10px;
    font-size: .82rem;
  }

  .section-header,
  .premium-carousel,
  .featured-carousel,
  .business-carousel,
  .business-card-track,
  .quick-categories,
  .premium-strip {
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
  }

  .business-card--premium,
  .plan-card--premium {
    flex-basis: 198px;
    width: 198px;
    min-height: 292px;
    height: auto;
  }

  .business-card--centro,
  .business-card--free,
  .featured-carousel .business-card,
  .business-carousel .business-card {
    flex-basis: 150px;
    width: 150px;
  }

  .pizarra-divider,
  .upgrade-cta {
    padding: 12px;
    gap: 8px;
  }

  .pizarra-divider__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .pizarra-divider__text {
    font-size: var(--ec-font-sm);
    line-height: 1.4;
  }

  .upgrade-cta p,
  .upgrade-cta__text {
    font-size: var(--ec-font-sm);
  }

  .upgrade-cta .btn,
  .upgrade-cta__button {
    max-width: 128px;
    padding: 8px 10px;
    font-size: var(--ec-font-sm);
  }
}

@media (max-width: 330px) {
  .hero-icon-btn,
  .icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .home-filter-button i,
  .home-filter-button svg,
  .search-pill__filter-btn i,
  .search-pill__filter-btn svg {
    display: none;
  }

  .pizarra-divider__button {
    max-width: 74px;
    white-space: normal;
    line-height: 1.1;
  }

  .upgrade-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .upgrade-cta .btn,
  .upgrade-cta__button {
    width: 100%;
    max-width: none;
  }

  .mobile-bottom-nav a {
    font-size: .75rem;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }

  .home-desktop-nav {
    display: flex;
  }
}


@media (min-width: 768px) {
  .quick-categories {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 992px) {
  .site-shell.home-page,
  .home-page,
  .home-shell {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 32px;
  }

  .home-hero,
  .pizarra-divider,
  .upgrade-cta {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .premium-carousel,
  .featured-carousel,
  .business-carousel,
  .business-card-track,
  .premium-strip {
    overflow-x: visible;
    display: grid;
    padding-left: 0;
    padding-right: 0;
  }

  .premium-carousel,
  .premium-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .featured-carousel,
  .business-carousel,
  .business-card-track {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .business-card--premium,
  .plan-card--premium,
  .business-card--centro,
  .business-card--free,
  .featured-carousel .business-card,
  .business-carousel .business-card {
    width: 100%;
    max-width: none;
  }

  .quick-categories {
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .quick-categories__item {
    flex-basis: 82px;
    min-width: 82px;
    max-width: 82px;
    font-size: var(--ec-font-xs);
    line-height: 1.25;
  }

  .quick-categories__icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
}

/* Premium mobile menu */


/* Mobile drawer menu (Home) */
body.ec-menu-open { overflow: hidden; }
.ec-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14px;
  background: rgba(20, 13, 40, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.ec-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.ec-menu-panel {
  z-index: 9999;
  width: min(92vw, 420px);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border-radius: 26px;
  padding: 18px;
  border: 1px solid rgba(var(--ec-surface-rgb), 0.75);
  background: linear-gradient(180deg, var(--ec-warm-wash) 0%, var(--ec-surface-strong) 48%, var(--ec-color-primary-wash) 100%);
  box-shadow: 0 24px 70px rgba(24, 10, 56, 0.38);
  transform: translateY(14px) scale(.98);
  transition: transform .2s ease;
}
.ec-menu-overlay.is-open .ec-menu-panel { transform: translateY(0) scale(1); }
.ec-menu-panel a { text-decoration: none; color: inherit; }
.ec-menu-panel button { font-family: inherit; }
.ec-menu-panel .ec-menu-item,
.ec-menu-panel .ec-menu-logout,
.ec-menu-panel .ec-menu-cta-button { text-decoration: none !important; }
.ec-menu-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.ec-menu-title { margin:0; color:var(--ec-ink); font-size:clamp(1.2rem,4vw,1.45rem); line-height:1.2; font-weight:800; }
.ec-menu-subtitle { margin-top:4px; color:var(--ec-text-muted); font-size:var(--ec-font-sm); line-height:1.4; }
.ec-menu-close { width:42px; height:42px; border-radius:50%; border:0; background:var(--ec-color-primary-wash); color:var(--ec-ink); display:inline-flex; align-items:center; justify-content:center; }
.ec-menu-list { display:grid; gap:10px; }
.ec-menu-item,.ec-menu-logout {
  display:flex; align-items:center; gap:12px; min-height:52px;
  padding:14px 15px; border-radius:18px;
  background:rgba(var(--ec-surface-rgb), .88); border:1px solid rgba(var(--ec-tint-rgb), .10);
  box-shadow:0 10px 28px rgba(18,52,91,.08); color:var(--ec-ink);
  transition:160ms ease;
}
.ec-menu-item:hover,.ec-menu-item:focus-visible,.ec-menu-logout:hover,.ec-menu-logout:focus-visible{transform:translateY(-1px);box-shadow:0 14px 34px rgba(18,52,91,.13);background:var(--ec-surface-strong);outline:none;}
.ec-menu-icon{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:linear-gradient(145deg,var(--ec-color-primary-wash),#fff4be);}
.ec-menu-copy{display:grid;min-width:0;}
.ec-menu-item-title{font-size:var(--ec-font-base);font-weight:800;color:var(--ec-ink);line-height:1.25;}
.ec-menu-item-desc{font-size:var(--ec-font-sm);color:var(--ec-text-muted);line-height:1.4;margin-top:3px;}
.ec-menu-arrow{margin-left:auto;color:var(--ec-ink-link);opacity:.62;font-weight:700;}
.ec-menu-logout-form{margin:0;}
.ec-menu-logout-form .ec-menu-item{width:100%;border:0;cursor:pointer;text-align:left;}
.ec-menu-logout{background:rgba(255,240,245,.92);border:1px solid rgba(215,37,94,.18);}
.ec-menu-cta{margin-top:14px;border-radius:22px;padding:16px;background:linear-gradient(135deg,#1F4F8A,#12345B);box-shadow:0 18px 38px rgba(18,52,91,.35);color:#fff;}
.ec-menu-cta-title{font-size:var(--ec-font-md);line-height:1.25;font-weight:800;margin-top:10px;}
.ec-menu-cta-text{font-size:var(--ec-font-sm);line-height:1.45;color:rgba(255,255,255,.9);}
.ec-menu-cta-button{margin-top:10px;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 17px;border-radius:999px;background:#FF851B;color:#0D2643;font-weight:900;}
.ec-menu-cta-button:hover,.ec-menu-cta-button:focus-visible{background:var(--ec-color-accent-soft);color:var(--ec-ink-strong);outline:none;}
@media (max-width: 480px){.ec-menu-panel{width:calc(100vw - 24px);padding:16px;border-radius:22px;}}

/* ElCentro ecosystem home - mobile first */
.home-main { background: radial-gradient(circle at 8% 0%, rgba(255,133,27,.18), transparent 28%), radial-gradient(circle at 92% 12%, rgba(var(--ec-tint-rgb), .11), transparent 30%), var(--ec-bg); min-height: 100vh; }
.ec-home { --ec-mobile-bottom-nav-height: 84px; width: min(100%, 1120px); margin: 0 auto; padding: 1rem .9rem calc(var(--ec-mobile-bottom-nav-height) + 1rem + env(safe-area-inset-bottom)); color: var(--ec-text); font-size: var(--ec-font-base); line-height: 1.5; overflow-x: clip; }
.ec-home-header { display: flex; align-items: center; gap: .7rem; justify-content: space-between; margin-bottom: .8rem; }
.ec-home-brand { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; min-width: 0; }
.ec-home-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: linear-gradient(135deg,var(--ec-color-primary-dark),var(--ec-color-primary)); color: #fff; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 12px 24px rgba(13,38,67,.2); }
.ec-home-brand strong { display: block; font-size: clamp(1.22rem, 4vw, 1.45rem); line-height: 1.08; }
.ec-home-brand small { display: block; color: var(--ec-text-muted); font-size: var(--ec-font-xs); line-height: 1.25; }
.ec-city-chip, .ec-profile-btn { border: 1px solid rgba(var(--ec-tint-rgb), .1); background: rgba(var(--ec-surface-rgb), .96); color: var(--ec-ink-strong); border-radius: 999px; min-height: 44px; box-shadow: 0 8px 22px rgba(13,38,67,.08); }
.ec-profile-menu-wrap { flex: 0 0 auto; }
.ec-profile-menu-wrap .ec-profile-btn { border: 1px solid rgba(var(--ec-tint-rgb), .1); }
.ec-profile-menu { min-width: 200px; max-width: calc(100vw - 1.8rem); border-radius: 1rem; border: 1px solid rgba(255,255,255,.6); background: rgba(var(--ec-surface-rgb), .96); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 24px 48px rgba(8, 26, 48, .22); padding: .4rem; }
.ec-profile-menu .dropdown-item { border-radius: .7rem; padding: .6rem .8rem; font-weight: 700; }
.ec-profile-menu .dropdown-item:hover, .ec-profile-menu .dropdown-item:focus { background: rgba(var(--ec-tint-rgb), .1); }
.ec-profile-menu .dropdown-item.text-danger:hover, .ec-profile-menu .dropdown-item.text-danger:focus { background: rgba(220, 53, 69, .1); }
.ec-profile-menu form { margin: 0; }
.ec-profile-menu form .dropdown-item { width: 100%; text-align: left; border: 0; background: transparent; }
.ec-city-chip { padding: .55rem .8rem; font-weight: 700; font-size: var(--ec-font-sm); line-height: 1.25; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-profile-btn { width: 44px; display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 auto; }
.ec-hero { position: relative; overflow: hidden; border-radius: 28px; padding: .95rem; min-height: 186px; display: flex; flex-direction: column; justify-content: center; background-image: linear-gradient(135deg, rgba(8,26,48,.78) 0%, rgba(18,52,91,.62) 48%, rgba(201,122,19,.36) 100%), radial-gradient(circle at 82% 18%, rgba(255,232,212,.24), transparent 34%), url('/img/ui/fondo_hero.png'); background-position: center; background-size: cover; color: #fff; box-shadow: 0 20px 42px rgba(13,38,67,.2); }
.ec-hero__eyebrow { display: inline-flex; font-size: var(--ec-font-xs); line-height: 1.3; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; color: #FFE8D4; margin-bottom: .45rem; text-shadow: 0 1px 10px rgba(8,26,48,.36); }
.ec-hero h1 { font-size: clamp(1.75rem, 7vw, 3.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -.05em; margin: 0 0 .85rem; max-width: 680px; text-shadow: 0 3px 16px rgba(8,26,48,.42); }
.ec-hero p { margin: 0 0 .9rem; color: rgba(255,255,255,.92); font-size: clamp(1rem, 3vw, 1.12rem); line-height: 1.5; max-width: 580px; text-shadow: 0 2px 12px rgba(8,26,48,.34); }
.ec-hero-search { display: flex; align-items: center; gap: .45rem; background: rgba(var(--ec-surface-rgb), .98); border-radius: 20px; padding: .45rem; box-shadow: 0 16px 34px rgba(8,26,48,.22), inset 0 0 0 1px rgba(8, 26, 48,.07); }
.ec-hero-search i { color: var(--ec-ink); padding-left: .55rem; }
.ec-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: var(--ec-font-base); line-height: 1.35; color: var(--ec-text); background: transparent; }
.ec-hero-search button { border: 0; background: var(--ec-color-accent); color: #0D2643; font-size: .95rem; line-height: 1.2; font-weight: 900; border-radius: 16px; min-height: 44px; padding: .7rem .95rem; box-shadow: 0 8px 18px rgba(232,112,10,.24); }
.ec-hero-actions { display: flex; gap: .6rem; margin-top: .85rem; }
.ec-hero-actions .btn { border-radius: 999px; font-size: .95rem; line-height: 1.25; font-weight: 800; min-height: 46px; padding: .72rem 1rem; white-space: normal; }
.ec-hero-actions .btn-primary { background: var(--ec-color-accent); border-color: var(--ec-color-accent); color: #0D2643; box-shadow: 0 10px 24px rgba(232,112,10,.25); }
.ec-hero-actions .btn-primary:hover, .ec-hero-search button:hover { background: var(--ec-color-accent-dark); border-color: var(--ec-color-accent-dark); color: #0D2643; }
.ec-hero-actions .btn-light { background: rgba(var(--ec-surface-rgb), .94); border-color: rgba(var(--ec-surface-rgb), .72); color: var(--ec-ink-strong); }
.ec-hero-actions .btn-light:hover { background: var(--ec-color-primary-soft); color: var(--ec-ink-deep); }
.ec-route-highlight { position: relative; overflow: hidden; min-height: 88px; margin-top: .8rem; border-radius: 20px; padding: .8rem .85rem .8rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; background: linear-gradient(135deg, rgba(var(--ec-surface-rgb), .98), var(--ec-warm-wash)); color: var(--ec-ink-strong); text-decoration: none; box-shadow: 0 12px 26px rgba(232,112,10,.14); border: 1px solid rgba(255,133,27,.36); }
.ec-route-highlight::after { content: ""; position: absolute; right: -2rem; top: -2.3rem; width: 5.8rem; height: 5.8rem; border-radius: 999px; background: rgba(255,133,27,.2); pointer-events: none; }
.ec-route-highlight__icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: var(--ec-color-accent); color: #0D2643; font-size: 1.2rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 8px 18px rgba(232,112,10,.18); }
.ec-route-highlight__content { position: relative; z-index: 1; min-width: 0; }
.ec-route-highlight h2 { margin: 0; font-size: clamp(1.05rem, 4.6vw, 1.35rem); line-height: 1.12; font-weight: 950; letter-spacing: -.035em; color: #21310d; }
.ec-route-highlight:hover, .ec-route-highlight:focus-visible { color: var(--ec-ink-strong); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(232,112,10,.18); }
.ec-route-highlight:focus-visible { outline: 3px solid rgba(var(--ec-tint-rgb), .35); outline-offset: 3px; }
.ec-section { margin-top: 1.55rem; }
.ec-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .75rem; }
.ec-section-head--end { justify-content: flex-end; }
.ec-section-head span { display: block; color: var(--ec-text-muted); font-size: var(--ec-font-sm); line-height: 1.35; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ec-section-head h2 { margin: .1rem 0 0; font-size: clamp(1.25rem, 4vw, 1.65rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 900; color: var(--ec-text); }
.ec-section-head a { color: var(--ec-ink); font-size: var(--ec-font-sm); line-height: 1.3; font-weight: 900; text-decoration: none; white-space: nowrap; }
.ec-horizontal-scroll { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .1rem .85rem .65rem; margin: 0 -.85rem; scrollbar-width: none; }
.ec-horizontal-scroll::-webkit-scrollbar { display: none; }
.ec-profile-card, .ec-empty-card { flex: 0 0 48%; min-width: 165px; max-width: 360px; scroll-snap-align: start; background: var(--ec-surface); border-radius: 24px; overflow: hidden; box-shadow: 0 14px 32px rgba(13,38,67,.08); border: 1px solid rgba(var(--ec-tint-rgb), .08); }
.ec-profile-card__media { position: relative; min-height: 140px; height: auto; aspect-ratio: 16 / 10; display: grid; place-items: center; color: #fff; text-decoration: none; background: linear-gradient(135deg,var(--ec-color-primary-dark),var(--ec-color-primary)); font-weight: 900; font-size: 2rem; }
.ec-profile-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ec-profile-card__media em { position: absolute; top: .65rem; right: .65rem; border-radius: 999px; padding: .22rem .55rem; background: linear-gradient(135deg,var(--ec-color-accent-soft),var(--ec-color-accent)); color: #0D2643; font-size: var(--ec-font-xs); line-height: 1.15; font-style: normal; font-weight: 900; }
.ec-profile-card__body { padding: 1rem; }
.ec-profile-card__meta { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .42rem; }
.ec-profile-card__meta span, .ec-mini-badge { display: inline-flex; border-radius: 999px; padding: .18rem .48rem; background: var(--ec-color-primary-soft); color: var(--ec-ink-strong); font-size: var(--ec-font-xs); line-height: 1.2; font-weight: 800; }
.ec-profile-card h3 { margin: 0; font-size: clamp(1rem, 3.5vw, 1.2rem); line-height: 1.25; font-weight: 900; }
.ec-profile-card h3 a { color: var(--ec-text); text-decoration: none; }
.ec-profile-card p { margin: .28rem 0 .25rem; color: var(--ec-text-muted); font-weight: 700; font-size: var(--ec-font-sm); line-height: 1.4; }
.ec-profile-card small { display: block; color: var(--ec-text-muted); font-size: var(--ec-font-sm); line-height: 1.4; min-height: 1.4rem; }
.ec-profile-card__actions { margin-top: .75rem; }
.ec-profile-card__actions a, .ec-profile-card__actions span { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .48rem .68rem; background: #E7F7ED; color: #106B3E; font-size: .94rem; line-height: 1.25; font-weight: 900; text-decoration: none; }
.ec-profile-card--emprendedor .ec-profile-card__media { background: linear-gradient(135deg,var(--ec-color-accent-warm),#4EA77C); }
.ec-profile-card--oficio .ec-profile-card__media { background: linear-gradient(135deg,var(--ec-color-primary-dark),#18895F); }
.ec-profile-card--empresa .ec-profile-card__media { background: linear-gradient(135deg,#273D43,#7C8C8B); }
.ec-empty-card { min-height: 214px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: .35rem; color: var(--ec-text); background: linear-gradient(180deg,var(--ec-surface),var(--ec-color-primary-wash)); }
.ec-empty-card strong { font-size: 1.1rem; line-height: 1.15; }
.ec-empty-card span { color: var(--ec-text-muted); }
.ec-commerce-products-section { margin: 0 1rem 1rem; }
.ec-horizontal-scroll--productos .ec-product-card { flex: 0 0 62%; min-width: 200px; max-width: 260px; }
.ec-product-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--ec-surface); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 28px rgba(13,38,67,.08); border: 1px solid rgba(var(--ec-tint-rgb), .08); }
.ec-product-card__media { aspect-ratio: 4 / 3; background: var(--ec-color-primary-soft); }
.ec-product-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ec-product-card__body { padding: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.ec-product-card__body h3 { margin: 0; font-size: 1rem; line-height: 1.25; font-weight: 900; color: var(--ec-text); }
.ec-product-card__price { margin: 0; color: var(--ec-ink-strong); font-weight: 800; font-size: .95rem; }
.ec-product-card__link { align-self: flex-start; display: inline-flex; align-items: center; border-radius: 999px; padding: .42rem .75rem; background: var(--ec-color-primary); color: #fff; font-size: .88rem; font-weight: 900; text-decoration: none; }
.ec-product-card__link:hover, .ec-product-card__link:focus-visible { background: var(--ec-color-primary-dark); }
.ec-product-card__embed { width: 100%; aspect-ratio: 1 / 1; border: 0; border-radius: 12px; }
.ec-horizontal-scroll--vip .ec-profile-card, .ec-horizontal-scroll--vip .ec-empty-card { flex-basis: 46%; min-width: 160px; }
.ec-profile-card--emprendedor, .ec-profile-card--oficio, .ec-profile-card--empresa { flex-basis: 38%; min-width: 145px; }
.ec-horizontal-scroll--offers .ec-offer-card { flex: 0 0 48%; min-width: 165px; max-width: 390px; }
.ec-horizontal-scroll--offers .ec-board-card { flex: 0 0 48%; min-width: 165px; max-width: 390px; }
.ec-board-card { scroll-snap-align: start; min-height: 96px; height: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; padding: 1rem; background: #111; color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 14px 32px rgba(17,17,17,.18); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.ec-board-card:hover { background: #181818; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(17,17,17,.24); }
.ec-board-card:focus-visible { outline: 3px solid var(--ec-color-accent); outline-offset: 3px; }
.ec-board-card__title { color: #fff; font-weight: 800; font-size: clamp(.95rem, 4vw, 1.15rem); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.ec-offer-card { scroll-snap-align: start; min-height: 196px; height: auto; border-radius: 24px; padding: 1rem; background: radial-gradient(circle at 20% 0%, rgba(255,232,212,.24), transparent 32%), linear-gradient(135deg,var(--ec-color-primary-deep),var(--ec-color-primary)); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 32px rgba(13,38,67,.16); }
.ec-offer-card__tag { align-self: flex-start; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .2rem .55rem; font-size: var(--ec-font-xs); line-height: 1.2; font-weight: 900; }
.ec-offer-card strong { font-size: clamp(1.35rem, 5vw, 1.65rem); line-height: 1.15; }
.ec-offer-card small { color: #DCE4EF; font-size: clamp(1rem, 3vw, 1.1rem); line-height: 1.4; }
.ec-offer-card em { font-style: normal; color: var(--ec-color-accent-soft); font-weight: 800; }
/* --- Home restyle (issue #323): dirección visual del mockup de referencia. ---
   Reglas scoped al home: .ec-section
   sólo se usan hoy en Views/Home/Index.cshtml (ver commerces.md / navigation-and-mobile.md). */

.ec-section--gold, .ec-section--warm, .ec-section--teal {
  border-radius: 26px;
  padding: 1.05rem .85rem 1.2rem;
  margin: 1.55rem -.85rem 0;
}
.ec-section--gold { background: linear-gradient(180deg, #FFF6DE 0%, rgba(255,246,222,0) 100%); }
.ec-section--warm { background: linear-gradient(180deg, #FFEEDA 0%, rgba(255,238,218,0) 100%); }
.ec-section--teal { background: linear-gradient(180deg, var(--ec-color-primary-soft) 0%, rgba(221,241,238,0) 100%); }
.ec-section--mist { background: linear-gradient(180deg, var(--ec-color-primary-wash) 0%, rgba(var(--ec-wash-rgb), 0) 100%); }
.ec-section--cream { background: linear-gradient(180deg, var(--ec-bg) 0%, rgba(var(--ec-bg-rgb), 0) 100%); }
.ec-section--trust { background: linear-gradient(180deg, var(--ec-color-accent-soft) 0%, rgba(255,232,212,0) 100%); }

/* Grid de accesos rápidos por tipo de perfil (issue #375, reincorporado tras #325). */
.ec-quick-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .8rem; }
.ec-type-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 44px; padding: .5rem .2rem; border-radius: 1rem; background: var(--ec-surface); border: 1px solid rgba(18,52,91,.18); color: var(--ec-color-primary-deep); text-decoration: none; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; font-size: clamp(.5rem, 2.45vw, var(--ec-font-sm)); }
.ec-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .5rem; }
.ec-quick-actions a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem .4rem; border-radius: 999px; background: var(--ec-surface); border: 1px solid rgba(18,52,91,.18); color: var(--ec-color-primary-deep); font-size: var(--ec-font-sm); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.ec-quick-actions a:hover, .ec-quick-actions a:focus-visible { background: rgba(18,52,91,.08); }
.ec-type-card:hover, .ec-type-card:focus-visible { background: rgba(18,52,91,.08); color: var(--ec-color-primary-deep); }
.ec-type-card__icon { display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; color: var(--ec-color-primary); }
.ec-type-card--trust .ec-type-card__icon { color: var(--ec-color-primary-dark); }
.ec-type-card--warm .ec-type-card__icon { color: var(--ec-color-accent-dark); }
.ec-type-card--corp .ec-type-card__icon { color: #273D43; }

/* Filas tipo "service" (issue #375): usadas por Comercios cercanos y Oficios y servicios. */
.ec-service-list { display: flex; flex-direction: column; gap: .55rem; }
.ec-service-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 18px; background: var(--ec-surface); border: 1px solid rgba(var(--ec-tint-rgb), .08); text-decoration: none; color: var(--ec-text); box-shadow: 0 8px 20px rgba(13,38,67,.05); }
.ec-service-row__avatar { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; background: var(--fallback-bg, var(--ec-color-primary-soft)); color: var(--fallback-fg, var(--ec-color-primary-dark)); }
.ec-service-row__avatar--photo { object-fit: cover; object-position: center; }
.ec-service-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.ec-service-row__body strong { font-size: var(--ec-font-base); font-weight: 900; line-height: 1.25; }
.ec-service-row__body small { color: var(--ec-text-muted); font-size: var(--ec-font-sm); font-weight: 700; line-height: 1.35; }
.ec-service-row__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.ec-service-row__tags:empty { display: none; margin-top: 0; }
.ec-service-row__arrow { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ec-color-primary-soft); color: var(--ec-ink); font-size: 1rem; }
.ec-service-empty { margin: 0; padding: 1rem; border-radius: 18px; background: var(--ec-surface); color: var(--ec-text-muted); font-size: var(--ec-font-sm); font-weight: 700; line-height: 1.45; text-align: center; }

.ec-horizontal-scroll--vip .ec-profile-card--vip, .ec-horizontal-scroll--general .ec-profile-card--vip { background: linear-gradient(180deg, #FFFBF0, var(--ec-surface)); border-color: rgba(255,133,27,.4); }

.ec-horizontal-scroll--nearby [data-nearby-card] { display: contents; }
#comercios-cercanos[hidden] { display: none; }

.ec-nearby-frame { margin-inline: -.35rem; padding: .6rem; border-radius: 22px; border: 1px solid rgba(var(--ec-tint-rgb), .16); background: var(--ec-surface); box-shadow: 0 10px 26px rgba(18,52,91,.08); }
#comercios-cercanos .ec-service-list { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding-right: .15rem; }

.ec-map-route-cta { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 46px; margin-bottom: .85rem; padding: .5rem .5rem .5rem .9rem; border-radius: 999px; background: var(--ec-color-primary); color: #fff; text-decoration: none; font-size: var(--ec-font-sm); line-height: 1.2; font-weight: 900; box-shadow: 0 10px 22px rgba(8,26,48,.22), inset 0 0 0 1px rgba(255,255,255,.16); }
.ec-map-route-cta i { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ec-color-accent); color: var(--ec-color-primary-deep); font-size: 1.05rem; }
.ec-map-route-cta:hover, .ec-map-route-cta:focus-visible { background: var(--ec-color-primary-dark); color: #fff; }
.ec-map-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.ec-map-filter-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(var(--ec-tint-rgb), .18); background: var(--ec-surface); color: var(--ec-text); font-size: var(--ec-font-xs); font-weight: 800; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ec-map-filter-chip i { font-size: .85rem; }
.ec-map-filter-chip.is-active { background: var(--ec-color-primary); border-color: var(--ec-color-primary); color: #fff; }
.ec-city-map__empty-filter { margin: .75rem 0 0; padding: .85rem; border-radius: 14px; background: var(--ec-surface); color: var(--ec-text-muted); font-size: var(--ec-font-sm); font-weight: 700; text-align: center; }

.ec-city-map { height: 260px; min-height: 260px; border-radius: 1.2rem; overflow: hidden; border: 1px solid rgba(var(--ec-tint-rgb), .14); background: linear-gradient(135deg, rgba(var(--ec-wash-rgb), .9), rgba(var(--ec-warm-wash-rgb), .9)); position: relative; }
.ec-city-map__error { margin: 0; padding: 1rem; text-align: center; color: var(--ec-text-muted); font-size: var(--ec-font-sm); font-weight: 700; }
.ec-city-map-pin { background: transparent; border: 0; }
.ec-city-map-pin span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px 999px 999px 6px; transform: rotate(-45deg); color: #fff; border: 3px solid var(--ec-surface-strong); box-shadow: 0 10px 22px rgba(0,0,0,.22); background: var(--ec-map-cat-none); }
.ec-city-map-pin span i { transform: rotate(45deg); font-size: .85rem; }
.ec-city-map-pin--cat-vestimenta span { background: var(--ec-map-cat-vestimenta); }
.ec-city-map-pin--cat-gastronomia span { background: var(--ec-map-cat-gastronomia); }
.ec-city-map-pin--cat-regaleria span { background: var(--ec-map-cat-regaleria); }
.ec-city-map-pin--cat-salud-belleza span { background: var(--ec-map-cat-salud-belleza); }
.ec-city-map-pin--cat-hogar-servicios span { background: var(--ec-map-cat-hogar-servicios); }
.ec-city-map-pin--cat-none span { background: var(--ec-map-cat-none); }
.ec-city-map-pin.is-destacado span { box-shadow: 0 0 0 3px var(--ec-color-accent), 0 10px 22px rgba(0,0,0,.22); }
.ec-city-map-pin.is-vip span { box-shadow: 0 0 0 3px var(--ec-color-accent-dark), 0 0 0 6px rgba(255,133,27,.35), 0 10px 22px rgba(0,0,0,.22); }
.ec-city-map-pin--user span { width: 24px; height: 24px; border-radius: 50%; transform: none; background: #1D6FE0; box-shadow: 0 0 0 4px rgba(29,111,224,.25), 0 6px 14px rgba(0,0,0,.24); }
.ec-city-map-pin--user span i { transform: none; font-size: .7rem; }
.ec-city-map-recenter { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ec-surface-strong); color: var(--ec-ink); box-shadow: 0 6px 16px rgba(18,52,91,.28); font-size: 1.05rem; cursor: pointer; }
.ec-city-map-recenter:hover, .ec-city-map-recenter:focus-visible { background: var(--ec-color-primary); color: #fff; }
@media (min-width: 768px) {
  .ec-city-map { height: 340px; }
}

.ec-final-cta { margin-top: 1.6rem; border-radius: 26px; padding: 1.3rem 1.1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; color: #fff; background: linear-gradient(135deg, var(--ec-color-primary-deep), var(--ec-color-primary-dark)); box-shadow: 0 20px 40px rgba(13,38,67,.28); }
.ec-final-cta strong { display: block; font-size: clamp(1.2rem, 4.4vw, 1.5rem); line-height: 1.2; font-weight: 900; }
.ec-final-cta span { display: block; margin-top: .3rem; color: rgba(255,255,255,.88); font-size: var(--ec-font-sm); line-height: 1.4; }
.ec-final-cta .btn { border: 0; border-radius: 999px; min-height: 48px; padding: .75rem 1.3rem; background: rgba(var(--ec-surface-rgb), .96); color: var(--ec-ink-strong); font-weight: 900; text-decoration: none; box-shadow: 0 10px 22px rgba(8,26,48,.24); }
.ec-final-cta .btn:hover, .ec-final-cta .btn:focus-visible { background: var(--ec-surface-strong); color: var(--ec-ink-deep); }

.ec-home-footer { margin-top: 1.5rem; padding: 1.1rem .9rem; border-radius: 20px; background: var(--ec-surface); border: 1px solid rgba(var(--ec-tint-rgb), .08); text-align: center; }
.ec-home-footer__tagline { margin: 0 0 .6rem; color: var(--ec-ink-strong); font-weight: 800; font-size: var(--ec-font-sm); line-height: 1.3; }
.ec-home-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; margin-bottom: .8rem; }
.ec-home-footer__links a { color: var(--ec-ink); font-weight: 700; font-size: var(--ec-font-sm); line-height: 1.3; text-decoration: none; }
.ec-home-footer__links a:hover, .ec-home-footer__links a:focus-visible { text-decoration: underline; }
.ec-home-footer__legal, .ec-home-footer__credit { margin: 0; color: var(--ec-text-muted); font-size: var(--ec-font-xs); line-height: 1.4; }
.ec-home-footer__credit { margin-top: .15rem; }
.ec-bottom-nav { position: fixed; z-index: 1030; left: .65rem; right: .65rem; bottom: calc(.65rem + env(safe-area-inset-bottom)); min-height: 76px; height: auto; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; background: rgba(var(--ec-surface-rgb), .96); backdrop-filter: blur(14px); border: 1px solid rgba(22,39,66,.08); border-radius: 24px; box-shadow: 0 12px 35px rgba(20,34,55,.18); transition: transform .28s ease, opacity .2s ease, visibility .2s ease; will-change: transform; }
.ec-bottom-nav a { color: var(--ec-text-muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .12rem; font-size: .72rem; line-height: 1.1; font-weight: 800; }
.ec-bottom-nav i { font-size: 1.1rem; }
.ec-bottom-nav a.is-active { color: var(--ec-ink); }
.ec-bottom-nav__publish i { width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border-radius: 50%; background: var(--ec-color-accent); color: #0D2643; box-shadow: 0 10px 24px rgba(232,112,10,.28); }
.ec-bottom-nav.is-hidden,
.mobile-bottom-nav.is-hidden {
  transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom)));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.bottom-nav-handle {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 6px);
  z-index: 1031;
  width: 56px;
  height: 44px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  touch-action: manipulation;
}

.bottom-nav-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 48px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 82, 82, .78);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.bottom-nav-handle[hidden] {
  display: none;
}

.bottom-nav-handle:focus-visible {
  outline: 3px solid rgba(255,133,27,.86);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ec-bottom-nav,
  .mobile-bottom-nav {
    transition: none;
  }
}

.ec-home a:focus-visible, .ec-home button:focus-visible { outline: 3px solid rgba(255,133,27,.86); outline-offset: 3px; }
@media (max-width: 767.98px) {
  .ec-horizontal-scroll--vip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 72vw, 300px); gap: 1rem; overflow-x: auto; overflow-y: visible; padding: .1rem .9rem .75rem; margin: 0 -.9rem; scroll-snap-type: x mandatory; }
  .ec-horizontal-scroll--vip .ec-profile-card,
  .ec-horizontal-scroll--vip .ec-empty-card { width: clamp(240px, 72vw, 300px); max-width: 100%; min-width: 0; flex: none; scroll-snap-align: start; }
  .ec-horizontal-scroll--vip .ec-profile-card { border-radius: 22px; }
  .ec-horizontal-scroll--vip .ec-profile-card__media { min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; }
  .ec-horizontal-scroll--vip .ec-profile-card__media img.ec-profile-card__image--photo { object-fit: cover; object-position: center; padding: 0; }
  .ec-horizontal-scroll--vip .ec-profile-card__media img.ec-profile-card__image--logo { object-fit: contain; object-position: center; padding: clamp(.75rem, 4vw, 1.25rem); background: rgba(255,255,255,.85); }
  .ec-horizontal-scroll--vip .ec-profile-card__body { padding: .75rem; }
  .ec-horizontal-scroll--vip .ec-profile-card__meta { margin-bottom: .35rem; gap: .28rem; }
  .ec-horizontal-scroll--vip .ec-profile-card h3 { line-height: 1.15; }
  .ec-horizontal-scroll--vip .ec-profile-card p { margin: .22rem 0 .18rem; line-height: 1.25; }
  .ec-horizontal-scroll--vip .ec-profile-card small { line-height: 1.25; min-height: 0; }
  .ec-horizontal-scroll--vip .ec-profile-card__actions { margin-top: .5rem; }
  .ec-horizontal-scroll--vip .ec-profile-card__actions a,
  .ec-horizontal-scroll--vip .ec-profile-card__actions span { padding: .42rem .62rem; font-size: .9rem; }
}
@media (max-width: 380px) {
  .ec-horizontal-scroll--vip .ec-profile-card,
  .ec-horizontal-scroll--vip .ec-empty-card,
  .ec-horizontal-scroll--offers .ec-offer-card,
  .ec-horizontal-scroll--offers .ec-board-card { flex-basis: 72%; }
  .ec-profile-card--emprendedor,
  .ec-profile-card--oficio,
  .ec-profile-card--empresa { flex-basis: 48%; }
}
@media (min-width: 768px) {
  .ec-home { padding: 1.35rem 1.35rem 3.25rem; }
  .ec-hero { min-height: 220px; padding: 1.35rem; }
  .ec-horizontal-scroll { margin-inline: 0; padding-inline: 0; }
  .ec-profile-card,
  .ec-profile-card--emprendedor,
  .ec-profile-card--oficio,
  .ec-profile-card--empresa,
  .ec-horizontal-scroll--vip .ec-profile-card { flex-basis: 260px; }
  .ec-horizontal-scroll--offers .ec-offer-card,
  .ec-horizontal-scroll--offers .ec-board-card { flex-basis: 280px; }
  .ec-bottom-nav { display: none; }
}

.ec-profile-detail{--plan-accent:#1F4F8A;border:1px solid var(--ec-color-primary-soft);border-radius:1.75rem;background:var(--ec-surface-strong);overflow:hidden;box-shadow:0 22px 50px rgba(18,52,91,.1)}.ec-profile-detail--centro{--plan-accent:#ffbe0b}.ec-profile-detail--vidriera{--plan-accent:#ff7a1a}.ec-profile-detail--preferente{--plan-accent:#1F4F8A}.ec-profile-detail__hero{position:relative;min-height:280px;background:var(--ec-color-primary-wash)}.ec-profile-detail__hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.ec-profile-detail__overlay{position:absolute;inset:auto 0 0;padding:1.25rem;background:linear-gradient(180deg,transparent,rgba(8, 26, 48,.9));color:#fff}.ec-profile-plan-badge{display:inline-flex;border-radius:999px;background:var(--plan-accent);color:var(--ec-ink-strong);padding:.35rem .7rem;font-weight:900;margin-bottom:.75rem}.ec-profile-detail__logo{display:block;width:88px;height:88px;object-fit:cover;border-radius:24px;border:3px solid var(--ec-surface-strong);background:#fff;margin-bottom:.75rem}.ec-profile-detail__overlay h1{font-size:clamp(1.8rem,8vw,2.8rem);line-height:1;margin:0 0 .35rem}.ec-profile-detail__overlay p{margin:0;color:#F0F4F9}.ec-profile-detail__actions{display:grid;gap:.65rem;padding:1rem;background:var(--ec-warm-wash)}.ec-profile-detail__actions .btn{min-height:46px;border-radius:1rem;font-weight:800}.ec-profile-detail__grid{display:grid;gap:1rem;padding:1rem}.ec-profile-detail__card{border:1px solid var(--ec-line);border-radius:1.2rem;padding:1rem;background:var(--ec-surface-strong)}.ec-profile-detail__card h2{font-size:1.15rem;margin:0 0 .75rem;color:var(--ec-ink)}.ec-profile-detail__card dl{display:grid;grid-template-columns:minmax(95px,.35fr) 1fr;gap:.55rem;margin:0}.ec-profile-detail__card dt{font-weight:900;color:var(--ec-text-muted)}.ec-profile-detail__card dd{margin:0;color:#5d6475}.ec-profile-detail__card--plan{border-color:var(--plan-accent);background:linear-gradient(180deg,var(--ec-surface-strong),var(--ec-warm-wash))}.ec-profile-detail__card--plan strong{display:block;font-size:1.35rem;color:var(--ec-ink)}.ec-profile-contact-list,.ec-profile-tags{display:grid;gap:.6rem}.ec-profile-contact-list span,.ec-profile-tags span{display:flex;gap:.55rem;align-items:center;border-radius:999px;background:var(--ec-color-primary-wash);padding:.6rem .8rem;color:var(--ec-text)}.ec-profile-detail__notice{margin:0 1rem 1rem;border-radius:1rem;background:#eef7ff;border:1px solid #cde7ff;padding:1rem;display:grid;gap:.75rem}@media (min-width:768px){.ec-profile-detail__actions{grid-template-columns:repeat(4,auto);justify-content:start}.ec-profile-detail__grid{grid-template-columns:1.3fr .9fr}.ec-profile-detail__grid--presentation{grid-template-columns:1fr}.ec-profile-detail__hero{min-height:380px}}
.plan-badge-preferente{background:rgba(31,79,138,.9);color:#fff}.commerce-card-preferente{box-shadow:0 16px 34px rgba(31,79,138,.14);border-color:#d7ceff}.zone-section-preferente .commerce-card-image{aspect-ratio:16/10}.commerce-card-vidriera{border:2px solid rgba(255,190,11,.65)}.commerce-card-centro{border:2px solid rgba(255,190,11,.95)}

.commerce-logo,
.logo-comercio {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.commerce-card-image,
.foto-vidriera {
  object-fit: cover;
  object-position: center;
}

.commerce-verified-badge,
.commerce-online-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .3rem .6rem;
  font-size: .8rem;
  font-weight: 800;
}

.commerce-verified-badge { background: #e8f7ef; color: #166534; border: 1px solid #bbebce; }
.commerce-online-badge { background: #eef4ff; color: #1d4ed8; border: 1px solid #c7d2fe; }

/* Image crops generated in the commerce form are already normalized; keep every public surface aligned. */
.commerce-card-image,
.zone-section-centro .commerce-card-image,
.zone-section-vidriera .commerce-card-image,
.zone-section-base .commerce-card-image,
.zone-section-preferente .commerce-card-image,
.commerce-card-centro .commerce-card-image,
.commerce-card-base .commerce-card-image,
.ec-profile-card__media,
.ec-profile-detail__hero,
.ec-commerce-detail-main-image {
  aspect-ratio: 16 / 9;
}

.commerce-card-image,
.ec-profile-card__media img,
.ec-profile-detail__hero > img,
.ec-commerce-detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.commerce-logo,
.ec-profile-detail__logo,
.ec-panel-commerce-logo,
.ec-commerce-detail-logo {
  object-fit: contain !important;
  object-position: center;
  background: #fff;
}

.commerce-card-base .commerce-card-image {
  filter: none;
}

.ec-perfil-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--ec-border);
  border-radius: 1.5rem;
  background: rgba(var(--ec-wash-rgb), .55);
}
.ec-perfil-empty__icon {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ec-color-primary-soft);
  color: var(--ec-ink);
  font-size: 2.25rem;
}
.ec-perfil-empty__icon-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ec-color-accent);
  color: #0D2643;
  font-size: .95rem;
  box-shadow: 0 8px 18px rgba(232, 112, 10, .3);
}
.ec-perfil-empty__title {
  color: var(--ec-text);
  margin-bottom: .5rem;
}
.ec-perfil-empty__subtitle {
  color: var(--ec-text-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}
.ec-perfil-empty .btn-lg {
  background: var(--ec-color-primary);
  border-color: var(--ec-color-primary);
  color: #fff;
}
.ec-perfil-empty .btn-lg:hover,
.ec-perfil-empty .btn-lg:focus {
  background: var(--ec-color-primary-dark);
  border-color: var(--ec-color-primary-dark);
  color: #fff;
}

.ec-perfil-datos-cta {
  border-color: var(--ec-border);
  background: rgba(var(--ec-wash-rgb), .55);
}
.ec-perfil-datos-cta .btn-lg {
  background: var(--ec-color-primary);
  border-color: var(--ec-color-primary);
  color: #fff;
}
.ec-perfil-datos-cta .btn-lg:hover,
.ec-perfil-datos-cta .btn-lg:focus {
  background: var(--ec-color-primary-dark);
  border-color: var(--ec-color-primary-dark);
  color: #fff;
}

@media (min-width: 768px) {
  .zone-section-centro .commerce-card-image {
    aspect-ratio: 16 / 9;
  }
}
.ec-profile-detail__hero { min-height: 0; }
.pizarra-logo { object-fit: contain; object-position: center; }

/* Compact mobile home commerce cards: shared by VIP, emprendedores, oficios and empresas. */
@media (max-width: 767.98px) {
  .ec-home {
    --home-commerce-card-mobile-width: clamp(130px, 42vw, 170px);
    --home-commerce-card-radius: 1rem;
    --home-commerce-card-gap: .65rem;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .ec-horizontal-scroll,
  .ec-horizontal-scroll--vip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--home-commerce-card-mobile-width);
    gap: var(--home-commerce-card-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    padding: .1rem 1rem .65rem;
    margin: 0 -1rem;
    max-width: calc(100% + 2rem);
  }

  .ec-horizontal-scroll > *,
  .ec-horizontal-scroll--vip > * {
    scroll-snap-align: start;
    min-width: 0;
  }

  .ec-profile-card,
  .ec-empty-card,
  .ec-horizontal-scroll--vip .ec-profile-card,
  .ec-horizontal-scroll--vip .ec-empty-card,
  .ec-profile-card--emprendedor,
  .ec-profile-card--oficio,
  .ec-profile-card--empresa {
    width: var(--home-commerce-card-mobile-width);
    flex: none;
    flex-basis: auto;
    min-width: 0;
    max-width: none;
    border-radius: var(--home-commerce-card-radius);
  }

  .ec-profile-card__media,
  .ec-horizontal-scroll--vip .ec-profile-card__media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .ec-profile-card__media img,
  .ec-horizontal-scroll--vip .ec-profile-card__media img.ec-profile-card__image--photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
  }

  .ec-profile-card__media img.ec-profile-card__image--logo,
  .ec-horizontal-scroll--vip .ec-profile-card__media img.ec-profile-card__image--logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(.35rem, 2vw, .65rem);
    background: rgba(255,255,255,.9);
  }

  .ec-profile-card__media em {
    top: .45rem;
    right: .45rem;
    padding: .16rem .42rem;
    font-size: clamp(.58rem, 2.4vw, .68rem);
  }

  .ec-profile-card__body,
  .ec-horizontal-scroll--vip .ec-profile-card__body {
    padding: .45rem .55rem;
  }

  .ec-profile-card__meta,
  .ec-horizontal-scroll--vip .ec-profile-card__meta {
    gap: .22rem;
    margin-bottom: .22rem;
  }

  .ec-profile-card__meta span,
  .ec-mini-badge {
    padding: .13rem .34rem;
    font-size: clamp(.55rem, 2.25vw, .66rem);
    line-height: 1.12;
  }

  .ec-profile-card h3,
  .ec-horizontal-scroll--vip .ec-profile-card h3 {
    font-size: clamp(.72rem, 3vw, .9rem);
    line-height: 1.1;
    margin-bottom: .16rem;
  }

  .ec-profile-card p,
  .ec-profile-card small,
  .ec-horizontal-scroll--vip .ec-profile-card p,
  .ec-horizontal-scroll--vip .ec-profile-card small {
    font-size: clamp(.58rem, 2.5vw, .72rem);
    line-height: 1.15;
  }

  .ec-profile-card p,
  .ec-horizontal-scroll--vip .ec-profile-card p {
    margin: .16rem 0 .12rem;
  }

  .ec-profile-card small,
  .ec-horizontal-scroll--vip .ec-profile-card small {
    min-height: 0;
  }

  .ec-profile-card__actions,
  .ec-horizontal-scroll--vip .ec-profile-card__actions {
    margin-top: .35rem;
  }

  .ec-profile-card__actions a,
  .ec-profile-card__actions span,
  .ec-horizontal-scroll--vip .ec-profile-card__actions a,
  .ec-horizontal-scroll--vip .ec-profile-card__actions span {
    gap: .22rem;
    padding: .25rem .45rem;
    font-size: .68rem;
    line-height: 1.15;
  }

  .ec-empty-card {
    min-height: 170px;
    padding: .75rem;
  }

  .ec-empty-card strong { font-size: .92rem; }
  .ec-empty-card span { font-size: .72rem; line-height: 1.25; }

  .ec-horizontal-scroll--offers {
    grid-auto-columns: var(--home-commerce-card-mobile-width);
  }

  .ec-horizontal-scroll--offers .ec-offer-card {
    width: var(--home-commerce-card-mobile-width);
    flex: none;
    min-width: 0;
    max-width: none;
    min-height: 0;
    aspect-ratio: 1 / 1.12;
    border-radius: var(--home-commerce-card-radius);
    padding: .65rem;
  }

  .ec-horizontal-scroll--offers .ec-board-card {
    width: var(--home-commerce-card-mobile-width);
    flex: none;
    min-width: 0;
    max-width: none;
    min-height: 90px;
    border-radius: var(--home-commerce-card-radius);
    padding: .85rem;
  }

  .ec-offer-card__tag { padding: .14rem .42rem; font-size: .62rem; }
  .ec-offer-card strong { font-size: clamp(.9rem, 3.7vw, 1.08rem); line-height: 1.08; }
  .ec-offer-card small { font-size: clamp(.68rem, 2.7vw, .78rem); line-height: 1.18; }
  .ec-offer-card em { font-size: .68rem; line-height: 1.18; }
}

.brand-mark img,
.ec-home-brand__mark img,
.ec-auth-brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark { overflow: hidden; }
.brand-mark img { border-radius: inherit; }
.ec-home-brand__mark { background: transparent; box-shadow: 0 12px 24px rgba(13,38,67,.12); overflow: hidden; }
.ec-home-brand__mark img { border-radius: inherit; }
.ec-auth-brand-icon { width: min(220px, 70%); height: auto; margin: 0 auto; }
.elcentro-install-btn[hidden],
.ec-install-chip[hidden] { display: none !important; }
.elcentro-install-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 800; }
.ec-install-chip { border: 1px solid rgba(255,133,27,.45); background: #FF851B; color: #0D2643; border-radius: 999px; min-height: 44px; padding: .55rem .8rem; font-weight: 800; box-shadow: 0 8px 22px rgba(255,133,27,.18); white-space: nowrap; }

/* General city commerce section: compact, non-premium presence for published Free/base shops. */
.ec-horizontal-scroll--general .ec-profile-card {
  box-shadow: 0 10px 24px rgba(13,38,67,.06);
  border-color: rgba(var(--ec-tint-rgb), .08);
}

.ec-horizontal-scroll--general .ec-profile-card__media {
  aspect-ratio: 1 / 1;
}

.ec-horizontal-scroll--general .ec-profile-card__media img.ec-profile-card__image--photo {
  object-fit: cover;
  object-position: center;
}

.ec-horizontal-scroll--general .ec-profile-card__media img.ec-profile-card__image--logo {
  object-fit: contain;
  object-position: center;
  padding: clamp(.55rem, 2.4vw, .9rem);
  background: rgba(255,255,255,.94);
}

.ec-horizontal-scroll--general .ec-profile-card--vip {
  border-color: rgba(var(--ec-tint-rgb), .10);
}

.ec-empty-card a, .ec-empty-card button {
  align-self: flex-start;
  margin-top: .35rem;
  border-radius: 999px;
  padding: .45rem .7rem;
  border: 0;
  background: var(--ec-color-primary);
  color: #fff;
  font-size: var(--ec-font-sm);
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

/* Explore listing */
.ec-explore { max-width: 1180px; }
.ec-explore-hero { border-radius: 28px; padding: clamp(1rem, 4vw, 1.6rem); background: linear-gradient(135deg, rgba(231,247,237,.95), rgba(var(--ec-warm-wash-rgb), .95)); border: 1px solid rgba(var(--ec-tint-rgb), .1); box-shadow: 0 18px 40px rgba(13,38,67,.08); }
.ec-explore-hero h1 { margin: 0 0 .35rem; font-size: clamp(2rem, 7vw, 3.2rem); line-height: .98; letter-spacing: -.05em; font-weight: 950; color: var(--ec-text); }
.ec-explore-hero p { margin: 0; color: var(--ec-text-muted); font-weight: 700; }
.ec-filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.ec-filter-chips span, .ec-location-hint { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .38rem .68rem; background: rgba(var(--ec-surface-rgb), .82); color: var(--ec-ink-strong); border: 1px solid rgba(var(--ec-tint-rgb), .1); font-size: var(--ec-font-sm); font-weight: 900; }
.ec-location-hint { margin-top: .7rem !important; }
.ec-location-panel { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: .7rem; }
.ec-location-panel .ec-location-hint { margin-top: 0 !important; }
.ec-location-action { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 999px; padding: .52rem .82rem; background: var(--ec-color-primary); color: #fff; font-weight: 900; box-shadow: 0 10px 22px rgba(18,52,91,.18); }
.ec-explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.ec-explore-card { width: auto; min-width: 0; max-width: none; flex: initial; }
.ec-explore-card__media { min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.ec-explore-card__media img { width: 100%; height: 100%; object-position: center; }
.ec-explore-card__media img.ec-explore-card__img--photo { object-fit: cover; padding: 0; background: transparent; }
.ec-explore-card__media img.ec-explore-card__img--logo { object-fit: contain; padding: clamp(.75rem, 4vw, 1.25rem); background: rgba(255,255,255,.9); }
.ec-explore-card .ec-profile-card__body { padding: .8rem; }
.ec-explore-card .ec-profile-card__meta { gap: .28rem; }
.ec-explore-card .ec-profile-card__meta span { font-size: .68rem; }
.ec-explore-card h3 { font-size: clamp(.95rem, 3.5vw, 1.12rem); line-height: 1.15; }
.ec-explore-card p, .ec-explore-card small { line-height: 1.25; min-height: 0; }
.ec-explore-more { display: flex; justify-content: center; margin: 1.5rem 0 .5rem; }
.ec-explore-empty { display: grid; gap: .5rem; max-width: none; min-width: 0; padding: 1.25rem; margin-top: 1rem; }
.ec-explore-empty a { color: var(--ec-ink); font-weight: 900; }
@media (max-width: 359px) { .ec-explore-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .ec-explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .ec-explore-card .ec-profile-card__body { padding: 1rem; } }
@media (min-width: 1200px) { .ec-explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Vista pública de pizarras */
.ec-pizarras { max-width: 1180px; }
.ec-pizarras-hero { background: linear-gradient(135deg, rgba(20,20,20,.96), rgba(45,34,12,.92)); color: #fff; }
.ec-pizarras-hero h1,
.ec-pizarras-hero p { color: #fff; }
.ec-pizarras-hero .ec-filter-chips span,
.ec-pizarras-hero .ec-location-panel { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.14); }
.ec-pizarras-filter { display: grid; gap: .45rem; margin: 1rem 0; padding: .85rem; border: 1px solid rgba(var(--ec-tint-rgb), .12); border-radius: 1.1rem; background: var(--ec-surface-strong); box-shadow: 0 12px 30px rgba(13,38,67,.06); }
.ec-pizarras-filter label { font-weight: 900; color: var(--ec-text); }
.ec-pizarras-filter__row { display: grid; gap: .6rem; }
.pizarras-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; margin-top: 1rem; }
.pizarra-explore-card { display: flex; flex-direction: column; gap: .7rem; min-height: 220px; border: 1px solid rgba(255,255,255,.1); border-radius: 1.1rem; padding: 1rem; background: #101010; color: #fff; box-shadow: 0 16px 36px rgba(17,17,17,.18); }
.pizarra-explore-card h2 { color: #fff; font-size: clamp(1.25rem, 6vw, 1.8rem); line-height: 1.05; font-weight: 950; letter-spacing: -.04em; margin: 0; }
.pizarra-explore-card .pizarra-precio { color: #ffd166; font-size: 1.1rem; font-weight: 950; }
.pizarra-card--vip { border: 2px solid #f5b428; box-shadow: 0 10px 24px rgba(245, 180, 40, .25), 0 18px 40px rgba(17,17,17,.2); }
.pizarra-explore-card__badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.pizarra-card__badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .55rem; background: rgba(255,255,255,.12); color: #fff; font-size: .72rem; font-weight: 900; }
.pizarra-card__badge--vip { background: #f5b428; color: #1f2937; }
.pizarra-explore-card__meta { display: grid; gap: .15rem; color: rgba(255,255,255,.78); font-size: .9rem; margin-top: auto; }
.pizarra-explore-card__meta strong { color: #fff; }
@media (min-width: 576px) { .ec-pizarras-filter__row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; } }
@media (min-width: 768px) { .pizarras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pizarras-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ec-pizarras-create-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .2rem; padding: .8rem; border-radius: .95rem; background: linear-gradient(135deg, rgba(255,209,102,.22), rgba(var(--ec-tint-rgb), .08)); border: 1px solid rgba(245,180,40,.28); }
.ec-pizarras-create-cta strong { display: block; color: var(--ec-text); font-weight: 950; }
.ec-pizarras-create-cta span { display: block; color: var(--ec-text-muted); font-weight: 700; font-size: .9rem; }
.ec-pizarras-create-cta__actions { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Ajustes compactos de ubicación en Pizarras */
.ec-pizarras-hero { padding-block: clamp(1rem, 4vw, 1.65rem); }
.ec-pizarras-hero h1 { margin-bottom: .25rem; }
.ec-pizarras-hero p { margin-bottom: .65rem; }
.ec-pizarras-hero__chips { align-items: center; gap: .4rem; }
.ec-pizarras-hero__chips span { margin: 0; }
.ec-location-icon-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: auto;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .32rem .62rem;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 900;
  font-size: .82rem;
  line-height: 1;
  box-shadow: none;
}
.ec-location-icon-button:hover,
.ec-location-icon-button:focus-visible { background: rgba(255,255,255,.24); color: #fff; }
.ec-location-icon-button[aria-busy="true"] { opacity: .75; pointer-events: none; }
@media (max-width: 420px) {
  .ec-pizarras-hero { padding: .95rem; }
  .ec-pizarras-hero__chips { display: flex; flex-wrap: wrap; }
  .ec-location-icon-button { flex: 0 1 auto; }
}

/* Ajustes UX Pizarras públicas: encabezado/hero compacto, cards consistentes e Instagram */
.ec-pizarras { padding-top: .25rem; }
.ec-pizarras-hero { padding: clamp(.85rem, 3vw, 1.15rem); margin-bottom: .75rem; }
.ec-pizarras-hero h1 { margin: 0; font-size: clamp(1.55rem, 7vw, 2.4rem); letter-spacing: -.045em; }
.ec-pizarras-filter { gap: .35rem; margin: .65rem 0 .8rem; padding: .6rem; border-radius: .85rem; }
.ec-pizarras-filter label { font-size: .86rem; margin-bottom: -.15rem; }
.ec-pizarras-filter__row { gap: .4rem; }
.ec-pizarras-filter .form-select,
.ec-pizarras-filter .btn { min-height: 2.35rem; padding-top: .35rem; padding-bottom: .35rem; }
.ec-pizarras-create-cta { gap: .5rem; padding: .55rem .65rem; border-radius: .75rem; }
.ec-pizarras-create-cta span { font-size: .82rem; line-height: 1.2; }
.ec-pizarras-create-cta__actions .btn { padding: .3rem .55rem; }
.pizarra-explore-card { min-height: 185px; gap: .55rem; padding: 1rem; background: #111; border-radius: 1rem; align-items: stretch; justify-content: flex-start; text-align: left; }
.pizarra-explore-card h2 { font-size: clamp(1.1rem, 5vw, 1.55rem); line-height: 1.1; }
.pizarra-explore-card .btn-light { margin-top: .25rem; border: 0; font-weight: 900; }
.ec-board-card { position: relative; flex-direction: column; gap: .55rem; overflow: hidden; }
.ec-board-card--vip { border-color: rgba(245,180,40,.9); box-shadow: 0 16px 36px rgba(245,180,40,.18), 0 14px 32px rgba(17,17,17,.18); }
.ec-board-card__badge { display: inline-flex; align-items: center; align-self: center; border-radius: 999px; padding: .22rem .5rem; background: #f5b428; color: #1f2937; font-size: .68rem; font-weight: 950; line-height: 1; }
.ec-board-card__media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: .75rem; overflow: hidden; }
.ec-board-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-board-card__media .ec-board-card__badge { position: absolute; top: .4rem; left: .4rem; align-self: auto; }
.pizarra-instagram-btn { border: 0; color: #fff; font-weight: 900; background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 48%, #fcb045 100%); box-shadow: 0 10px 22px rgba(193,53,132,.26); }
.pizarra-instagram-btn:hover,
.pizarra-instagram-btn:focus { color: #fff; filter: brightness(1.06); box-shadow: 0 12px 28px rgba(193,53,132,.34); }
.pizarra-instagram-btn.disabled,
.pizarra-instagram-btn:disabled { background: #6c757d; color: rgba(255,255,255,.76); box-shadow: none; opacity: .65; }
@media (max-width: 575.98px) {
  .ec-pizarras-filter__row { grid-template-columns: 1fr 1fr; }
  .ec-pizarras-filter__row .form-select { grid-column: 1 / -1; }
}

/* Pizarras públicas: mini cards compactas en grilla */
.pizarras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .65rem;
  width: 100%;
  max-width: 100%;
}

.pizarra-explore-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .45rem;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,216,107,.12), transparent 34%),
    #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17,17,17,.14);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.pizarra-explore-card:hover,
.pizarra-explore-card:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,216,107,.16), transparent 34%),
    #181818;
}

.pizarra-explore-card:focus-visible {
  outline: 3px solid rgba(255,209,102,.72);
  outline-offset: 3px;
}

.pizarra-explore-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pizarra-explore-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pizarra-explore-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.8) 100%);
}

.pizarra-explore-card__badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .25rem;
  min-height: 1.25rem;
}

.pizarra-card__badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .2rem .4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pizarra-card__badge--vip {
  background: #f5b428;
  color: #1f2937;
}

.pizarra-card__badge--rubro {
  color: rgba(255,255,255,.82);
}

.pizarra-card__title,
.pizarra-explore-card h2.pizarra-card__title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: clamp(.85rem, 3.5vw, 1rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.025em;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.pizarra-card__commerce {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: clamp(.65rem, 2.8vw, .75rem);
  font-weight: 750;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.pizarra-card--vip {
  border: 1.5px solid #f7b928;
  box-shadow: 0 10px 22px rgba(247,185,40,.18), 0 12px 26px rgba(17,17,17,.16);
}

@media (min-width: 430px) {
  .pizarras-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .pizarras-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .pizarras-grid { gap: .6rem; }
  .pizarra-explore-card { padding: .65rem; border-radius: .9rem; }
}

.ec-pizarras-detail-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(.5rem, 2vw, 1rem);
}

.pizarra-detail-card--featured {
  position: relative;
  width: 100%;
  max-width: none;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: clamp(1.1rem, 4vw, 1.8rem);
  background:
    radial-gradient(circle at 16% 0%, rgba(245,180,40,.24), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(var(--ec-tint-rgb), .22), transparent 34%),
    linear-gradient(145deg, #080808, #151515 58%, #211808);
  color: #fff;
  box-shadow: 0 22px 60px rgba(17,17,17,.32);
  overflow: hidden;
}

.pizarra-detail-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: clamp(.8rem, 3vw, 1.25rem);
}

.pizarra-detail-card__logo {
  width: clamp(42px, 11vw, 64px);
  height: clamp(42px, 11vw, 64px);
  border-radius: 1rem;
}

.pizarra-detail-card__image {
  display: block;
  width: 100%;
  max-height: clamp(180px, 40vw, 320px);
  object-fit: cover;
  border-radius: clamp(.75rem, 3vw, 1.2rem);
  margin-bottom: clamp(.8rem, 3vw, 1.25rem);
}

.pizarra-detail-card__title {
  max-width: 12ch;
  margin: 0 0 .65rem;
  color: #fffef2;
  font-size: clamp(2rem, 11vw, 4.6rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}

.pizarra-detail-card__precio {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: .32rem .78rem;
  border-radius: .9rem;
  color: #111827;
  font-size: clamp(1.25rem, 6vw, 2.35rem);
  line-height: 1;
  box-shadow: 0 12px 28px rgba(245,180,40,.22);
  overflow-wrap: anywhere;
}

.pizarra-detail-card__description {
  max-width: 62ch;
  margin: 0 0 .55rem;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 750;
  line-height: 1.35;
}

.pizarra-detail-card__secondary {
  max-width: 66ch;
  margin: 0 0 1rem;
  color: rgba(255,255,255,.74);
  line-height: 1.45;
}

.pizarra-detail-card__commerce {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.14);
}

.pizarra-detail-card__commerce h2 {
  margin: 0 0 .15rem;
  color: #fff;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 950;
}

.pizarra-detail-card__commerce p,
.pizarra-detail-card__validity {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.pizarra-detail-card__validity {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  font-size: .9rem;
}

.pizarra-detail-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.15rem;
}

.pizarra-detail-card__actions .btn {
  border-radius: .8rem;
  font-weight: 900;
}

@media (max-width: 575.98px) {
  .ec-pizarras-detail-shell { padding: .25rem; }
  .pizarra-detail-card__title { max-width: 11ch; }
  .pizarra-detail-card__actions { display: grid; grid-template-columns: 1fr; }
}

.commerce-detail-actions {
  display: grid;
  gap: .75rem;
  justify-items: stretch;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.commerce-recommend-form {
  width: 100%;
}

.commerce-recommend-button {
  width: 100%;
  border: 0;
  border-radius: .95rem;
  padding: .9rem 1.1rem;
  background: linear-gradient(135deg, var(--ec-success), #21a46f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(24, 137, 95, .22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.commerce-recommend-button:hover,
.commerce-recommend-button:focus {
  color: #fff;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(24, 137, 95, .28);
}

.commerce-recommend-button.is-recommended,
.commerce-recommend-button:disabled {
  background: linear-gradient(135deg, #13714f, var(--ec-success));
  color: #fff;
  cursor: default;
  opacity: .94;
  transform: none;
}

.commerce-report-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #8a5d5d;
  font-size: var(--ec-font-sm);
  font-weight: 600;
  padding: .2rem .45rem;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.commerce-report-link:hover,
.commerce-report-link:focus {
  color: #9f3f3f;
}

.commerce-detail-route-button,
.commerce-detail-back-button {
  width: 100%;
  border-radius: .9rem;
  font-weight: 700;
}

@media (min-width: 576px) {
  .commerce-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    max-width: 34rem;
  }

  .commerce-recommend-form,
  .commerce-report-link {
    grid-column: 1 / -1;
  }

  .commerce-report-link {
    width: fit-content;
  }
}

/* Vista pública unificada de comercio */
.ec-commerce-public-detail { max-width: 1100px; margin-inline: auto; width: 100%; }
.ec-commerce-hero-badges { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .75rem; }
.commerce-vip-badge,
.commerce-location-badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .35rem .65rem; font-size: .82rem; font-weight: 900; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.ec-contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-contact-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-width: 0; }
.ec-contact-btn { border: 0; color: #fff; box-shadow: 0 10px 22px rgba(17,24,39,.12); }
.ec-contact-btn:hover,
.ec-contact-btn:focus { color: #fff; filter: brightness(1.04); transform: translateY(-1px); }
.ec-contact-btn--whatsapp { background: #25d366; color: #062814; }
.ec-contact-btn--phone { background: var(--ec-color-primary); }
.ec-contact-btn--web { background: var(--ec-surface-strong); color: var(--ec-ink); border: 1px solid #C9D6E6; }
.ec-contact-btn--web:hover,
.ec-contact-btn--web:focus { color: var(--ec-ink); }
.ec-contact-btn--instagram { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 48%, #fcb045 100%); }
.ec-contact-btn--facebook { background: #1877f2; }
.ec-contact-btn--email { background: #4b5563; }
.ec-commerce-detail-presentation p { color: #4b5563; font-weight: 600; }
.ec-commerce-community-card .commerce-recommend-button { width: 100%; }
.ec-commerce-community-card .commerce-report-link { width: 100%; justify-content: center; }
@media (min-width: 768px) {
  .ec-contact-actions { grid-template-columns: repeat(auto-fit, minmax(140px, auto)); }
  .ec-commerce-community-card { align-self: start; }
}
@media (max-width: 575.98px) {
  .ec-profile-detail__overlay { padding: 1rem; }
  .ec-profile-detail__logo { width: 72px; height: 72px; border-radius: 18px; }
  .ec-contact-actions { padding: .75rem; gap: .5rem; }
  .ec-contact-actions .btn { min-height: 42px; border-radius: .85rem; font-size: .92rem; }
}
.ec-commerce-public-detail--vip { border-color: rgba(245, 180, 40, .55); box-shadow: 0 22px 50px rgba(245, 180, 40, .12), 0 22px 50px rgba(18,52,91,.08); }
.ec-commerce-public-detail--vip .commerce-vip-badge { background: linear-gradient(135deg, #ffd166, #f5b428); color: #241706; border-color: rgba(255,255,255,.42); }

/* Truncado visual reutilizable para textos públicos compactos. No modifica el dato real. */
.ec-text-truncate,
.commerce-address,
.commerce-card__address {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commerce-card__summary,
.commerce-card__content,
.ec-profile-card__body,
.ec-commerce-detail-presentation dd {
  min-width: 0;
}

.commerce-logo,
.commerce-card__logo,
.ec-profile-detail__logo,
.ec-profile-card__media img.ec-profile-card__image--logo,
.ec-explore-card__media img.ec-explore-card__img--logo {
  flex: 0 0 auto;
}

.commerce-card__address i,
.commerce-location-badge i {
  flex: 0 0 auto;
}

.commerce-location-badge {
  min-width: 0;
  max-width: 100%;
}

.ec-profile-card h3,
.ec-profile-card h3 a,
.ec-profile-card p,
.ec-profile-card small {
  min-width: 0;
  max-width: 100%;
}

/* Detalle público: el logo del hero usa un marco estable para que textos largos o el recorte del hero no muerdan la imagen. */
.ec-commerce-public-detail .ec-profile-detail__logo-frame {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 1.25rem;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid var(--ec-surface-strong);
  box-shadow: 0 10px 24px rgba(8, 26, 48, .2);
  margin-bottom: .75rem;
}

.ec-commerce-public-detail .ec-profile-detail__logo-frame .ec-profile-detail__logo {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 1rem;
  margin: 0;
  object-fit: contain !important;
  object-position: center;
  display: block;
  background: #fff;
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .ec-commerce-public-detail .ec-profile-detail__logo-frame {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    border-radius: 1rem;
  }

  .ec-commerce-public-detail .ec-profile-detail__logo-frame .ec-profile-detail__logo {
    border-radius: .85rem;
  }
}

.commerce-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 80% 20%, var(--fallback-accent, rgba(255,133,27,.7)), transparent 32%), var(--fallback-bg, #12345B);
  color: var(--fallback-fg, #fff);
  font-weight: 900;
  font-size: clamp(1.25rem, 5vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.commerce-image--fallback {
  object-fit: cover;
  object-position: center;
}

.commerce-card__media {
  position: relative;
  overflow: hidden;
}

.commerce-card__fallback-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.commerce-card__fallback-initial {
  width: clamp(52px, 18vw, 64px);
  height: clamp(52px, 18vw, 64px);
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 20%, var(--fallback-accent, rgba(255,133,27,.42)), transparent 38%),
    color-mix(in srgb, var(--fallback-bg, #12345B) 18%, rgba(var(--ec-surface-rgb), .94));
  color: var(--fallback-bg, #0D2643);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .22);
  border: 1px solid rgba(var(--ec-surface-rgb), .72);
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}

.commerce-logo img,
img.commerce-logo,
.ec-profile-detail__logo:is(img) {
  object-fit: contain;
  object-position: center;
}

.ec-commerce-public-detail .ec-profile-detail__logo-frame .ec-profile-detail__logo.commerce-logo-fallback,
.ec-profile-detail__logo-frame .ec-profile-detail__logo.commerce-detail__logo-fallback {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: inherit;
  margin: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 80% 20%, var(--fallback-accent, rgba(255,133,27,.7)), transparent 32%), var(--fallback-bg, #12345B);
  color: var(--fallback-fg, #fff);
  box-shadow: none;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.ec-profile-detail__logo-frame .commerce-detail__logo-fallback span {
  line-height: 1;
}

.ec-profile-detail__hero--fallback .ec-profile-detail__overlay {
  z-index: 2;
}
/* Filtro de rubros de Explorar: desplegable nativo (<details>) con una lista vertical que muestra
   6 renglones; el resto se recorre con scroll dentro de la lista. */
.ec-rubro-filter { margin-top: .9rem; }
.ec-rubro-filter summary { list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border-radius: 14px; background: rgba(var(--ec-surface-rgb), .92); border: 1px solid rgba(var(--ec-tint-rgb), .18); color: var(--ec-ink-strong); font-weight: 800; cursor: pointer; }
.ec-rubro-filter summary::-webkit-details-marker { display: none; }
.ec-rubro-filter summary strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-rubro-filter summary .bi { transition: transform .2s ease; }
.ec-rubro-filter[open] summary .bi { transform: rotate(180deg); }
.ec-rubro-filter__label { color: var(--ec-text-muted); font-size: var(--ec-font-sm); font-weight: 700; }
.ec-rubro-filter__list { --ec-rubro-fila: 44px; display: flex; flex-direction: column; max-height: calc(var(--ec-rubro-fila) * 6 + 2px); overflow-y: auto; overscroll-behavior: contain; margin-top: .35rem; border-radius: 14px; background: var(--ec-surface-strong); border: 1px solid rgba(var(--ec-tint-rgb), .14); box-shadow: 0 14px 30px rgba(13,38,67,.12); }
.ec-rubro-filter__list a { flex: 0 0 var(--ec-rubro-fila); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .9rem; border-bottom: 1px solid rgba(var(--ec-tint-rgb), .08); color: var(--ec-ink-strong); font-weight: 700; text-decoration: none; }
.ec-rubro-filter__list a:last-child { border-bottom: 0; }
.ec-rubro-filter__list a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-rubro-filter__list a.is-active { background: var(--ec-color-primary); color: #fff; }
.ec-rubro-filter small { flex: none; display: inline-flex; min-width: 1.45rem; justify-content: center; border-radius: 999px; padding: .08rem .35rem; background: rgba(var(--ec-tint-rgb), .1); color: inherit; font-size: .72rem; }
.ec-rubro-filter__list a.is-active small { background: rgba(255,255,255,.22); }

.route-planner { width: min(100%, 1120px); margin: 0 auto; padding: 1rem .9rem 2rem; display: grid; gap: 1rem; }
.route-hero { border-radius: 1.75rem; padding: 1.15rem; display: grid; gap: 1rem; background: radial-gradient(circle at 12% 0%, rgba(255,232,212,.65), transparent 34%), linear-gradient(135deg, rgba(var(--ec-surface-rgb), .96), rgba(var(--ec-wash-rgb), .96)); }
.route-hero h1 { margin: 0; font-size: clamp(2rem, 9vw, 3.4rem); line-height: .98; font-weight: 950; letter-spacing: -.055em; color: var(--ec-ink-deep); }
.route-hero p:not(.eyebrow-pill) { margin: .55rem 0 0; max-width: 62ch; color: var(--ec-text-muted); font-size: clamp(1rem, 3.4vw, 1.15rem); }
.route-planner__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.route-current, .route-map-card, .route-catalog { border-radius: 1.55rem; padding: 1rem; }
.route-current { order: 1; display: grid; gap: .9rem; background: linear-gradient(180deg, var(--ec-surface-strong), var(--ec-warm-wash)); }
.route-map-card { order: 2; }
.route-catalog { order: 3; }
.route-current__head, .route-section-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.route-current__kicker, .route-section-title span { display: block; color: var(--ec-ink); font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.route-current h2, .route-section-title h2 { margin: .12rem 0 0; font-size: clamp(1.25rem, 5vw, 1.65rem); line-height: 1.12; font-weight: 900; }
.route-current__head strong { flex: 0 0 auto; border-radius: 999px; padding: .45rem .7rem; background: var(--ec-color-primary-soft); color: var(--ec-ink-strong); font-size: .9rem; }
.route-origin-status, .route-section-title small { color: var(--ec-text-muted); font-size: .9rem; line-height: 1.35; }
.route-empty-state { min-height: 136px; border: 1px dashed rgba(var(--ec-tint-rgb), .26); border-radius: 1.25rem; display: grid; place-items: center; align-content: center; gap: .25rem; text-align: center; color: var(--ec-text-muted); background: rgba(var(--ec-wash-rgb), .55); padding: 1rem; }
.route-empty-state i { font-size: 1.8rem; color: var(--ec-ink); }
.route-empty-state strong { color: var(--ec-text); }
.route-current__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.route-stop-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.route-stop-item__number { width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; background: var(--ec-color-primary); color: #fff; font-weight: 900; }
.route-stop-item__body { min-width: 0; }
.route-stop-item .btn { grid-column: 1 / -1; }
.route-current__actions { display: grid; grid-template-columns: 1fr; gap: .55rem; }
.route-map { min-height: 220px; border-radius: 1.2rem; overflow: hidden; border: 1px solid rgba(var(--ec-tint-rgb), .14); background: linear-gradient(135deg, rgba(var(--ec-wash-rgb), .9), rgba(var(--ec-warm-wash-rgb), .9)); }
.route-filters { display: grid; gap: .65rem; margin: 1rem 0; }
.route-filters .form-control, .route-filters .form-select, .route-filters .btn { min-height: 48px; border-radius: 1rem; }
.route-commerce-carousel { display: flex; gap: .75rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: .15rem .1rem .7rem; margin: 0 -.1rem; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; }
.route-commerce-carousel::-webkit-scrollbar { display: none; }
.route-commerce-card { flex: 0 0 auto; width: clamp(148px, 42vw, 188px); scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid rgba(var(--ec-tint-rgb), .13); border-radius: 1.2rem; overflow: hidden; background: rgba(var(--ec-surface-rgb), .86); box-shadow: 0 12px 26px rgba(13,38,67,.06); }
.route-commerce-card__media { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--ec-color-primary-wash); }
.route-commerce-card__media-link { display: block; width: 100%; height: 100%; text-decoration: none; }
.route-commerce-card__media img,
.route-commerce-card__media .commerce-logo-fallback { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; }
.route-commerce-card__body { min-width: 0; padding: .6rem .65rem .75rem; }
.route-commerce-card__body span { display: block; color: var(--ec-ink); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .035em; }
.route-commerce-card__body h3 { margin: .15rem 0 .2rem; font-size: .96rem; line-height: 1.15; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-commerce-card__body h3 a { color: var(--ec-text); text-decoration: none; }
.route-commerce-card__body p { margin: 0; color: var(--ec-text-muted); font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.route-card-toggle { position: absolute; top: .4rem; right: .4rem; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 999px; display: grid; place-items: center; background: rgba(var(--ec-surface-rgb), .94); color: var(--ec-ink-strong); font-size: 1.05rem; box-shadow: 0 8px 18px rgba(13,38,67,.24); transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.route-card-toggle:active { transform: scale(.92); }
.route-card-toggle--added { background: #1d7c54; color: #fff; }
.route-empty-state--catalog { margin-top: 1rem; }

@media (min-width: 768px) {
  .route-planner { padding-inline: 1rem; }
  .route-hero { grid-template-columns: 1fr auto; align-items: center; padding: 1.35rem; }
  .route-current__actions { grid-template-columns: 1fr auto; }
  .route-stop-item { grid-template-columns: auto 1fr auto; }
  .route-stop-item .btn { grid-column: auto; width: auto; }
  .route-filters { grid-template-columns: minmax(220px, 1fr) minmax(200px, .7fr) auto; }
  .route-commerce-card { width: clamp(170px, 22vw, 210px); }
}

@media (min-width: 992px) {
  .route-planner__layout { grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); align-items: start; }
  .route-current { position: sticky; top: 5.5rem; }
  .route-map-card { grid-column: 1; order: 2; }
  .route-catalog { grid-column: 2; grid-row: 1 / span 2; order: 3; }
  .route-map { min-height: 300px; }
}

/* Mi recorrido: experiencia visual mobile-first */
.mi-recorrido-shell {
  --mi-recorrido-background-opacity: .34;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2rem;
  background-color: var(--ec-bg);
}
.mi-recorrido-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(var(--ec-surface-rgb), .64), rgba(var(--ec-bg-rgb), .76)),
    radial-gradient(circle at 18% 8%, rgba(255,133,27,.42), transparent 32%),
    radial-gradient(circle at 84% 14%, rgba(var(--ec-tint-rgb), .24), transparent 34%),
    radial-gradient(ellipse at 52% 84%, rgba(var(--ec-surface-rgb), .72), transparent 46%),
    linear-gradient(128deg, transparent 15%, rgba(var(--ec-tint-rgb), .14) 16%, rgba(var(--ec-tint-rgb), .14) 19%, transparent 20% 45%, rgba(255,133,27,.16) 46%, rgba(255,133,27,.16) 50%, transparent 51%);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--mi-recorrido-background-opacity);
}
.mi-recorrido-shell > * {
  position: relative;
  z-index: 1;
}
.route-planner--fresh { gap: .55rem; padding-top: .5rem; }
.route-planner--fresh .route-hero { padding: .75rem 1rem; min-height: auto; }
.route-planner--fresh .route-hero h1 { font-size: clamp(1.35rem, 6vw, 2.2rem); }
.route-planner--fresh .route-hero p:not(.eyebrow-pill) { max-width: 34rem; }
.route-hero__location { justify-self: start; border-radius: 999px; padding: .55rem .8rem; background: rgba(var(--ec-tint-rgb), .1); color: var(--ec-ink-deep); font-weight: 900; font-size: .9rem; }
.route-search { border-radius: 1.35rem; padding: .9rem; background: rgba(var(--ec-surface-rgb), .96); }
.route-planner--fresh .route-planner__layout { display: grid; gap: .65rem; }
.route-planner--fresh .route-catalog { order: 1; }
.route-planner--fresh .route-current { order: 3; background: radial-gradient(circle at 100% 0%, rgba(255,133,27,.24), transparent 35%), linear-gradient(180deg, var(--ec-surface-strong), var(--ec-warm-wash)); }
.route-planner--fresh .route-map-card { order: 4; }
.route-planner--fresh .route-map { min-height: 220px; border-radius: 1.35rem; box-shadow: inset 0 0 0 1px rgba(18,52,91,.08); }
.route-current__icon { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: var(--ec-color-accent); color: #0D2643; font-size: 1.2rem; }
.route-planner--fresh .route-filters { margin: .65rem 0 0; grid-template-columns: minmax(0,1fr); }
.route-planner--fresh .route-filters .form-select { grid-column: 1 / -1; min-height: 52px; border-color: rgba(var(--ec-tint-rgb), .18); background-color: rgba(var(--ec-surface-rgb), .96); box-shadow: 0 10px 22px rgba(13,38,67,.06); font-weight: 800; }
.route-commerce-card__meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.route-vip-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: .22rem .5rem; background: linear-gradient(135deg, #12345B, #1F4F8A); color: #fff; font-size: .68rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(18, 52, 91,.18); }

.route-planner--fresh .route-catalog,
.route-planner--fresh .route-current,
.route-planner--fresh .route-map-card {
  border: 1px solid rgba(var(--ec-tint-rgb), .08);
  box-shadow: 0 14px 36px rgba(13,38,67,.07);
}
.route-planner--fresh .route-catalog .route-section-title span::before,
.route-planner--fresh .route-current__kicker::before {
  content: "🎯";
  margin-right: .3rem;
}
.route-planner--fresh .route-catalog .route-section-title span::before { content: "🛍️"; }
.route-planner--fresh .route-current__kicker::before { content: "🗺️"; }
.route-planner--fresh .route-map-card { opacity: .92; }

.route-planner--fresh .route-commerce-carousel { margin: .65rem -.9rem 0; padding: .1rem .9rem .75rem; }
.route-planner--fresh .route-commerce-card { width: clamp(136px, 40vw, 168px); border-radius: 1rem; }
.route-planner--fresh .route-commerce-card__body h3 { font-size: .92rem; }
.route-planner--fresh .route-commerce-card__body p { font-size: .78rem; }

.route-planner--fresh .route-current { padding: .75rem; gap: .65rem; }
.route-planner--fresh .route-current__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-planner--fresh .route-current__actions button:last-child { grid-column: 1 / -1; }
.route-planner--fresh .route-current h2 { font-size: clamp(1.05rem, 4.4vw, 1.3rem); }
.route-planner--fresh .route-current__icon { width: 36px; height: 36px; border-radius: 13px; }
.route-planner--fresh .route-current__list { gap: .5rem; max-height: 250px; overflow-y: auto; overscroll-behavior: contain; padding-right: .15rem; }
.route-planner--fresh .route-stop-item { grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; padding: .6rem; gap: .6rem; background: rgba(var(--ec-surface-rgb), .88); border-color: rgba(var(--ec-tint-rgb), .13); box-shadow: 0 10px 22px rgba(13,38,67,.05); }
.route-planner--fresh .route-stop-item__number { width: 2rem; height: 2rem; font-size: .9rem; }
.route-planner--fresh .route-stop-item__body h3 { font-size: .92rem; margin-bottom: .05rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-planner--fresh .route-stop-item__body p { margin-bottom: 0 !important; line-height: 1.2; }
.route-planner--fresh .route-stop-item .btn { grid-column: 3 !important; width: auto !important; min-width: 92px; min-height: 40px; border-radius: .95rem; padding: .45rem .7rem; font-size: .86rem; font-weight: 900; line-height: 1.1; justify-self: end; }
.route-planner--fresh .route-remove-button { background: #dc3545; border-color: #dc3545; color: #fff; }
.route-map-pin { background: transparent; border: 0; }
.route-map-pin span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px 999px 999px 6px; transform: rotate(-45deg); color: #fff; border: 3px solid var(--ec-surface-strong); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.route-map-pin span i { transform: rotate(45deg); font-size: 1rem; }
.route-map-pin--normal span { background: var(--ec-color-primary); }
.route-map-pin--vip span { background: linear-gradient(135deg, #12345B, #FF851B); }
.route-map-pin--user span { background: #1d7c54; border-radius: 999px; transform: none; }
.route-map-pin--user span i { transform: none; }
.route-map-pin--selected span { outline: 4px solid rgba(255,133,27,.36); }
.route-commerce-modal[hidden] { display: none; }
.route-commerce-modal { position: fixed; inset: 0; z-index: 1080; display: grid; align-items: end; padding: .8rem; }
.route-commerce-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 26, 48,.56); backdrop-filter: blur(4px); }
.route-commerce-modal__card { position: relative; width: min(100%, 430px); margin: 0 auto; overflow: hidden; border-radius: 1.55rem; background: var(--ec-surface-strong); box-shadow: 0 28px 70px rgba(0,0,0,.3); animation: routeModalIn .18s ease-out; }
.route-commerce-modal__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(var(--ec-surface-rgb), .92); color: var(--ec-text); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.route-commerce-modal__cover { position: relative; min-height: 110px; background: linear-gradient(135deg, var(--ec-color-primary-soft), #FFF4EA); display: flex; align-items: flex-end; gap: .6rem; padding: 1rem; }
.route-commerce-modal__cover > img:not(.route-commerce-modal__logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route-commerce-modal__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.48)); }
.route-commerce-modal__cover .route-vip-badge, .route-commerce-modal__logo { position: relative; z-index: 1; }
.route-commerce-modal__logo { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; border: 3px solid var(--ec-surface-strong); background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.route-commerce-modal__body { padding: 1rem; }
.route-commerce-modal__rubro { margin: 0 0 .25rem; color: var(--ec-ink); text-transform: uppercase; letter-spacing: .04em; font-size: .76rem; font-weight: 950; }
.route-commerce-modal__body h2 { margin: 0; font-size: 1.45rem; line-height: 1.08; font-weight: 950; letter-spacing: -.03em; }
.route-commerce-modal__distance { margin: .55rem 0 0; color: var(--ec-text-muted); font-size: .95rem; }
.route-commerce-modal__actions { display: grid; grid-template-columns: 1fr; gap: .55rem; margin-top: 1rem; }
.route-modal-open { overflow: hidden; }
@keyframes routeModalIn { from { transform: translateY(18px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
@keyframes routeScrollCue { 0%, 100% { transform: translateY(0); opacity: .82; } 50% { transform: translateY(5px); opacity: 1; } }
@media (min-width: 768px) {
  .route-planner--fresh .route-filters { grid-template-columns: minmax(240px,.72fr); }
  .route-planner--fresh .route-filters .form-select { grid-column: auto; }
  .route-hero__location { justify-self: end; }
  .route-commerce-modal { align-items: center; }
  .route-commerce-modal__actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .route-planner--fresh .route-planner__layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
  .route-planner--fresh .route-scroll-cue { display: none; }
  .route-planner--fresh .route-catalog { grid-column: 1; grid-row: 1 / span 2; }
  .route-planner--fresh .route-current { grid-column: 2; grid-row: 1; position: sticky; top: 5.5rem; }
  .route-planner--fresh .route-map-card { grid-column: 2; grid-row: 2; }
  .route-planner--fresh .route-map { min-height: 260px; }
}
@media (max-width: 420px) {
  .route-planner--fresh .route-commerce-card { width: 128px; }
}

:root {
  --ec-bottom-nav-height: 62px;
  --ec-bottom-nav-offset: .5rem;
  --ec-bottom-nav-safe-area: env(safe-area-inset-bottom);
  --ec-z-bottom-nav: 1030;
  --ec-z-bottom-nav-handle: 1031;
}

body.has-bottom-nav main {
  padding-bottom: calc(var(--ec-bottom-nav-height) + var(--ec-bottom-nav-offset) + var(--ec-bottom-nav-safe-area) + 1rem);
}

body.has-bottom-nav .ec-home {
  padding-bottom: calc(var(--ec-bottom-nav-height) + var(--ec-bottom-nav-offset) + var(--ec-bottom-nav-safe-area) + 1rem);
}

.ec-bottom-nav {
  z-index: var(--ec-z-bottom-nav);
  min-height: var(--ec-bottom-nav-height);
  bottom: calc(var(--ec-bottom-nav-offset) + var(--ec-bottom-nav-safe-area));
}

.bottom-nav-handle {
  z-index: var(--ec-z-bottom-nav-handle);
  bottom: calc(var(--ec-bottom-nav-safe-area) + 6px);
}

.ec-bottom-nav a {
  min-width: 0;
  min-height: 44px;
  padding: .2rem .15rem;
}

.ec-bottom-nav a:focus-visible {
  outline: 3px solid rgba(255,133,27,.86);
  outline-offset: 3px;
  border-radius: 1rem;
}

.ec-bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-section-head .ec-see-all-btn,
.ec-see-all-btn[data-zone-expand] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: .42rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ec-tint-rgb), .16);
  background: linear-gradient(135deg, var(--ec-color-primary), var(--ec-color-primary-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,52,91,.18);
  font-size: var(--ec-font-sm);
  line-height: 1.15;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.ec-section-head .ec-see-all-btn:hover,
.ec-section-head .ec-see-all-btn:focus,
.ec-see-all-btn[data-zone-expand]:hover,
.ec-see-all-btn[data-zone-expand]:focus {
  color: #fff;
  box-shadow: 0 10px 22px rgba(18,52,91,.24);
  transform: translateY(-1px);
}

/* Quiero ser VIP (link en Home y pantalla de captación) */
.ec-vip-invite { color: var(--ec-text); font-weight: 700; font-size: .9rem; text-decoration: underline; margin-right: auto; }
.ec-section-head--end:has(.ec-vip-invite) { justify-content: space-between; align-items: center; }
.ec-vip-landing { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 6rem; display: grid; gap: 1.25rem; }
.ec-vip-landing__hero { padding: 1.5rem 1.25rem; border-radius: 24px; background: linear-gradient(180deg,#fff7de,var(--ec-surface)); border: 1px solid rgba(180,130,0,.25); }
.ec-vip-landing__hero h1 { font-size: 1.6rem; margin: .35rem 0 .5rem; }
.ec-vip-landing__eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8a6200; }
.ec-vip-landing__price { margin: .75rem 0 0; }
.ec-vip-landing__price strong { font-size: 2rem; }
.ec-vip-landing__block { background: var(--ec-surface); border-radius: 20px; padding: 1.1rem 1.25rem; border: 1px solid rgba(15,109,120,.08); }
.ec-vip-landing__block h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.ec-vip-landing__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ec-vip-landing__list i { color: #b88700; margin-right: .5rem; }
.ec-vip-landing__steps { margin: 0; padding-left: 1.25rem; display: grid; gap: .6rem; }
.ec-vip-landing__note { margin: .75rem 0 0; font-size: .85rem; color: var(--ec-text-muted); }
.ec-vip-landing__cta { display: grid; gap: .75rem; text-align: center; }
.ec-vip-landing__secondary { font-size: .9rem; }

/* Iconografía de la identidad Busquera (Views/Shared/_IconoMarca.cshtml): el trazo usa
   currentColor y respeta el tamaño de fuente del contenedor, como los Bootstrap Icons. */
.ec-icono { display: inline-flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; }
.ec-icono-marca { display: block; width: 1.15em; height: 1.15em; }

/* Reemplazos de bg-light / text-bg-light / text-dark de Bootstrap por tokens (issue #488).
   En claro valen lo mismo que las clases de Bootstrap que sustituyen. */
.ec-bg-soft { background-color: var(--ec-light-bg); }
.ec-badge-soft { background-color: var(--ec-light-bg) !important; color: var(--ec-on-light) !important; }
.ec-text-ink { color: #212529; }

/* ===== Tema oscuro (issue #488; diseño en specs/changes/theme-modes/design.md) =====
   Bloque único: redefine sólo tokens y agrega overrides puntuales bajo clases existentes.
   El tema claro es el :root de arriba y no cambia. `data-theme` lo fija el script
   anti-flash de _Layout.cshtml y wwwroot/js/theme.js. Paleta: sin negro puro, misma
   identidad azul/naranja. Contrastes medidos en specs/changes/theme-modes/validation.md. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ec-bg: #0E1520;
  --ec-bg-rgb: 14, 21, 32;
  --ec-surface: #151E2C;
  --ec-surface-strong: #182334;
  --ec-surface-rgb: 21, 30, 44;
  --ec-text: #E6ECF5;
  --ec-text-muted: #A3B1C4;
  --ec-border: rgba(160, 190, 228, .20);

  /* Fondos de acción (texto blanco encima) */
  --ec-color-primary: #2B5F9E;
  --ec-color-primary-dark: #1F4F8A;
  --ec-color-primary-deep: #12345B;
  --ec-color-primary-soft: #1B2E48;
  --ec-color-primary-wash: #141E2E;
  --ec-wash-rgb: 20, 30, 46;
  --ec-color-accent: #FF851B;
  --ec-color-accent-soft: #3A2716;
  --ec-color-accent-text: #FFA95C;
  --ec-warm-wash: #1E1A18;
  --ec-warm-wash-rgb: 30, 26, 24;
  --ec-success: #3FC08B;

  /* Texto/íconos azules: en oscuro pasan a azules claros */
  --ec-ink: #B9CFEA;
  --ec-ink-strong: #E6ECF5;
  --ec-ink-deep: #F2F6FB;
  --ec-ink-link: #8FB8EE;
  --ec-ink-neutral: #D5DEEA;
  --ec-tint-rgb: 160, 190, 228;
  --ec-line: rgba(160, 190, 228, .20);
  --ec-focus-ring-gap: #0E1520;
  --ec-light-bg: #182334;
  --ec-on-light: #E6ECF5;

  /* Bootstrap 5.3 (data-bs-theme="dark" ya adapta formularios, modales y dropdowns) */
  --bs-body-bg: var(--ec-bg);
  --bs-body-color: var(--ec-text);
  --bs-secondary-color: var(--ec-text-muted);
  --bs-border-color: rgba(160, 190, 228, .28);
  --bs-link-color: var(--ec-ink-link);
  --bs-link-hover-color: #B5D0F5;
}

/* Fondos de página y paneles con gradientes claros */
:root[data-theme="dark"] body.elcentro-body {
  background:
    radial-gradient(circle at top left, rgba(255, 133, 27, .10), transparent 25%),
    radial-gradient(circle at top right, rgba(43, 95, 158, .22), transparent 24%),
    linear-gradient(180deg, var(--ec-surface) 0%, var(--ec-bg) 48%, var(--ec-bg) 100%);
}
:root[data-theme="dark"] .hero-urban {
  background: linear-gradient(135deg, rgba(var(--ec-surface-rgb), .94), rgba(var(--ec-wash-rgb), .98)), linear-gradient(135deg, rgba(255, 133, 27, .08), rgba(43, 95, 158, .12));
}
:root[data-theme="dark"] .recommendation-block { background: linear-gradient(135deg, rgba(var(--ec-surface-rgb), .94), rgba(var(--ec-wash-rgb), .98)); }
:root[data-theme="dark"] .ec-explore-hero { background: linear-gradient(135deg, rgba(20, 44, 38, .95), rgba(var(--ec-warm-wash-rgb), .95)); }
:root[data-theme="dark"] .ec-section--gold { background: linear-gradient(180deg, rgba(255, 190, 11, .10) 0%, rgba(255, 190, 11, 0) 100%); }
:root[data-theme="dark"] .ec-section--warm { background: linear-gradient(180deg, rgba(255, 133, 27, .12) 0%, rgba(255, 133, 27, 0) 100%); }
:root[data-theme="dark"] .ec-section--teal { background: linear-gradient(180deg, var(--ec-color-primary-soft) 0%, rgba(27, 46, 72, 0) 100%); }
:root[data-theme="dark"] .ec-horizontal-scroll--vip .ec-profile-card--vip,
:root[data-theme="dark"] .ec-horizontal-scroll--general .ec-profile-card--vip { background: linear-gradient(180deg, #2A2014, var(--ec-surface)); }
:root[data-theme="dark"] .route-commerce-modal__cover { background: linear-gradient(135deg, var(--ec-color-primary-soft), var(--ec-warm-wash)); }
:root[data-theme="dark"] .ec-menu-icon { background: linear-gradient(145deg, var(--ec-color-primary-wash), #2A2410); }
:root[data-theme="dark"] .ec-menu-logout { background: rgba(70, 28, 42, .55); border-color: rgba(255, 128, 160, .28); }

/* Etiquetas, avisos y bordes con colores fijos */
:root[data-theme="dark"] .ec-profile-card__actions a,
:root[data-theme="dark"] .ec-profile-card__actions span { background: #123325; color: #7EE0A8; }
:root[data-theme="dark"] .commerce-verified-badge { background: #123325; color: #7EE0A8; border-color: #1F5A40; }
:root[data-theme="dark"] .commerce-online-badge { background: #182A4D; color: #A9C4FF; border-color: #2F4A85; }
:root[data-theme="dark"] .plan-badge-base,
:root[data-theme="dark"] .visibility-badge--free { background: #26303F; color: #C3CCDA; }
:root[data-theme="dark"] .ec-profile-detail__notice { background: #14233A; border-color: #2A4A78; color: #C9DDF8; }
:root[data-theme="dark"] .ec-contact-btn--web { border-color: var(--ec-border); }
:root[data-theme="dark"] .comercio-map { border-color: var(--ec-border); }
:root[data-theme="dark"] .ec-profile-detail__card dd,
:root[data-theme="dark"] .ec-commerce-detail-presentation p,
:root[data-theme="dark"] .business-rubro,
:root[data-theme="dark"] .business-category,
:root[data-theme="dark"] .business-address,
:root[data-theme="dark"] .card-text { color: var(--ec-text-muted); }
:root[data-theme="dark"] .business-card,
:root[data-theme="dark"] .plan-card,
:root[data-theme="dark"] .ec-type-card--corp .ec-type-card__icon { color: var(--ec-text); }
:root[data-theme="dark"] .home-nav-link--danger,
:root[data-theme="dark"] .home-nav-link--danger .home-nav-link__left i,
:root[data-theme="dark"] .commerce-report-link,
:root[data-theme="dark"] .commerce-report-link:hover,
:root[data-theme="dark"] .commerce-report-link:focus { color: #FF9AAA; }

/* Errores de validación: rojo claro (>= 4.5:1 sobre la superficie) */
:root[data-theme="dark"] body.elcentro-body .text-danger,
:root[data-theme="dark"] body.elcentro-body .field-validation-error,
:root[data-theme="dark"] body.elcentro-body .validation-summary-errors,
:root[data-theme="dark"] body.elcentro-body .invalid-feedback { color: #FF8F9B !important; }
:root[data-theme="dark"] body.elcentro-body .alert-danger { background: #3A1A22; border-color: #7A2E3E; color: #FFC2CA; }
:root[data-theme="dark"] body.elcentro-body .alert-success { background: #12301F; border-color: #1F5A40; color: #A8EBC6; }
:root[data-theme="dark"] body.elcentro-body .alert-warning { background: #33270F; border-color: #6B5217; color: #FFE2A0; }
:root[data-theme="dark"] body.elcentro-body .alert-info { background: #14233A; border-color: #2A4A78; color: #C9DDF8; }

/* Clases Bootstrap de color que no se adaptan solas */
:root[data-theme="dark"] .btn-outline-dark {
  --bs-btn-color: var(--ec-text);
  --bs-btn-border-color: rgba(160, 190, 228, .50);
  --bs-btn-hover-color: #0E1520;
  --bs-btn-hover-bg: var(--ec-text);
  --bs-btn-hover-border-color: var(--ec-text);
  --bs-btn-active-color: #0E1520;
  --bs-btn-active-bg: var(--ec-text);
}
:root[data-theme="dark"] .btn-light { --bs-btn-color: var(--ec-text); --bs-btn-bg: var(--ec-surface-strong); --bs-btn-border-color: var(--ec-border); --bs-btn-hover-color: var(--ec-text); --bs-btn-hover-bg: var(--ec-color-primary-soft); --bs-btn-hover-border-color: var(--ec-border); }

/* Controles de formulario propios */
:root[data-theme="dark"] .search-panel .form-control,
:root[data-theme="dark"] .search-panel .form-select,
:root[data-theme="dark"] .comercio-mobile-form .form-control,
:root[data-theme="dark"] .comercio-mobile-form .form-select { background-color: var(--ec-surface); color: var(--ec-text); border-color: rgba(160, 190, 228, .50); }
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .form-check-input:not(:checked) { border-color: rgba(160, 190, 228, .50); }
/* Foco: halo naranja más opaco para llegar a >= 3:1 sobre el fondo oscuro */
:root[data-theme="dark"] .btn:focus, :root[data-theme="dark"] .btn:active:focus, :root[data-theme="dark"] .btn-link.nav-link:focus,
:root[data-theme="dark"] .form-control:focus, :root[data-theme="dark"] .form-check-input:focus, :root[data-theme="dark"] .form-select:focus { box-shadow: 0 0 0 0.1rem var(--ec-focus-ring-gap), 0 0 0 0.25rem rgba(255, 133, 27, 0.85); }
:root[data-theme="dark"] .form-control::placeholder { color: var(--ec-text-muted); opacity: 1; }

/* Imágenes: no se invierten; las fotos de comercio bajan un poco el brillo */
:root[data-theme="dark"] .commerce-card-image,
:root[data-theme="dark"] .ec-profile-card__media img:not(.ec-profile-card__image--logo) { filter: brightness(.92); }

/* Mapa: contenedor, controles y popups con tokens; los tiles OSM claros se mantienen */
:root[data-theme="dark"] .leaflet-container { background: var(--ec-surface); color: var(--ec-text); }
:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip { background: var(--ec-surface-strong); color: var(--ec-text); }
:root[data-theme="dark"] .leaflet-popup-content a { color: var(--ec-ink-link); }
:root[data-theme="dark"] .leaflet-popup-close-button { color: var(--ec-text-muted); }
:root[data-theme="dark"] .leaflet-bar a,
:root[data-theme="dark"] .leaflet-bar a:hover { background-color: var(--ec-surface-strong); color: var(--ec-text); border-bottom-color: var(--ec-border); }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(var(--ec-surface-rgb), .85); color: var(--ec-text-muted); }
:root[data-theme="dark"] .leaflet-control-attribution a { color: var(--ec-ink-link); }

/* Selector de tema (parcial _ThemeSelector) */
.ec-theme-selector { display: grid; gap: .5rem; }
.ec-theme-selector__label { margin: 0; color: var(--ec-ink-strong); font-weight: 800; font-size: var(--ec-font-sm); }
.ec-theme-selector__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.ec-theme-selector__option { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; min-width: 44px; padding: .45rem .5rem; border-radius: 999px; border: 1px solid rgba(var(--ec-tint-rgb), .22); background: var(--ec-surface); color: var(--ec-ink-strong); font-weight: 800; font-size: var(--ec-font-sm); line-height: 1.2; cursor: pointer; }
.ec-theme-selector__option:hover { background: var(--ec-color-primary-soft); }
.ec-theme-selector__option[aria-pressed="true"] { background: var(--ec-color-primary); border-color: var(--ec-color-primary); color: #fff; }
.ec-theme-selector__option:focus-visible { outline: 3px solid var(--ec-color-accent); outline-offset: 2px; }
:root[data-theme="dark"] .ec-text-ink { color: var(--ec-text); }
:root[data-theme="dark"] .ec-theme-selector__option { border-color: rgba(160, 190, 228, .50); }

/* Recorridos guiados (appTour.js) */
.ec-tour { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.ec-tour__shade { position: absolute; inset: 0; pointer-events: auto; background: transparent; }
.ec-tour__spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(13, 38, 67, .72); outline: 3px solid var(--ec-color-accent, #E8700A); outline-offset: 0; pointer-events: none; transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.ec-tour__bubble { position: fixed; box-sizing: border-box; max-width: calc(100vw - 24px); padding: 1rem; border-radius: 18px; background: #fff; color: #162742; box-shadow: 0 18px 50px rgba(13, 38, 67, .4); pointer-events: auto; outline: none; }
.ec-tour__step { font-size: .75rem; font-weight: 700; color: #4b5563; margin-bottom: .25rem; }
.ec-tour__step:empty { display: none; }
.ec-tour__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .35rem; }
.ec-tour__text { font-size: .92rem; line-height: 1.4; margin: 0 0 .9rem; }
.ec-tour__actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ec-tour__spacer { flex: 1 1 auto; }
.ec-tour__btn { min-height: 44px; padding: .4rem .9rem; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: .9rem; cursor: pointer; }
.ec-tour__btn[hidden] { display: none; }
.ec-tour__btn--primary { background: #0D2643; color: #fff; }
.ec-tour__btn--ghost { background: transparent; color: #0D2643; border-color: rgba(13, 38, 67, .25); }
.ec-tour__btn:focus-visible { outline: 3px solid #E8700A; outline-offset: 2px; }
html.ec-tour-open { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  .ec-tour__spot { transition: none; }
}
