/* =====================================================================
   Locali · sistema de diseño v2 (directorio por rubro y comuna)
   CSS propio, sin build ni CDN. Celular primero.
   Profundidad con degradados suaves, textura de grano y sombras en capas.
   ===================================================================== */

:root {
  --brand: #0b7a69;
  --brand-2: #12a68d;
  --brand-ink: #075a4e;
  --brand-dark: #06302a;
  --brand-soft: #e3f4ef;
  --mint: #9be7d4;
  --accent: #f5a524;
  --accent-2: #ff7d4d;
  --accent-ink: #8a4806;
  --accent-soft: #fff1d9;
  --wa: #22c55e;
  --wa-2: #16a34a;
  --danger: #c2410c;
  --danger-soft: #fdebe2;
  --ok: #138a45;
  --ok-soft: #e2f6e9;
  --ink: #16201d;
  --ink-2: #36443f;
  --muted: #5d6b66;
  --faint: #8a9692;
  --line: #ebe5da;
  --line-2: #d9d2c5;
  --bg: #fbf8f3;
  --bg-2: #f4efe6;
  --card: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 29, .05), 0 2px 8px rgba(22, 32, 29, .04);
  --shadow: 0 2px 4px rgba(22, 32, 29, .04), 0 14px 34px -10px rgba(10, 60, 52, .18);
  --shadow-lg: 0 30px 70px -20px rgba(6, 48, 42, .38), 0 8px 20px -8px rgba(6, 48, 42, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c40-9 80-12 122-8s92 9 172-6' fill='none' stroke='%23f5a524' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 50%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.section { padding: 56px 0; position: relative; }
.section-sm { padding: 30px 0; }
.section.alt { background: var(--card); }
.section-tint { background: radial-gradient(900px 400px at 0% 0%, color-mix(in srgb, var(--mint) 35%, transparent), transparent 70%), radial-gradient(700px 400px at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg-2); }
@media (min-width: 980px) { .section { padding: 84px 0; } }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--brand-2) 12%, transparent); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); line-height: 1.6; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-gap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Animación al aparecer (solo con JS y si el usuario no pidió menos movimiento) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
/* Lo que se ve al entrar (hero) aparece al tiro con una animación corta, sin esperar al scroll. */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise-2 { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* ---------- Iconos ---------- */
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
.ico-chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--brand-2)) 18%, #fff), color-mix(in srgb, var(--c, var(--brand-2)) 8%, #fff)); color: var(--c, var(--brand)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--brand-2)) 18%, transparent); flex: 0 0 auto; }
.ico-chip .ico { width: 22px; height: 22px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 25px; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 6px rgba(11, 122, 105, .25)); }
.logo b { color: var(--brand); font-weight: 800; }
.logo.light { color: #fff; }
.logo.light b { color: var(--mint); }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; padding: 13px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, filter .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -6px rgba(11, 122, 105, .6); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -8px rgba(11, 122, 105, .7); }
.btn-wa { background: linear-gradient(180deg, #2fd16a, var(--wa-2)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -6px rgba(22, 163, 74, .6); }
.btn-wa:hover { filter: brightness(1.05); }
.btn-accent { background: linear-gradient(135deg, #ffc247, var(--accent) 45%, var(--accent-2)); color: #3a1d02; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -8px rgba(245, 125, 36, .65); }
.btn-accent:hover { filter: brightness(1.04) saturate(1.05); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { font-size: 13px; padding: 9px 12px; border-radius: 10px; }
.btn-lg { font-size: 17px; padding: 17px 26px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
@media (max-width: 480px) { .btn-lg, .locked .btn, .cta-band .btn, .upsell .btn { white-space: normal; text-align: center; line-height: 1.3; } }

/* ---------- Etiquetas y sellos ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #f0ece4; color: var(--muted); white-space: nowrap; }
.tag-top { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 4px 10px -4px rgba(11, 122, 105, .6); }
.tag-dest { background: linear-gradient(135deg, #fff4dc, #ffe7b8); color: var(--accent-ink); box-shadow: inset 0 0 0 1px #f6d79a; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag-warn { background: var(--danger-soft); color: var(--danger); }
.stars { display: inline-flex; align-items: center; gap: 4px; color: #e29a00; font-weight: 800; white-space: nowrap; }
.stars span { color: var(--muted); font-weight: 500; }

/* ---------- Cabecera ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, .82); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 70px; }
.nav { display: none; gap: 4px; margin-left: 18px; }
.nav a { position: relative; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--brand-ink); background: color-mix(in srgb, var(--brand-2) 10%, transparent); text-decoration: none; }
.topbar-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar-cta .btn-ghost { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .topbar-cta .btn-ghost { display: inline-flex; } }

/* ---------- Buscador ---------- */
.search { display: grid; gap: 8px; background: rgba(255, 255, 255, .97); padding: 10px; border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .08); grid-template-columns: 1fr; }
.search label { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: #f6f3ed; min-height: 56px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.search label:focus-within { background: #fff; border-color: color-mix(in srgb, var(--brand-2) 50%, transparent); }
.search label .ico { color: var(--brand); width: 20px; height: 20px; }
.search select, .search input { border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; width: 100%; padding: 15px 0; color: var(--ink); outline: none; }
@media (min-width: 720px) { .search { grid-template-columns: 1.2fr 1fr auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(18, 166, 141, .55), transparent 62%),
    radial-gradient(720px 520px at 102% 4%, rgba(245, 165, 36, .26), transparent 60%),
    radial-gradient(900px 600px at 55% 125%, rgba(155, 231, 212, .22), transparent 62%),
    linear-gradient(160deg, #052a25 0%, #08423a 52%, #0a5246 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: radial-gradient(600px 420px at 85% 30%, #000, transparent 72%); -webkit-mask-image: radial-gradient(600px 420px at 85% 30%, #000, transparent 72%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }
.hero .wrap { position: relative; padding-top: 52px; padding-bottom: 72px; display: grid; gap: 40px; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero .lead { color: #cfeae2; max-width: 50ch; }
.hero .eyebrow { color: var(--mint); background: rgba(155, 231, 212, .12); box-shadow: inset 0 0 0 1px rgba(155, 231, 212, .22); }
.hl { position: relative; white-space: nowrap; color: #ffd27a; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .3em; background: var(--squiggle) no-repeat center / 100% 100%; z-index: -1; opacity: .95; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips a { display: inline-flex; align-items: center; gap: 7px; color: #e4f5f0; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.hero-chips a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); text-decoration: none; }
.hero-chips .ico { color: var(--mint); }
.hero-photos { display: none; }
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 84px; padding-bottom: 120px; }
}

/* Collage del hero con tarjetas flotantes */
.collage { position: relative; height: 520px; display: none; }
@media (min-width: 1000px) { .collage { display: block; } }
.collage .ph { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .92); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .ph-1 { left: 4%; top: 2%; width: 56%; height: 70%; transform: rotate(-3deg); }
.collage .ph-2 { right: 0; top: 10%; width: 44%; height: 44%; transform: rotate(4deg); }
.collage .ph-3 { right: 8%; bottom: 0; width: 46%; height: 40%; transform: rotate(-2deg); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.35; backdrop-filter: blur(10px); animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 14px; }
.float-card .muted { font-size: 12px; }
.float-card img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 5px rgba(34, 197, 94, .18); flex: 0 0 auto; margin: 0 4px; }
.float-1 { left: -6%; bottom: 14%; }
.float-2 { right: -2%; top: -2%; animation-delay: -2s; }
.float-3 { left: 40%; bottom: -4%; animation-delay: -4s; padding: 10px 14px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Franja de confianza bajo el hero */
.trust { position: relative; z-index: 3; margin-top: -42px; }
.trust-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 6px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 10px; border: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---------- Tarjetas generales ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card-pad-lg { padding: 26px; }
.card h3 { margin-bottom: 6px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

.rubro-card { --c: var(--brand); position: relative; display: block; border-radius: 24px; overflow: hidden; color: #fff; min-height: 240px; background: var(--brand-dark); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; isolation: isolate; }
.rubro-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.rubro-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, color-mix(in srgb, var(--c) 55%, #000) 100%); opacity: .92; }
.rubro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.rubro-card:hover img { transform: scale(1.06); }
.rubro-card .rc-ico { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--c); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.rubro-card .rc-ico .ico { width: 22px; height: 22px; }
.rubro-card .rc-body { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.rubro-card strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.rubro-card .rc-tag { font-size: 13px; color: rgba(255, 255, 255, .86); }
.rubro-card .rc-go { position: absolute; right: 16px; bottom: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.rubro-card:hover .rc-go { background: #fff; color: var(--c); transform: translateX(2px); }
.rubro-card .rc-soon { position: absolute; top: 18px; right: 14px; }
.rubro-card .rc-count { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(4px); }
.rubro-card.soon { filter: saturate(.75); }

.steps { position: relative; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
@media (min-width: 900px) { .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; border-top: 2px dashed color-mix(in srgb, var(--brand-2) 35%, transparent); z-index: 0; } }
.step { position: relative; z-index: 1; display: block; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 10px 22px -10px rgba(11, 122, 105, .8); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.comuna-links { display: flex; flex-wrap: wrap; gap: 10px; }
.comuna-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s, transform .15s; }
.comuna-links a:hover { border-color: var(--brand-2); color: var(--brand-ink); text-decoration: none; transform: translateY(-1px); }
.comuna-links a span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 800; }

/* ---------- Cabecera de páginas internas ---------- */
.page-head { --c: var(--brand); position: relative; overflow: hidden; background: radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .05; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; padding-bottom: 22px; }

/* ---------- Migas ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs span[aria-hidden] { color: var(--faint); }

/* ---------- Listado por plan ---------- */
.list-head { padding: 20px 0 6px; }
.list-head h1 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 8px; }
.list-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.list-stats span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); color: var(--ink-2); }
.list-stats .ico { color: var(--brand); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 14px; scrollbar-width: none; }
.filters a { flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--card); transition: all .2s; }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); }
.filters a:hover { text-decoration: none; border-color: var(--ink-2); }
.biz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.biz:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.biz + .biz { margin-top: 16px; }
.biz img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.biz:hover img { transform: scale(1.03); }
.biz-body { padding: 16px 18px 18px; }
.biz-name { font-size: 19px; font-weight: 800; margin: 0; color: var(--ink); letter-spacing: -.02em; }
.biz-name a { color: inherit; }
.biz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted); margin: 6px 0 8px; }
.biz-from { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; font-weight: 600; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-top { border: 0; box-shadow: 0 0 0 2px var(--brand-2), var(--shadow); background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand-2) 4%, #fff)); }
.biz-top:hover { box-shadow: 0 0 0 2px var(--brand-2), var(--shadow-lg); }
.biz-top .biz-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 200px; overflow: hidden; }
.biz-top .biz-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.biz-top .biz-gallery img:first-child { grid-row: span 2; }
.biz-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.biz-dest { border-color: #f1d9a4; background: linear-gradient(180deg, #fff, #fffaf0); }
.biz-row { display: grid; grid-template-columns: 116px 1fr; }
.biz-row > a { overflow: hidden; }
.biz-row img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.biz-pres .biz-row { grid-template-columns: 92px 1fr; }
.biz-pres .biz-row img { min-height: 112px; }
@media (min-width: 720px) {
  .biz-top .biz-gallery { height: 280px; }
  .biz-row { grid-template-columns: 230px 1fr; }
  .biz-pres .biz-row { grid-template-columns: 160px 1fr; }
}
.free-list { margin-top: 30px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); padding: 6px 18px; }
.free-list h2 { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 12px 0 4px; }
.free-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.free-item a { color: var(--ink-2); }
.list-layout { display: grid; gap: 26px; padding-bottom: 20px; }
@media (min-width: 980px) { .list-layout { grid-template-columns: 1fr 330px; align-items: start; } .list-aside { position: sticky; top: 92px; } }

/* ---------- Ficha ---------- */
.ficha-gallery { display: grid; gap: 6px; border-radius: 24px; overflow: hidden; grid-template-columns: 1fr 1fr; grid-template-rows: 230px 110px; box-shadow: var(--shadow); }
.ficha-gallery > * { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.ficha-gallery > :first-child { grid-column: span 2; }
.ficha-gallery .more { display: grid; place-items: center; background: #e8eeeb; color: var(--ink-2); font-weight: 800; font-size: 15px; }
@media (min-width: 860px) {
  .ficha-gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 210px 210px; }
  .ficha-gallery > :first-child { grid-column: auto; grid-row: span 2; }
}
.ficha-layout { display: grid; gap: 28px; margin-top: 26px; padding-bottom: 30px; }
@media (min-width: 980px) { .ficha-layout { grid-template-columns: 1fr 360px; align-items: start; } .ficha-aside { position: sticky; top: 92px; } }
.ficha-head h1 { font-size: clamp(28px, 4.6vw, 42px); margin-bottom: 8px; }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.facts .ico { color: var(--brand); margin-top: 3px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.items { margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 16px; box-shadow: var(--shadow-sm); }
.item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.items > li:first-child .item { border-top: 0; }
a.item { cursor: pointer; transition: background .15s; border-radius: 12px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
a.item:hover { background: var(--bg); }
a.item:hover .item-name { color: var(--brand-ink); }
.item-desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.item-pics { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--faint); }
.item-pics .ico { width: 14px; height: 14px; }
.item img, .item .item-ico { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.item .item-ico { display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--brand-2)) 16%, #fff), color-mix(in srgb, var(--c, var(--brand-2)) 6%, #fff)); color: var(--c, var(--brand-ink)); }
.item-name { font-weight: 700; font-size: 15px; }
.item-desc { font-size: 13px; color: var(--muted); }
.item-price { font-weight: 800; white-space: nowrap; }
.item { grid-template-columns: 58px minmax(0, 1fr) auto; }
.item-name { overflow-wrap: break-word; }
/* Celulares angostos (360 px): el precio baja debajo del nombre para no salirse de la tarjeta. */
@media (max-width: 420px) {
  .item { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; }
  .item img, .item .item-ico { width: 52px; height: 52px; grid-row: span 2; align-self: start; }
  .item-price { grid-column: 2; font-size: 14px; }
}
.review { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 20px 16px 52px; box-shadow: var(--shadow-sm); }
.review::before { content: "“"; position: absolute; left: 16px; top: 4px; font-size: 54px; line-height: 1; color: color-mix(in srgb, var(--brand-2) 45%, transparent); font-weight: 800; }
.review p { margin: 0 0 8px; font-size: 16px; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.contact-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }
.contact-box .btn { margin-top: 10px; }
.contact-box .price-from { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; }
.mobile-bar { position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .25); }
@media (min-width: 980px) { .mobile-bar { display: none; } }
.locked { border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); padding: 26px; text-align: center; background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #fbf9f4 12px, #fbf9f4 24px); }
.locked .ico { width: 30px; height: 30px; color: var(--faint); }
.placeholder-photo { display: grid; place-items: center; background: linear-gradient(135deg, #ece7dd, #f6f2ea); color: var(--faint); border-radius: var(--radius-lg); height: 170px; font-size: 14px; font-weight: 600; }
.placeholder-photo .ico { width: 34px; height: 34px; }
.mini { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; }
.mini + .mini { margin-top: 10px; }

/* ---------- Blog ---------- */
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card img { height: 180px; width: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover img { transform: scale(1.04); }
.post-card > div { padding: 18px; }
.post-card h3 { font-size: 17px; }
.article { max-width: 740px; }
.article h1 { font-size: clamp(30px, 4.8vw, 44px); }
.article h2 { font-size: 25px; margin-top: 1.6em; }
.article p, .article li { font-size: 17.5px; color: var(--ink-2); line-height: 1.75; }
.article .cover { border-radius: 24px; width: 100%; height: auto; max-height: 440px; object-fit: cover; margin: 22px 0; box-shadow: var(--shadow); }
.author { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.callout { background: linear-gradient(135deg, var(--brand-soft), #f0faf7); border: 1px solid color-mix(in srgb, var(--brand-2) 20%, transparent); border-radius: var(--radius-lg); padding: 20px 22px; margin: 26px 0; }
.callout h3 { color: var(--brand-dark); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- Landing negocios ---------- */
.hero-biz .wrap { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-biz .wrap { grid-template-columns: 1.05fr .95fr; } }
.phone { position: relative; width: 310px; max-width: 100%; margin: 0 auto; background: linear-gradient(160deg, #fff, #f3f0ea); border-radius: 40px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .7); color: var(--ink); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 6px; margin-left: -35px; border-radius: 99px; background: #e2ddd3; }
.phone-screen { border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-top: 18px; }
.phone-url { font-size: 11px; color: var(--muted); background: #f4f1eb; padding: 7px 12px; }
.phone-wrap { position: relative; }
.phone-wrap .float-card { animation-duration: 7s; }
.pain { display: grid; gap: 12px; }
.pain div { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.pain .ico { color: var(--danger); margin-top: 3px; flex: 0 0 auto; padding: 4px; width: 28px; height: 28px; border-radius: 9px; background: var(--danger-soft); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border: 0; box-shadow: 0 0 0 2px var(--brand-2), var(--shadow-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 7%, #fff), #fff 40%); }
@media (min-width: 1100px) { .plan.featured, .js .plan.featured.reveal.in { transform: translateY(-10px); } .plan.featured:hover, .js .plan.featured.reveal.in:hover { transform: translateY(-13px); } }
.plan.featured .plan-badge { position: absolute; top: -13px; left: 22px; }
.plan-price { font-size: 36px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 2px; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li .ico { color: #fff; margin-top: 2px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--brand-2); stroke-width: 3; }
.plan li.no { color: var(--faint); }
.plan li.no .ico { background: #e7e2d8; color: #fff; }
.calc { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--radius-xl); padding: 34px; display: grid; gap: 16px; background: radial-gradient(600px 300px at 100% 0%, rgba(245, 165, 36, .28), transparent 65%), radial-gradient(600px 300px at 0% 100%, rgba(18, 166, 141, .45), transparent 65%), linear-gradient(150deg, #052a25, #0a4a40); box-shadow: var(--shadow-lg); }
.calc::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; }
.calc h2 { color: #fff; }
.calc .big { font-size: clamp(30px, 8vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.calc p { color: #cfe9e2; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--radius-xl); padding: 46px 26px; text-align: center; background: radial-gradient(500px 260px at 0% 0%, rgba(155, 231, 212, .35), transparent 65%), radial-gradient(500px 300px at 100% 100%, rgba(245, 165, 36, .35), transparent 65%), linear-gradient(135deg, var(--brand-ink), var(--brand) 55%, var(--brand-2)); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ddf4ee; font-size: 18px; }

/* ---------- Pie ---------- */
.footer { position: relative; background: linear-gradient(180deg, #082420, #061a17); color: #a9bcb6; padding: 56px 0 30px; margin-top: 56px; font-size: 14px; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand-2), var(--accent), var(--accent-2)); }
.footer a { color: #d9e8e3; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #1d332d; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 13px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.input:disabled { background: #f4f1eb; }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- Panel y admin ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
.app-side { display: none; position: relative; color: #cfe3dd; padding: 20px 14px; background: radial-gradient(400px 300px at 0% 0%, rgba(18, 166, 141, .35), transparent 70%), linear-gradient(180deg, #06302a, #052520); isolation: isolate; }
.app-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; }
.app-side .logo { margin: 4px 8px 26px; }
.app-nav { display: grid; gap: 3px; }
.app-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; color: #cfe3dd; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.app-nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; color: #fff; }
.app-nav a.on { background: linear-gradient(90deg, rgba(155, 231, 212, .2), rgba(155, 231, 212, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--mint); }
.app-nav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #79a197; margin: 18px 12px 6px; }
.app-main { min-width: 0; padding-bottom: 84px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: rgba(251, 248, 243, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-top h1 { font-size: 22px; margin: 0; }
.app-body { padding: 20px 16px; max-width: 1120px; }
.app-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .3); }
.app-bottom a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.app-bottom a .ico { width: 22px; height: 22px; }
.app-bottom a.on { color: var(--brand); }
.app-bottom a:hover { text-decoration: none; }
@media (min-width: 980px) {
  .app { grid-template-columns: 260px 1fr; }
  /* El menú sigue desplazándose con la rueda o el dedo si no cabe, pero sin mostrar la barra. */
  .app-side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .app-side::-webkit-scrollbar { display: none; }
  .app-bottom { display: none; }
  .app-main { padding-bottom: 0; }
  .app-body { padding: 28px 30px; }
  .app-top { padding: 18px 30px; }
}
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.kpi { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%); }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }
.kpi em.down { color: var(--danger); }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.panel-card + .panel-card { margin-top: 16px; }
.panel-card h2 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 6px; }
.bars div { flex: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 30%, #fff), color-mix(in srgb, var(--brand-2) 14%, #fff)); border-radius: 8px 8px 3px 3px; position: relative; min-height: 4px; }
.bars div.now { background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 18px -8px rgba(11, 122, 105, .7); }
.bars-x { display: flex; gap: 8px; font-size: 11px; color: var(--faint); margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; }
.meter { height: 10px; background: #ece7dd; border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { white-space: nowrap; }
.table td { overflow-wrap: anywhere; }
.table td .tag, .table td .btn { white-space: nowrap; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #faf8f3; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf8; }
.upsell { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #fff6e2, #ffeccc); border: 1px solid #f3d79c; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.upsell > .ico { color: var(--accent-ink); width: 26px; height: 26px; flex: 0 0 auto; }
.list-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.list-row img, .list-row .item-ico { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.list-row .item-ico { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.list-row.hidden-item { opacity: .45; }
.preview-note { background: linear-gradient(90deg, #fff4d6, #fff9ea); border-bottom: 1px solid #f1dfa6; color: #6b4a04; font-size: 13px; text-align: center; padding: 7px 12px; }
.preview-note a { color: #6b4a04; font-weight: 700; text-decoration: underline; }
.kpi .ico-chip { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 12px; }
.kpi .ico-chip .ico { width: 19px; height: 19px; }
.kpi:has(.ico-chip)::after { display: none; }
.kpi:has(.ico-chip) > span:not(.ico-chip) { display: block; padding-right: 46px; }
.hero-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 22px; }
.hero-strip img { width: 100%; height: 110px; object-fit: cover; border-radius: 16px; border: 3px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-lg); }
.hero-strip img:nth-child(2) { transform: translateY(10px) rotate(2deg); }
.hero-strip img:nth-child(1) { transform: rotate(-2deg); }
@media (min-width: 1000px) { .hero-strip { display: none; } }
.more-items > summary, .review-form > summary { list-style: none; cursor: pointer; }
.more-items > summary::-webkit-details-marker, .review-form > summary::-webkit-details-marker { display: none; }
.more-items[open] > summary { display: none; }
.review .stars .ico { width: 14px; height: 14px; }

/* ---------- Detalle de producto o servicio (ventana de la ficha, fase 1.3b) ---------- */
.pd-dialog { width: min(920px, 100%); max-width: 100%; max-height: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: var(--card); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.pd-dialog[open] { position: fixed; inset: 0; z-index: 60; }
.pd-dialog::backdrop { background: rgba(6, 30, 26, .62); backdrop-filter: blur(3px); }
.pd-close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-sm); }
.pd-close .ico { width: 20px; height: 20px; }
.pd-gallery { position: relative; background: #f1ede6; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; outline: 0; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.pd-noimg { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--c, var(--brand)); background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--brand-2)) 18%, #fff), color-mix(in srgb, var(--c, var(--brand-2)) 6%, #fff)); }
.pd-noimg .ico { width: 64px; height: 64px; stroke-width: 1.4; }
.pd-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; place-items: center; }
.pd-nav:disabled { opacity: .35; cursor: default; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.pd-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .2s, background .2s; }
.pd-dots span.on { width: 18px; border-radius: 4px; background: #fff; }
.pd-count { position: absolute; top: 14px; left: 14px; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 700; }
.pd-body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
.pd-biz { color: var(--muted); font-weight: 600; text-decoration: none; }
.pd-biz:hover { color: var(--brand-ink); }
.pd-title { font-size: 24px; line-height: 1.2; margin: 4px 0 8px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.pd-price { font-size: 24px; font-weight: 800; color: var(--brand-ink); }
.pd-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pd-desc { color: var(--ink-2); margin: 0 0 16px; white-space: normal; }
.pd-actions { display: grid; gap: 8px; }
.pd-note { margin: 10px 0 12px; }
@media (min-width: 760px) {
  .pd-dialog { height: auto; max-height: min(88vh, 720px); margin: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
  .pd-dialog .pd { display: grid; grid-template-columns: 1.15fr 1fr; max-height: min(88vh, 720px); }
  .pd-gallery, .pd-body { min-height: 0; min-width: 0; }
  .pd-track { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .pd-noimg { height: 100%; aspect-ratio: auto; }
  .pd-nav { display: grid; }
  .pd-body { padding: 30px 28px; overflow-x: hidden; overflow-y: auto; }
  .pd-title { font-size: 28px; padding-right: 36px; }
}
@media (prefers-reduced-motion: reduce) { .pd-track { scroll-behavior: auto; } }

/* ---------- Alta guiada y panel del negocio (fase 1.4) ---------- */
.js .js-hide { display: none; }
.field-error { font-size: 13px; font-weight: 600; color: var(--danger); }
.alert-ok, .alert-err, .alert-dev { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 14px; }
.alert-ok { background: var(--ok-soft); border: 1px solid #bfe6cc; color: #0f5c30; }
.alert-err { background: var(--danger-soft); border: 1px solid #f6c8b2; color: #8a2e07; }
.alert-dev { background: #eef2ff; border: 1px dashed #a5b4fc; color: #3730a3; }
.alert-ok .ico, .alert-err .ico, .alert-dev .ico { flex: 0 0 auto; margin-top: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; }
.input-code { font-size: 26px; letter-spacing: .35em; text-align: center; font-weight: 800; max-width: 260px; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-prefix .input { padding-left: 28px; }
.stepper { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.stepper li { display: flex; align-items: center; gap: 8px; flex: 1 0 auto; padding: 8px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.stepper li > span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); font-size: 12px; }
.stepper li > span .ico { width: 14px; height: 14px; }
.stepper li.on { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); background: var(--brand-soft); }
.stepper li.on > span { background: var(--brand); color: #fff; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done > span { background: var(--ok); color: #fff; }
@media (max-width: 640px) { .stepper li:not(.on) { font-size: 0; gap: 0; padding: 6px; flex: 0 0 auto; } }
.wizard { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .wizard { grid-template-columns: minmax(0, 1fr) 340px; } .wizard-preview { position: sticky; top: 90px; } }
.wizard-title { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }
.wizard-actions > :only-child { margin-left: auto; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 16px 0; }
.choice { position: relative; display: grid; gap: 4px; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ico-chip { margin-bottom: 6px; }
.choice:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.choice:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pv-cover { height: 150px; background: center / cover no-repeat #eee; display: grid; place-items: center; }
.pv-cover.is-sample { filter: grayscale(.6) opacity(.55); }
.pv-cover span { background: rgba(255, 255, 255, .9); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pv-name { font-size: 16px; }
.add-item { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 16px; background: var(--bg); }
.photo-manager { margin: 6px 0 4px; }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-bottom: 10px; }
.photo-tile { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #f1ede6; aspect-ratio: 1; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }
.photo-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.photo-act { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.photo-act .ico { width: 16px; height: 16px; }
.photo-act:hover { background: #fff; color: var(--brand-ink); }
.photo-del:hover { color: var(--danger); }
.photo-drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: #fff; color: var(--ink-2); cursor: pointer; margin-bottom: 8px; }
.photo-drop:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop .ico { width: 26px; height: 26px; color: var(--brand); }
.photo-drop.is-busy { opacity: .6; pointer-events: none; }
.editor { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 380px; } .editor-preview { position: sticky; top: 96px; } }
.pd-mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.pd-mini .pd-track { aspect-ratio: 4 / 3; }
.pd-mini .pd-noimg { aspect-ratio: 4 / 3; }
.pd-mini .pd-title { font-size: 21px; }
.pd-mini .pd-price { font-size: 20px; }
.pd-mini .pd-body { padding: 16px; }
.pd-desc { white-space: pre-line; }
.item-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.item-row.is-hidden img, .item-row.is-hidden .item-ico, .item-row.is-hidden .item-row-name { opacity: .5; }
.item-row-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.item-row-actions { display: flex; gap: 6px; align-items: center; }
.item-row-actions .photo-act { background: var(--bg-2); box-shadow: none; }
@media (max-width: 560px) { .item-row { grid-template-columns: 44px minmax(0, 1fr); } .item-row-actions { grid-column: 1 / -1; justify-content: flex-end; } .item-row img, .item-row .item-ico { width: 44px; height: 44px; } }
.ico.rot90 { transform: rotate(90deg); }
.commune-picker { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1.5px solid var(--line-2); border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; }
.chip-check input { accent-color: var(--brand); }
.chip-check:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand-ink); }
.chip-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-size: 14px; }
@media (max-width: 979px) { .sticky-save { position: sticky; bottom: 70px; z-index: 5; } }
@media (max-width: 640px) { .app-top-link { display: none; } }
.photo-tile.is-over img { opacity: .45; filter: grayscale(.5); }
.photo-badge-off { background: rgba(0, 0, 0, .6); }

/* Créditos: Locali de Gestinova EIRL · hecha por nexira.cl */
.credits a { font-weight: 700; }
.app-credits { padding: 18px 16px 24px; font-size: 13px; color: var(--muted); text-align: center; }
.app-credits a { color: var(--brand-ink); }
@media (min-width: 980px) { .app-credits { padding: 10px 30px 26px; text-align: left; } }
.card-line { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.card-line > .ico { color: var(--brand); flex: 0 0 auto; }

/* Admin (fase 1.6) */
.admin-shortcuts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 16px; }
.admin-shortcuts .panel-card { display: flex; gap: 10px; align-items: center; margin: 0; font-weight: 700; color: var(--ink); }
.admin-shortcuts .panel-card .ico { color: var(--brand); }
@media (min-width: 980px) { .admin-shortcuts { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters .input, .filters .select { width: auto; min-width: 160px; flex: 1 1 160px; max-width: 260px; padding: 9px 12px; }
.tag-warn { background: var(--danger-soft); color: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .input { width: auto; flex: 1 1 140px; padding: 9px 12px; }
.plans-edit input { width: 90px; padding: 7px 9px; }
.review figcaption { margin: 0; }
.testimonial-by { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.testimonial-by img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.testimonial-by > span { display: grid; }

/* Blog general (/blog/) */
.blog-filters a { white-space: nowrap; }
.post-featured { display: grid; gap: 18px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.post-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.post-featured h2 { margin: 10px 0 8px; font-size: 26px; line-height: 1.2; }
.post-featured:hover h2 { color: var(--brand-ink); }
@media (min-width: 860px) { .post-featured { grid-template-columns: 1.2fr 1fr; padding: 18px; } }
.article-figure { margin: 22px 0; }
.article-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption, .cover-credit { font-size: 12px; color: var(--faint); margin-top: 6px; }
.cover-credit a { color: inherit; }


/* ---------- Pestañas (admin y panel): la información por secciones, no toda hacia abajo ---------- */
.tabs-nav { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; background: var(--bg-2); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tabs-nav button:hover { color: var(--ink); }
.tabs-nav button[aria-selected="true"] { background: var(--card); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.tabs-nav .ico { width: 16px; height: 16px; }
.tabs-nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; }
.js [data-tab-panel]:not(.on) { display: none; }
.no-tabs-nav .tabs-nav { display: none; }

/* Tablas en el celular: cada fila es una tarjeta con su etiqueta (data-label lo pone locali.js). */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
  .table td { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 7px 10px; border: 0; text-align: right; }
  .table td::before { content: attr(data-label); flex: 0 0 auto; max-width: 45%; font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .04em; }
  .table td[data-label=""]::before { display: none; }
  .table td:first-child { text-align: left; }
  .table tbody tr:hover td { background: transparent; }
}
.savebar { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 979px) { .app-main .savebar { bottom: 70px; } }
.kpis + [data-tabs], .kpis ~ [data-tabs] { margin-top: 18px; }
[data-tabs] > .panel-card, [data-tabs] [data-tab-panel].panel-card { margin-top: 0; }
