@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --bg: #ffffff;
  --ink: #1b2422;
  --bottle: #f7f3ec;
  --bottle-light: #e6ded0;
  --mustard: #b8541f;
  --mustard-deep: #8f3f18;
  --bone: #20302b;
  --bone-dim: #4a534d;
  --brick: #a13a1f;
  --slate: #6b756e;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(30, 24, 16, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: "Work Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button, input, textarea {
  font-family: inherit;
}

h1, h2, h3, .eyebrow, .tab-label, .btn {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

/* ---------- App shell ---------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bottle);
  border-bottom: 3px solid var(--mustard);
}

.topbar .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid var(--mustard);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  gap: 2px;
}
.topbar .mark .mark-ly {
  font-size: 13px;
  color: var(--ink);
}
.topbar .mark .mark-emba {
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--mustard);
}

.topbar h1 {
  font-size: 17px;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
}

.topbar .place {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--mustard);
  text-transform: uppercase;
}

main {
  flex: 1;
  padding: 18px 16px 90px;
}

.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Aviso de novedades / mantenimiento ---------- */
.novedad-banner {
  background: var(--bottle);
  border: 1px solid var(--mustard);
  border-left: 4px solid var(--mustard);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.novedad-banner strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 13.5px;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 6px;
}
.novedad-banner p {
  font-size: 13px;
  color: var(--bone-dim);
  margin: 0 0 12px;
  line-height: 1.5;
}
.novedad-banner .novedad-cerrar {
  background: var(--mustard);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 11.5px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Menú de íconos por oficio (accesos rápidos, agrupados) ---------- */
.icon-menu {
  margin-bottom: 8px;
}
.icon-group {
  margin-bottom: 18px;
}
.icon-group:last-child {
  margin-bottom: 8px;
}
.icon-group-title {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mustard);
  margin: 0 0 8px;
}
.icon-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.icon-btn {
  background: var(--bottle);
  border: 1px solid var(--bottle-light);
  border-radius: 12px;
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink);
}
.icon-btn:active {
  border-color: var(--mustard);
  transform: scale(0.96);
}
.icon-btn .icon-glyph {
  font-size: 24px;
  line-height: 1;
}
.icon-btn .icon-label {
  font-size: 10px;
  text-align: center;
  color: var(--bone-dim);
  line-height: 1.2;
}

.hero-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 4px 0 6px;
  color: var(--ink);
  font-weight: 600;
}
.hero-sub {
  color: var(--bone-dim);
  font-size: 14px;
  margin: 0 0 18px;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.path-card {
  background: var(--bottle);
  border: 1px solid var(--bottle-light);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, border-color .15s ease;
}
.path-card:active { transform: scale(0.97); }
.path-card .glyph {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--mustard);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Oswald", sans-serif;
  font-size: 15px;
}
.path-card strong {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
}
.path-card span.desc {
  font-size: 12px;
  color: var(--bone-dim);
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mustard);
  font-weight: 600;
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bottle-light);
}

/* ---------- Chapa (signature element): service plate ---------- */
.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plate {
  position: relative;
  background: var(--bottle);
  border: 1.5px solid var(--mustard);
  border-radius: 10px;
  padding: 16px 12px 14px;
  text-align: center;
  transform: rotate(-0.4deg);
}
.plate:nth-child(even) { transform: rotate(0.4deg); }
.plate::before, .plate::after,
.plate .rivet-l, .plate .rivet-r { content: ""; }

.plate .rivet {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mustard);
}
.plate .rivet.tl { top: 6px; left: 6px; }
.plate .rivet.tr { top: 6px; right: 6px; }
.plate .rivet.bl { bottom: 6px; left: 6px; }
.plate .rivet.br { bottom: 6px; right: 6px; }

.plate .plate-title {
  font-family: "Oswald", sans-serif;
  font-size: 13.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4px 0 2px;
}

.plate .plate-name {
  font-size: 11.5px;
  color: var(--bone-dim);
  margin: 0 0 10px;
}

.plate .plate-btn {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--mustard);
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: none;
}

/* ---------- Filas de profesionales dentro de cada categoría ---------- */
.pro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bottle-light);
}
.pro-row:last-child { border-bottom: none; padding-bottom: 2px; }
.pro-row:first-of-type { padding-top: 2px; }

.pro-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pro-info strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.pro-info span {
  font-size: 11.5px;
  color: var(--bone-dim);
}
.pro-row--empty .pro-info span {
  color: var(--slate);
  font-style: italic;
}

.pro-btn {
  flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--mustard);
  padding: 7px 11px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.pro-btn--outline {
  background: transparent;
  border: 1px solid var(--slate);
  color: var(--slate);
}

/* ---------- Category blocks ---------- */
.cat-block {
  background: var(--bottle);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--bottle-light);
}
.cat-block h3 {
  margin: 0 0 4px;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--mustard);
}
.cat-block .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--brick);
  background: rgba(161, 58, 31, 0.12);
  border: 1px solid var(--brick);
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}
.cat-block ul {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-block li {
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--bottle-light);
  color: var(--bone-dim);
  padding: 5px 10px;
  border-radius: 100px;
}

/* ---------- Buscador (vista Servicios) ---------- */
.search-box {
  position: relative;
  margin-bottom: 6px;
}
.search-box input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 1px solid var(--bottle-light);
  background: var(--bottle);
  color: var(--ink);
  font-size: 14.5px;
}
.search-box input::placeholder {
  color: var(--slate);
}
.search-box input:focus {
  outline: none;
  border-color: var(--mustard);
}
.search-box .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.8;
  pointer-events: none;
}
.search-empty {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  padding: 20px 0;
}

/* ---------- Oficios y tarjetas de profesional (vista Servicios) ---------- */
.oficio-block {
  margin-bottom: 18px;
}
.oficio-block:last-child { margin-bottom: 4px; }
.oficio-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
}

@keyframes destacarOficio {
  0%, 100% { box-shadow: none; background: transparent; }
  20%, 60% { box-shadow: 0 0 0 3px var(--mustard); background: rgba(184, 84, 31, 0.10); }
}
.oficio-block.destacar {
  border-radius: 10px;
  animation: destacarOficio 1.4s ease-in-out 2;
}

.pro-card {
  background: var(--bg);
  border: 1px solid var(--bottle-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.pro-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pro-card-top strong {
  font-size: 13.5px;
  color: var(--ink);
}
.pro-card-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.rating-avg {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--mustard);
}

/* ---------- Comentarios por profesional ---------- */
.comment-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--bottle-light);
  margin-top: 10px;
  padding: 10px 0 0;
  font-size: 12px;
  color: var(--mustard);
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.comment-section {
  margin-top: 8px;
}
.comment-list {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-item {
  background: var(--bottle);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--bone-dim);
  line-height: 1.45;
}
.comment-empty {
  font-size: 12px;
  color: var(--slate);
  font-style: italic;
  margin: 0 0 10px;
}
.comment-input {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--bottle-light);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}
.comment-send {
  padding: 9px 14px;
  font-size: 11.5px;
}

/* ---------- Formulario de opinión sobre la app ---------- */
.opinion-form {
  background: var(--bottle);
  border: 1px solid var(--bottle-light);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.opinion-form-title {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 10px;
}
.opinion-form input,
.opinion-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--bottle-light);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
}
.opinion-form textarea {
  min-height: 70px;
  resize: vertical;
}

.stars-input {
  display: inline-flex;
  gap: 2px;
}
.stars-input .star {
  font-size: 17px;
  color: var(--bottle-light);
  cursor: pointer;
  line-height: 1;
  transition: color .1s ease;
}
.stars-input .star.filled {
  color: var(--mustard);
}
.stars-input .star:active {
  transform: scale(0.9);
}
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--mustard);
  color: #fff;
}
.btn-primary:active { background: var(--mustard-deep); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--mustard);
  color: var(--mustard);
}

/* ---------- Form ---------- */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 6px;
  font-family: "Oswald", sans-serif;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--bottle-light);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
.field textarea { min-height: 80px; resize: vertical; }

.helper {
  font-size: 12px;
  color: var(--slate);
  margin: 10px 0 16px;
}

/* ---------- Caja de CBU ---------- */
.cbu-box {
  background: var(--bottle);
  border: 1px solid var(--bottle-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}
.cbu-label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Oswald", sans-serif;
  margin: 0 0 6px;
}
.cbu-titular {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 8px;
}
.cbu-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cbu-numero {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--bottle-light);
  border-radius: 6px;
  padding: 8px 10px;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}
.cbu-copiar {
  flex-shrink: 0;
  background: var(--mustard);
  color: #fff;
  border: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}
.cbu-copiar.copiado {
  background: var(--mustard-deep);
}

/* ---------- Testimonials / FAQ ---------- */
.quote {
  background: var(--bottle);
  border-left: 3px solid var(--mustard);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--bone-dim);
}
.quote strong {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--mustard);
  font-family: "Oswald", sans-serif;
}

details.faq {
  background: var(--bottle);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--bottle-light);
}
details.faq summary {
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
details.faq p {
  font-size: 13px;
  color: var(--bone-dim);
  margin: 8px 0 0;
}

/* ---------- Contact block ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bottle-light);
  font-size: 13.5px;
  color: var(--ink);
}
.contact-row .icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bottle);
  border: 1px solid var(--mustard);
  display: flex; align-items: center; justify-content: center;
  color: var(--mustard);
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- Bottom tab bar ---------- */
nav.tabbar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bottle);
  border-top: 3px solid var(--mustard);
  display: flex;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
nav.tabbar button {
  flex: 1;
  background: none;
  border: none;
  color: var(--bone-dim);
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
nav.tabbar button .tab-glyph {
  font-size: 16px;
}
nav.tabbar button .tab-label {
  font-size: 10px;
  text-transform: uppercase;
}
nav.tabbar button.active {
  color: var(--mustard);
}

/* ---------- Install banner ---------- */
#install-banner {
  display: none;
  position: fixed;
  top: 62px;
  left: 12px; right: 12px;
  max-width: 456px;
  margin: 0 auto;
  background: var(--mustard);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  z-index: 40;
  box-shadow: var(--shadow);
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 10px;
}
#install-banner.show { display: flex; }
#install-banner button.install-cta {
  margin-left: auto;
  background: #fff;
  color: var(--mustard);
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}
#install-banner button.dismiss {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
}

@media (min-width: 481px) {
  #app { border-left: 1px solid var(--bottle-light); border-right: 1px solid var(--bottle-light); }
}

/* ---------- Menú rotativo de oficios (estilo Mostaza) ---------- */
:root { --rojo: #0b7285; --amarillo: #ffc72c; }
.rail { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px calc(50% - 44px) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 88px; scroll-snap-align: center; text-align: center; cursor: pointer; transition: transform .12s, opacity .12s; }
.rail-circle { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--bottle); border: 1px solid var(--bottle-light); transition: background .15s, box-shadow .15s; }
.rail-item.on .rail-circle { background: var(--rojo); border-color: var(--rojo); box-shadow: 0 8px 18px rgba(11, 114, 133, .35); }
.rail-label { font-size: 12px; margin-top: 6px; color: var(--bone-dim); line-height: 1.15; }
.rail-item.on .rail-label { color: var(--ink); font-weight: 600; }
.rail-bar { height: 3px; width: 48px; border-radius: 2px; background: var(--amarillo); margin: 2px auto 0; }
.rail-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--rojo); color: #fff; border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.rail-cta strong { display: block; font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.rail-kicker { display: block; font-size: 11px; color: var(--amarillo); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
#rail-count { font-size: 12px; opacity: .9; }
.rail-go { background: var(--amarillo); color: #412402; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-family: "Oswald", sans-serif; cursor: pointer; }
.rail-go:active { transform: scale(.96); }

/* ---------- Oficios más buscados ---------- */
.eyebrow-hot { color: var(--rojo); }
.top-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.top-card { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--bottle-light); border-radius: 12px; padding: 10px; cursor: pointer; text-align: left; color: var(--ink); box-shadow: 0 4px 12px rgba(30, 24, 16, .06); }
.top-card:active { transform: scale(.97); border-color: var(--rojo); }
.top-rank { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--amarillo); color: #412402; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.top-ico { font-size: 22px; }
.top-name { font-size: 13px; font-weight: 600; line-height: 1.15; min-width: 0; }

/* ---------- Portada y entrada animada ---------- */
#splash { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(160deg, #063a45, #0b7285); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; animation: splashOut .6s ease 2.3s forwards; }
.splash-logo { font-family: "Oswald", sans-serif; font-size: 64px; font-weight: 700; letter-spacing: .04em; animation: splashIn .8s ease both; }
.splash-logo span { color: var(--amarillo); margin-left: 6px; }
#splash p { margin: 0; font-size: 14px; opacity: .9; animation: splashIn .8s ease .2s both; }
@keyframes splashIn { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view.active > * { animation: subir .5s ease both; }
.view.active > *:nth-child(2) { animation-delay: .05s; }
.view.active > *:nth-child(3) { animation-delay: .1s; }
.view.active > *:nth-child(4) { animation-delay: .15s; }
.view.active > *:nth-child(5) { animation-delay: .2s; }
.view.active > *:nth-child(6) { animation-delay: .25s; }
.view.active > *:nth-child(7) { animation-delay: .3s; }
.view.active > *:nth-child(8) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) { #splash, .splash-logo, #splash p, .view.active > * { animation: none; } #splash { display: none; } }

/* ---------- Barra inferior flotante ---------- */
main { padding-bottom: 110px; }
nav.tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 456px; padding-bottom: 0; background: #fff; border: 1px solid var(--bottle-light); border-radius: 26px; box-shadow: 0 12px 30px rgba(30, 24, 16, .22); }
nav.tabbar button { padding: 8px 4px 8px; position: relative; }
nav.tabbar button .tab-glyph { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, box-shadow .2s; }
nav.tabbar button.active { color: var(--rojo); font-weight: 700; }
nav.tabbar button.active .tab-glyph { background: var(--rojo); transform: translateY(-12px) scale(1.18); box-shadow: 0 8px 16px rgba(11, 114, 133, .4); animation: popTab .4s ease; }
nav.tabbar button.active .tab-label { margin-top: -10px; }
@keyframes popTab { 0% { transform: translateY(0) scale(.8); } 60% { transform: translateY(-16px) scale(1.28); } 100% { transform: translateY(-12px) scale(1.18); } }

/* ---------- Servicios: categorías con cabecera de color ---------- */
.cat-block { overflow: hidden; background: #fff; border-color: var(--bottle-light); box-shadow: 0 6px 16px rgba(30, 24, 16, .08); }
.cat-block h3 { margin: -16px -16px 12px; padding: 13px 16px; font-size: 16px; color: #fff; background: linear-gradient(90deg, #063a45, var(--rojo)); border-bottom: 3px solid var(--amarillo); }
.cat-block .tag { margin-top: -2px; }
.oficio-block h4 { display: inline-block; background: var(--bottle); border-radius: 999px; padding: 5px 12px; color: var(--ink); }
.pro-card { border-left: 4px solid var(--amarillo); transition: transform .15s, box-shadow .15s; }
.pro-card:active { transform: scale(.985); }
.oficio-block .pro-card:first-of-type .pro-btn:not(.pro-btn--outline) { animation: latido 2.2s ease-in-out infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(11, 114, 133, .35); } 50% { box-shadow: 0 0 0 7px rgba(11, 114, 133, 0); } }
@media (prefers-reduced-motion: reduce) { nav.tabbar button.active .tab-glyph, .oficio-block .pro-card:first-of-type .pro-btn { animation: none; } }

/* ---------- Logotipo llamativo ---------- */
.topbar .mark { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--amarillo); background: linear-gradient(160deg, #1496ad, #063a45); box-shadow: 0 4px 12px rgba(11, 114, 133, .45); gap: 0; animation: brillo 3s ease-in-out infinite; }
.topbar .mark .mark-bolt { font-size: 17px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.topbar .mark .mark-ly { font-size: 14px; color: #fff; letter-spacing: .04em; }
@keyframes brillo { 0%, 100% { box-shadow: 0 4px 12px rgba(11, 114, 133, .45); } 50% { box-shadow: 0 4px 18px rgba(255, 199, 44, .85); } }
@media (prefers-reduced-motion: reduce) { .topbar .mark { animation: none; } }

.splash-people { display: flex; gap: 8px; margin-top: 18px; font-size: 38px; }
.splash-people span { animation: splashIn .6s ease both; }
.splash-people span:nth-child(1) { animation-delay: .5s; } .splash-people span:nth-child(2) { animation-delay: .65s; } .splash-people span:nth-child(3) { animation-delay: .8s; }
.splash-people span:nth-child(4) { animation-delay: .95s; } .splash-people span:nth-child(5) { animation-delay: 1.1s; } .splash-people span:nth-child(6) { animation-delay: 1.25s; }

/* ---------- Hoja de profesionales ---------- */
#sheet { position: fixed; inset: 0; z-index: 5000; visibility: hidden; }
#sheet.open { visibility: visible; }
.sheet-back { position: absolute; inset: 0; background: rgba(10, 25, 50, .6); opacity: 0; transition: opacity .25s; }
#sheet.open .sheet-back { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
#sheet.open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 22px 56px 18px 20px; color: #fff; background: linear-gradient(160deg, #063a45, #0b7285); border-bottom: 3px solid var(--amarillo); position: sticky; top: 0; z-index: 1; }
.sheet-ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.sheet-title { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.sheet-sub { font-size: 13px; color: var(--amarillo); }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 16px; cursor: pointer; }
.sheet-list { padding: 14px 16px 22px; display: grid; gap: 12px; }
.sheet-card { background: #fff; border: 1px solid var(--bottle-light); border-left: 4px solid var(--amarillo); border-radius: 16px; padding: 14px; box-shadow: 0 6px 16px rgba(30, 24, 16, .08); animation: subir .4s ease both; }
.sheet-card-top { display: flex; align-items: center; gap: 12px; }
.sheet-avatar { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.sheet-info { display: flex; flex-direction: column; min-width: 0; }
.sheet-info strong { font-size: 17px; color: var(--ink); }
.sheet-info span { font-size: 13px; color: var(--bone-dim); }
.sheet-wa { display: block; margin-top: 12px; text-align: center; background: #25d366; color: #fff; font-weight: 700; text-decoration: none; padding: 13px; border-radius: 12px; box-shadow: 0 6px 14px rgba(37, 211, 102, .35); }
.sheet-wa:active { transform: scale(.98); }
.sheet-more { background: none; border: 1.5px solid var(--bottle-light); color: var(--ink); border-radius: 12px; padding: 12px; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sheet-panel, .sheet-back, .sheet-card { transition: none; animation: none; } }

/* ---------- Inicio más llamativo ---------- */
.marquee { overflow: hidden; margin: -4px -16px 14px; background: #063a45; border-bottom: 3px solid var(--amarillo); padding: 9px 0; }
.marquee-track { display: flex; width: max-content; animation: marquesina 45s linear infinite; }
.marquee-track span { color: #fff; font-size: 14px; font-weight: 600; padding: 0 18px; white-space: nowrap; }
@keyframes marquesina { to { transform: translateX(-50%); } }
.hero-card { background: linear-gradient(135deg, #063a45, #0b7285, #1496ad); background-size: 200% 200%; animation: fondoVivo 8s ease-in-out infinite; border-radius: 20px; padding: 20px 18px; margin-bottom: 16px; color: #fff; box-shadow: 0 12px 28px rgba(15, 42, 74, .35); position: relative; overflow: hidden; }
.hero-card::after { content: "⚡"; position: absolute; right: -6px; top: -14px; font-size: 110px; opacity: .12; transform: rotate(15deg); }
.hero-card .hero-title { color: #fff; margin-top: 0; }
.hero-card .hero-sub { color: rgba(255, 255, 255, .85); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hero-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 4px; text-align: center; }
.hero-stats b { display: block; font-family: "Oswald", sans-serif; font-size: 26px; color: var(--amarillo); line-height: 1.1; }
.hero-stats span { font-size: 11px; opacity: .9; }
@keyframes fondoVivo { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.path-card .glyph { font-size: 26px; }
.path-card { border-bottom: 3px solid var(--amarillo); }
.eyebrow { border-left: 4px solid var(--amarillo); padding-left: 8px; }
.dest-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 8px; padding: 4px 16px 10px; scrollbar-width: none; }
.dest-scroll::-webkit-scrollbar { display: none; }
.dest-card { flex: 0 0 170px; scroll-snap-align: start; background: #fff; border: 1px solid var(--bottle-light); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; box-shadow: 0 6px 16px rgba(30, 24, 16, .1); }
.dest-avatar { width: 56px; height: 56px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.dest-name { font-size: 15px; color: var(--ink); line-height: 1.15; margin-top: 4px; }
.dest-oficio { font-size: 12px; background: var(--amarillo); color: #412402; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.dest-rate { font-size: 11px; color: var(--bone-dim); }
.dest-wa { margin-top: 6px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .marquee-track, .hero-card { animation: none; } }

/* ---------- Multi-ciudad ---------- */
.proximamente { background: linear-gradient(135deg, #063a45, #0b7285); color: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; font-weight: 600; line-height: 1.4; margin: 6px 0 12px; border-bottom: 3px solid var(--amarillo); }
.eyebrow:has(+ .top-grid:empty), .eyebrow:has(+ .dest-scroll:empty) { display: none; }
