/* ========================================
   CONEXIÓN ATX — Shared Styles
   Mobile-first, app-feel, modern
   ======================================== */

:root {
  /* Brand palette */
  --teal: #0E7C7B;
  --teal-dark: #075957;
  --teal-light: #E6F2F1;
  --pink: #E4007C;
  --pink-dark: #B8005F;
  --pink-light: #FCE7F3;
  --gold: #F2A900;
  --gold-light: #FEF3C7;
  --gold-dark: #92400E;
  --cream: #FBF8F3;
  --navy: #1A2E40;

  /* Neutrals */
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --gray-soft: #F3F4F6;
  --white: #FFFFFF;
  --green: #16A34A;
  --red: #DC2626;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(26, 46, 64, 0.06);
  --shadow: 0 4px 16px rgba(26, 46, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 46, 64, 0.12);
  --shadow-xl: 0 24px 48px rgba(26, 46, 64, 0.16);

  /* Layout */
  --bottom-nav: 72px;
  --bottom-cta: 80px;
  --topnav: 60px;
  --maxw: 720px;
  --maxw-wide: 1180px;
}

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

html { scroll-behavior: smooth; }

/* Brand-colored text selection */
::selection { background: rgba(14, 124, 123, 0.22); color: var(--navy); }

/* Slim, soft scrollbar on desktop (WebKit) */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: #C3CECC;
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover { background: #9DAFAD; background-clip: content-box; border: 3px solid transparent; }
}

/* ========================================
   ACCESSIBILITY (WCAG 2.2)
   ======================================== */

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip to content link — keyboard users press Tab on first load */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Strong focus styles for keyboard users */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Ensure all interactive elements meet WCAG 2.2 minimum target size (24×24 AA, 44×44 AAA) */
button, a, input[type="button"], input[type="submit"], [role="button"] {
  min-height: 24px;
  min-width: 24px;
}

/* Visually hide but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  min-height: 100vh;
}

body.has-bottomnav { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0)); }
body.has-cta { padding-bottom: calc(var(--bottom-cta) + env(safe-area-inset-bottom, 0)); }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; font-optical-sizing: auto; }

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

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

input, textarea, select, button { font-family: inherit; font-size: inherit; }
/* Prevent iOS Safari auto-zoom on input focus — base size 16px+ */
input, textarea, select { font-size: 16px; }

/* ========================================
   TOP NAV
   ======================================== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  padding-top: env(safe-area-inset-top, 0);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
}

.topnav.transparent {
  background: transparent;
  border-bottom: none;
  position: fixed;
  left: 0; right: 0;
  transition: background 0.25s, backdrop-filter 0.25s;
}

.topnav.transparent.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: 0 4px 20px -8px rgba(26, 46, 64, 0.12);
}

/* Brand + actions colors when nav is transparent over dark hero */
.topnav.transparent .brand-text {
  color: white;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: color 0.25s, text-shadow 0.25s;
}
.topnav.transparent .brand-text .accent { color: var(--gold); }
.topnav.transparent .icon-btn {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  transition: background 0.25s, color 0.25s;
}
.topnav.transparent .icon-btn:hover { background: rgba(255, 255, 255, 0.28); }
.topnav.transparent .lang-toggle {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s;
}
.topnav.transparent .lang-toggle button,
.topnav.transparent .lang-toggle a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.topnav.transparent .lang-toggle .active { background: white; color: var(--teal); }

/* Scrolled — revert to default colors */
.topnav.transparent.scrolled .brand-text {
  color: var(--navy);
  text-shadow: none;
}
.topnav.transparent.scrolled .brand-text .accent { color: var(--pink); }
.topnav.transparent.scrolled .icon-btn {
  background: var(--gray-soft);
  color: var(--navy);
}
.topnav.transparent.scrolled .lang-toggle { background: var(--gray-soft); }
.topnav.transparent.scrolled .lang-toggle button,
.topnav.transparent.scrolled .lang-toggle a { color: var(--gray); }
.topnav.transparent.scrolled .lang-toggle .active {
  background: white;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--navy);
}

.brand-text .accent { color: var(--pink); }

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   LANG TOGGLE
   ======================================== */

.lang-toggle {
  display: inline-flex;
  background: var(--gray-soft);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button, .lang-toggle a {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--gray);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

.lang-toggle .active {
  background: var(--white);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   BUTTONS
   ======================================== */

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gray-soft);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  flex-shrink: 0;
}
.icon-btn:active { background: var(--gray-light); }

.icon-btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.icon-btn-circle:active { transform: scale(0.94); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  text-decoration: none;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, #C4006B 100%);
  color: white;
  box-shadow: 0 4px 14px -4px rgba(228, 0, 124, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(228, 0, 124, 0.5); }
.btn-primary:active { background: var(--pink-dark); transform: scale(0.98); box-shadow: 0 3px 10px -4px rgba(228, 0, 124, 0.4); }

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px -4px rgba(14, 124, 123, 0.4);
}
.btn-teal:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(14, 124, 123, 0.5); }
.btn-teal:active { background: var(--teal-dark); transform: scale(0.98); box-shadow: 0 3px 10px -4px rgba(14, 124, 123, 0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-light);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: rgba(14, 124, 123, 0.04); }
.btn-outline:active { border-color: var(--teal); color: var(--teal); }

.btn-ghost {
  background: var(--gray-soft);
  color: var(--navy);
}

.btn-block { width: 100%; }

/* ========================================
   PILLS / TAGS
   ======================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill-teal { background: var(--teal-light); color: var(--teal-dark); }
.pill-pink { background: var(--pink-light); color: var(--pink); }
.pill-gold { background: var(--gold-light); color: var(--gold-dark); }
.pill-gray { background: var(--gray-soft); color: var(--navy); }
.pill-glass {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.tag {
  font-size: 11.5px;
  background: var(--gray-soft);
  color: var(--navy);
  padding: 5px 10px;
  border-radius: 7px;
  font-weight: 500;
}
.tag.es { background: var(--pink-light); color: var(--pink); font-weight: 600; }
.tag.verified { background: var(--gold-light); color: var(--gold-dark); font-weight: 600; }

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 32px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-wide { max-width: var(--maxw-wide); }

.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 24px;
  margin-bottom: 4px;
}
.section-head p { color: var(--gray); font-size: 14px; }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head-row a {
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.section-head-row > div { min-width: 0; flex: 1 1 220px; }
@media (max-width: 480px) {
  .section-head-row { gap: 8px; }
  .section-head-row a { font-size: 13px; }
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 18px;
  padding: 22px;
}
.card-tight { padding: 16px; }
.card-soft {
  background: linear-gradient(135deg, var(--teal-light), var(--cream));
  border-color: var(--teal-light);
}

.card h2 { font-size: 20px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.card p { color: var(--navy); line-height: 1.65; font-size: 15px; }

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  padding: 32px 20px 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(8px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 240px; height: 240px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(12px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.hero h1 .highlight { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* ========================================
   SEARCH CARD
   ======================================== */

.search-card {
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.search-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
}
.search-row + .search-row { border-top: 1px solid var(--gray-light); }
.search-row svg { color: var(--gray); flex-shrink: 0; }
.search-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
  color: var(--navy);
  background: transparent;
  width: 100%;
}
.search-row input::placeholder { color: var(--gray); }

.search-btn {
  background: var(--pink);
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-btn:active { background: var(--pink-dark); transform: scale(0.99); }

/* Geolocation button — inside search Where field */
.loc-btn {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  font-family: inherit;
}
.loc-btn:hover { background: var(--teal); color: white; }
.loc-btn:active { transform: scale(0.95); }
.loc-btn svg { width: 18px; height: 18px; stroke-width: 2; }
.loc-btn.loading svg { animation: spin 0.8s linear infinite; }
.loc-btn.located { background: #DCFCE7; color: #16A34A; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Address autocomplete dropdown (used inside .hh-search-row) */
.hh-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: -2px;
  right: -2px;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(26, 46, 64, 0.18);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  text-align: left;
}
.hh-suggest.show { display: block; }
.hh-suggest-item {
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.1s;
}
.hh-suggest-item:last-child { border-bottom: none; }
.hh-suggest-item:hover, .hh-suggest-item.active { background: var(--cream); }
.hh-suggest-icon { color: var(--gray); flex-shrink: 0; margin-top: 2px; }
.hh-suggest-text { flex: 1; min-width: 0; }
.hh-suggest-primary {
  font-size: 14px; font-weight: 600; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hh-suggest-secondary {
  font-size: 12.5px; color: var(--gray);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.hh-suggest-empty, .hh-suggest-loading {
  padding: 14px 16px;
  color: var(--gray);
  font-size: 13.5px;
  text-align: center;
}
.hh-suggest-loading::before {
  content: ''; display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--gray-light);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

/* Reusable horizontal chip slider — wrap a chip bar with [data-slider]
   and put [data-slider-track] on the scroller inside. JS in slider.js
   adds drag/wheel handlers + toggles data-scrolled / data-end. */
[data-slider] {
  position: relative;
  overflow: hidden;
}
[data-slider]::before, [data-slider]::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}
[data-slider]::before {
  left: 0;
  background: linear-gradient(to right, var(--slider-bg, white) 35%, rgba(255,255,255,0));
  opacity: 0;
}
[data-slider]::after {
  right: 0;
  /* Chevron + fade gradient. Chevron uses brand teal at full saturation but
     small (10px) so it reads as a hint, not chrome. Hidden when scrolled to end. */
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C7B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") right 10px center / 10px no-repeat,
    linear-gradient(to left, var(--slider-bg, white) 35%, rgba(255,255,255,0));
  opacity: 1;
}
[data-slider][data-scrolled="true"]::before { opacity: 1; }
[data-slider][data-end="true"]::after { opacity: 0; }
[data-slider] [data-slider-track] {
  scroll-snap-type: x proximity;
  cursor: grab;
}
[data-slider] [data-slider-track].dragging {
  cursor: grabbing;
  user-select: none;
}
[data-slider] [data-slider-track] > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Geolocation status toast */
.geo-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  max-width: 90vw;
  text-align: center;
}
.geo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.geo-toast.error { background: var(--red); }
.geo-toast.success { background: var(--green); }

/* ========================================
   STATS GRID (glass on hero)
   ======================================== */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.hero-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: 11px; opacity: 0.92; line-height: 1.2; }

/* ========================================
   CATEGORIES
   ======================================== */

.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cat {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.cat:active { transform: scale(0.97); background: var(--cream); }
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cat-icon.pink { background: var(--pink-light); }
.cat-icon.gold { background: var(--gold-light); }
.cat-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}
.cat-count { font-size: 11px; color: var(--gray); }

/* ========================================
   LISTING CARDS
   ======================================== */

.listings {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.listing {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.2s;
  display: block;
}
.listing:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing:active { transform: scale(0.98); }
.listing-image {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--teal-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.listing-image.pink { background: linear-gradient(135deg, #FCE7F3, #FBF8F3); }
.listing-image.gold { background: linear-gradient(135deg, #FEF3C7, #FBF8F3); }
.listing-image.gradient { background: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%); color: white; }
.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--teal);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.listing-badge.featured { background: var(--pink); color: white; }
.listing-badge.promo { background: var(--gold); color: var(--navy); }

.listing-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
}
.listing-body { padding: 16px; }
.listing-cat {
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.listing-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.listing-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.listing-rating .stars { color: var(--gold); letter-spacing: -1px; }
.listing-rating .num { font-weight: 600; }
.listing-rating .reviews { color: var(--gray); }
.listing-meta {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 12px;
}
.listing-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========================================
   PROMO CARDS (for promos page + carousel)
   ======================================== */

.promo {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 18px;
  overflow: hidden;
  display: block;
  transition: all 0.2s;
  position: relative;
}
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo:active { transform: scale(0.98); }
.promo.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(242, 169, 0, 0.18);
}
.promo.featured:hover { box-shadow: 0 16px 36px rgba(242, 169, 0, 0.3); }
/* El ícono de la promo crece sutilmente con el hover de la card */
.promo-icon { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
.promo:hover .promo-icon { transform: scale(1.12); }
.promo-image img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
.promo:hover .promo-image img { transform: scale(1.05); }
.promo-image {
  height: 120px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.promo-image::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.promo-image > * { position: relative; z-index: 1; }
.promo-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Emoji suelto como ilustración de la promo — tamaño display, no texto */
.promo-image > span { font-size: 44px; line-height: 1; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
.promo:hover .promo-image > span { transform: scale(1.12); }
.promo-icon {
  width: 40px; height: 40px;
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
  color: rgba(255,255,255,0.95);
}
.resource-icon {
  width: 36px; height: 36px;
  stroke-width: 1.5;
  color: var(--teal-dark);
}
.promo-image.teal { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.promo-image.gold { background: linear-gradient(135deg, var(--gold), #D97706); }
.promo-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: var(--pink);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow);
}
.promo-tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.promo-body { padding: 16px; }
.promo-business {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.promo-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.promo-desc {
  color: var(--gray);
  font-size: 13.5px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.promo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
}
.promo-validity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   CAROUSEL (horizontal scroll)
   ======================================== */

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * {
  flex: 0 0 80%;
  max-width: 320px;
  scroll-snap-align: start;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-label .req { color: var(--pink); margin-left: 2px; }
.form-hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  background: white;
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
  color: var(--navy);
  font-family: inherit;
  transition: border 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.12);
}
.form-control::placeholder { color: var(--gray); }

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  cursor: pointer;
}
.checkbox-row:hover { border-color: var(--teal); }
.checkbox-row input { margin-top: 2px; }
.checkbox-row .cb-text { font-size: 14px; }
.checkbox-row .cb-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ========================================
   PRICING TIERS
   ======================================== */

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tier {
  border: 2px solid var(--gray-light);
  border-radius: 18px;
  padding: 22px;
  background: white;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.tier:hover { border-color: var(--teal-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.tier.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.12);
}
.tier.recommended {
  border-color: var(--pink);
}
.tier.recommended::before {
  content: 'Recomendado';
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--pink);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tier-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tier-tagline { color: var(--gray); font-size: 13px; margin-bottom: 14px; }
.tier-price {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1;
}
.tier-price .unit { font-size: 14px; color: var(--gray); font-weight: 500; font-family: 'Inter', sans-serif; }
.tier-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.tier-features li {
  padding: 6px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.tier-features li.no::before { content: '×'; color: var(--gray-light); }
.tier-features li.no { color: var(--gray); }

/* ========================================
   STATS / DASHBOARD
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 16px;
}
.stat-card-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-card-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-card-trend {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}
.stat-card-trend.up { color: var(--green); }
.stat-card-trend.down { color: var(--red); }

/* ========================================
   BOTTOM NAV (app feel)
   ======================================== */

.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--gray-light);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottomnav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
}
.bn-item {
  background: none;
  border: none;
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--gray);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.bn-item.active { color: var(--teal); }
.bn-item svg { width: 22px; height: 22px; stroke-width: 2; }
.bn-label { font-size: 10.5px; font-weight: 600; }

/* ========================================
   STICKY BOTTOM CTA
   ======================================== */

.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--gray-light);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  display: flex;
  gap: 10px;
  z-index: 100;
}

/* ========================================
   ALERTS & BANNERS
   ======================================== */

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.alert-info {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.alert-success {
  background: #DCFCE7;
  color: #14532D;
}
.alert-warning {
  background: var(--gold-light);
  color: var(--gold-dark);
}

/* ========================================
   DESKTOP ENHANCEMENTS
   ======================================== */

@media (min-width: 768px) {
  .hero { padding: 56px 24px 110px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 17px; }
  .search-card { display: flex; padding: 8px; }
  .search-row { flex: 1; }
  .search-row + .search-row { border-top: none; border-left: 1px solid var(--gray-light); }
  .search-btn { width: auto; margin-top: 0; padding: 14px 28px; }
  .hero-stat-num { font-size: 28px; }
  .section { padding: 48px 24px; max-width: var(--maxw-wide); }
  .categories { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .cat { flex-direction: column; text-align: center; padding: 22px 16px; gap: 12px; }
  .cat-icon { width: 56px; height: 56px; font-size: 26px; }
  .listings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .carousel > * { flex: 0 0 calc(33.333% - 12px); }
}

@media (min-width: 1024px) {
  .listings { grid-template-columns: repeat(3, 1fr); }
  .carousel > * { flex: 0 0 calc(25% - 12px); }
}

/* ========================================
   ACCESIBILIDAD: focus visible para keyboard navigation
   Solo activo cuando el usuario navega con Tab (no en clicks).
   ======================================== */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
}
/* Smooth scroll para anclas */
html { scroll-behavior: smooth; }

/* ========================================
   SKELETON LOADERS: placeholder mientras cargan datos
   Pulse suave que comunica "cargando" sin texto.
   ======================================== */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.skel {
  background: linear-gradient(90deg, #EEF2F1 0%, #E0E6E5 50%, #EEF2F1 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  overflow: hidden;
}
.skel-card-img { aspect-ratio: 16/10; }
.skel-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.skel-line { height: 12px; }
.skel-line.w-70 { width: 70%; }
.skel-line.w-50 { width: 50%; }
.skel-line.w-90 { width: 90%; }

/* ========================================
   FADE-IN CON STAGGER: cards aparecen suavemente al cargar
   Aplica .fade-in al contenedor padre.
   ======================================== */
@keyframes card-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in > * {
  animation: card-rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.fade-in > *:nth-child(1) { animation-delay: 0.02s; }
.fade-in > *:nth-child(2) { animation-delay: 0.06s; }
.fade-in > *:nth-child(3) { animation-delay: 0.10s; }
.fade-in > *:nth-child(4) { animation-delay: 0.14s; }
.fade-in > *:nth-child(5) { animation-delay: 0.18s; }
.fade-in > *:nth-child(6) { animation-delay: 0.22s; }
.fade-in > *:nth-child(7) { animation-delay: 0.26s; }
.fade-in > *:nth-child(8) { animation-delay: 0.30s; }
.fade-in > *:nth-child(9) { animation-delay: 0.34s; }
.fade-in > *:nth-child(n+10) { animation-delay: 0.38s; }

/* Respeta a usuarios con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in > * { animation: none; }
  .skel { animation: none; }
}

/* ========================================
   BACK TO TOP: botón flotante que aparece al scrolear
   Activado vía JS cuando window.scrollY > 400.
   ======================================== */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px -6px rgba(14, 124, 123, 0.6), 0 4px 8px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.15s;
  z-index: 70;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--teal-dark); }

/* ========================================
   EMPTY STATE: cuando no hay resultados
   Más visual que solo texto.
   ======================================== */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: white;
  border: 1px dashed var(--gray-light);
  border-radius: 18px;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-state h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--gray);
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto 18px;
  line-height: 1.5;
}
.empty-state-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.empty-state-suggestions button {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.empty-state-suggestions button:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}

/* ========================================
   SITE FOOTER (compacto, para todas las páginas internas)
   El footer grande "home-footer" sigue siendo solo de la portada.
   ======================================== */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 36px 20px 24px;
  margin-top: 40px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.15s, transform 0.15s; }
.site-footer a:hover { color: white; }
.site-footer-links a { display: inline-block; }
.site-footer-links a:hover { transform: translateX(2px); }
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer-brand .brand { display: inline-flex; align-items: center; gap: 8px; }
.site-footer-brand .brand-mark { width: 30px; height: 30px; }
.site-footer-brand .brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: white;
}
.site-footer-brand .brand-text .accent { color: var(--pink); }
.site-footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 360px;
  margin-top: 8px;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 14px;
  font-weight: 500;
}
.site-footer-lang {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.site-footer-lang a {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  transition: background 0.15s;
}
.site-footer-lang a:hover { background: rgba(255, 255, 255, 0.16); }
.site-footer-bottom {
  max-width: 1180px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer-bottom a { font-size: 12px; }
.site-footer-bottom .legal {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer-bottom .legal a { color: rgba(255, 255, 255, 0.7); }
.site-footer-bottom .legal a:hover { color: white; }

@media (min-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: start;
  }
}

/* ========================================
   REVEAL ON SCROLL (reveal.js)
   La clase .rv la añade JS al cargar — sin JS nada queda
   oculto (progressive enhancement). El stagger viene de
   --rv-delay que el script calcula según la posición.
   ======================================== */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--rv-delay, 0s);
}
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
