/* ============================================================
   RUTA — Sistema de diseño (v2)
   Azul Profundo  #1C3C85   ·  Naranja Vibrante #ED6B40
   Tipografía: Montserrat
   ============================================================ */

:root {
  /* Brand */
  --azul: #1C3C85;
  --azul-700: #234aa0;
  --azul-600: #2d5cc4;
  --azul-100: #dbe2f4;
  --azul-50:  #eef1fb;
  --azul-25:  #f6f8fd;

  --naranja: #ED6B40;
  --naranja-600: #e25a2d;
  --naranja-100: #fde0d2;
  --naranja-50:  #fff4ee;

  --blanco: #FFFFFF;

  /* Neutrals */
  --ink:        #111634;
  --text:       #1c2138;
  --text-2:     #3a405a;
  --muted:      #6c7390;
  --muted-2:    #9aa0b8;
  --line:       #e8ebf4;
  --line-2:     #f0f2f8;
  --bg:         #f4f6fc;
  --surface:    #ffffff;
  --surface-2:  #f8fafd;

  /* Effects */
  --shadow-xs:  0 1px 2px rgba(28,60,133,.06);
  --shadow:     0 4px 14px rgba(28,60,133,.08);
  --shadow-lg:  0 18px 40px rgba(28,60,133,.14);
  --shadow-glow: 0 8px 22px rgba(237,107,64,.32);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Sizes */
  --phone-w: 412px;
  --phone-h: 892px;
  --bottom-nav-h: 78px;
  --header-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ============================================================
   DESKTOP STAGE (visible only on wide screens)
   ============================================================ */
.stage {
  display: grid;
  grid-template-columns: minmax(280px, 340px) auto;
  gap: 32px;
  padding: 28px;
  min-height: 100vh;
  align-items: start;
  justify-content: center;
  background:
    radial-gradient(1100px 600px at 0% 0%, rgba(28,60,133,.06), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(237,107,64,.06), transparent 60%),
    var(--bg);
}
.side-panel {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 340px;
}
.side-brand {
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-700) 100%);
  color: white;
  padding: 26px 24px 28px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.side-brand::before {
  content: "";
  position: absolute; inset: -50% -20% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(237,107,64,.35), transparent 70%);
  filter: blur(20px);
}
.side-brand img {
  width: 130px;
  position: relative;
  margin: 0 auto;
  display: block;
}
.side-brand .slogan {
  margin: 12px 0 0;
  font-style: italic; font-weight: 500;
  color: #c5d2ee; font-size: 13px;
  position: relative;
}
.side-card {
  background: white;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line-2);
}
.side-card h3 { margin: 0 0 6px; color: var(--azul); font-size: 15px; font-weight: 800; }
.side-card h4 { margin: 0 0 12px; color: var(--azul); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.side-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.side-card.mini { padding: 14px 18px; }
.palette { display: flex; gap: 8px; align-items: center; }
.swatch { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.palette-info { font-size: 10px; color: var(--muted); margin-left: 4px; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.quick-links a {
  font-size: 10.5px;
  padding: 8px 6px;
  border-radius: 8px;
  background: var(--azul-50);
  color: var(--azul);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  letter-spacing: .3px;
  transition: all .15s;
}
.quick-links a:hover { background: var(--azul); color: white; transform: translateY(-1px); }

.version { color: var(--muted); font-size: 11px; text-align: center; margin: 4px 0 0; }

/* ============================================================
   DEVICE FRAME (desktop only)
   ============================================================ */
.device {
  width: var(--phone-w);
  height: var(--phone-h);
  background: #0d1020;
  border-radius: 56px;
  padding: 16px;
  box-shadow:
    0 30px 80px rgba(28, 60, 133, .25),
    0 6px 24px rgba(0,0,0,.18),
    inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
  flex-shrink: 0;
}
.device-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 124px; height: 30px;
  background: #000;
  border-radius: 22px;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.device-notch .speaker { width: 46px; height: 5px; background: #1a1a1a; border-radius: 4px; }
.device-notch .cam { width: 10px; height: 10px; background: #1e2235; border-radius: 50%; }
.device-home {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  width: 130px; height: 5px;
  background: rgba(255,255,255,.35);
  border-radius: 3px;
  z-index: 60;
  pointer-events: none;
}
.screen {
  width: 100%; height: 100%;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

/* Mobile: kill stage, show screen full size */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    background: var(--bg);
  }
  .side-panel { display: none; }
  .device {
    width: 100vw; height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: white;
  }
  .device-notch, .device-home { display: none; }
  .screen { border-radius: 0; }
}

/* ============================================================
   SCREEN TRANSITIONS
   ============================================================ */
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes screenEnterFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes screenSlideLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes screenSlideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.screen > .app,
.screen > .welcome,
.screen > .splash {
  animation: screenEnter .32s cubic-bezier(.2,.8,.3,1);
  will-change: opacity, transform;
}
.screen.nav-back > .app,
.screen.nav-back > .welcome {
  animation: screenSlideRight .32s cubic-bezier(.2,.8,.3,1);
}
.screen.nav-forward > .app,
.screen.nav-forward > .welcome {
  animation: screenSlideLeft .32s cubic-bezier(.2,.8,.3,1);
}
.screen > .splash {
  animation: screenEnterFade .4s ease-out;
}

/* Stagger animation for list items */
.app-body .list > *,
.app-body .tile-grid > *,
.app-body .carousel > * {
  animation: screenEnter .35s cubic-bezier(.2,.8,.3,1) backwards;
}
.app-body .list > *:nth-child(1) { animation-delay: .04s; }
.app-body .list > *:nth-child(2) { animation-delay: .08s; }
.app-body .list > *:nth-child(3) { animation-delay: .12s; }
.app-body .list > *:nth-child(4) { animation-delay: .16s; }
.app-body .list > *:nth-child(5) { animation-delay: .20s; }
.app-body .list > *:nth-child(6) { animation-delay: .24s; }
.app-body .list > *:nth-child(n+7) { animation-delay: .28s; }
.app-body .tile-grid > *:nth-child(1) { animation-delay: .02s; }
.app-body .tile-grid > *:nth-child(2) { animation-delay: .04s; }
.app-body .tile-grid > *:nth-child(3) { animation-delay: .06s; }
.app-body .tile-grid > *:nth-child(4) { animation-delay: .08s; }
.app-body .tile-grid > *:nth-child(5) { animation-delay: .10s; }
.app-body .tile-grid > *:nth-child(6) { animation-delay: .12s; }
.app-body .tile-grid > *:nth-child(7) { animation-delay: .14s; }
.app-body .tile-grid > *:nth-child(8) { animation-delay: .16s; }
.app-body .tile-grid > *:nth-child(9) { animation-delay: .18s; }

/* Button press feedback */
button:not(:disabled):active,
.btn:not(:disabled):active {
  transform: scale(.97);
  transition: transform .08s;
}

/* Smooth interactions */
.list-card, .business-card, .tile, .plan-card,
.profile-row, .quick-action, .biz-action,
.tab, .pill, .icon-btn, .hamb, .fab {
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* Bottom nav button active scale */
.bottom-nav button { transition: color .2s; }

/* Respect reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .screen > .app, .screen > .welcome, .screen > .splash,
  .app-body .list > *, .app-body .tile-grid > *, .app-body .carousel > * {
    animation: none;
  }
}

/* ============================================================
   APP SHELL inside .screen
   ============================================================ */
.app {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

/* Status bar simulated */
.status-bar {
  height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 4px;
  font-size: 12px; font-weight: 700;
  color: var(--ink);
}
.status-bar .right { display: flex; gap: 5px; align-items: center; }
.status-bar .right .dot { width: 14px; height: 8px; background: currentColor; border-radius: 2px; }
.status-bar .right .battery {
  width: 22px; height: 11px; border: 1.4px solid currentColor; border-radius: 3px;
  position: relative; padding: 1px;
}
.status-bar .right .battery::after { content:""; position:absolute; right:-3px; top:3px; width:2px; height:5px; background: currentColor; border-radius:0 2px 2px 0; }
.status-bar .right .battery::before { content:""; display:block; width:80%; height:100%; background: currentColor; border-radius: 1px; }

/* When status bar is over a colored hero, invert color */
.app.dark-status .status-bar { color: white; }
.status-bar.light { color: white; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 12px;
  background: white;
  flex-shrink: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line-2);
}
.app-header .brand-area { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.app-header .avatar-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--naranja), #ffaa7a);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 14px;
  box-shadow: var(--shadow-glow);
  border: 2px solid white;
  overflow: hidden;
}
.app-header .avatar-ring.photo { padding: 0; }
.app-header .avatar-ring img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.app-header .name-area .greet { font-size: 10px; color: var(--muted); font-weight: 600; line-height: 1; }
.app-header .name-area .name { font-size: 13px; color: var(--azul); font-weight: 800; line-height: 1.2; }
.app-header .logo {
  height: 28px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.hamb {
  background: var(--azul-50);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--azul);
  font-size: 14px;
  font-weight: 800;
  transition: background .15s;
}
.hamb:hover { background: var(--azul-100); }
.hamb .ic { display: flex; flex-direction: column; gap: 3px; }
.hamb .ic span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

.back-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 12px;
  flex-shrink: 0;
  background: white;
  border-bottom: 1px solid var(--line-2);
  z-index: 5;
}
.back-bar .back {
  background: var(--azul-50);
  color: var(--azul);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 18px;
  display: grid; place-items: center;
}
.back-bar .back:hover { background: var(--azul-100); }
.back-bar h1 { margin: 0; font-size: 16px; font-weight: 800; color: var(--azul); flex: 1; }
.back-bar .right-actions { display: flex; gap: 6px; }

.app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px calc(var(--bottom-nav-h) + 30px);
  scroll-behavior: smooth;
  background: var(--surface-2);
}
.app-body.no-bottom-nav { padding-bottom: 30px; }
.app-body.auth { padding: 0; background: white; }
.app-body::-webkit-scrollbar { width: 0; height: 0; }
.app-body::-webkit-scrollbar-thumb { background: transparent; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 8px 18px;
  z-index: 12;
  box-shadow: 0 -6px 24px rgba(28,60,133,.06);
}
.bottom-nav button {
  background: transparent; border: 0;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 0;
}
.bottom-nav button .ic-wrap {
  width: 50px; height: 30px;
  border-radius: 14px;
  display: grid; place-items: center;
  transition: all .2s;
}
.bottom-nav button .ic {
  font-size: 17px;
  line-height: 1;
  transition: transform .15s;
}
.bottom-nav button .ic-svg {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  color: currentColor;
  transition: transform .15s;
}
.bottom-nav button .ic-svg svg { width: 100%; height: 100%; fill: currentColor; }
.bottom-nav button.active .ic-svg { transform: scale(1.1); }
.bottom-nav button.active { color: var(--naranja); }
.bottom-nav button.active .ic-wrap { background: var(--naranja-50); }
.bottom-nav button.active .ic { transform: scale(1.1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  width: 100%;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
  letter-spacing: .1px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--naranja);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--naranja-600); }
.btn-secondary { background: var(--azul); color: white; }
.btn-secondary:hover { background: var(--azul-700); }
.btn-outline {
  background: white; color: var(--azul);
  border: 1.5px solid var(--azul);
}
.btn-outline:hover { background: var(--azul-50); }
.btn-ghost { background: var(--azul-50); color: var(--azul); }
.btn-ghost:hover { background: var(--azul-100); }
.btn-social {
  background: white; color: var(--ink);
  border: 1.5px solid var(--line);
  font-weight: 600;
}
.btn-social:hover { background: var(--surface-2); border-color: var(--azul-100); }
.btn-sm { padding: 10px 14px; font-size: 12px; border-radius: 12px; }
.btn-block { width: 100%; }

.icon-btn {
  background: transparent;
  border: 0;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--azul);
  font-size: 15px;
  font-weight: 600;
}
.icon-btn:hover { background: var(--azul-50); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 11.5px;
  color: var(--azul);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.input, .textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); font-weight: 500; }
.input:focus, .textarea:focus, select:focus {
  outline: none;
  border-color: var(--naranja);
  box-shadow: 0 0 0 4px rgba(237,107,64,.12);
}
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  cursor: pointer;
}
.checkbox input { margin-top: 2px; accent-color: var(--naranja); cursor: pointer; }

.switch-toggle { position:relative; display:inline-block; width:44px; height:24px; cursor: pointer; }
.switch-toggle input { opacity:0; width:0; height:0; }
.switch-toggle .slider { position:absolute; inset:0; background:#d6d9e3; border-radius:30px; transition: background .2s; }
.switch-toggle input:checked + .slider { background: var(--naranja); }
.switch-toggle .slider::before {
  content:""; position:absolute; left:3px; top:3px;
  width:18px; height:18px;
  background:white; border-radius:50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch-toggle input:checked + .slider::before { transform: translateX(20px); }

/* ============================================================
   CARDS / TILES
   ============================================================ */
.card {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}
.card-elev {
  background: white;
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow);
}

/* Category tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 14px;
}
.tile {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 12px 6px 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 6px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  min-height: 108px;
  box-shadow: var(--shadow-xs);
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--naranja-100);
}
.tile .ic-bg {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--azul-25), white);
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
}
.tile img { width: 46px; height: 46px; object-fit: contain; }
.tile .label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--azul);
  line-height: 1.2;
  letter-spacing: .15px;
}

/* Section title */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 2px 12px;
}
.section-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -.2px;
}
.section-title a { color: var(--naranja); font-size: 12px; font-weight: 700; cursor: pointer; }
.section-title a:hover { text-decoration: underline; }

/* Horizontal carousel — first card aligns with content padding (18px), bleeds to right */
.carousel-wrap {
  margin: 0 -18px;
  padding: 4px 0 12px;
  overflow: hidden;
}
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 18px;
  padding: 4px 18px 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > *:first-child { margin-left: 0; }

.business-card {
  flex: 0 0 200px;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .12s, box-shadow .15s;
}
.business-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.business-card .photo {
  height: 110px;
  background: linear-gradient(135deg, var(--azul-100), var(--naranja-100));
  position: relative;
  overflow: hidden;
}
.business-card .photo .biz-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.business-card .photo .biz-icon img { width: 70px; height: 70px; }
.business-card .photo .badge {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
  object-fit: contain;
}
.business-card .info { padding: 10px 12px 12px; }
.business-card .info h4 {
  margin: 0; font-size: 13px; font-weight: 800;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.business-card .meta {
  display: flex; gap: 10px; margin-top: 6px;
  font-size: 11px; color: var(--muted); font-weight: 600;
}
.business-card .meta .heart { color: var(--naranja); }

/* Promo card */
.promo-card {
  flex: 0 0 130px;
  background: linear-gradient(160deg, var(--naranja-50) 0%, white 100%);
  border: 1px solid var(--naranja-100);
  border-radius: 18px;
  padding: 10px 8px 12px;
  scroll-snap-align: start;
  cursor: pointer;
  text-align: center;
  transition: transform .12s;
  box-shadow: var(--shadow-xs);
}
.promo-card:hover { transform: translateY(-3px); }
.promo-card .img-wrap {
  height: 64px; display: grid; place-items: center; margin-bottom: 4px;
}
.promo-card .img-wrap img { height: 56px; object-fit: contain; }
.promo-card .off {
  background: var(--naranja); color: white;
  display: inline-block; padding: 3px 10px;
  border-radius: 30px; font-size: 10.5px; font-weight: 800;
  margin-top: 4px;
}
.promo-card .nombre {
  font-size: 10.5px; font-weight: 700; color: var(--azul); margin-top: 4px;
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 26px;
}

/* Quick actions (Ver mapa / Destacados / Favoritos) */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--azul-50);
  color: var(--azul);
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  height: 38px;
}
.quick-action:hover { background: var(--azul-100); transform: translateY(-1px); }
.quick-action .ic {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  color: var(--azul);
  flex-shrink: 0;
}
.quick-action .ic svg { width: 100%; height: 100%; fill: currentColor; }

/* Search bar */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 4px 6px 4px 14px;
  margin: 4px 0 12px;
  box-shadow: var(--shadow-xs);
}
.search-bar input {
  flex: 1; border: 0; outline: 0;
  padding: 10px 4px;
  font-size: 13px; color: var(--ink);
  background: transparent;
}
.search-bar input::placeholder { color: var(--muted-2); }
.search-bar .filters {
  width: 32px; height: 32px;
  background: var(--azul-50); color: var(--azul);
  border: 0; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px;
}
.search-bar .go {
  width: 38px; height: 38px;
  background: var(--naranja); color: white;
  border: 0; border-radius: 12px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
}
.search-bar .go img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* Pills / tabs */
.tabs {
  display: flex; gap: 6px;
  overflow-x: auto;
  margin: 4px -18px 12px;
  padding: 4px 18px 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 30px;
  background: white;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tab .tab-ic {
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.tab .tab-ic svg { width: 100%; height: 100%; fill: currentColor; }
.tab.active {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
  box-shadow: 0 4px 12px rgba(28,60,133,.18);
}
.tab:not(.active):hover { border-color: var(--azul-100); color: var(--azul); }

/* Event/Job/Org card list */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-card {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all .15s;
  align-items: center;
}
.list-card:hover { transform: translateY(-2px); border-color: var(--naranja-100); box-shadow: var(--shadow); }
.list-card .ph {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--azul-100), var(--naranja-100));
  display: grid; place-items: center;
  overflow: hidden;
}
.list-card .ph img { width: 56px; height: 56px; object-fit: contain; }
.list-card .info { min-width: 0; }
.list-card .info h4 {
  margin: 0; font-size: 13.5px; color: var(--ink); font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-card .info p {
  margin: 4px 0 0; font-size: 11.5px; color: var(--muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-card .info .meta {
  display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--azul-50);
  color: var(--azul);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 30px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}
.ic-mini {
  display: inline-grid;
  place-items: center;
  width: 12px; height: 12px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.ic-mini svg { width: 100%; height: 100%; fill: currentColor; }
.pill.heart { background: var(--naranja-50); color: var(--naranja-600); }
.pill.salary { background: #e9f7ec; color: #1f7a3a; }
.pill.verified { background: var(--azul-50); color: var(--azul); display: inline-flex; align-items: center; gap: 3px; }

/* Floating Action Button */
.fab {
  position: absolute;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 18px;
  width: 54px; height: 54px;
  background: var(--naranja);
  color: white;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 300;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  z-index: 9;
  transition: transform .15s;
}
.fab:hover { background: var(--naranja-600); transform: scale(1.05); }

/* ============================================================
   HERO blocks
   ============================================================ */
.hero {
  border-radius: 22px;
  padding: 22px 22px 22px;
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-700) 100%);
  color: white;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}
.hero h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; max-width: 60%; }
.hero p { margin: 6px 0 0; color: #c5d2ee; font-size: 12.5px; line-height: 1.5; max-width: 60%; }
.hero .mascot {
  position: absolute;
  right: 4px; bottom: 0;
  height: 120px;
  width: auto;
  max-width: 40%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.hero-orange { background: linear-gradient(160deg, var(--naranja) 0%, #ff8e5f 100%); }
.hero-orange p { color: rgba(255,255,255,.9); }

/* ============================================================
   TOAST (lives inside .device — stays within phone viewport)
   ============================================================ */
.toast {
  position: absolute;
  top: 60px; left: 50%;
  margin-left: -130px;
  width: 260px;
  transform: translateY(-160px);
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 12.5px;
  z-index: 500;
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { background: #1f7a3a; }
.toast.warn { background: var(--naranja); }
@media (max-width: 900px) {
  .toast { top: 60px; }
}

/* ============================================================
   DRAWER (lives INSIDE .screen)
   ============================================================ */
.drawer {
  position: absolute;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.drawer.open { pointer-events: all; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,20,40,.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 84%;
  max-width: 320px;
  background: white;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  box-shadow: -10px 0 40px rgba(0,0,0,.18);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 56px 22px 16px;
  background: linear-gradient(160deg, var(--azul), var(--azul-700));
  color: white;
}
.drawer-header img { height: 26px; }
.drawer-header .close-btn {
  background: rgba(255,255,255,.18); color: white; border: 0;
  width: 36px; height: 36px; border-radius: 12px;
  font-size: 16px; font-weight: 600;
}
.drawer-list {
  list-style: none;
  padding: 14px 12px;
  margin: 0;
  flex: 1; overflow-y: auto;
}
.drawer-list li a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.drawer-list li a:hover { background: var(--azul-50); color: var(--azul); }
.drawer-list li a .lico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--azul-50); color: var(--azul);
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.drawer-list li a .lico svg { width: 18px; height: 18px; fill: currentColor; }
.drawer-footer {
  border-top: 1px solid var(--line-2);
  padding: 16px 22px 20px;
  display: flex; align-items: center; gap: 14px;
}
.drawer-footer img { width: 50px; }
.drawer-footer p { margin: 0; font-size: 11.5px; color: var(--muted); }
.drawer-footer .link { color: var(--naranja); font-weight: 800; font-size: 13px; cursor: pointer; }

/* ============================================================
   PROFILE (W03)
   ============================================================ */
.profile-head {
  position: relative;
  background: linear-gradient(160deg, var(--azul), var(--azul-700));
  color: white;
  margin: -16px -18px 0;
  padding: 20px 18px 70px;
  text-align: center;
  overflow: hidden;
}
.profile-head .mascot-deco {
  position: absolute; right: -10px; bottom: -8px;
  width: 110px; opacity: .95;
  pointer-events: none;
}
.profile-head .avatar-lg {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--naranja), #ffaa7a);
  margin: 4px auto 0;
  border: 4px solid white;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  position: relative;
}
.profile-head .avatar-lg.has-photo { background: var(--surface-2); }
.profile-head .avatar-lg img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.profile-head .avatar-lg .avatar-edit-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 32px; height: 32px;
  background: var(--naranja);
  border: 3px solid white;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.profile-head .avatar-lg .avatar-edit-badge svg { width: 14px; height: 14px; fill: currentColor; }
.fav-btn { color: var(--muted-2); }
.fav-btn.active { background: var(--naranja); color: white; }
.fav-btn .ruta-heart {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
}
.fav-btn .ruta-heart svg { fill: currentColor; }

/* Heart button inside business carousel cards */
.business-card .photo .card-fav {
  position: absolute;
  top: 8px; left: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform .15s, background .15s;
  color: var(--muted-2);
}
.business-card .photo .card-fav .ruta-heart svg { fill: currentColor; width: 16px; height: 16px; }
.business-card .photo .card-fav:hover { transform: scale(1.1); }
.business-card .photo .card-fav.active { background: var(--naranja); color: white; }

/* Inline fav on list-cards */
.card-fav-inline {
  background: transparent; border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--muted-2);
  transition: all .15s;
  flex-shrink: 0;
}
.card-fav-inline .ruta-heart svg { fill: currentColor; width: 18px; height: 18px; }
.card-fav-inline:hover { background: var(--naranja-50); color: var(--naranja); }
.card-fav-inline.active { color: var(--naranja); background: var(--naranja-50); }

/* Payment buttons — unified base */
.payment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
}
.payment-btn .pay-ico,
.payment-btn .pay-ico-apple,
.payment-btn .pay-ico-google {
  display: inline-grid; place-items: center;
}
.payment-btn .pay-ico { width: 18px; height: 18px; color: currentColor; }
.payment-btn .pay-ico svg { fill: currentColor; width: 100%; height: 100%; }
.payment-btn .apple-mark { width: 13px; height: 16px; display: inline-grid; place-items: center; color: currentColor; }
.payment-btn .apple-mark svg { width: 100%; height: 100%; fill: currentColor; }
.payment-btn .google-mark { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.payment-btn .google-mark svg { width: 100%; height: 100%; }
.payment-btn .pay-text { font-weight: 700; font-size: 13px; letter-spacing: -.2px; }

.payment-btn.pay-card.active { background: var(--azul); color: white; border-color: var(--azul); box-shadow: 0 4px 12px rgba(28,60,133,.25); }
.payment-btn.pay-card.active .pay-ico { color: white; }
.payment-btn.pay-apple.active { background: #000; color: white; border-color: #000; }
.payment-btn.pay-apple.active .pay-ico-apple { color: white; }
.payment-btn.pay-google.active { border-color: var(--azul); background: var(--azul-50); }
.payment-btn:not(.active):hover { border-color: var(--azul-100); }
.profile-head h2 { margin: 10px 0 2px; font-size: 19px; font-weight: 800; }
.profile-head .hearts {
  font-size: 12.5px; color: #ffd2c0; font-weight: 700;
  background: rgba(255,255,255,.12);
  display: inline-block; padding: 4px 12px;
  border-radius: 30px;
}
.profile-card {
  background: white;
  border-radius: 22px;
  margin: -45px 4px 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.profile-section h3 {
  margin: 14px 0 8px;
  font-size: 11px;
  color: var(--azul);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.profile-section:first-child h3 { margin-top: 4px; }
.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.profile-row:last-child { border-bottom: 0; }
.profile-row:hover { padding-left: 4px; }
.profile-row .left { display: flex; align-items: center; gap: 12px; }
.profile-row .ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--azul-50);
  color: var(--azul);
  display: grid; place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}
.profile-row .ico.naranja { background: var(--naranja-50); color: var(--naranja); }
.profile-row .ico img { width: 20px; height: 20px; }
.profile-row .ico svg { width: 20px; height: 20px; fill: currentColor; }
.profile-row .name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.profile-row .arrow { color: var(--muted-2); font-size: 18px; }

/* ============================================================
   BUSINESS PROFILE (W21)
   ============================================================ */
.biz-cover {
  margin: -16px -18px 0;
  height: 200px;
  background:
    linear-gradient(180deg, rgba(28,60,133,0) 0%, rgba(28,60,133,.65) 100%),
    linear-gradient(135deg, var(--naranja) 0%, #ffaa7a 60%, #ffb88a 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.biz-cover .photo-counter {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(0,0,0,.55);
  color: white; font-size: 11px;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.biz-cover .fav-btn {
  position: absolute;
  top: 12px; left: 14px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.95);
  color: var(--naranja);
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  font-weight: 700;
}

.biz-head {
  position: relative;
  margin: -32px 0 0;
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.biz-head h2 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.2; }
.biz-head .meta-row {
  display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap;
}
.biz-head .verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; color: var(--azul);
  background: var(--azul-50);
  padding: 4px 10px;
  border-radius: 30px;
}
.biz-head .verified img { width: 14px; }

.biz-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.biz-action {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 9px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.biz-action:hover { border-color: var(--naranja-100); transform: translateY(-2px); }
.biz-action .ic {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--naranja), #ffaa7a);
  color: white;
  display: grid; place-items: center;
  font-size: 14px;
  margin: 0 auto 5px;
  box-shadow: 0 4px 10px rgba(237,107,64,.3);
}
.biz-action .lbl { font-size: 9px; font-weight: 800; color: var(--azul); letter-spacing: .2px; }

.biz-block {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.biz-block h4 {
  margin: 0 0 8px; color: var(--azul);
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.biz-block p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.biz-tags { display: flex; gap: 6px; margin: 8px 0 0; flex-wrap: wrap; }
.tag {
  background: var(--naranja-50);
  color: var(--naranja-600);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 800;
  letter-spacing: .2px;
}

.mini-map {
  width: 100%;
  height: 110px;
  background:
    linear-gradient(120deg, #e1e8f5 0%, #eef3ff 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
.mini-map-real { background: #e7eaf3; }
.mini-map-real::before, .mini-map-real::after,
.mini-map-real .road1, .mini-map-real .road2,
.mini-map-real .pin { display: none !important; }
.mini-map-real .leaflet-container { font-family: 'Montserrat', sans-serif; border-radius: 14px; }
.mini-map-real .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 6px 18px rgba(28,60,133,.18); }
.mini-map-real .leaflet-popup-content { margin: 10px 12px; font-size: 12px; line-height: 1.4; }
.mini-map-real .leaflet-popup-tip { background: white; }
.full-map {
  width: 100%;
  height: 100%;
  position: relative;
}
.full-map .leaflet-container { height: 100%; width: 100%; font-family: 'Montserrat', sans-serif; }

/* Keep Leaflet panes BELOW the drawer (200) and modal-host (300) */
.leaflet-pane, .leaflet-top, .leaflet-bottom { z-index: 1 !important; }
.leaflet-control-zoom { z-index: 2 !important; }
.leaflet-popup { z-index: 3 !important; }
.mini-map, .full-map { position: relative; z-index: 0; isolation: isolate; }
.mini-map::before, .mini-map::after { content: ""; position: absolute; background: rgba(28,60,133,.08); }
.mini-map::before { left: 30%; top: 0; width: 1px; height: 100%; }
.mini-map::after { left: 0; top: 45%; width: 100%; height: 1px; }
.mini-map .road1, .mini-map .road2 {
  position: absolute; background: rgba(28,60,133,.06);
}
.mini-map .road1 { left: 0; top: 25%; width: 100%; height: 12px; }
.mini-map .road2 { left: 55%; top: 0; width: 14px; height: 100%; }
.mini-map .pin {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  background: var(--naranja);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 4px 14px rgba(237,107,64,.5);
}
.mini-map .pin::after {
  content: ""; position: absolute;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: white; border-radius: 50%;
}

/* ============================================================
   CÍRCULO progress sliders (W15)
   ============================================================ */
.progress-slider { margin: 14px 0; }
.progress-slider .lbl {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--azul); font-weight: 800;
  margin-bottom: 8px;
}
.progress-slider .track {
  height: 12px;
  background: var(--azul-50);
  border-radius: 30px;
  overflow: visible;
  position: relative;
}
.progress-slider .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--naranja), #ffaa7a);
  border-radius: 30px;
  position: relative;
}
.progress-slider .fill::after {
  content: "❤";
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  background: white;
  color: var(--naranja);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(237,107,64,.4);
  border: 2px solid var(--naranja);
  font-weight: 800;
}
.progress-slider .nums {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--muted); font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

/* ============================================================
   W22 stats
   ============================================================ */
.stats-bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding: 12px 0 26px; }
.stats-bars .bar {
  flex: 1;
  background: linear-gradient(0deg, var(--azul) 0%, var(--azul-600) 100%);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  min-height: 8px;
  transition: opacity .15s;
}
.stats-bars .bar.highlight { background: linear-gradient(0deg, var(--naranja) 0%, #ff8e5f 100%); }
.stats-bars .bar .v {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; color: var(--azul); font-weight: 800;
  white-space: nowrap;
}
.stats-bars .bar .m {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; color: var(--muted); font-weight: 700;
}

.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.metric-row:last-child { border-bottom: 0; }
.metric-row .label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.metric-row .label .ic {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--azul-50);
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.metric-row .label .ic svg { width: 16px; height: 16px; fill: currentColor; }
.metric-row .value {
  color: var(--naranja); font-weight: 800; font-size: 14px;
  background: var(--naranja-50);
  padding: 4px 10px;
  border-radius: 30px;
}

.hearts-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.hearts-compare .pill-big {
  border-radius: 16px;
  padding: 14px 12px;
  color: white;
  text-align: center;
}
.hearts-compare .ganados { background: linear-gradient(160deg, var(--naranja), #ff8e5f); }
.hearts-compare .perdidos { background: linear-gradient(160deg, var(--azul), var(--azul-700)); }
.hearts-compare .num { font-size: 24px; font-weight: 800; line-height: 1; }
.hearts-compare .lbl { font-size: 11px; opacity: .92; margin-top: 4px; }

/* ============================================================
   CALENDAR (W06)
   ============================================================ */
.cal {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cal-head h3 { margin: 0; color: var(--azul); font-size: 15px; font-weight: 800; }
.cal-head button {
  background: var(--azul-50); color: var(--azul); border: 0;
  width: 32px; height: 32px; border-radius: 10px; font-size: 14px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.cal-grid .dow {
  font-size: 9.5px; color: var(--muted); font-weight: 800;
  padding: 6px 0; text-transform: uppercase; letter-spacing: .5px;
}
.cal-grid .day {
  font-size: 12px;
  font-weight: 600;
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  transition: background .12s;
}
.cal-grid .day:hover { background: var(--azul-50); }
.cal-grid .day.has::after {
  content: ""; position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--naranja);
  border-radius: 50%;
}
.cal-grid .day.today { background: var(--naranja); color: white; font-weight: 800; }
.cal-grid .day.today::after { background: white; }
.cal-grid .day.muted { color: var(--muted-2); }

/* ============================================================
   PRICING (W19)
   ============================================================ */
.plan-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .12s, border-color .15s, box-shadow .15s;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.plan-card:hover { border-color: var(--naranja-100); transform: translateY(-2px); }
.plan-card.selected {
  border-color: var(--naranja);
  background: linear-gradient(160deg, var(--naranja-50) 0%, white 60%);
  box-shadow: var(--shadow-glow);
}
.plan-card.selected::before {
  content: "✓";
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: var(--naranja); color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-glow);
}
.plan-card .head {
  display: flex; align-items: center; gap: 12px;
}
.plan-card .head img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.plan-card .head .name {
  color: var(--azul); font-weight: 800; font-size: 15px;
  letter-spacing: -.1px; line-height: 1.2;
}
.plan-card .head .price {
  color: var(--naranja); font-weight: 800; font-size: 16px;
  margin-top: 2px;
}
.plan-card .head .price small { font-size: 11px; color: var(--muted); font-weight: 700; }
.plan-card ul { padding-left: 16px; margin: 10px 0 0; }
.plan-card ul li {
  font-size: 12px; color: var(--text-2);
  margin-bottom: 4px; line-height: 1.4;
}

/* ============================================================
   LANDING / WELCOME
   ============================================================ */
.welcome {
  height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-700) 70%, #2a4ea3 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.welcome::before {
  content: "";
  position: absolute;
  top: -50px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(237,107,64,.45), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.welcome::after {
  content: "";
  position: absolute;
  bottom: -50px; left: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(237,107,64,.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.welcome .top {
  padding: 36px 28px 0;
  text-align: center;
  position: relative;
}
.welcome .top .logo { width: 130px; margin: 0 auto; }
.welcome .top h1 {
  margin: 22px 0 6px; font-size: 24px; font-weight: 800; font-style: italic;
  letter-spacing: -.5px;
}
.welcome .top p { margin: 0; color: #c5d2ee; font-size: 13.5px; line-height: 1.5; }
.welcome .scene {
  flex: 1;
  display: grid; place-items: center;
  padding: 16px 28px 0;
  position: relative;
}
.welcome .scene .scene-card {
  background: #f2f2f2;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  width: 100%;
}
.welcome .scene .scene-card img {
  max-height: 320px;
  width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}
.welcome .actions {
  padding: 18px 28px 30px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.welcome .actions .btn-outline {
  background: rgba(255,255,255,.1);
  color: white;
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(4px);
}
.welcome .actions .btn-outline:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
  height: 100%;
  padding: 56px 24px 30px;
  background: white;
  overflow-y: auto;
}
.auth-wrap .brand {
  text-align: center;
  margin-bottom: 14px;
}
.auth-wrap .brand img { height: 32px; margin: 0 auto; }
.auth-wrap .brand .slogan {
  font-size: 11px; color: var(--muted);
  margin: 6px 0 0; font-weight: 500; font-style: italic;
}
.auth-wrap h2 {
  font-size: 22px;
  color: var(--azul);
  font-weight: 800;
  margin: 16px 0 18px;
  text-align: center;
  letter-spacing: -.3px;
}
.auth-wrap .sep {
  text-align: center; color: var(--muted); font-size: 11.5px; font-weight: 700;
  margin: 18px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-wrap .sep::before, .auth-wrap .sep::after {
  content: ""; position: absolute; top: 50%;
  width: 30%; height: 1px; background: var(--line);
}
.auth-wrap .sep::before { left: 0; }
.auth-wrap .sep::after { right: 0; }
.auth-wrap .switch {
  text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px;
}
.auth-wrap .switch a { color: var(--naranja); font-weight: 800; cursor: pointer; }
.auth-wrap .switch a:hover { text-decoration: underline; }
.auth-wrap .ill { text-align: center; margin: 14px 0; }
.auth-wrap .ill img { max-height: 120px; margin: 0 auto; }

/* ============================================================
   SPLASH (animated)
   ============================================================ */
.splash {
  height: 100%;
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-700) 70%, #2a4ea3 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: white;
}
.splash::before, .splash::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.splash::before {
  width: 260px; height: 260px;
  background: rgba(237,107,64,.35);
  top: -80px; right: -80px;
}
.splash::after {
  width: 260px; height: 260px;
  background: rgba(237,107,64,.20);
  bottom: -80px; left: -80px;
}
.splash .logo-anim {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  animation: pulseIn 1s cubic-bezier(.2,.8,.3,1);
}
.splash .logo-anim img { width: 180px; margin: 0 auto; }
.splash .logo-anim p {
  font-style: italic; font-weight: 500;
  margin-top: 16px; font-size: 14px;
  letter-spacing: .3px;
  color: rgba(255,255,255,.95);
}
.splash .spinner {
  margin: 32px auto 0;
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseIn {
  0% { transform: scale(.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   PROGRESS STEPS
   ============================================================ */
.steps {
  display: flex; gap: 6px;
  margin: 4px 0 14px;
}
.steps .step {
  flex: 1; height: 5px; border-radius: 30px; background: var(--line);
}
.steps .step.active { background: var(--naranja); }
.steps .step.current { background: linear-gradient(90deg, var(--naranja), #ffaa7a); }

/* ============================================================
   NOTIFICATION CARDS
   ============================================================ */
.notif-card {
  background: white; border: 1px solid var(--line-2);
  border-radius: 14px; padding: 12px;
  display: grid; grid-template-columns: 40px 1fr; gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: all .12s;
  box-shadow: var(--shadow-xs);
}
.notif-card:hover { border-color: var(--naranja-100); }
.notif-card .ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--naranja-50); color: var(--naranja);
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.notif-card .ico svg { width: 20px; height: 20px; fill: currentColor; }
.notif-card .body .tit { font-weight: 800; font-size: 12.5px; color: var(--ink); }
.notif-card .body .msg { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif-card .body .t { font-size: 10.5px; color: var(--naranja); font-weight: 800; margin-top: 4px; }
.notif-card.new::before {
  content:""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--naranja); position: absolute; right: 10px; top: 10px;
}

/* ============================================================
   MODAL / SHEET (lives INSIDE .screen)
   ============================================================ */
.modal-host {
  position: absolute;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.modal-host.open { pointer-events: all; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,20,40,.55);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s;
}
.modal-host.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -45%) scale(.96);
  width: calc(100% - 32px);
  max-width: 340px;
  max-height: 80%;
  background: white;
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), opacity .2s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-host.open .modal-card {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.modal-card .m-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--azul-50); color: var(--azul);
  border: 0; width: 30px; height: 30px;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.modal-card h3 {
  margin: 0 0 8px;
  color: var(--azul);
  font-size: 17px;
  font-weight: 800;
  padding-right: 32px;
  line-height: 1.2;
}
.modal-card .m-body {
  flex: 1;
  overflow-y: auto;
  margin: 0 -22px 12px;
  padding: 0 22px;
}
.modal-card .m-body p {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.modal-card .m-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.modal-card .m-actions.row { flex-direction: row; }
.modal-card .m-actions.row .btn { flex: 1; }
.modal-card .m-hero {
  text-align: center;
  margin: -8px 0 12px;
}
.modal-card .m-hero img { max-height: 110px; margin: 0 auto 8px; }

/* Bottom action sheet variant */
.modal-card.sheet {
  top: auto; bottom: 0;
  left: 0; right: 0;
  width: 100%;
  max-width: none;
  transform: translateY(100%);
  border-radius: 22px 22px 0 0;
  padding-bottom: 26px;
}
.modal-host.open .modal-card.sheet { transform: translateY(0); }
.modal-card.sheet::before {
  content: "";
  display: block;
  width: 40px; height: 4px;
  background: var(--line);
  border-radius: 30px;
  margin: -10px auto 14px;
}
.modal-card .sheet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.modal-card .sheet-item:last-child { border-bottom: 0; }
.modal-card .sheet-item .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--azul-50); color: var(--azul);
  display: grid; place-items: center;
  font-size: 18px;
}
.modal-card .sheet-item .lbl {
  font-size: 14px; font-weight: 700; color: var(--ink); flex: 1;
}

/* Tipo de cita / opciones simétricas con radio + texto */
.tipo-cita-opt {
  flex: 1 1 0;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.tipo-cita-opt input { accent-color: var(--naranja); flex-shrink: 0; }
.tipo-cita-opt:hover { border-color: var(--azul-100); }
.tipo-cita-opt.selected,
.tipo-cita-opt:has(input:checked) {
  background: var(--naranja-50);
  border-color: var(--naranja);
  color: var(--azul);
}

/* Calendly-like time slots */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.slot {
  padding: 8px 4px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: var(--azul);
  background: white;
}
.slot:hover, .slot.selected { background: var(--naranja); color: white; border-color: var(--naranja); }
.slot.disabled { color: var(--muted-2); background: var(--surface-2); pointer-events: none; }

/* ============================================================
   UTILS
   ============================================================ */
.text-azul { color: var(--azul); }
.text-naranja { color: var(--naranja); }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: white; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.font-bold { font-weight: 700; }
.font-extra { font-weight: 800; }
.italic { font-style: italic; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.start { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.small { font-size: 12px; }
.tiny { font-size: 11px; line-height: 1.4; }
.big-title {
  font-size: 22px; font-weight: 800; color: var(--azul);
  margin: 4px 0 12px; letter-spacing: -.3px; line-height: 1.2;
}
.section-eyebrow {
  font-size: 10.5px; color: var(--naranja);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 4px;
}
