/* R-Connect — Fundación R-Community
   Paleta institucional: azul real, amarillo, oro, rojo claro */

:root {
  --blue: #1800AD;
  --blue-deep: #10006F;
  --blue-soft: #EEF0FB;
  --yellow: #FFDE59;
  --yellow-soft: #FFF6C9;
  --red: #E87878;
  --red-logo: #FF3131;
  --red-bg: #FDEEEE;
  --gold: #C8963A;
  --gold-light: #E0A44D;
  --gold-deep: #8A5A1C;
  --gold-line: #E8D7B0;
  --cream: #FFFDF8;
  --ink: #1C1A28;
  --muted: #5A5668;
  --paper: #FFFFFF;
  --silver: #7A8190;
  --silver-bg: #F3F4F7;
  --shadow: 0 10px 30px rgba(16, 0, 111, 0.08);
  --shadow-soft: 0 4px 16px rgba(16, 0, 111, 0.06);
  --radius: 16px;
  --wrap: 1120px;
  --header-h: 78px;
  --font-serif: "Fraunces", "Noto Sans KR", Georgia, serif;
  --font-sans: "Source Sans 3", "Noto Sans KR", "Source Sans Pro", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
strong { font-weight: 700; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}
.skip:focus { left: 8px; top: 8px; }

/* Top color stripe — same as the proposal */
.stripe {
  display: flex;
  height: 8px;
  width: 100%;
}
.stripe span { display: block; height: 8px; }
.stripe .s1 { flex: 28; background: var(--blue); }
.stripe .s2 { flex: 24; background: var(--yellow); }
.stripe .s3 { flex: 24; background: var(--gold); }
.stripe .s4 { flex: 24; background: var(--red); }

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gold-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 56px;
  width: auto;
}
.brand .word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.28rem;
  color: var(--blue);
}
.brand small {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--blue-soft);
  border: 0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 2px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--blue-deep);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch, .lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--silver-bg);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
  flex-shrink: 0;
  gap: 0;
}
.lang-switch button, .lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.lang-switch button[aria-pressed="true"],
.lang-toggle button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(24, 0, 173, 0.22);
}
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-gold {
  background: var(--yellow);
  color: var(--blue-deep);
  border-color: #E0A44D;
  box-shadow: 0 6px 18px rgba(200, 150, 58, 0.32), 0 0 0 1px rgba(255, 49, 49, 0.08);
}
.btn-gold:hover { background: #ffe371; color: var(--blue-deep); }
.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--yellow-soft); color: var(--blue-deep); border-color: var(--gold); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--gold-line);
}
.btn-sm { padding: 7px 12px; font-size: 0.88rem; }
.btn-whatsapp { background: #128C7E; color: #fff; }
.btn-whatsapp:hover { background: #0e7368; color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 92% -4%, rgba(255, 222, 89, 0.78), transparent 34%),
    radial-gradient(circle at 4% 108%, rgba(232, 120, 120, 0.38), transparent 38%),
    radial-gradient(circle at 100% 78%, rgba(200, 150, 58, 0.32), transparent 32%),
    radial-gradient(circle at 38% -12%, rgba(24, 0, 173, 0.16), transparent 42%),
    linear-gradient(165deg, #EEF0FB 0%, #FFFDF8 45%, #FFF6C9 100%);
}
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -56px;
  top: -70px;
  border-radius: 50%;
  background: rgba(255, 222, 89, 0.4);
}
.hero-deco::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  left: -58px;
  bottom: -48px;
  border-radius: 50%;
  border: 20px solid rgba(24, 0, 173, 0.12);
}
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.28;
}
.bubble.b { background: var(--blue); width: 90px; height: 90px; right: 8%; top: 30px; }
.bubble.b2 { background: var(--blue); width: 42px; height: 42px; right: 16%; top: 50px; }
.bubble.y { background: var(--yellow); width: 70px; height: 70px; left: 6%; bottom: 40px; opacity: 0.55; }
.bubble.r { background: var(--red-logo); width: 54px; height: 54px; right: 22%; bottom: 30px; opacity: 0.32; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  color: var(--blue);
  max-width: 18ch;
}
.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--gold-deep);
  margin: 14px 0 8px;
}
.gold-rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 12px 0 18px;
}
.hero .lead {
  max-width: 42em;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.demo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--yellow-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Sections */
main { flex: 1; }
.section {
  padding: 56px 0;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF8E4 100%);
}
.section-alt {
  background: linear-gradient(180deg, #EEF0FB 0%, #F5F6FD 100%);
}
.section h2, .page-head h1 {
  font-family: var(--font-serif);
  font-weight: 650;
  color: var(--blue);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
}
.section .intro, .page-head p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 46em;
}
.page-head {
  padding: 40px 0 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 222, 89, 0.5), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(24, 0, 173, 0.1), transparent 48%),
    linear-gradient(180deg, #EEF0FB 0%, #FFFDF8 100%);
  position: relative;
}

/* Benefit cards */
.grid-3, .grid-4, .grid-2 {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
}
.grid-3 > .card:nth-child(3n+2),
.grid-2 > .card:nth-child(2n) { border-top-color: var(--gold); }
.grid-3 > .card:nth-child(3n+3) { border-top-color: #C01717; }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 650;
  color: var(--blue);
  font-size: 1.2rem;
  margin: 8px 0 8px;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--yellow);
  box-shadow: 0 4px 10px rgba(200, 150, 58, 0.28);
}
.icon-dot.blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(24, 0, 173, 0.28);
}
.icon-dot.gold {
  background: var(--gold);
  color: #1C1A28;
  box-shadow: 0 4px 10px rgba(200, 150, 58, 0.3);
}
.icon-dot.red {
  background: #C01717;
  color: #fff;
  box-shadow: 0 4px 10px rgba(192, 23, 23, 0.28);
}

/* Membership cards */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}
.tier {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-top: 6px solid var(--blue);
  border-radius: 18px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.tier.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.tier h3 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.tier.comunidad {
  border-top-color: var(--blue);
  background: linear-gradient(180deg, #EEF0FB 0%, #fff 34%);
}
.tier.plata {
  border-top-color: #7A8190;
  background: linear-gradient(180deg, #F3F4F7 0%, #fff 34%);
}
.tier.oro {
  border-top-color: var(--gold);
  background: linear-gradient(180deg, #FFF6C9 0%, #fff 34%);
}
.tier.diamante {
  border-top-color: var(--blue);
  background: linear-gradient(180deg, #EEF0FB 0%, #FFF8EA 42%, #fff 70%);
}
.tier.comunidad h3 { color: var(--blue); }
.tier.plata h3 { color: #4A5160; }
.tier.oro h3 { color: var(--gold-deep); }
.tier.diamante h3 { color: var(--blue); }
.tier .price {
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 4px;
  font-size: 1.02rem;
}
.tier . courtesy {
  font-size: 0.86rem;
  color: var(--gold-deep);
  font-weight: 600;
  background: var(--yellow-soft);
  border-radius: 8px;
  padding: 6px 8px;
  margin: 8px 0 12px;
}
.tier ul {
  list-style: none;
  margin: 0 0 16px;
  flex: 1;
}
.tier li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink);
}
.tier li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.badge-free {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}
table.cmp th, table.cmp td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #F3E9D4;
  vertical-align: top;
}
table.cmp thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-align: center;
}
table.cmp thead th.feat {
  text-align: left;
  background: var(--blue-deep);
}
table.cmp tbody th { font-weight: 600; width: 24%; }
table.cmp td { text-align: center; color: var(--muted); }
table.cmp td.yes { color: var(--blue); font-weight: 650; }
table.cmp td.best { color: var(--gold-deep); font-weight: 700; background: #FFF8EA; }
table.cmp tbody tr:hover td, table.cmp tbody tr:hover th { background: #FFFEFA; }
.note {
  margin-top: 20px;
  background: var(--yellow-soft);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 0.95rem;
}
.note.blue {
  background: var(--blue-soft);
  border-left-color: var(--blue);
}

/* Directory */
.dir-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
  margin: 18px 0 40px;
  min-height: 620px;
}
#map {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border-radius: 16px;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  z-index: 1;
}
.filters {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8EA 100%);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-soft);
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.search {
  flex: 1 1 240px;
  position: relative;
}
.search input, .field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--gold-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  border: 1px solid var(--gold-line);
  background: var(--silver-bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.results-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin: 14px 2px 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.biz-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}
.biz-card {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.biz-card:hover, .biz-card.active {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.biz-card.tier-comunidad { border-top: 5px solid var(--blue); border-left: 4px solid var(--blue); }
.biz-card.tier-plata { border-top: 5px solid #7A8190; border-left: 4px solid #7A8190; }
.biz-card.tier-oro { border-top: 5px solid var(--gold); border-left: 4px solid var(--gold); }
.biz-card.tier-diamante { border-top: 5px solid var(--blue); border-left: 4px solid var(--gold); }
.biz-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.biz-card h3 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.08rem;
  color: var(--blue);
  line-height: 1.25;
}
.biz-meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 4px 0 6px;
}
.biz-card p.desc { font-size: 0.92rem; color: var(--ink); margin-bottom: 10px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.example-badge, .tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.example-badge {
  background: var(--yellow);
  color: var(--blue-deep);
}
.tier-badge.comunidad { background: var(--blue-soft); color: var(--blue); }
.tier-badge.plata { background: var(--silver-bg); color: #4A5160; }
.tier-badge.oro { background: var(--yellow-soft); color: var(--gold-deep); }
.tier-badge.diamante { background: var(--blue-soft); color: var(--blue); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* Leaflet pin */
.pin {
  background: transparent;
  border: 0;
}
.pin span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.pin-comunidad span { width: 18px; height: 18px; background: var(--blue); }
.pin-plata span { width: 20px; height: 20px; box-shadow: 0 0 0 2px #8A93A3, 0 2px 8px rgba(0,0,0,0.28); }
.pin-oro span { width: 24px; height: 24px; box-shadow: 0 0 0 3px rgba(200,150,58,0.55), 0 2px 8px rgba(0,0,0,0.28); }
.pin-diamante span {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 0 4px rgba(24, 0, 173, 0.35), 0 2px 10px rgba(0,0,0,0.3);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(24, 0, 173, 0.3), 0 2px 10px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 0 7px rgba(24, 0, 173, 0.08), 0 2px 10px rgba(0,0,0,0.3); }
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  font-family: var(--font-sans);
}
.leaflet-popup-content { margin: 12px 14px; }
.popup-card h3 { font-family: var(--font-serif); color: var(--blue); font-size: 1.05rem; margin-bottom: 4px; }
.popup-card p { margin: 0 0 6px; font-size: 0.88rem; color: var(--muted); }
.popup-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed var(--gold-line);
}

/* Campus */
.course {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.course .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.grid-2 > .course:nth-child(3n+2) .num { background: var(--gold); color: #1C1A28; }
.grid-2 > .course:nth-child(3n+3) .num { background: #C01717; color: #fff; }
.course h3 { margin: 0 0 4px; font-size: 1.08rem; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 8px;
}
.pill.soon {
  background: var(--yellow-soft);
  color: var(--gold-deep);
}

/* Form */
form.registro {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-top: 6px solid var(--blue);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 20px 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.field.full { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.req { color: var(--red-logo); }

/* Events / magazine placeholders */
.timeline, .rev-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.step {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-top: 4px solid var(--blue);
  border-radius: 14px;
  padding: 18px;
}
.rev-flow .step:nth-child(3n+2) { border-top-color: var(--gold); }
.rev-flow .step:nth-child(3n+3) { border-top-color: #C01717; }
.step b {
  display: block;
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* Stats sources */
.source-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.source-list li {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px;
}
.source-list li:nth-child(3n+2) { border-left-color: var(--blue); }
.source-list li:nth-child(3n+3) { border-left-color: #C01717; }
.source-list a { font-weight: 700; }
.construction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-bg);
  color: #8A2A2A;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1800AD 0%, #10006F 72%, #0C0058 100%);
  color: #E8E6F5;
  margin-top: auto;
  padding: 44px 0 22px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, #1800AD 0 25%, #FFDE59 25% 50%, #C8963A 50% 75%, #E87878 75% 100%);
}
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.site-footer h2, .site-footer h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.site-footer p, .site-footer li { font-size: 0.92rem; line-height: 1.5; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0 0 6px; }
.legal {
  border-top: 1px solid rgba(232, 215, 176, 0.25);
  padding-top: 14px;
  font-size: 0.82rem;
  color: #C9C6D8;
}

/* Leaflet credit stays readable */
.leaflet-control-attribution { font-size: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4, .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .tier.featured { transform: none; }
  .dir-layout { grid-template-columns: 1fr; }
  #map { min-height: 360px; height: 360px; }
  .biz-list { max-height: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .header-actions .btn-register { display: none; }
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--gold-line);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow);
    gap: 2px;
    z-index: 20;
  }
  .site-header.is-open .site-nav a { padding: 10px 12px; white-space: normal; }
  .site-header.is-open .btn-register-mobile {
    display: inline-flex !important;
    margin-top: 10px;
    align-self: flex-start;
  }
}
@media (max-width: 780px) {
  .grid-3, .grid-2, form.registro, .rev-flow { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero { padding: 36px 0 42px; }
  .section { padding: 40px 0; }
  .lang-switch button, .lang-toggle button { padding: 5px 7px; font-size: 0.68rem; }
}
@media (max-width: 780px) {
  .page-head { padding: 22px 0 4px; }
  .page-head p { font-size: 0.95rem; }
  .demo-banner { font-size: 0.8rem; line-height: 1.35; }
  .filters { padding: 12px; }
  .dir-layout { margin-top: 10px; }
  #map { min-height: 300px; height: 300px; }
  .bubble.b2 { display: none; }
  .hero-deco { opacity: 0.65; }
}
@media (max-width: 560px) {
  .grid-4, .tier-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  form.registro { padding: 18px; }
  .hero-actions .btn { width: 100%; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn-register-mobile { display: none !important; }

/* Korean typography and line breaking */
html[lang="ko"] {
  word-break: keep-all;
  line-height: 1.65;
}
html[lang="ko"] body {
  font-family: "Noto Sans KR", "Source Sans 3", sans-serif;
}
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .brand strong,
html[lang="ko"] .tagline,
html[lang="ko"] .kicker {
  font-family: "Noto Sans KR", "Fraunces", sans-serif;
  letter-spacing: -0.02em;
}
html[lang="ko"] .tagline { font-style: normal; }

/* Keep long labels from breaking cards or the header */
.biz-card h3, .tier li, .card p, .hero .lead, .page-head p, .demo-banner {
  overflow-wrap: anywhere;
}
html[lang="ko"] .biz-card h3,
html[lang="ko"] .tier li,
html[lang="ko"] .card p,
html[lang="ko"] .hero .lead,
html[lang="ko"] .page-head p,
html[lang="ko"] .demo-banner {
  overflow-wrap: normal;
}
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
.example-badge, .tier-badge { max-width: 100%; }
table.cmp th, table.cmp td { overflow-wrap: anywhere; }
html[lang="ko"] table.cmp th, html[lang="ko"] table.cmp td { overflow-wrap: normal; word-break: keep-all; }

/* Category colors — chips and map pins share the same accent */
.chip-cat-all[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.chip-cat-restaurantes { background: #FDEEEE; color: #8A1818; border-color: #E8B4B4; }
.chip-cat-restaurantes[aria-pressed="true"] { background: #C01717; color: #fff; border-color: #C01717; }
.chip-cat-plomeros { background: #EEF0FB; color: #1800AD; border-color: #C5CAEE; }
.chip-cat-plomeros[aria-pressed="true"] { background: #1800AD; color: #fff; border-color: #1800AD; }
.chip-cat-carpinteros { background: #F8EFD9; color: #6B4514; border-color: #E8D7B0; }
.chip-cat-carpinteros[aria-pressed="true"] { background: #8A5A1C; color: #fff; border-color: #8A5A1C; }
.chip-cat-electricistas { background: #FFF6C9; color: #5C4700; border-color: #E8D48A; }
.chip-cat-electricistas[aria-pressed="true"] { background: #FFDE59; color: #10006F; border-color: #C8963A; }
.chip-cat-salones-de-belleza { background: #FDEEEE; color: #8A2A3A; border-color: #E8B4BE; }
.chip-cat-salones-de-belleza[aria-pressed="true"] { background: #B33A4A; color: #fff; border-color: #B33A4A; }
.chip-cat-mecanicos { background: #E8E6F8; color: #10006F; border-color: #C5C0E8; }
.chip-cat-mecanicos[aria-pressed="true"] { background: #10006F; color: #fff; border-color: #10006F; }
.chip-cat-limpieza { background: #FFF6C9; color: #6B5200; border-color: #E8D48A; }
.chip-cat-limpieza[aria-pressed="true"] { background: #E0A44D; color: #1C1A28; border-color: #C8963A; }
.chip-cat-construccion { background: #F4E6C5; color: #5C3A10; border-color: #E8D7B0; }
.chip-cat-construccion[aria-pressed="true"] { background: #7A4A12; color: #fff; border-color: #7A4A12; }
.chip-cat-tiendas { background: #FFF3D1; color: #7A4A00; border-color: #E8C96A; }
.chip-cat-tiendas[aria-pressed="true"] { background: #C8963A; color: #1C1A28; border-color: #8A5A1C; }
.chip-cat-servicios-profesionales { background: #EEF0FB; color: #1800AD; border-color: #C5CAEE; }
.chip-cat-servicios-profesionales[aria-pressed="true"] { background: #1800AD; color: #fff; border-color: #1800AD; }

.pin.pin-cat-restaurantes span { background: #C01717; }
.pin.pin-cat-plomeros span { background: #1800AD; }
.pin.pin-cat-carpinteros span { background: #8A5A1C; }
.pin.pin-cat-electricistas span { background: #E0A44D; }
.pin.pin-cat-salones-de-belleza span { background: #B33A4A; }
.pin.pin-cat-mecanicos span { background: #10006F; }
.pin.pin-cat-limpieza span { background: #E0A44D; }
.pin.pin-cat-construccion span { background: #7A4A12; }
.pin.pin-cat-tiendas span { background: #C8963A; }
.pin.pin-cat-servicios-profesionales span { background: #1800AD; }

/* A bit more life on inner pages */
.filters-row #near-me { border-color: var(--gold); }
#map { border-color: var(--gold-line); box-shadow: var(--shadow); }
.demo-banner {
  box-shadow: 0 2px 8px rgba(200, 150, 58, 0.15);
}
.note.blue { background: var(--blue-soft); }
