/* ============================================================
   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 h2.hero-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-inline-logo {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(2px);
}
.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;
}
@media (max-width: 900px) {
  /* No simulated status bar at this size — drop the desktop spacer. */
  .drawer-header { padding-top: calc(env(safe-area-inset-top, 0px) + 16px); }
}
.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; }

