/* Landing page, after doc/design-example-1.html. */

.landing {
  --primary: #00362d;
  --primary-2: #124e43;
  --surface: #f8faf8;
  --low: #f2f4f2;
  --mid: #eceeec;
  --high: #e6e9e7;
  --white: #fff;
  --on: #191c1b;
  --on-2: #404946;
  --mint: #beecdf;
  --mint-ink: #234e44;
  --go: #6c3800;
  --go-hover: #4b2500;
  background: var(--surface);
  color: var(--on);
  font-size: 1rem;
}
.landing h1, .landing h2, .landing h3 { font-weight: 800; }
.landing .flash { margin: 1rem; }

.lwrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.lsec { padding-top: 2rem; padding-bottom: 2rem; scroll-margin-top: 4rem; }
.lsec-title { font-size: 2rem; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.lsec-sub { color: var(--on-2); margin: .25rem 0 2rem; }

.ico { width: 1.25rem; height: 1.25rem; flex: none; }

/* Navbar */
.landing .nav { position: sticky; top: 0; z-index: 10; background: var(--white); color: var(--on); box-shadow: 0 1px 8px rgba(0, 0, 0, .06); }
.landing .nav-in { max-width: 80rem; }
.landing .nav-brand { display: flex; align-items: center; gap: .6rem; color: var(--primary); font: 800 1.25rem var(--display); }
.landing .logo { flex: none; width: 2.25rem; height: 2.25rem; }
.landing .nav-links { align-items: center; gap: .25rem; }
.landing .nav-links a {
  padding: .5rem .85rem;
  border: 0;
  border-radius: 999px;
  color: var(--on-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: .875rem;
  font-weight: 600;
}
.landing .nav-links a:hover { background: var(--high); color: var(--on); }
.landing .nav-links a:nth-last-child(2) { color: var(--primary); box-shadow: inset 0 0 0 1px rgba(0, 54, 45, .2); margin: 0 .35rem; }
.landing .nav-links a:last-child { background: var(--primary); color: #fff; }
.landing .nav-links a:last-child:hover { background: var(--primary-2); }

@media (max-width: 47.99rem) {
  .landing .nav-links { width: auto; order: 0; padding: 0; }
  /* Entrar and Crear cuenta (or Publicar and Mi panel, logged in). */
  .landing .nav-links a:not(:nth-last-child(-n+2)) { display: none; }
  .landing .nav-links a { padding: .45rem .7rem; }
}

.landing .nav-search { color: var(--primary); }
.landing .nav-search:hover { background: var(--high); }

/* Hero */
.lhero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40rem;
  overflow: hidden;
  background: var(--primary);
  isolation: isolate;
}
.lhero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  mix-blend-mode: luminosity;
  transform: scale(1.05);
}
.lhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--primary), rgba(0, 54, 45, .8) 50%, rgba(0, 54, 45, .6));
}
.lhero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  padding: 3rem 1rem;
  text-align: center;
}
.lhero h1 { color: #fff; }
.landing h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1rem; }
.lhero-lead { max-width: 42rem; color: var(--high); font-size: 1.125rem; line-height: 1.55; margin: 0 0 2.5rem; }

.lbadge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--primary-2);
  color: var(--mint);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.lbadge-sm { padding: .25rem .75rem; margin-bottom: .75rem; font-size: .75rem; }
.lbadge-light { background: var(--mint); color: var(--mint-ink); }

/* Search bar */
.lsearch {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  width: 100%;
  max-width: 56rem;
  padding: .6rem;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  text-align: left;
}
.lsearch-seg { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; color: var(--primary); }
.lsearch-seg + .lsearch-seg { border-top: 1px solid var(--high); }
.lsearch-seg > div { flex: 1; min-width: 0; }
.lsearch-seg .ico { width: 1.5rem; height: 1.5rem; }
.lsearch label { display: block; margin: 0; color: var(--on-2); font-size: .75rem; font-weight: 600; line-height: 1.3; }
.lsearch input[type="search"], .lsearch input[type="text"] {
  display: block;
  width: 100%;
  min-height: 0;
  padding: .1rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--on);
  font-size: 1rem;
  text-overflow: ellipsis;
}
.lsearch input:focus { outline: 0; }
.lsearch-seg:focus-within { border-radius: .75rem; outline: 2px solid var(--primary); outline-offset: -2px; }
.lsearch-where { display: flex; justify-content: space-between; gap: .5rem; }
.lsearch-geo { padding: 0; border: 0; background: none; color: #3c665c; font-size: .75rem; font-weight: 600; text-decoration: underline; cursor: pointer; white-space: nowrap; }

.lbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease-out;
}
.lbtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lbtn-go { min-height: 3.5rem; padding: .75rem 1.75rem; background: var(--go); color: #fff; font-size: 1.125rem; }
.lbtn-go:hover { background: var(--go-hover); }
.lbtn-main { flex: 1; background: var(--primary); color: #fff; }
.lbtn-main:hover { background: var(--primary-2); }
.lbtn-wa { flex: 1; background: var(--mint); color: var(--mint-ink); }
.lbtn-wa:hover { background: #a3d0c3; }
.lbtn-soft { background: var(--mid); color: var(--primary); }
.lbtn-soft:hover { background: var(--high); }
.lbtn-white { min-height: 3.5rem; padding: .75rem 1.75rem; background: var(--white); color: var(--primary); font-size: 1.125rem; }
.lbtn-white:hover { background: var(--mid); }

.tries { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 1.5rem 0 0; color: var(--high); font-size: .8125rem; font-weight: 600; }
.tries a { padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; text-decoration: none; }
.tries a:hover { background: rgba(255, 255, 255, .25); }

/* Categories */
.lsec-kicker { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; color: #3c665c; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lsec-kicker::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: var(--go); }
.lcats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lcats a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 10rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--white);
  color: var(--on);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: background-color .2s ease-out, box-shadow .2s ease-out;
}
.lcats a:hover { background: var(--mid); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.lcats a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lcats-ico { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .75rem; background: #d8f2ea; color: var(--primary); transition: transform .2s ease-out; }
.lcats a:nth-child(even) .lcats-ico { background: #ffdcc3; color: var(--go); }
.lcats a:hover .lcats-ico { transform: scale(1.05); }
.lcats-ico .ico { width: 1.625rem; height: 1.625rem; }
.lcats strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.125rem; line-height: 1.3; }
.lcats span span { color: var(--on-2); font-size: .8125rem; }

.lsec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.lsec-head .lsec-sub { margin: .25rem 0 0; }
.lsec-head a { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-size: .875rem; font-weight: 600; text-decoration: none; }
.lsec-head a:hover { color: var(--primary-2); text-decoration: underline; text-underline-offset: .2em; }
.lsec-head .ico { width: 1.125rem; height: 1.125rem; }

/* All categories */
.lcatpage h1 { margin: 0 0 .25rem; font-size: clamp(2rem, 5vw, 3rem); }
.lcatpage-list { display: grid; gap: 1rem; margin-top: 2rem; }
.lcatpage-item { padding: 1.25rem; border-radius: 1rem; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.lcatpage-item:nth-child(even) .lcats-ico { background: #ffdcc3; color: var(--go); }
.lcatpage-top { display: flex; align-items: center; gap: 1rem; color: var(--on); text-decoration: none; }
.lcatpage-top:hover strong { color: var(--primary); text-decoration: underline; }
.lcatpage-top strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.lcatpage-top span span { color: var(--on-2); font-size: .8125rem; }
.lcatpage-item ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.lcatpage-item li a { display: inline-block; padding: .4rem .85rem; border-radius: 999px; background: var(--mid); color: var(--on); font-size: .875rem; font-weight: 600; text-decoration: none; }
.lcatpage-item li a:hover { background: var(--high); color: var(--primary); }
.lcatpage-item li span { color: var(--on-2); font-weight: 400; }

/* How it works */
.how { padding: 2rem 1.25rem; border-radius: 1.5rem; background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(0, 54, 45, .18); }
.how-top { max-width: 48rem; margin-bottom: 2rem; }
.how h2 { color: #fff; font-size: 2rem; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.how-top > p:last-child { color: var(--high); margin: .5rem 0 0; }
.how-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how-steps li {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--primary-2);
  counter-increment: step;
}
.how-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #ffdcc3;
  color: var(--go);
  font: 800 1.25rem var(--display);
}
.how-steps li:nth-child(2)::before { background: var(--mint); color: var(--primary); }
.how-steps h3 { color: #fff; font-size: 1.25rem; line-height: 1.35; margin: 0 0 .5rem; }
.how-steps p { color: var(--high); margin: 0; }
.how-steps .how-note { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.5rem; color: var(--mint); font-size: .8125rem; font-weight: 600; }

/* Business cards */
.biz { display: grid; gap: 1.5rem; }
.biz article { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.5rem; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: box-shadow .2s ease-out; }
.biz article:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
.biz-photo { position: relative; display: block; height: 14rem; overflow: hidden; }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.biz article:hover .biz-photo img { transform: scale(1.04); }
.ltag { position: absolute; top: .9rem; left: .9rem; display: inline-flex; align-items: center; gap: .25rem; max-width: 42%; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--primary); font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltag .ico { width: .9rem; height: .9rem; }
.ltag-status { left: auto; right: .9rem; max-width: 56%; background: var(--mint); color: var(--primary); }
.biz-text { flex: 1; padding: 1.25rem 1.5rem .5rem; }
.biz-text h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 .25rem; }
.biz-text h3 a { color: inherit; text-decoration: none; }
.biz-text h3 a:hover { color: var(--primary); }
.biz-text p { color: var(--on-2); font-size: .875rem; line-height: 1.4; margin: 0; }
.biz-act { display: flex; gap: .5rem; padding: .5rem 1.5rem 1.5rem; }

/* For businesses */
.join { display: flex; flex-direction: column; gap: 2rem; padding: 2rem 1.25rem; border-radius: 1.5rem; background: var(--high); }
.join h2 { font-size: 2rem; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.join-lead { color: var(--on-2); font-size: 1.125rem; line-height: 1.55; margin: .75rem 0 0; max-width: 42rem; }
.join-lead strong { color: var(--primary); }
.perks { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: flex-start; gap: .6rem; }
.perks .ico { width: 1.75rem; height: 1.75rem; padding: .3rem; border-radius: 50%; background: var(--primary); color: #fff; }
.perks strong { display: block; font-size: .875rem; }
.perks span { display: block; color: var(--on-2); font-size: .8125rem; line-height: 1.35; }
.join-act { display: flex; flex-direction: column; gap: .75rem; }

/* Footer */
.lfoot { margin-top: 3rem; padding: 3rem 0 2rem; background: var(--low); color: var(--on-2); }
.lfoot-grid { display: grid; gap: 2rem; }
.lfoot-brand { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; color: var(--primary); font: 800 1.25rem var(--display); }
.lfoot-grid p { max-width: 24rem; margin-bottom: 0; }
.lfoot h2 { margin: 0 0 .75rem; font-size: .875rem; font-weight: 700; line-height: 1.4; }
.lfoot ul { margin: 0; padding: 0; list-style: none; }
.lfoot li { margin-bottom: .6rem; }
.lfoot a { color: inherit; }
.lfoot-grid a { text-decoration: none; }
.lfoot-grid a:hover { color: var(--primary); text-decoration: underline; }
.lfoot-credit { margin-top: 2rem; margin-bottom: 0; font-size: .8125rem; }

@media (min-width: 48rem) {
  .lwrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lsec { padding-top: 3rem; padding-bottom: 3rem; }
  .lhero-in { padding: 5rem 1.5rem; }
  .lsearch { flex-direction: row; align-items: center; gap: 0; border-radius: 999px; }
  .lsearch-seg + .lsearch-seg { border-top: 0; border-left: 1px solid var(--high); }
  .lsearch-seg { padding: .4rem 1.1rem; }
  .lsearch-seg:focus-within { border-radius: 999px; }
  .lsearch .lbtn-go { flex: none; padding: .75rem 1.5rem; font-size: 1rem; }
  .lcats { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .lcatpage-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .how { padding: 3.5rem; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .biz { grid-template-columns: repeat(3, 1fr); }
  .join { padding: 3rem; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .join-act { flex-direction: row; }
  .lfoot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 64rem) {
  .lcats { grid-template-columns: repeat(4, 1fr); }
  .lwrap { padding-left: 3rem; padding-right: 3rem; }
  .join { flex-direction: row; align-items: center; justify-content: space-between; padding: 3.5rem; gap: 2.5rem; }
  .join-act { flex: none; flex-direction: column; }
  .lsearch .lbtn-go { font-size: 1.125rem; padding: .75rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lbtn, .biz article, .biz-photo img, .lcats a, .lcats-ico { transition: none; }
}
