/* ==========================================================================
   Zybium — hoja de estilos del sitio
   Basada en la presentación "Diseño Páginas Web - Zybium":
   violeta #7D00E1, tinta #0F0E1D, fondos lavanda, DM Sans + Poppins.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0f0e1d;
  --ink-2: #26233a;
  --deep: #2b0853;
  --deep-2: #1a013a;
  --deep-3: #3a1470;
  --deep-line: #4a2382;
  --deep-muted: #a996cc;
  --text: #45425a;
  --muted: #6d6a82;
  --violet: #7d00e1;
  --violet-2: #9747ff;
  --violet-deep: #5300a0;
  --lav-50: #fbf8ff;
  --lav-100: #f6f1fc;
  --lav-200: #efe5fc;
  --lav-300: #e2d0fa;
  --lav-400: #c9a8f5;
  --line: #e6ddf2;
  --white: #ffffff;
  --green: #13a052; /* Verde de WhatsApp oscurecido: 3,4:1 con texto blanco (AA para texto grande y negrita). */
  --green-dark: #0f8a44;
  --mint: #eefaee;
  --wa-bubble: #dcf8c6;
  --wa-bubble-ink: #1c2b1f;
  --wa-read: #34b7f1;
  --danger: #c0392b;
  --star: #f5b301;

  --grad: linear-gradient(120deg, var(--violet-2) 0%, var(--violet) 100%);
  --grad-deep: linear-gradient(135deg, #9120f0 0%, #6a00c4 55%, #52009c 100%);

  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius: 20px;
  --radius-chat: 22px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 2px 10px rgba(83, 0, 160, 0.06);
  --shadow: 0 18px 50px -18px rgba(83, 0, 160, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(83, 0, 160, 0.38);
  --shadow-btn: 0 12px 26px -12px rgba(125, 0, 225, 0.7);
  --shadow-btn-hover: 0 16px 32px -12px rgba(125, 0, 225, 0.8);
  --shadow-wa: 0 12px 26px -14px rgba(15, 138, 68, 0.9);
  --shadow-wa-float: 0 18px 36px -12px rgba(15, 138, 68, 0.6);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pop: cubic-bezier(0.3, 1.4, 0.5, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--lav-300); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(56px, 7vw, 88px); }

.bg-lav { background: var(--lav-100); }
.bg-lav-soft { background: linear-gradient(180deg, var(--lav-100) 0%, var(--white) 100%); }
.bg-ink { background: var(--deep); color: #d3c8e8; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink strong { color: #fff; }
.bg-violet { background: var(--violet); color: #efe3ff; }
.bg-violet h1, .bg-violet h2, .bg-violet h3, .bg-violet strong { color: #fff; }
.bg-wash {
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(151, 71, 255, 0.14) 0%, transparent 60%),
    radial-gradient(45% 60% at 0% 100%, rgba(78, 214, 120, 0.10) 0%, transparent 60%),
    var(--white);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.grid-2.align-start { align-items: start; }
.grid-2 > * { min-width: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- 4. Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet);
  margin-bottom: 18px;
}
.bg-ink .eyebrow { color: var(--lav-400); }
.bg-violet .eyebrow { color: #fff; }

.eyebrow-pill {
  padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12);
}

.h-display { font-size: clamp(2.6rem, 6vw, 4.9rem); letter-spacing: -0.045em; line-height: 1; }
.h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); letter-spacing: -0.042em; }
.h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.025em; }
.h4 { font-size: 1.15rem; letter-spacing: -0.015em; font-weight: 700; line-height: 1.25; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--text); max-width: 60ch; }
.bg-ink .lead { color: #cfc3e6; }
.bg-violet .lead { color: #eadcff; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.mt-s { margin-top: 16px; }
.mt { margin-top: 28px; }
.mt-l { margin-top: 48px; }
.text-violet { color: var(--violet); }

.hl {
  background: linear-gradient(transparent 62%, var(--lav-300) 62%, var(--lav-300) 92%, transparent 92%);
  padding-inline: 2px;
}

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--violet);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn i { font-size: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { box-shadow: var(--shadow-btn-hover); }
.btn-outline { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-outline:hover { background: var(--lav-100); }
.btn-wa { background: var(--green); color: #fff; box-shadow: var(--shadow-wa); }
.btn-wa:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--violet); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Firma: vista previa del mensaje ya redactado en los botones de WhatsApp */
.btn-wa[data-msg]::after {
  content: attr(data-msg);
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  width: max-content; max-width: 280px;
  padding: 10px 14px 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--wa-bubble); color: var(--wa-bubble-ink);
  font-size: 0.8rem; font-weight: 500; line-height: 1.45; white-space: normal; text-align: left;
  box-shadow: 0 14px 30px -12px rgba(15, 14, 29, 0.35);
  opacity: 0; transform: translate(-50%, 8px) scale(0.96); transform-origin: bottom left;
  pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 5;
}
.btn-wa[data-msg]:hover::after,
.btn-wa[data-msg]:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--violet); font-size: 0.95rem;
}
.link-arrow i { transition: transform 0.2s ease; }
.link-arrow:hover i { transform: translateX(4px); }
.bg-ink .link-arrow, .bg-violet .link-arrow { color: #fff; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(83, 0, 160, 0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 32px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a {
  display: block; padding: 8px 14px; border-radius: var(--pill);
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav ul a:hover { background: var(--lav-100); color: var(--violet); }
.main-nav ul a[aria-current="page"] { color: var(--violet); background: var(--lav-100); }
/* Escritorio: los links quedan centrados en la página; el logo a la izquierda y el botón a la derecha */
@media (min-width: 961px) {
  .header-inner { position: relative; }
  .main-nav { flex: 1; justify-content: flex-end; }
  .main-nav ul { position: absolute; left: 50%; transform: translateX(-50%); }
}

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--lav-100); border: 0; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease; content: "";
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* ---------- 7. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: var(--pill);
  background: var(--green); color: #fff; font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-wa-float);
  transition: transform 0.2s ease;
}
.wa-float i { font-size: 1.7rem; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float-label { max-width: 160px; overflow: hidden; white-space: nowrap; transition: max-width 0.3s ease, opacity 0.3s ease; }
.wa-float.is-compact .wa-float-label { max-width: 0; opacity: 0; }
.wa-float.is-compact { padding: 0 15px; gap: 0; }

/* ---------- 8. Hero de Inicio ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero-copy { min-width: 0; container-type: inline-size; }
.hero-copy .lead { margin-top: 24px; }
.hero-copy .btn-row { margin-top: 36px; }

.gift-line {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; max-width: 100%;
  padding: 10px 30px 10px 12px; border-radius: var(--pill);
  background: var(--lav-100); border: 1px solid var(--lav-300);
  font-size: 0.95rem; line-height: 1.4; color: var(--ink-2); transition: background-color 0.2s ease, border-color 0.2s ease;
}
.gift-line:hover { background: var(--lav-200); border-color: var(--lav-400); }
.gift-line .dot {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lav-200); color: var(--violet); font-size: 1.05rem; transition: background-color 0.2s ease, color 0.2s ease;
}
.gift-line:hover .dot { background: var(--violet); color: #fff; }
.gift-line u { color: var(--violet); text-decoration-color: var(--lav-400); text-underline-offset: 4px; }
@container (min-width: 552px) {
  /* En una sola línea: la letra se achica con el ancho de la columna para no salirse de ella
     (ni tocar la tarjeta del chat). Con menos de 552px ya quedaría muy chica y pasa a dos líneas. */
  .gift-line { white-space: nowrap; font-size: clamp(0.75rem, (100cqi - 96px) / 38, 0.95rem); }
}

.hero-visual { position: relative; padding: 0 0 40px 40px; }
.photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--lav-300); box-shadow: var(--shadow-lg); background: var(--lav-200);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .photo-frame { aspect-ratio: 4 / 5; }
/* Fotogramas que siguen al mensaje: mira el celular y después lo muestra a cámara. */
.hero-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-frame.is-on { opacity: 1; }

.search-chip {
  position: absolute; top: 34px; left: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--pill);
  background: #fff; box-shadow: var(--shadow); font-size: 0.85rem; color: var(--ink-2);
}
.search-chip i { color: var(--violet); font-size: 1.1rem; }

.chat-card {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: min(330px, 86%);
  padding: 14px; border-radius: var(--radius-chat); background: #fff; box-shadow: var(--shadow-lg);
}
.chat-card-head { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.chat-card-head .wa-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1rem; }
.chat-card-head b { color: var(--ink); font-weight: 600; }
.bubble {
  position: relative; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--wa-bubble); color: var(--wa-bubble-ink); font-size: 0.9rem; line-height: 1.5;
}
.bubble-meta { display: flex; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 0.7rem; color: #5a7a61; }
.bubble-meta i { color: var(--wa-read); }
.chat-status { transition: color 0.3s ease; }

/* Secuencia del hero (la arma main.js; sin JS se ve el estado final).
   El texto final queda invisible debajo para reservar el espacio y el tipeo va encima. */
.type-slot { display: inline-grid; }
.bubble .type-slot { display: grid; }
.type-slot > span { grid-area: 1 / 1; }
.type-ghost { visibility: hidden; }
.type-live::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin: 0 -3px 0 1px;
  vertical-align: -0.16em; border-radius: 1px; background: currentColor; opacity: 0;
}
.type-live.is-typing::after { opacity: 1; animation: caret 1s steps(1) infinite; }
.type-live.is-busy::after { animation: none; }
.search-chip .type-live::after { background: var(--violet); }
@keyframes caret { 50% { opacity: 0; } }

.hero-visual.is-sequenced .search-chip.is-submitted { animation: chip-ring 0.9s ease-out; }
.search-chip.is-submitted i { animation: w-pop 0.45s ease; }
@keyframes chip-ring {
  from { box-shadow: var(--shadow), 0 0 0 0 rgba(125, 0, 225, 0.32); }
  to { box-shadow: var(--shadow), 0 0 0 12px rgba(125, 0, 225, 0); }
}

.hero-visual.is-sequenced .chat-card {
  animation: none; opacity: 0; transform: translateY(18px) scale(0.94); transform-origin: 0 100%;
  transition: opacity 0.5s ease, transform 0.7s var(--ease-pop);
}
.hero-visual.is-sequenced .chat-card.is-shown { opacity: 1; transform: none; }
.chat-card.is-writing .chat-status { color: var(--green-dark); font-weight: 500; }
.is-sequenced .bubble-meta { opacity: 0; transform: translateY(3px); transition: opacity 0.4s ease, transform 0.4s ease; }
.is-sequenced .is-sent .bubble-meta { opacity: 1; transform: none; }
.is-sequenced .bubble-meta i { color: #8696a0; transition: color 0.35s ease; }
.is-sequenced .is-read .bubble-meta i { color: var(--wa-read); }
.chat-card.is-read .wa-dot { animation: w-ring-green 0.9s ease-out; }

/* ---------- 9. Problema ---------- */
.problem-photo { position: relative; }
.problem-photo .photo-frame { aspect-ratio: 5 / 6; }
.photo-caption {
  position: absolute; left: -28px; bottom: 36px; max-width: 260px;
  padding: 14px 18px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow);
  font-size: 0.86rem; line-height: 1.5; color: var(--ink-2);
}
.tag-outline {
  display: inline-block; margin-top: 28px; padding: 10px 18px; border-radius: var(--pill);
  border: 1px solid var(--lav-300); background: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}

.signals { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--lav-300); }
.signal { padding: 32px 32px 8px 0; }
.signal + .signal { padding-left: 32px; border-left: 1px solid var(--lav-300); }
.signal i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--violet); font-size: 1.3rem; margin-bottom: 18px; border: 1px solid var(--lav-300); }
.signal h3 { margin-bottom: 10px; }
.signal p { font-size: 0.95rem; }

.pullquote {
  margin: clamp(56px, 7vw, 88px) auto 0; max-width: 900px; text-align: center;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); color: var(--ink);
}
.pullquote span { color: var(--violet); }

/* ---------- 10. Bento de resultados ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-item {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  grid-column: span 2; padding: 28px; border-radius: var(--radius); background: var(--lav-100); border: 1px solid var(--line);
  min-height: 260px;
}
.bento-item.wide { grid-column: span 3; }
.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; }
.bento-item.span-6 > div:first-child { max-width: 420px; }
.bento-item.span-6 .mini-faq { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
.bento-item.dark { background: var(--deep); border-color: var(--deep); color: #d3c8e8; }
.bento-item.dark h3 { color: #fff; }
.bento-item.violet { background: var(--deep); border-color: transparent; color: #eadcff; }
.bento-item.violet h3 { color: #fff; }
.bento-item h3 { margin-bottom: 8px; }
.bento-item p { font-size: 0.93rem; }

.mini-search { background: #fff; border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); font-size: 0.8rem; }
.mini-search .q { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 12px; }
.mini-search .res b { display: block; color: #1a0dab; font-weight: 500; font-size: 0.88rem; }
.mini-search .res .desc { margin: 3px 0 2px; color: #4d5156; font-size: 0.74rem; line-height: 1.45; }
.mini-search .res span { color: #1e7a3a; font-size: 0.72rem; }
.mini-search .ai { margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-xs); background: var(--lav-100); color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.mini-search .ai i { color: var(--violet); margin-top: 2px; }

.mini-wa { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mini-wa .btn-fake { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 0.82rem; font-weight: 600; }
.mini-wa .bubble { font-size: 0.8rem; max-width: 260px; }

/* Demostración en bucle: una mano toca el botón y aparece el mensaje. Así se entiende que
   el botón es un ejemplo y no algo para tocar. Sin animación (o con movimiento reducido)
   se ve el estado final: botón y mensaje, sin la mano. */
.mini-wa { position: relative; }
.mini-wa .btn-fake { position: relative; cursor: default; user-select: none; }
.mini-wa .btn-fake::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.mini-wa-tap {
  position: absolute; left: 104px; top: 20px; z-index: 2; font-size: 30px; line-height: 1;
  color: #fff; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(20, 10, 40, 0.3));
}
/* Borde negro: la versión de contorno del mismo ícono, encima del relleno blanco. */
.mini-wa-tap::after { content: "\e29a"; position: absolute; inset: 0; font-family: "Phosphor"; color: #000; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in .mini-wa-tap { animation: wa-demo-hand 5.6s ease-in-out 0.6s infinite; }
  .reveal.is-in .mini-wa .btn-fake { animation: wa-demo-press 5.6s ease-in-out 0.6s infinite; }
  .reveal.is-in .mini-wa .btn-fake::after { animation: wa-demo-ring 5.6s ease-out 0.6s infinite; }
  .reveal.is-in .mini-wa .bubble { transform-origin: 18px 0; animation: wa-demo-bubble 5.6s cubic-bezier(0.3, 1.3, 0.5, 1) 0.6s infinite backwards; }
}
@keyframes wa-demo-hand {
  0% { opacity: 0; transform: translate(46px, 40px); }
  10% { opacity: 1; }
  27% { transform: translate(0, 0) scale(1); }
  31% { transform: translate(0, 0) scale(0.84); }
  36% { opacity: 1; transform: translate(0, 0) scale(1); }
  52% { opacity: 0; transform: translate(30px, 34px); }
  100% { opacity: 0; transform: translate(30px, 34px); }
}
@keyframes wa-demo-press {
  0%, 29% { transform: none; }
  32% { transform: scale(0.94); }
  38%, 100% { transform: none; }
}
@keyframes wa-demo-ring {
  0%, 31% { box-shadow: 0 0 0 0 rgba(19, 160, 82, 0.45); }
  56%, 100% { box-shadow: 0 0 0 14px rgba(19, 160, 82, 0); }
}
@keyframes wa-demo-bubble {
  0%, 35% { opacity: 0; transform: translateY(-8px) scale(0.85); }
  45% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-4px) scale(0.96); }
}

/* Ventana del navegador que carga la página y marca el tiempo. */
.mini-load { position: relative; padding: 8px 8px 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.ml-bar { display: flex; align-items: center; gap: 8px; }
.ml-dots { display: flex; gap: 4px; }
.ml-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lav-300); }
.ml-url { flex: 1; display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); background: var(--lav-100); color: var(--muted); font-size: 0.7rem; }
.ml-url i { color: var(--green-dark); font-size: 0.75rem; }
.ml-progress { display: block; height: 2px; margin: 6px 0 8px; border-radius: 2px; background: var(--violet); transform-origin: 0 50%; opacity: 0; }
.ml-page { display: grid; gap: 6px; }
.ml-hero { height: 40px; border-radius: 8px; background: linear-gradient(120deg, var(--lav-300), var(--lav-200)); }
.ml-line { height: 6px; width: 80%; border-radius: 3px; background: var(--lav-200); }
.ml-line.s { width: 52%; }
.ml-time {
  position: absolute; right: -6px; bottom: -12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: var(--pill); background: var(--deep); color: #fff; font-size: 0.72rem; font-weight: 600;
  box-shadow: 0 10px 18px -10px rgba(43, 8, 83, 0.7);
}
.ml-time i { color: var(--violet-2); font-size: 0.85rem; }

.mini-url { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--pill); background: #fff; font-size: 0.82rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.mini-url i { color: var(--green-dark); }
.mini-url.bad { opacity: 0.55; text-decoration: line-through; margin-bottom: 8px; background: rgba(255, 255, 255, 0.6); }
.mini-url.bad i { color: var(--danger); }
.mu-lock { display: inline-grid; }
.mu-lock i { grid-area: 1 / 1; }
.mu-lock .ph-lock-simple-open { opacity: 0; }

/* Demostraciones en bucle de "Carga rápido" y "Transmite confianza". Sin animación se ve
   el estado final: barras cargadas, dirección insegura tachada y candado cerrado. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in .ml-progress { animation: ml-progress 5.6s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.5s backwards; }
  .reveal.is-in .ml-page > * { animation: ml-in 5.6s ease infinite 0.5s backwards; }
  .reveal.is-in .ml-page > :nth-child(2) { animation-delay: 0.56s; }
  .reveal.is-in .ml-page > :nth-child(3) { animation-delay: 0.62s; }
  .reveal.is-in .ml-time { animation: ml-time 5.6s var(--ease-pop) infinite 0.5s backwards; }

  .reveal.is-in .mini-url.bad { position: relative; text-decoration: none; animation: url-bad 6s ease infinite 0.6s backwards; }
  .reveal.is-in .mini-url.bad::after {
    content: ""; position: absolute; left: 36px; right: 14px; top: 50%; height: 1.5px; border-radius: 1px;
    background: currentColor; transform-origin: 0 50%; animation: url-strike 6s ease-in-out infinite 0.6s backwards;
  }
  .reveal.is-in .mini-url.good { animation: url-good 6s cubic-bezier(0.3, 1.3, 0.5, 1) infinite 0.6s backwards; }
  .reveal.is-in .mu-lock .ph-lock-simple-open { animation: lock-open 6s step-end infinite 0.6s backwards; }
  .reveal.is-in .mu-lock .ph-lock-simple { animation: lock-shut 6s ease infinite 0.6s backwards; }
}
@keyframes ml-progress {
  0% { opacity: 1; transform: scaleX(0); }
  14% { opacity: 1; transform: scaleX(1); }
  19%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes ml-in {
  0%, 13% { opacity: 0; transform: translateY(5px); }
  18%, 93% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}
@keyframes ml-time {
  0%, 17% { opacity: 0; transform: scale(0.7); }
  22.5%, 93% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: scale(0.9); }
}
@keyframes url-bad {
  0%, 26% { opacity: 1; }
  34%, 90% { opacity: 0.55; }
  100% { opacity: 1; }
}
@keyframes url-strike {
  0%, 10% { opacity: 1; transform: scaleX(0); }
  26%, 90% { opacity: 1; transform: scaleX(1); }
  97% { opacity: 0; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}
@keyframes url-good {
  0%, 30% { opacity: 0; transform: translateY(8px) scale(0.96); box-shadow: var(--shadow-sm), 0 0 0 0 rgba(19, 160, 82, 0.4); }
  40% { opacity: 1; transform: none; box-shadow: var(--shadow-sm), 0 0 0 0 rgba(19, 160, 82, 0.4); }
  62% { box-shadow: var(--shadow-sm), 0 0 0 12px rgba(19, 160, 82, 0); }
  90% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes lock-open {
  0% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes lock-shut {
  0%, 47% { opacity: 0; transform: none; }
  48% { opacity: 1; transform: scale(0.7); }
  55% { transform: scale(1.25); }
  62%, 100% { opacity: 1; transform: none; }
}

.mini-phone {
  position: relative; align-self: center; width: 132px; height: 212px; padding: 5px; border-radius: 26px;
  background: var(--deep); box-shadow: 0 18px 30px -16px rgba(40, 0, 90, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transform: rotate(-4deg); transition: transform 0.5s cubic-bezier(.2,.8,.3,1);
}
.mini-phone::before, .mini-phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: var(--deep); }
.mini-phone::before { top: 46px; height: 26px; }
.mini-phone::after { top: 80px; height: 16px; }
.mp-screen { position: relative; height: 100%; border-radius: 21px; overflow: hidden; background: #fff; }
.mp-island { position: absolute; z-index: 2; top: 6px; left: 50%; width: 34px; height: 9px; margin-left: -17px; border-radius: 9px; background: var(--deep); }
.mp-page { display: flex; flex-direction: column; gap: 5px; padding: 22px 9px 44px; transition: transform 1.4s cubic-bezier(.4,0,.2,1); }
.mp-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.mp-logo { width: 26px; height: 7px; border-radius: 3px; background: var(--violet); }
.mp-menu { width: 10px; height: 7px; border-block: 2px solid var(--ink-2); position: relative; }
.mp-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink-2); }
.mp-hero { display: grid; place-items: center; height: 50px; border-radius: 8px; background: var(--lav-200); color: var(--violet); font-size: 1.3rem; }
.mp-line { height: 6px; border-radius: 3px; background: var(--lav-300); }
.mp-line.s { width: 62%; background: var(--lav-200); }
.mp-stars { display: flex; gap: 1px; color: var(--star); font-size: 0.55rem; }
.mp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 2px 0; }
.mp-cards span { height: 30px; border-radius: 6px; background: var(--lav-100); border: 1px solid var(--line); }
.mp-cta {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 24px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 0.6rem; font-weight: 700;
  box-shadow: 0 6px 12px -6px rgba(15, 138, 68, 0.7);
}
.mp-cta i { font-size: 0.8rem; }
@media (hover: hover) {
  .bento-item:hover .mini-phone { transform: rotate(0deg) translateY(-4px); }
  .bento-item:hover .mp-page { transform: translateY(-58px); }
  .bento-item:hover .mp-cta { animation: w-ring-green 1.2s ease-out 0.9s infinite; }
}

.mini-faq { display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; }
.mini-faq div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius-xs); background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- 11. Diferencia (bloque oscuro) ---------- */
.flow { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #efebf8; border: 1px solid var(--lav-300); color: var(--text); }
.flow-step { display: flex; justify-content: center; }
.flow-arrow { display: grid; place-items: center; height: 40px; color: var(--muted); font-size: 1.2rem; }
.flow-msg { padding: 16px 18px; border-radius: var(--radius-md); background: #fff; }
.flow-msg small { display: block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.flow-msg p { color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.flow-note { margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.flow-inbox { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--lav-300); background: #fff; font-size: 0.85rem; color: var(--ink-2); }
.flow-inbox i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lav-200); color: var(--violet); }

.flow .eyebrow { color: var(--violet); }
.side-quote { margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--violet-2); color: #d9d4ec; font-size: 1rem; }

/* ---------- 12. Para quién ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff;
  font-size: 0.88rem; font-weight: 500; color: var(--ink-2); transition: all 0.2s ease;
}
.chip:hover { border-color: var(--lav-400); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aud-card.is-hidden { display: none; }
.aud-media { aspect-ratio: 4 / 3; background: var(--lav-200); position: relative; overflow: hidden; }
.aud-media img { width: 100%; height: 100%; object-fit: cover; }
.aud-media.icon { display: grid; place-items: center; background: linear-gradient(150deg, var(--lav-200), var(--lav-100)); }
.aud-media.icon i { font-size: 3.4rem; color: var(--violet); opacity: 0.9; }
.aud-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; background: var(--lav-50); }
.aud-body h3 { font-size: 1.08rem; letter-spacing: -0.015em; }
.aud-rubros { font-size: 0.78rem; color: var(--muted); margin: 4px 0 14px; line-height: 1.5; }
.aud-pain { font-size: 0.86rem; line-height: 1.55; margin-bottom: 10px; }
.aud-pain b, .aud-gain b { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.aud-gain { font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); }
.aud-gain b { color: var(--violet); }
.aud-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: center; }
.pkg-tag { align-self: flex-start; padding: 5px 12px; border-radius: var(--pill); background: var(--lav-200); color: var(--violet); font-size: 0.74rem; font-weight: 600; }
.aud-foot .link-arrow { font-size: 0.86rem; }

.aud-after { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 24px; margin-top: 40px; }
.aud-after .note-card { margin: 0; }
.note-card { padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-size: 0.95rem; }
.note-card.dashed { border-style: dashed; border-color: var(--lav-400); background: transparent; }
.note-card a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. Proceso (línea horizontal) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--lav-300);
}
.steps::after {
  content: ""; position: absolute; top: 27px; left: 28px; height: 2px; background: var(--violet);
  width: calc((100% - 56px) * var(--progress, 0)); transition: width 1.4s var(--ease-out);
}
.step { position: relative; z-index: 1; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--lav-300); color: var(--violet);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 22px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.steps.is-in .step-num { background: var(--violet); border-color: var(--violet); color: #fff; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.93rem; }

/* ---------- 14. Paquetes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
  border-radius: var(--radius); background: var(--lav-50); border: 1px solid var(--line);
}
.plan-featured { background: #fff; border: 2px solid var(--violet); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -15px; right: 22px; padding: 7px 16px; border-radius: var(--pill);
  background: var(--violet); color: #fff; font-size: 0.78rem; font-weight: 600;
}
.plan-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lav-200); border: 1px solid var(--lav-300); color: var(--violet); font-size: 1.3rem; margin-bottom: 20px; }
.plan h3 { font-size: 1.35rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.plan-tagline { font-size: 0.92rem; margin-bottom: 20px; }
.price { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); font-size: clamp(1.8rem, 2.6vw, 2.2rem); line-height: 1.1; }
.price small { display: block; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-top: 6px; }
.price .from { font-size: 0.55em; font-weight: 700; letter-spacing: -0.01em; }
.plan-ideal { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.86rem; }
.plan-ideal b { color: var(--ink); }
.plan-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan-actions .link-arrow { align-self: center; font-size: 0.85rem; font-weight: 500; }
.plans-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 32px; font-size: 0.86rem; color: var(--muted); }

.feature-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 0.9rem; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.feature-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--lav-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237d00e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.feature-list li.off { color: var(--muted); }
.feature-list li.off::before { background: #f1eef5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%23a09cb3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feature-list .all { font-weight: 600; color: var(--ink); }
.feature-list .all::before { background: var(--violet); }

/* ---------- 15. A medida ---------- */
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.custom-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.custom-card h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.custom-card p { font-size: 0.9rem; }
.idea-plus { display: grid; place-items: center; height: 96px; border-radius: 14px; border: 1.5px dashed var(--lav-400); }
.idea-plus span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lav-200); color: var(--violet); font-size: 1.4rem; }
.widget { padding: 14px; border-radius: 14px; background: var(--lav-100); }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc label { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-xs); background: #fff; border: 1px solid var(--line); font-size: 0.68rem; color: var(--muted); }
.calc input { width: 100%; border: 0; padding: 0; font: 600 0.95rem var(--font-body); color: var(--ink); background: transparent; }
.calc input:focus { outline: none; }
.calc label:focus-within { border-color: var(--violet-2); box-shadow: 0 0 0 3px var(--lav-300); }
.calc-out { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-xs); background: var(--lav-300); font-size: 0.78rem; color: var(--ink-2); }
.calc-out output { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--violet); letter-spacing: -0.02em; }

/* ---------- Demos de funciones a medida (se pueden usar) ---------- */
.demo button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.demo [hidden] { display: none !important; }
.demo button:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.func .widget p.w-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.w-head span { display: inline-flex; align-items: center; gap: 6px; }
.w-head i { color: var(--violet); }
.func .widget p.w-hint { min-height: 1.3em; margin-top: 10px; font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
.w-hint b { color: var(--violet); font-weight: 600; }
.demo .w-pill { padding: 3px 10px; border-radius: var(--pill); background: var(--lav-200); color: var(--violet); font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.demo .w-pill.solid { background: var(--violet); color: #fff; }
.demo .w-pill.solid:hover { background: var(--violet-deep); }
.demo .w-pill.is-done { background: var(--lav-200); color: var(--violet); cursor: default; }

/* Filas */
.w-rows { display: flex; flex-direction: column; gap: 8px; }
.w-rows > div, .demo .w-row-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: var(--radius-xs); background: #fff; border: 1px solid var(--line); font-size: 0.8rem; text-align: left; }
.demo .w-row-btn:hover { border-color: var(--lav-400); transform: translateX(3px); }
.w-rows b { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; color: var(--ink); }
.w-rows b small { display: block; margin-top: 2px; font-weight: 500; }
.w-rows small { font-size: 0.7rem; color: var(--muted); }
.w-rows > div > i { color: var(--violet); font-size: 1.1rem; }
.w-empty { padding: 10px 12px; border-radius: var(--radius-xs); border: 1px dashed var(--lav-400); font-size: 0.75rem; color: var(--muted); text-align: center; }

/* Pestañas y control segmentado */
.w-tabs, .w-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: var(--radius-xs); background: var(--lav-200); }
.demo .w-tabs button, .demo .w-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border-radius: 7px; font-size: 0.74rem; font-weight: 600; color: var(--ink-2); }
.demo .w-tabs [aria-selected="true"], .demo .w-seg [aria-checked="true"] { background: #fff; color: var(--violet); box-shadow: 0 2px 6px -2px rgba(83, 0, 160, 0.25); }

/* Turnos */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo .slots button { padding: 7px 0; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.demo .slots button:not(:disabled):hover { border-color: var(--violet-2); color: var(--violet); transform: translateY(-2px); }
.demo .slots button:disabled { color: var(--muted); text-decoration: line-through; background: transparent; cursor: not-allowed; }
.demo .slots [aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; animation: w-ring 0.9s ease-out; }
.demo .slots [aria-pressed="true"]:hover { color: #fff; }

/* Chips de filtro */
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.demo .w-chip { padding: 4px 10px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: 0.7rem; font-weight: 600; color: var(--ink-2); }
.demo .w-chip:hover { border-color: var(--lav-400); }
.demo .w-chip[aria-pressed="true"] { background: var(--lav-200); border-color: var(--lav-300); color: var(--violet); }
.w-toggle::before { content: "✓"; display: inline-block; width: 0; opacity: 0; overflow: hidden; vertical-align: bottom; transition: width 0.25s ease, opacity 0.25s ease, margin 0.25s ease; }
.w-toggle[aria-pressed="true"]::before { width: 1em; opacity: 1; margin-right: 2px; }
.w-av { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lav-200); color: var(--violet); font-size: 0.64rem; font-weight: 700; }
.w-tag { flex: none; padding: 2px 7px; border-radius: var(--pill); background: #e3f8ea; color: var(--green-dark); font-size: 0.62rem; font-weight: 700; }

/* Área de socios */
.w-locked { display: grid; gap: 6px; }
.w-field { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 500 0.78rem var(--font-body); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.w-field::placeholder { color: var(--muted); opacity: 1; }
.w-field:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px var(--lav-300); }
.demo .w-btn { padding: 8px; border-radius: 8px; background: var(--violet); color: #fff; font-size: 0.78rem; font-weight: 600; }
.demo .w-btn:hover { background: var(--violet-deep); }
.demo .w-btn.is-loading { opacity: 0.7; cursor: progress; }
.demo .w-link { align-self: flex-end; font-size: 0.7rem; font-weight: 600; color: var(--muted); text-decoration: underline; }
.demo .w-link:hover { color: var(--violet); }

/* Eventos */
.w-date { display: flex; flex-direction: column; align-items: center; flex: none; width: 34px; padding: 3px 0; border-radius: 8px; background: var(--lav-200); color: var(--violet); font-size: 0.58rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.w-rows .w-date b { flex: none; font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: inherit; }
.is-joined .w-date { background: var(--violet); color: #fff; }
[data-demo="eventos"] .w-rows > div { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; row-gap: 8px; }
[data-demo="eventos"] [data-join] { grid-column: 2; justify-self: start; }

/* Propiedades */
.demo .w-wa { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; }
.demo .w-wa:hover { transform: scale(1.1); }
.func .widget p.w-bubble { position: relative; margin-top: 10px; padding: 8px 10px; border-radius: 10px 10px 2px 10px; background: #dcf8e6; color: #0b5a2d; font-size: 0.74rem; line-height: 1.4; }
.w-bubble small { display: block; margin-top: 2px; font-size: 0.62rem; opacity: 0.7; text-align: right; }

/* Avance de obra */
.w-pct { font-family: var(--font-display); font-weight: 800; color: var(--violet); }
.w-bar { height: 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.w-bar span { display: block; height: 100%; background: var(--violet); transition: width 0.7s cubic-bezier(.2,.8,.3,1); }
.w-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.demo .w-steps button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--pill); border: 1px solid transparent; font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.demo .w-steps button.done { color: var(--ink); }
.demo .w-steps button:hover { border-color: var(--lav-300); }
.demo .w-steps [aria-pressed="true"] { background: #fff; border-color: var(--lav-300); color: var(--violet); }
.w-steps i { color: var(--violet); }

/* Precios */
.w-prices > div { flex-wrap: wrap; row-gap: 2px; }
.w-prices b { flex-basis: 100%; }
.w-prices s { font-size: 0.7rem; color: var(--muted); white-space: nowrap; transition: opacity 0.25s ease; }
.w-prices em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--violet); white-space: nowrap; }
[data-demo="precios"][data-mode="minorista"] .w-prices s { opacity: 0; }
[data-demo="precios"][data-mode="minorista"] .w-prices em { color: var(--ink); }

/* Movimiento */
.demo .w-row-btn, .demo .slots button, .demo .w-chip, .demo .w-wa, .demo .w-pill, .w-rows > div, .w-date { transition: transform 0.3s cubic-bezier(.2,.8,.3,1.2), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
@keyframes w-ring { 0% { box-shadow: 0 0 0 0 rgba(125, 0, 225, 0.45); } 100% { box-shadow: 0 0 0 10px rgba(125, 0, 225, 0); } }
@keyframes w-ring-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } }
@keyframes w-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes w-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes w-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.w-in { animation: w-in 0.35s ease both; }
.w-in:nth-child(2) { animation-delay: 0.06s; } .w-in:nth-child(3) { animation-delay: 0.12s; }
.w-pop { animation: w-pop 0.4s ease; }
.w-wiggle { animation: w-wiggle 0.45s ease; }

@media (hover: hover) {
  /* Al pasar por la tarjeta, la acción principal de cada demo invita a tocarla */
  .func:hover .cv-list .w-pill, .func:hover [data-demo="cv"] .w-pill { background: var(--violet); color: #fff; }
  .func:hover [data-demo="turnos"] .slots button:not(:disabled):not([aria-pressed="true"]) { border-color: var(--lav-400); }
  .func:hover [data-demo="socios"] [data-lock] { animation: w-wiggle 0.5s ease; }
  .func:hover [data-demo="eventos"] .w-pill.solid:not(.is-done) { animation: w-ring 1.2s ease-out infinite; }
  .func:hover [data-demo="props"] .w-wa { animation: w-ring-green 1.2s ease-out infinite; }
  .func:hover [data-demo="obra"] .w-steps button:not(.done) { border-color: var(--lav-300); }
}

/* ---------- 16. Afirmación grande ---------- */
.statement { text-align: center; max-width: 880px; margin-inline: auto; }
.statement .h-display { font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
.statement .lead { margin: 24px auto 0; }
.statement .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- 17. Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
a.post-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
a.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card[aria-disabled="true"] { cursor: default; }
.post-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--grad-deep); overflow: hidden; }
.post-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(255, 255, 255, 0.22), transparent 60%); }
.post-cover img { width: 56px; height: 56px; position: relative; opacity: 0.95; }
.post-cover.v2 { background: linear-gradient(135deg, #1b1932, var(--ink)); }
.post-cover.v3 { background: linear-gradient(135deg, var(--lav-300), var(--violet-2)); }
.badge-soon { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.92); color: var(--violet); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.post-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.post-body h3 { font-size: 1.18rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.post-body p { font-size: 0.9rem; }
.post-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; font-size: 0.82rem; color: var(--ink-2); }
/* Portada: un artículo destacado a la izquierda y dos horizontales apilados a la derecha */
.posts-featured { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.posts-featured .post-card:first-child { grid-row: span 2; }
.posts-featured .post-card:first-child .post-cover { aspect-ratio: auto; flex: 1; min-height: 280px; }
.posts-featured .post-card:first-child .post-cover img { width: 72px; height: 72px; }
.posts-featured .post-card:first-child .post-body { flex: 0 0 auto; padding: 28px; }
.posts-featured .post-card:first-child h3 { font-size: 1.5rem; }
.posts-featured .post-card:not(:first-child) { flex-direction: row; }
.posts-featured .post-card:not(:first-child) .post-cover { aspect-ratio: auto; flex: 0 0 40%; }

.avatar {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lav-200); color: var(--violet); font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0;
}
.avatar-lg { width: 112px; height: 112px; font-size: 2rem; }

/* ---------- 18. Banda violeta (revisión gratuita) ---------- */
.gift-band { overflow: hidden; }
.gift-band .container { position: relative; z-index: 1; }
.check-card { padding: 32px; border-radius: 24px; background: #fff; box-shadow: 0 40px 80px -30px rgba(20, 0, 50, 0.6); color: var(--text); }
.check-card h3 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); font-family: var(--font-body); font-weight: 700; margin-bottom: 18px; }
.check-card .feature-list { font-size: 1rem; color: var(--ink); gap: 14px; margin: 0; }
.check-card .feature-list li::before { width: 24px; height: 24px; background-size: 14px; }
.check-card-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; font-size: 0.88rem; }
.check-card-foot i { font-size: 1.6rem; color: var(--violet); }

/* ---------- 19. CTA con foto ---------- */
.cta-split .photo-frame { aspect-ratio: 4 / 5; max-width: 480px; margin-left: auto; }
.cta-split .lead { margin-top: 22px; }
.cta-split .btn-row { margin-top: 34px; }

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--deep-2); color: var(--deep-muted); padding-top: clamp(64px, 8vw, 96px); font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: #fff; max-width: 32ch; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lav-400); margin-bottom: 18px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--lav-400); margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 96px; border-top: 1px solid var(--deep-3); font-size: 0.82rem; }

/* ==========================================================================
   Páginas internas
   ========================================================================== */

/* ---------- 21. Encabezados de página ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px); }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero.center .btn-row { justify-content: center; }
/* Fondo de puntos animado (canvas liviano, ver main.js) */
.has-dots { position: relative; overflow: hidden; isolation: isolate; }
.has-dots > .container { position: relative; z-index: 1; }
.dots-canvas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: 38%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.dots-canvas.is-ready { opacity: 1; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--violet); font-weight: 500; }
.crumbs i { font-size: 0.75rem; }

/* ---------- 22. Objetivos (Qué hacemos) ---------- */
.goal { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.goal + .goal { margin-top: 24px; }
.goal-featured { border: 2px solid var(--violet); background: linear-gradient(135deg, var(--lav-100), #fff 60%); }
.goal h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 22px; }
.goal dl { margin: 0; display: grid; gap: 16px; }
.goal dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.goal dd { margin: 4px 0 0; font-size: 0.97rem; }
.goal-side { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: var(--radius); background: var(--lav-100); align-self: start; }
.goal-featured .goal-side { background: #fff; border: 1px solid var(--line); }
.goal-side .feature-list { margin-top: 0; font-size: 0.86rem; }
.goal-side-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 23. Tarjetas que giran (Lo que no se ve) ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flip { perspective: 1200px; text-align: left; }
.flip-inner { display: grid; height: 100%; transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); transform-style: preserve-3d; }
.flip { cursor: pointer; border-radius: var(--radius); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .flip:hover .flip-inner { transform: rotateY(180deg); }
}
.flip-face {
  grid-area: 1 / 1; min-height: 250px; display: flex; flex-direction: column; gap: 12px; padding: 26px;
  border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-front { background: #fff; border: 1px solid var(--line); }
.flip-back { background: var(--deep); color: #ddd3ef; transform: rotateY(180deg); }
.flip-back h3 { color: #fff; }
.flip-face h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.flip-face p { font-size: 0.92rem; line-height: 1.6; }
.flip-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.flip-front .flip-kicker { color: var(--danger); }
.flip-back .flip-kicker { color: #6ee7a0; }
.flip-hint { margin-top: auto; display: flex; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.flip-front i.big { font-size: 1.6rem; color: var(--violet); }

/* ---------- 24. Autodiagnóstico ---------- */
.selfcheck { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; margin-top: clamp(48px, 6vw, 80px); }
.selfcheck-form { padding: clamp(28px, 4vw, 48px); }
.selfcheck-form h3 { margin-bottom: 8px; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.check {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--lav-50); cursor: pointer; font-size: 0.93rem; color: var(--ink-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid var(--lav-400); background: #fff; display: grid; place-items: center; cursor: pointer; transition: all 0.2s ease; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--violet); border-color: var(--violet); }
.check input:checked::after { opacity: 1; }
.check:has(input:checked) { border-color: var(--lav-400); background: var(--lav-100); }
.check.no-web { background: transparent; border-style: dashed; }
.selfcheck-result { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 48px); background: var(--deep); color: #d3c8e8; }
.score { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 7vw, 5.5rem); letter-spacing: -0.05em; line-height: 0.9; color: #fff; }
.score small { margin-left: 0.2em; font-size: 0.35em; color: var(--deep-muted); letter-spacing: -0.01em; }
.score-bar { height: 8px; border-radius: 8px; background: var(--deep-3); overflow: hidden; }
.score-bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 8px; transition: width 0.5s ease; }
.selfcheck-result p { color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; min-height: 3.9em; }

/* ---------- 25. Funciones a medida (3×3) ---------- */
.func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.func { min-width: 0; padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background-color 0.25s ease; }
.func:hover { background: var(--lav-50); }
.func i.ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lav-200); color: var(--violet); font-size: 1.3rem; margin-bottom: 18px; }
.func h3 { font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.func p { font-size: 0.9rem; }
.func .widget { margin-top: 16px; }
/* En computadora: las tarjetas de una misma fila comparten filas internas,
   así los textos arrancan a la misma altura y las demos quedan centradas entre sí */
@media (min-width: 961px) {
  .func-grid { grid-auto-rows: auto; }
  .func { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  .func i.ic { justify-self: start; }
  .func .widget { align-self: center; }
}
.func.idea { background: var(--lav-100); border: 1.5px dashed var(--violet); margin: -1px 0 0 -1px; }
/* "Tu idea": la función que falta en la grilla. Mismo ícono que cada función, pero vacío. */
.idea-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 28px 32px; border-radius: var(--radius); border: 1px solid var(--lav-300);
  background: linear-gradient(115deg, var(--lav-100) 0%, var(--lav-200) 100%); box-shadow: var(--shadow-sm);
}
.idea-slot {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  border: 1.5px dashed var(--violet); background: #fff; color: var(--violet); font-size: 1.5rem;
}
.idea-card h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.idea-card p { font-size: 0.95rem; max-width: 56ch; }
.func-foot p a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.func-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }

/* ---------- 26. Acompañamiento (filas) ---------- */
.care-rows { border-top: 1px solid var(--line); }
.care-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.care-row h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.care-row p { font-size: 0.95rem; }
.care-row em { color: var(--violet); font-style: normal; font-weight: 500; }
.care-price { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.care-price small { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }

/* ---------- 27. Tabla comparativa ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; background: var(--lav-50); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; position: sticky; left: 0; background: #fff; z-index: 1; }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .us { background: var(--lav-100); color: var(--ink); font-weight: 500; }
.compare thead .us { background: var(--violet); color: #fff; }
.compare-logo { display: block; width: 110px; height: auto; margin-left: -4px; }
.compare .yes { color: var(--violet); font-weight: 700; }
.compare .no { color: #b3aec4; }

/* ---------- 28. Compromisos ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.commit { display: flex; flex-direction: column; gap: 10px; }
.commit i { font-size: 1.8rem; color: var(--violet); }
.commit h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.commit p { font-size: 0.92rem; }

.never { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--lav-200); }
.never ul { display: flex; flex-direction: column; gap: 14px; }
.never li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-2); }
/* El tachado va por detrás del texto: se entiende que está descartado, pero se lee entero. */
.never li span {
  background: linear-gradient(transparent 46%, rgba(125, 0, 225, 0.38) 46%, rgba(125, 0, 225, 0.38) 55%, transparent 55%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.link-wa {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--lav-400); text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.link-wa i { color: var(--green-dark); font-size: 1.2em; }
.link-wa:hover { text-decoration-color: var(--green-dark); }
.never .closing { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }

/* ---------- 29. Precios: años ---------- */
.years { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.year { padding: clamp(26px, 4vw, 44px); }
.year:first-child { background: var(--lav-100); }
.year:last-child { background: #fff; border-left: 1px dashed var(--lav-400); }
.year-label { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.year-label span { color: var(--violet); }

/* Año 1: un ticket que lo dice todo. El paquete se paga una vez; dominio y hosting ya vienen adentro. */
.year:first-child { display: flex; flex-direction: column; }
.y1-ticket { margin-top: auto; padding-top: 28px; filter: drop-shadow(0 14px 22px rgba(83, 0, 160, 0.14)); }
/* En computadora las columnas van lado a lado: el ticket se centra en el espacio que queda libre. */
@media (min-width: 961px) {
  .y1-ticket { margin-block: auto; }
  .y1-ticket-paper { margin-inline: auto; }
}
.y1-ticket-paper {
  --tooth: 7px;
  max-width: 280px; padding: 18px 18px calc(18px + var(--tooth));
  background: #fff; border-radius: 14px 14px 0 0; transform: rotate(-2deg);
  font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--muted);
  /* Borde inferior dentado, como un ticket cortado */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
}
.y1-ticket-head { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 1.5px dashed var(--lav-300); }
.y1-ticket-head i { color: var(--violet); font-size: 1.05rem; }
.y1-ticket ul { list-style: none; margin: 0; padding: 0; }
.y1-ticket li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--lav-200); }
.y1-ticket li small { display: block; font-size: 0.7rem; color: var(--lav-400); }
.y1-ticket li b { font-weight: 600; color: var(--ink-2); }
.y1-ticket li b.inc { color: var(--violet); }
.y1-ticket-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin: 0; }
.y1-ticket-total b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--violet); }
.renew-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.renew-list div { padding: 12px 14px; border-radius: 12px; background: var(--lav-50); border: 1px solid var(--line); font-size: 0.8rem; }
.renew-list b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- 30. Planes mensuales (tickets) ---------- */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ticket { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ticket-top { padding: 26px 26px 22px; border-bottom: 2px dashed var(--line); position: relative; }
.ticket-top::before, .ticket-top::after { content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--lav-100); border: 1px solid var(--line); }
.ticket-top::before { left: -12px; }
.ticket-top::after { right: -12px; }
.ticket h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.ticket-for { font-size: 0.86rem; }
.ticket .price { margin-top: 16px; font-size: 1.7rem; }
.ticket .price small { display: inline; margin: 0 0 0 4px; }
.ticket-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.ticket-body .feature-list { margin-top: 0; }
.ticket-quote { margin-top: auto; padding-top: 18px; font-size: 0.86rem; color: var(--violet); font-weight: 500; }

/* ---------- 31. Soporte y letra chica ---------- */
.support-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-item { display: flex; gap: 14px; align-items: flex-start; font-size: 0.93rem; }
.support-item i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lav-200); color: var(--violet); font-size: 1.2rem; border: 1px solid var(--lav-300); }

.fineprint { position: relative; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--deep); color: #d3c8e8; }
.fineprint h2, .fineprint strong { color: #fff; }
.fineprint .eyebrow { color: var(--lav-400); }
.fineprint p { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.75; max-width: 70ch; }
.fineprint .pay { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.fineprint .pay div { flex: 1 1 180px; padding: 16px 18px; border-radius: 14px; background: var(--deep-3); border: 1px solid var(--deep-line); }
.fineprint .pay b { display: block; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.04em; color: #fff; line-height: 1.1; }
.fineprint .pay span { font-size: 0.82rem; }

/* ---------- 32. Preguntas (acordeón) ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lav-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%237d00e1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--lav-300); }
.faq-item summary:hover { color: var(--violet); }
.faq-answer { padding: 0 56px 24px 0; font-size: 0.97rem; }

/* ---------- 33. Páginas de paquete ---------- */
.pkg-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.price-card { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card .price { font-size: clamp(2.2rem, 4vw, 3rem); }
.price-card ul { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.price-card li { display: flex; gap: 10px; align-items: center; }
.price-card li i { color: var(--violet); font-size: 1.1rem; }
.price-card .btn-row { margin-top: 24px; flex-direction: column; align-items: stretch; }

.price-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--lav-300); }
.hero-portrait { aspect-ratio: 4 / 5; max-width: 440px; margin-left: auto; }
.price-strip-dark { border-top-color: var(--deep-line); }
.bg-ink .price { color: #fff; }
.bg-ink .price small { color: var(--deep-muted); }
.crumbs-light { color: var(--deep-muted); }
.crumbs-light a { color: var(--lav-400); }
.scene-text-light { color: #fff; }
.scene-text-light em { color: var(--lav-400); }
.outcomes-light .outcome + .outcome { border-left-color: var(--lav-300); }
.outcomes-light .outcome i { color: var(--violet); }
.cta-split .photo-frame img { aspect-ratio: inherit; }

.who-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.who { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: 0.92rem; }
.who i { flex: none; font-size: 1.6rem; color: var(--violet); }
.who b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 4px; }

.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.outcome { padding: 8px 32px 8px 0; }
.outcome + .outcome { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.outcome i { font-size: 2rem; color: var(--lav-400); margin-bottom: 18px; display: block; }
.outcome h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.outcome p { font-size: 0.95rem; }

.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.include { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.include i { flex: none; font-size: 1.4rem; color: var(--violet); margin-top: 2px; }
.include b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.015em; }
.include p { font-size: 0.92rem; margin-top: 2px; }
.includes-head { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: var(--pill); background: var(--lav-100); color: var(--ink); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.includes-head i { color: var(--violet); }

/* Escena "cómo se ve en la práctica" */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.scene-wide { max-width: 900px; }
.scene-text { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.4; color: var(--ink); }
.scene-text em { font-style: normal; color: var(--violet); }

.timeline-mini { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 28px; }
.timeline-mini::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--lav-300); }
.tl-item { position: relative; padding: 16px 18px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); }
.tl-time { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.tl-item p { font-size: 0.9rem; color: var(--ink-2); }
.tl-item .bubble { margin-top: 8px; font-size: 0.85rem; }

.phone {
  width: min(300px, 100%); margin-inline: auto; padding: 14px; border-radius: 40px; background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 28px; overflow: hidden; background: #fff; }
.phone-bar { display: flex; justify-content: space-between; padding: 10px 18px 6px; font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.phone-app { padding: 10px 14px 16px; }
.phone-search { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--pill); background: var(--lav-100); font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; }
.product { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; }
.product-img { aspect-ratio: 1; border-radius: var(--radius-xs); background: linear-gradient(135deg, var(--lav-200), var(--lav-300)); display: grid; place-items: center; color: var(--violet); font-size: 1.5rem; }
.product b { display: block; font-size: 0.8rem; color: var(--ink); line-height: 1.3; }
.product span { font-size: 0.72rem; color: var(--muted); }
.product .mini-btn { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; padding: 3px 10px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 0.66rem; font-weight: 600; }
.product.dim { opacity: 0.5; }

.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { padding: 14px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); min-height: 150px; font-size: 0.75rem; }
.day b { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); margin-bottom: 10px; }
.day .ev { padding: 8px; border-radius: 8px; background: var(--lav-200); color: var(--ink-2); line-height: 1.35; margin-bottom: 6px; }
.day .ev.on { background: var(--violet); color: #fff; }
.day .ev.g { background: var(--mint); color: var(--green-dark); }
.day.today { border-color: var(--violet); }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-card { padding: 30px; border-radius: var(--radius-lg); }
.fit-yes { background: var(--deep); color: #d3c8e8; }
.fit-yes h3 { color: #fff; }
.fit-other { background: var(--lav-100); border: 1px solid var(--line); }
.fit-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.fit-card h3 i { font-size: 1.5rem; }
.fit-yes h3 i { color: #6ee7a0; }
.fit-other h3 i { color: var(--violet); }
.fit-card p + p { margin-top: 14px; }
.fit-card a { color: var(--violet); font-weight: 600; }

.receipt { max-width: 560px; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.receipt-row b { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; letter-spacing: -0.015em; text-align: right; white-space: nowrap; }
.receipt-row.total b { font-size: 1.5rem; color: var(--violet); }
.receipt-combo { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--lav-100); font-size: 0.9rem; }

/* ---------- 34. Proceso (etapas) ---------- */
.stages { display: flex; flex-direction: column; gap: 20px; }
.stage { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.stage-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 6vw, 5rem); letter-spacing: -0.06em; line-height: 0.9; color: var(--lav-300); }
.stage h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.stage-intro { font-size: 1rem; margin-bottom: 24px; }
.stage-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage-col { padding: 18px; border-radius: 14px; background: var(--lav-50); border: 1px solid var(--line); font-size: 0.9rem; }
.stage-col b { display: flex; gap: 8px; align-items: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.stage-col.you { background: var(--mint); border-color: #d2efd5; }
.stage-col.you b { color: var(--green-dark); }
.stage-col.get { background: var(--lav-100); }

.gantt { display: flex; flex-direction: column; gap: 18px; }
.gantt-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.gantt-row b { font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; letter-spacing: -0.015em; }
.gantt-track { position: relative; height: 44px; border-radius: 12px; background: var(--lav-100); }
.gantt-bar {
  position: absolute; top: 6px; bottom: 6px; left: calc(var(--from) / 30 * 100%); width: 0;
  border-radius: 8px; background: var(--grad); color: #fff; font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; padding-inline: 12px; white-space: nowrap; overflow: hidden;
  transition: width 1.1s var(--ease-out);
}
.gantt.is-in .gantt-bar { width: calc((var(--to) - var(--from)) / 30 * 100%); }
.gantt-pd { --from: 7; --to: 15; }
.gantt-nc { --from: 10; --to: 25; }
.gantt-cd { --from: 12; --to: 30; }
.gantt-axis { display: grid; grid-template-columns: 180px 1fr; gap: 20px; font-size: 0.74rem; color: var(--muted); }
.gantt-axis div { display: flex; justify-content: space-between; }

.keep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.keep { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.keep i { font-size: 1.8rem; color: var(--lav-400); display: block; margin-bottom: 16px; }
.keep p { color: #e7e2f5; font-size: 1rem; }

/* ---------- 35. Quiénes somos ---------- */
.manifesto { max-width: 920px; }
.manifesto p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.3vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.45; color: #bdb8d1; }
.manifesto p strong { color: #fff; font-weight: 700; }
.manifesto p + p { margin-top: 1.1em; }

/* Por qué existimos: el mismo trabajo en otro orden. Lo habitual arranca por los colores; nosotros, por el objetivo. */
.why-grid { align-items: center; }
.why-grid .manifesto p { font-size: clamp(1.1rem, 1.55vw, 1.3rem); }
.order { display: grid; gap: 16px; }
.order-row { padding: 22px 22px 20px; border-radius: var(--radius); }
.order-row.is-usual { border: 1.5px dashed var(--deep-line); }
.order-row.is-ours { background: var(--violet); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.order-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep-muted); margin-bottom: 14px; }
.is-ours .order-title { color: #e6d6ff; }
.order ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.order li {
  counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; line-height: 1.25; letter-spacing: -0.01em;
}
.order li::before { content: counter(step); font: 600 0.68rem/1 var(--font-body); opacity: 0.6; }
.order li i { font-size: 1.35rem; }
/* Flecha entre pasos: el orden es el mensaje */
.order li + li::after { content: "→"; position: absolute; left: -18px; top: 22px; font-size: 0.9rem; opacity: 0.5; }
.is-usual li { color: var(--deep-muted); }
.is-usual li:last-child { color: #fff; }
.is-ours li { color: #fff; }
.is-ours li:last-child { color: #e6d6ff; }
.order-result { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; font-size: 0.86rem; }
.is-usual .order-result { border-top: 1px dashed var(--deep-line); color: var(--deep-muted); }
.is-usual .order-result i { color: #ff8a80; font-size: 1.1rem; }
.is-ours .order-result { border-top: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-weight: 600; }
.is-ours .order-result i { color: #fff; font-size: 1.1rem; }

@media (max-width: 640px) {
  .order ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .order li:nth-child(3)::after { display: none; }
}

.diff-list { display: flex; flex-direction: column; gap: 14px; }
.diff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.diff .q { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.08rem; letter-spacing: -0.015em; }
.diff i { color: var(--violet); font-size: 1.3rem; }
.diff .a { font-size: 0.95rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.pillar-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lav-200); border: 1px solid var(--lav-300); color: var(--violet); font-size: 1.3rem; margin-bottom: 14px; }
.pillar h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 6px 0 12px; }
.pillar p { font-size: 0.95rem; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 24px; border-radius: var(--radius); background: var(--lav-50); border: 1px solid var(--line); }
.member .avatar-lg { margin-bottom: 16px; }
.member h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.member .role { font-size: 0.8rem; font-weight: 600; color: var(--violet); }
.member p { font-size: 0.88rem; margin-top: 8px; }

.intro-title { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 4.2rem); }

/* Quiénes somos: la tarjeta impresa del negocio y, encima, su web nueva con el mismo nombre. */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-hero .intro-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.about-hero .lead + .lead { margin-top: 14px; font-size: 1rem; color: var(--muted); }

.legacy { --brand: #7a2430; position: relative; min-height: 550px; }
.legacy-label { position: absolute; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.legacy-label::before { content: ""; width: 22px; height: 1.5px; background: var(--lav-400); }
.legacy-label-card { top: 0; left: 4px; }
.legacy-label-web { right: 0; bottom: 0; }

.legacy-card {
  position: absolute; top: 34px; left: 0; width: min(350px, 76%); aspect-ratio: 1.75;
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px 18px;
  background: #fffdf8; border-radius: 5px; rotate: -6deg;
  /* Borde de papel, una segunda tarjeta asomando debajo (el mazo) y la sombra */
  box-shadow: inset 0 0 0 1px #eadfcd, 9px 10px 0 -1px #fbf6ec, 9px 10px 0 0 #ddd0bb, 0 18px 34px -16px rgba(43, 8, 83, 0.4);
  font-size: 0.66rem; line-height: 1.35; color: #7a705f; animation: rise 0.9s 0.1s var(--ease-out) both;
}
/* Franja impresa del color de la marca, como en las tarjetas de imprenta */
.legacy-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0 0 5px 5px; background: var(--brand); }
.legacy-card-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #eadfcd; }
.legacy-card-top div { display: flex; flex-direction: column; gap: 2px; }
.legacy-card b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.02em; color: #3b3326; }
.legacy-card .legacy-since { color: #a1947d; }
.legacy-card-foot { display: flex; flex-direction: column; gap: 3px; padding-bottom: 4px; }
.legacy-card-foot span { display: flex; align-items: center; gap: 6px; }
.legacy-card-foot i { color: var(--brand); }
.legacy-person { font-weight: 600; color: #3b3326; font-size: 0.72rem; margin-bottom: 2px; }
.legacy-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fffdf8; font-size: 1.3rem; }

.legacy-since { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.legacy-web {
  position: absolute; right: 0; bottom: 34px; width: min(400px, 84%);
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: rise 1s 0.55s var(--ease-out) both;
}
.legacy-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--lav-50); border-bottom: 1px solid var(--line); }
.legacy-dots { display: flex; gap: 5px; }
.legacy-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lav-300); }
.legacy-url { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 12px; border-radius: var(--pill); background: #fff; font-size: 0.72rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legacy-url i { color: var(--green-dark); }
.legacy-page { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 24px 26px; background: linear-gradient(160deg, var(--lav-100), #fff 70%); }
.legacy-brand { display: flex; align-items: center; gap: 10px; }
.legacy-brand .legacy-mark { width: 30px; height: 30px; font-size: 0.95rem; }
.legacy-page .legacy-since { padding: 5px 10px; border-radius: var(--pill); background: #fff; border: 1px solid rgba(122, 36, 48, 0.25); color: var(--brand); }
.legacy-page b { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); }
.legacy-page p { font-size: 0.85rem; color: var(--muted); }
.legacy-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.legacy-cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 0.78rem; font-weight: 600; }
.legacy-cta.ghost { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--lav-300); }
.legacy-cta.ghost i { color: var(--brand); }

@media (max-width: 960px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .legacy { width: 100%; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .legacy { min-height: 510px; }
  .legacy-card { width: 86%; padding: 16px 18px 14px; }
  .legacy-card b { font-size: 1rem; }
  .legacy-web { width: 90%; }
  .legacy-page { padding: 18px; }
  .legacy-page b { font-size: 1.35rem; }
}
.posts-authors .post-body { padding: 26px; gap: 14px; }
.posts-authors h3 { font-size: 1.3rem; margin: 0; }
.post-author-top { margin: 0; padding: 0; line-height: 1.35; }
.post-author-top .avatar { width: 48px; height: 48px; font-size: 0.95rem; }
.post-author-top b { color: var(--ink); font-weight: 600; }
.badge-inline { position: static; align-self: flex-start; margin-top: auto; background: var(--lav-200); }
.cta-split .grid-2 > .photo-frame:first-child { margin: 0; }

.portfolio-slot { display: grid; place-items: center; min-height: 220px; padding: 32px; border-radius: var(--radius-lg); border: 1.5px dashed var(--lav-400); text-align: center; color: var(--muted); font-size: 0.95rem; }
.portfolio-slot i { font-size: 2rem; color: var(--lav-400); display: block; margin-bottom: 10px; }

/* ---------- 36. Formularios ---------- */
.form { display: grid; gap: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font: 400 0.95rem var(--font-body); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px var(--lav-200); }
.field.has-error input { border-color: #d04545; }
.field-error { font-size: 0.8rem; color: #b83232; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-success { display: none; padding: 22px; border-radius: var(--radius-md); background: var(--mint); border: 1px solid #cdeccf; color: #1d4a2c; font-size: 0.95rem; }
.form-success.is-visible { display: block; }
.form-success b { display: block; color: var(--green-dark); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.form-card > p { margin-bottom: 24px; }

/* ---------- 37. Revisión gratuita ---------- */
.review-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.review-item { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review-item i { font-size: 1.8rem; color: var(--violet); display: block; margin-bottom: 14px; }
.review-item h3 { font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.review-item p { font-size: 0.9rem; }

.pdf-mock { position: relative; max-width: 360px; margin-inline: auto; aspect-ratio: 3 / 4; padding: 28px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(-2.5deg); }
.pdf-mock::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 18px; background: var(--lav-200); z-index: -1; transform: rotate(4deg); }
.pdf-mock .ph-logo { height: 20px; width: auto; margin-bottom: 20px; }
.pdf-mock h4 { font-size: 1rem; margin-bottom: 16px; }
.pdf-line { height: 8px; border-radius: 4px; background: var(--lav-100); margin-bottom: 8px; }
.pdf-line.s { width: 65%; }
.pdf-point { display: flex; gap: 10px; align-items: center; margin: 14px 0 8px; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.pdf-point span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 0.7rem; }

.why-card { margin: 0; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--deep); color: #fff; }
.why-card .eyebrow { color: var(--lav-400); }
.why-card p:last-child { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; }

/* ---------- 38. Preguntas frecuentes (página) ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); border-left: 2px solid transparent; }
.faq-nav a:hover { background: var(--lav-100); }
.faq-nav a.is-active { background: var(--lav-100); color: var(--violet); border-left-color: var(--violet); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 39. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.wa-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); background: var(--lav-100); border: 1px solid var(--lav-300); }
.wa-card .wa-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--green); color: #fff; font-size: 1.9rem; }
.wa-card small { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wa-card b { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; color: var(--ink); }
.contact-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; font-size: 0.95rem; }
.contact-lines li { display: flex; gap: 12px; align-items: center; }
.contact-lines i { color: var(--violet); font-size: 1.2rem; }
.wa-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wa-card[data-msg] { position: relative; }
.closing-line { margin-top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; color: var(--ink); }
.after-steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.after-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; }
.after-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }

/* ---------- 40. Blog (página) ---------- */
.notice { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--radius); background: var(--lav-100); border: 1px solid var(--lav-300); margin-bottom: 36px; }
.notice p { max-width: 62ch; color: var(--ink-2); font-size: 0.95rem; }
.featured-post { display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); margin-bottom: 36px; }
.featured-post .post-cover { aspect-ratio: auto; min-height: 320px; }
.featured-post .post-cover img { width: 96px; height: 96px; }
.featured-post .post-body { padding: clamp(24px, 4vw, 44px); justify-content: center; }
.featured-post h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.mid-band { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; border-radius: var(--radius); background: var(--deep); color: #d3c8e8; }
.mid-band b { color: #fff; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; display: block; }
.cat-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.cat-table button { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font: inherit; font-size: 0.86rem; line-height: 1.55; color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.cat-table b { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.cat-table b i { flex: none; font-size: 1rem; color: var(--lav-400); transition: color 0.2s ease, transform 0.2s ease; }
.cat-table button:hover { border-color: var(--lav-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-table button:hover b i { color: var(--violet); transform: translate(2px, 2px); }
.cat-table button[aria-pressed="true"] { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.cat-table button[aria-pressed="true"] b i { color: var(--violet); }
[data-cat-filter] { scroll-margin-top: calc(var(--header-h) + 24px); }
.posts-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 26px 28px; border-radius: var(--radius); border: 1.5px dashed var(--lav-400); color: var(--ink-2); font-size: 0.95rem; }
.posts-empty p { max-width: 58ch; }
.posts-empty b { color: var(--ink); font-weight: 600; }
a.featured-post { transition: box-shadow 0.25s ease; }
a.featured-post:hover { box-shadow: var(--shadow); }

/* ---------- 40b. Artículo del blog ---------- */
.art-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.art-hero-inner { max-width: calc(880px + var(--gutter) * 2); }
/* Portada del artículo como fondo: desenfocada, lavada y con el lavanda encima. */
.art-hero-foto { position: relative; isolation: isolate; overflow: hidden; }
.art-hero-bg { position: absolute; top: 0; right: 0; z-index: -2; width: 58%; height: 100%; object-fit: cover; object-position: center 35%; filter: blur(10px) saturate(1.2) brightness(1.06); transform: scale(1.06); transform-origin: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.art-hero-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(246, 241, 252, 0) 60%, var(--lav-100) 100%),
  linear-gradient(90deg, rgba(246, 241, 252, 0.92) 0%, rgba(246, 241, 252, 0.82) 45%, rgba(246, 241, 252, 0.5) 100%); }
@media (max-width: 760px) {
  .art-hero-bg { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .art-hero-foto::before { background: rgba(246, 241, 252, 0.88); }
}
.art-crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.art-crumbs a { color: var(--violet); }
.art-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-crumbs i { font-size: 0.75rem; color: var(--lav-400); }
.art-title { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.art-dek { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin-top: 22px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.art-meta b { display: block; color: var(--ink); font-weight: 600; }
.art-meta-sep { width: 1px; height: 28px; background: var(--lav-300); }
.art-meta-read, .art-meta-date { display: inline-flex; align-items: center; gap: 6px; }

.art-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); justify-content: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 6vw, 80px) var(--section-y); }
.art-toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.art-toc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.art-toc ol { border-left: 2px solid var(--lav-200); }
.art-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.88rem; line-height: 1.4; color: var(--text); transition: color 0.2s ease, border-color 0.2s ease; }
.art-toc a:hover, .art-toc a.is-active { color: var(--violet); border-left-color: var(--violet); }

.art-body { font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.art-body section { scroll-margin-top: calc(var(--header-h) + 24px); }
.art-body section + section { margin-top: 56px; }
.art-body h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 18px; }
.art-body p { margin-bottom: 1.1em; }
.art-link { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.art-short { padding: 26px 30px; margin-bottom: 28px; border-radius: var(--radius); background: var(--lav-100); border-left: 4px solid var(--violet); color: var(--ink-2); font-size: 1.08rem; line-height: 1.75; }
.art-body .art-short-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }

.art-list { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; }
.art-list li { position: relative; padding-left: 22px; }
.art-list li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); transform: rotate(45deg); }
.art-list b { color: var(--ink); font-weight: 600; }

.art-yearly { display: grid; gap: 1px; margin: 8px 0 24px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.art-yearly > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 22px; background: #fff; }
.art-yearly dt { display: flex; align-items: center; gap: 10px; align-self: start; font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.art-yearly dt i { font-size: 1.2rem; color: var(--violet); }
.art-yearly dd { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.art-yearly em { font-style: normal; font-weight: 600; color: var(--ink-2); }

.art-checks { font-size: 1rem; gap: 12px; margin: 8px 0 24px; }

.art-figure { margin: 28px 0 32px; }
.art-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--lav-200); }
.art-figure figcaption { margin-top: 12px; font-size: 0.82rem; line-height: 1.55; color: var(--muted); }

/* Calculadora "año por año": la forma del gasto es el mensaje */
.years-calc { margin: 28px 0 32px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.years-calc-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.years-calc-group { display: flex; flex-wrap: wrap; gap: 8px; }
.years-calc-group .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.years-calc-range { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.years-calc-range input { width: 120px; accent-color: var(--violet); }
.years-calc-range output { min-width: 1ch; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--violet); }

.years-chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 2vw, 18px); height: 260px; margin-top: 28px; border-bottom: 1.5px dashed var(--lav-300); }
.years-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; transition: opacity 0.35s ease; }
.years-amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(0.7rem, 1.4vw, 0.9rem); letter-spacing: -0.02em; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; margin-bottom: 8px; white-space: nowrap; }
.years-bar { display: flex; height: var(--h, 10%); transition: height 0.55s var(--ease-out); }
.years-seg { display: block; width: 100%; height: 100%; border-radius: 10px 10px 4px 4px; }
.years-seg.once { background: var(--grad-deep); }
.years-seg.yearly { background: var(--lav-300); border-top: 3px solid var(--violet-2); }
.years-lbl { position: absolute; top: calc(100% + 10px); left: 0; right: 0; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-align: center; }
.years-col.is-off .years-amt, .years-col.is-off .years-bar { opacity: 0.3; }
.years-col.is-off .years-seg { background: transparent; border: 1.5px dashed var(--lav-400); }
.years-calc-foot { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.art-body .years-legend { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--muted); max-width: 40ch; }
.years-legend span { display: flex; gap: 8px; align-items: baseline; }
.years-legend i { flex: none; width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.years-legend i.once { background: var(--violet); }
.years-legend i.yearly { background: var(--lav-300); box-shadow: inset 0 2px 0 var(--violet-2); }
.art-body .years-total { margin: 0; font-size: 0.95rem; color: var(--ink-2); text-align: right; line-height: 1.3; }
.years-total b[data-out="total"] { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.035em; color: var(--violet); font-variant-numeric: tabular-nums; }
.years-total b[data-out="years"] { font-weight: 600; color: var(--ink); }

.art-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 56px; padding: 28px 30px; border-radius: var(--radius); background: var(--deep); color: #d3c8e8; }
.art-cta > div { flex: 1 1 320px; }
.art-body .art-cta p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.art-body .art-cta .art-cta-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: #fff; margin-bottom: 4px; }

.art-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 0.92rem; line-height: 1.65; }
.avatar-md { width: 56px; height: 56px; font-size: 1.05rem; }
.art-body .art-author p { margin: 0; }
.art-body .art-author .art-author-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }

@media (max-width: 960px) {
  .art-layout { grid-template-columns: minmax(0, 700px); }
  .art-toc { position: static; padding: 20px 22px; border-radius: var(--radius); background: var(--lav-50); border: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .art-meta-sep { display: none; }
  .art-yearly > div { grid-template-columns: 1fr; gap: 6px; }
  .years-chart { height: 210px; }
  .years-calc-range { width: 100%; }
  .years-calc-range input { flex: 1; }
  .art-body .years-total { text-align: left; }
  .art-short { padding: 22px; }
}

/* ---------- 40c. Proyectos ---------- */
/* Mini web dibujada en CSS: cada proyecto se ve con los colores de su cliente.
   Todo va en em, así la misma maqueta sirve chica (tarjeta) o grande (caso). */
.mock { --brand: var(--violet); --brand-2: var(--violet-2); --paper: #fff; --mink: var(--ink);
  border-radius: 1em; overflow: hidden; background: #fff; border: 1px solid rgba(20, 10, 40, 0.08); box-shadow: 0 1.6em 3.2em -1.6em rgba(40, 20, 70, 0.35); }
.mock-bar { display: flex; align-items: center; gap: 0.5em; height: 2.6em; padding: 0 1em; background: #f4f2f7; border-bottom: 1px solid rgba(20, 10, 40, 0.06); }
.mock-bar i { flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: #dcd7e5; }
.mock-bar span { margin-left: 0.8em; flex: 0 1 60%; min-width: 0; padding: 0 1.2em; border-radius: 99px; background: #fff; font-size: 0.85em; line-height: 1.8em; color: #8b879c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-page { position: relative; padding: 1.4em 1.8em 2em; background: var(--paper); color: var(--mink); }
.mock-nav { display: flex; align-items: center; gap: 1em; margin-bottom: 1.8em; }
.mock-nav b { margin-right: auto; font-family: var(--font-display); font-size: 1.15em; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.mock-nav span { width: 3em; height: 0.5em; border-radius: 1em; background: currentColor; opacity: 0.18; }
.mock-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6em; align-items: center; }
.mock-h { height: 1.15em; border-radius: 0.3em; background: currentColor; margin-bottom: 0.55em; }
.mock-h.s { width: 68%; }
.mock-p { height: 0.5em; border-radius: 1em; background: currentColor; opacity: 0.18; margin-top: 0.6em; }
.mock-p.s { width: 80%; }
.mock-btn { width: 8em; height: 2.2em; margin-top: 1.2em; border-radius: 99px; background: var(--brand); }
.mock-art { aspect-ratio: 4 / 3; border-radius: 0.8em; background: linear-gradient(140deg, var(--brand), var(--brand-2)); position: relative; overflow: hidden; }
.mock-art::after { content: ""; position: absolute; right: -18%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; margin-top: 1.8em; }
.mock-tiles span { aspect-ratio: 1; border-radius: 0.6em; background: #fff; border: 1px solid rgba(20, 10, 40, 0.07); position: relative; }
.mock-tiles span::before { content: ""; position: absolute; inset: 14% 22% 38%; border-radius: 0.4em; background: var(--brand-2); opacity: 0.35; }
.mock-tiles span::after { content: ""; position: absolute; left: 14%; right: 40%; bottom: 14%; height: 0.55em; border-radius: 1em; background: var(--brand); }
.mock-tiles.rows { grid-template-columns: repeat(3, 1fr); }
.mock-tiles.rows span { aspect-ratio: 5 / 3; }
.mock-tiles.rows span::before { inset: 20% auto auto 12%; width: 1.6em; height: 1.6em; border-radius: 50%; opacity: 0.5; }
.mock-tiles.rows span::after { right: 30%; background: currentColor; opacity: 0.2; }
.mock-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45em; padding: 1em; border-radius: 0.8em; background: #fff; border: 1px solid rgba(20, 10, 40, 0.07); }
.mock-cal span { height: 1.6em; border-radius: 0.4em; background: var(--brand-2); opacity: 0.22; }
.mock-cal span.on { background: var(--brand); opacity: 1; }
/* Captura real dentro del navegador en CSS. Sin imagen, queda el fondo del cliente como espacio reservado. */
.mock-photo { aspect-ratio: 16 / 10; background: var(--paper) linear-gradient(140deg, transparent 55%, color-mix(in srgb, var(--brand-2) 22%, transparent)); }
.mock-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mock-wa { position: absolute; right: 1.2em; bottom: 1.2em; width: 2.8em; height: 2.8em; border-radius: 50%; background: var(--green); box-shadow: 0 0.4em 1em -0.3em rgba(15, 138, 68, 0.6); }

/* Paletas de cada cliente */
.mock.ferreteria { --brand: #e0591a; --brand-2: #f2a15f; --paper: #fff8f1; --mink: #2d2420; }
.mock.contable { --brand: #1f4e79; --brand-2: #4f9a7a; --paper: #f5f8fb; --mink: #16273a; }
.mock.dental { --brand: #0f8f8a; --brand-2: #5cc9c1; --paper: #f2fbfa; --mink: #173634; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-grid-2 { grid-template-columns: repeat(2, 1fr); }
.work-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-shot { height: 230px; padding: 26px 24px 0; overflow: hidden; font-size: 8.5px; background: var(--lav-100); border-bottom: 1px solid var(--line); }
.work-shot .mock { transform: translateY(6px); transition: transform 0.35s ease; }
.work-card:hover .work-shot .mock { transform: translateY(0); }
.work-shot .mock-wa { display: none; } /* la tarjeta recorta el pie de la maqueta */
.work-shot.ferreteria { background: #fbeee3; }
.work-shot.contable { background: #e7eef5; }
.work-shot.dental { background: #e2f3f1; }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.work-body h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 14px; }
.work-where { font-size: 0.8rem; color: var(--muted); margin: 2px 0 12px; }
.work-body > p:not(.work-where) { font-size: 0.92rem; }
.work-body .link-arrow { margin-top: auto; padding-top: 18px; font-size: 0.9rem; }

.mock.distribuidora { --brand: #b8860b; --brand-2: #e8c15a; --paper: #fffbef; --mink: #3a2e12; }
.mock.taller { --brand: #c62828; --brand-2: #6b7280; --paper: #f7f7f8; --mink: #1f2328; }
.mock.inmobiliaria { --brand: #2e7d4f; --brand-2: #9cc9a3; --paper: #f4f9f4; --mink: #1c3325; }
.work-shot.distribuidora { background: #fbf2d8; }
.work-shot.taller { background: #eeeef1; }
.work-shot.inmobiliaria { background: #e4f1e6; }


/* Paginación del blog y de proyectos: la página actual usa el mismo negro que el filtro activo */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager-count { font-size: 0.88rem; color: var(--muted); }
.pager-count b { color: var(--ink); font-weight: 600; }
.pager-pages { display: flex; align-items: center; gap: 6px; }
.pager-num, .pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink); transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.pager-num { width: 44px; }
.pager-step { padding: 0 18px; }
.pager-step:first-child { margin-right: 6px; }
.pager-step:last-child { margin-left: 6px; }
a.pager-num:hover, a.pager-step:hover { border-color: var(--lav-400); color: var(--violet); }
.pager-num[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-step[aria-disabled="true"] { color: var(--muted); opacity: 0.55; cursor: default; }

/* Página de un proyecto */
.case-hero { padding-block: clamp(48px, 7vw, 88px) clamp(120px, 16vw, 220px); }
.case-shot { max-width: calc(1040px + var(--gutter) * 2); margin-top: clamp(-200px, -14vw, -96px); font-size: clamp(8px, 2.2vw, 22px); }
.case-shot .mock { box-shadow: var(--shadow-lg); }
.case-facts { display: grid; gap: 14px; margin-bottom: 32px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--lav-50); border: 1px solid var(--line); }
.case-facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.case-facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }

@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .case-facts { grid-template-columns: repeat(2, 1fr); background: #fff; }
}
@media (max-width: 640px) {
  .work-grid, .work-grid-2 { grid-template-columns: 1fr; }
  .work-shot { height: 210px; }
  .pager { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .pager-pages { justify-content: space-between; }
  .pager-step { width: 44px; padding: 0; font-size: 0; gap: 0; } /* en el celular, solo la flecha */
  .pager-step i { font-size: 1rem; }
  .pager-step:first-child, .pager-step:last-child { margin: 0; }
}

/* ---------- 41. Spokes ---------- */
.big-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.big-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.big-list li > i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--lav-200); color: var(--violet); font-size: 1.6rem; }
.big-list h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 6px; }

.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.answer { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.answer i { font-size: 2rem; color: var(--violet); display: block; margin-bottom: 18px; }
.answer h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.answer-dark { background: var(--deep); border-color: var(--deep); color: #d3c8e8; }
.answer-dark h3 { color: #fff; }
.answer-dark i { color: var(--lav-400); }

.flow-lead { color: var(--text); font-size: 1.02rem; }
.fit-link { display: block; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fit-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fit-link .link-arrow { margin-top: 16px; }

[hidden] { display: none !important; }
.is-hidden { display: none !important; }

.question-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.question-cloud span { padding: 12px 20px; border-radius: 18px 18px 18px 4px; background: #fff; border: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.question-cloud span:nth-child(3n) { background: var(--lav-200); border-color: var(--lav-300); }
.question-cloud span:nth-child(4n) { background: var(--ink); color: #fff; border-color: var(--ink); }

.for-list { display: flex; flex-direction: column; gap: 12px; }
.for-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #e7e2f5; }
.for-list i { color: var(--lav-400); font-size: 1.3rem; margin-top: 2px; }

/* ---------- 42. Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

.hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-visual .photo-frame { animation: rise 1.1s 0.15s var(--ease-out) both; }
.hero-visual .search-chip { animation: pop 0.6s 0.8s var(--ease-pop) both; }
.hero-visual .chat-card { animation: pop 0.6s 1.3s var(--ease-pop) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav ul a { padding: 8px 10px; font-size: 0.88rem; }
  .main-nav { gap: 14px; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .review-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(83, 0, 160, 0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.25s ease;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }

  .hero-grid, .grid-2, .section-head-split, .pkg-hero, .scene, .contact-grid, .selfcheck, .never, .featured-post { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .problem-photo { max-width: 520px; }
  .photo-caption { left: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item, .bento-item.wide, .bento-item.span-4 { grid-column: span 1; }
  .bento-item.span-4 { grid-column: 1 / -1; }
  .bento-item.span-6 { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
  .bento-item.span-6 .mini-faq { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .plans, .tickets { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .custom-grid, .flip-grid, .posts, .pillars, .commit-grid, .support-strip, .keep-grid { grid-template-columns: repeat(2, 1fr); }
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-featured { grid-template-rows: auto; }
  .posts-featured .post-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .posts-featured .post-card:first-child .post-cover { min-height: 240px; }
  .posts-featured .post-card:not(:first-child) { flex-direction: column; }
  .posts-featured .post-card:not(:first-child) .post-cover { aspect-ratio: 16 / 9; flex: none; }
  .goal { grid-template-columns: 1fr; }
  .care-row { grid-template-columns: 1fr auto; }
  .care-row p { grid-column: 1 / -1; grid-row: 2; }
  .outcomes { grid-template-columns: 1fr; gap: 28px; }
  .outcome, .outcome + .outcome { padding: 0; border-left: 0; }
  .stage { grid-template-columns: 1fr; }
  .stage-cols { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .faq-nav a { border-left: 0; border: 1px solid var(--line); border-radius: var(--pill); }
  .cta-split .photo-frame { margin: 0; max-width: 420px; }
  .hero-portrait { margin: 0; max-width: 420px; }
  .cat-table { grid-template-columns: 1fr 1fr; }
  .signals { grid-template-columns: 1fr; }
  .signal, .signal + .signal { padding: 26px 0; border-left: 0; }
  .signal + .signal { border-top: 1px solid var(--lav-300); }
  .aud-after { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { width: 100%; }
  .hero-visual { padding: 0 0 56px 0; }
  .search-chip { left: 12px; top: 16px; font-size: 0.78rem; }
  .chat-card { left: 12px; width: calc(100% - 24px); }
  .bento, .custom-grid, .flip-grid, .posts, .pillars, .commit-grid, .support-strip, .keep-grid, .func-grid, .review-items, .team, .cat-table, .includes, .fit, .years, .renew-list, .form-2 { grid-template-columns: 1fr; }
  .year:last-child { border-left: 0; border-top: 1px dashed var(--lav-400); }
  .steps { grid-template-columns: 1fr; }
  /* Tarjetas "Para quién" como carrusel deslizable en el celular */
  .aud-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .aud-grid::-webkit-scrollbar { display: none; }
  .aud-card { flex: 0 0 82%; scroll-snap-align: start; }
  .idea-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .diff { grid-template-columns: 1fr; gap: 6px; }
  .diff i { transform: rotate(90deg); justify-self: start; }
  .gantt-row, .gantt-axis { grid-template-columns: 1fr; gap: 8px; }
  .gantt-axis > span { display: none; }
  .big-list li { grid-template-columns: 1fr; gap: 14px; }
  .answer-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; }
  .faq-answer { padding-right: 0; }
  .receipt { padding: 24px 20px; }
  .receipt-row { flex-direction: column; gap: 4px; }
  .receipt-row b { text-align: left; white-space: normal; }
  .wa-float { right: 14px; bottom: 14px; }
  .btn-wa[data-msg]::after { display: none; }
  .photo-caption { position: static; margin-top: -24px; margin-left: 16px; position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Logo de WhatsApp propio (reemplaza al de Phosphor en todo el sitio) ----------
   El SVG es blanco; se usa como máscara para que tome el color del texto (blanco en los
   botones verdes, violeta en las listas). */
.ph.ph-whatsapp-logo::before, .ph-fill.ph-whatsapp-logo::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background-color: currentColor; -webkit-mask: url("../img/whatsapp.svg") center / contain no-repeat; mask: url("../img/whatsapp.svg") center / contain no-repeat; }

/* ==========================================================================
   43. WordPress
   Piezas que genera WordPress o que en el tema pasan a ser links reales.
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Barra de administración: el header fijo queda debajo de ella */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Filtros y categorías como links (cada uno tiene su propia dirección) */
a.chip { display: inline-flex; align-items: center; }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-table a { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 0.86rem; line-height: 1.55; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.cat-table a:hover { border-color: var(--lav-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-table a:hover b i { color: var(--violet); transform: translate(2px, 2px); }
.cat-table a[aria-current="page"] { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.cat-table a[aria-current="page"] b i { color: var(--violet); }

/* Proyecto sin página propia: la tarjeta se muestra, pero no lleva a ningún lado */
div.work-card:hover { transform: none; box-shadow: none; }

/* Portada con foto destacada en las tarjetas del blog */
/* Las reglas del ícono de reemplazo (.posts-featured, .featured-post) son más específicas: por eso el !important */
.post-cover img.post-cover-photo { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: 1; }
.post-cover:has(.post-cover-photo)::before { content: none; }

/* Contenido cargado desde el editor */
.art-body h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.art-body h2:not(:first-child) { margin-top: 56px; }
.art-body h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 32px 0 12px; }
.art-body :is(ul, ol):is(:not([class]), [class="wp-block-list"]) { margin: 0 0 1.1em 1.2em; list-style: disc; }
.art-body ol:is(:not([class]), [class="wp-block-list"]) { list-style: decimal; }
.art-body a:not([class]) { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.art-body .wp-block-image { margin: 28px 0 32px; }
.art-body .wp-block-image img { height: auto; border-radius: var(--radius-lg); }
.art-body .wp-element-caption, .art-body .wp-caption-text { margin-top: 12px; font-size: 0.82rem; line-height: 1.55; color: var(--muted); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.page-content { max-width: 760px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Formularios de contacto: campo trampa para bots y aviso de error sin JavaScript */
.zybium-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 16px; border-radius: 12px; background: #fdecec; border: 1px solid #f5c2c2; color: #8a1f1f; font-size: 0.92rem; }

/* Aviso de salida: la revisión gratuita llega como un mensaje que sale del botón de WhatsApp */
.exit-gift {
  position: fixed; inset: auto 20px 94px auto; margin: 0; padding: 0; border: 0;
  width: min(380px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 120px); overflow: auto;
  border-radius: 24px 24px 8px 24px; background: #fff; color: var(--text);
  box-shadow: 0 40px 80px -24px rgba(26, 1, 58, 0.55);
  transform-origin: calc(100% - 30px) calc(100% + 45px);
}
.exit-gift[open] { animation: exit-gift-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.12) both; }
.exit-gift.is-closing { animation: exit-gift-out 0.22s ease-in both; }
.exit-gift::backdrop { background: rgba(15, 14, 29, 0.42); backdrop-filter: blur(2px); animation: exit-gift-fade 0.3s ease both; }
.exit-gift.is-closing::backdrop { animation: exit-gift-fade 0.22s ease reverse both; }

.exit-gift-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--deep); color: #fff; }
.exit-gift-avatar { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--violet); overflow: hidden; }
.exit-gift-avatar img { display: block; width: 100%; height: 100%; }
.exit-gift-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.exit-gift-who b { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.01em; }
.exit-gift-who small { font-size: 0.76rem; color: var(--deep-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exit-gift-close {
  margin-left: auto; flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.15rem; cursor: pointer;
  transition: background-color 0.2s ease;
}
.exit-gift-close:hover { background: rgba(255, 255, 255, 0.2); }

.exit-gift-chat {
  position: relative; display: grid; gap: 8px; padding: 18px 16px 6px;
  background-color: var(--lav-100);
  background-image: radial-gradient(var(--lav-300) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.exit-gift-bubble {
  position: relative; max-width: 94%; padding: 14px 16px 16px; border-radius: 4px 18px 18px 18px;
  background: #fff; box-shadow: var(--shadow-sm);
  transform-origin: top left; animation: exit-gift-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.85s both;
}
.exit-gift-bubble::before { content: ""; position: absolute; top: 0; left: -8px; border-top: 10px solid #fff; border-left: 8px solid transparent; }
.exit-gift-tag {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 10px 4px 8px;
  border-radius: var(--pill); background: var(--lav-200); color: var(--violet);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.exit-gift-tag i { font-size: 1rem; animation: w-wiggle 0.5s ease 1.3s 2; }
.exit-gift-bubble h2 { margin: 0 0 6px; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); }
.exit-gift-bubble p:last-child { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.exit-gift-file {
  display: flex; align-items: center; gap: 12px; max-width: 94%; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-sm); line-height: 1.35;
  transform-origin: top left; animation: exit-gift-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.05s both;
}
.exit-gift-file-icon { display: grid; place-items: center; width: 40px; height: 48px; flex: none; border-radius: 8px; background: var(--grad); color: #fff; font-size: 1.4rem; }
.exit-gift-file b { display: block; font-size: 0.82rem; color: var(--ink); }
.exit-gift-file small { font-size: 0.74rem; color: var(--muted); }

.exit-gift-typing {
  position: absolute; top: 18px; left: 16px; display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 4px 18px 18px 18px;
  background: #fff; box-shadow: var(--shadow-sm);
  animation: exit-gift-typing 0.85s ease both;
}
.exit-gift-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lav-400); animation: exit-gift-dot 0.9s ease-in-out infinite; }
.exit-gift-typing i:nth-child(2) { animation-delay: 0.15s; }
.exit-gift-typing i:nth-child(3) { animation-delay: 0.3s; }

.exit-gift-actions { padding: 14px 16px 16px; background: var(--lav-100); animation: exit-gift-rise 0.4s ease 1.2s both; }
.exit-gift-actions .btn { white-space: normal; }
.exit-gift-foot { margin: 10px 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.exit-gift-foot a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* El botón flotante "llama" justo antes de que se abra el aviso */
.wa-float.is-calling { animation: w-pop 0.45s ease, w-ring-green 0.9s ease-out 2; }

@keyframes exit-gift-in {
  from { opacity: 0; transform: translateY(24px) scale(0.12); border-radius: 60px; }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes exit-gift-out { to { opacity: 0; transform: translateY(16px) scale(0.2); } }
@keyframes exit-gift-fade { from { opacity: 0; } }
@keyframes exit-gift-pop { from { opacity: 0; transform: translateY(8px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes exit-gift-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes exit-gift-typing { 0%, 30% { opacity: 0; transform: scale(0.8); } 45%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }
@keyframes exit-gift-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.6; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 640px) {
  .exit-gift { inset: auto 16px 86px auto; max-height: calc(100dvh - 110px); }
  .exit-gift-bubble h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .exit-gift-typing { display: none; }
}

/* Pie: links legales y botón para cambiar la elección de cookies */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 641px) { .art-cookies > div { grid-template-columns: 190px 1fr; } }
.art-cookies dt { word-break: break-word; }
.cookies-preferencias { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.site-footer .cookies-preferencias:hover { color: #fff; }
.form-note-privacidad a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

/* Aviso de cookies (lo imprime Zybium Core). No bloquea la página: espera la decisión abajo a la izquierda. */
.cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  display: grid; gap: 14px; width: min(420px, calc(100vw - 32px)); padding: 22px 22px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; line-height: 1.6;
  max-height: calc(100dvh - 32px); overflow: auto;
}
.cookies[hidden] { display: none; }
.cookies-titulo { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.cookies-texto a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.cookies-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies-botones .btn { min-height: 46px; padding: 0 18px; }
.cookies-elegir { grid-column: 1 / -1; justify-self: center; padding: 4px 8px; border: 0; background: none; color: var(--violet); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookies.is-eligiendo .cookies-elegir { display: none; }
.cookies-panel { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cookies-panel[hidden] { display: none; }
.cookies-opcion { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--lav-50); cursor: pointer; }
.cookies-opcion input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violet); cursor: pointer; }
.cookies-opcion span { display: grid; gap: 2px; font-size: 0.85rem; line-height: 1.5; }
.cookies-opcion b { color: var(--ink); font-weight: 600; }
.cookies-panel .btn { min-height: 46px; }
@media (max-width: 600px) {
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .has-cookies .wa-float { display: none; } /* Vuelve cuando el visitante decide. */
}

/* Equipo con más de 4 integrantes: fila que se recorre con flechas. */
.team-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.team-flecha { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); color: var(--violet); font-size: 1.15rem; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.team-flecha:hover:not(:disabled) { background: var(--violet); border-color: var(--violet); color: var(--white); }
.team-flecha:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.team-flecha:disabled { opacity: 0.35; cursor: default; }
.team-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.team-scroll::-webkit-scrollbar { display: none; }
.team-scroll .member { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
@media (max-width: 1080px) {
  .team-scroll .member { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .team-scroll { gap: 14px; }
  .team-scroll .member { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .team-scroll { scroll-behavior: auto; }
}

/* ==========================================================================
   44. Herramientas gratis
   Índice /herramientas/ y generador de links de WhatsApp (el HTML de la herramienta
   lo imprime Zybium Core). La firma: el celular que muestra el chat con el mensaje ya
   escrito, igual que lo ve el cliente al tocar el link.
   ========================================================================== */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 3vw, 34px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lav-400); }
.tool-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--grad); color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.tool-card h2 { font-size: 1.45rem; letter-spacing: -0.025em; }
.tool-card p { font-size: 0.95rem; }
.tool-card .link-arrow { margin-top: auto; padding-top: 8px; }

.tool-hero { padding-bottom: var(--section-y); }
.tool-intro { max-width: 780px; }

.wa-tool { margin-top: clamp(32px, 4vw, 48px); }
.wa-tool [hidden] { display: none !important; }
.wa-tool-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }

/* Formulario: tres pasos en orden */
.wa-tool-form { display: grid; gap: 30px; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.wa-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.wa-step-title { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; color: var(--ink); }
.wa-step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.wa-hint { margin: 8px 0 0; font-size: 0.85rem; line-height: 1.55; color: var(--muted); }
.wa-step-title + .wa-hint { margin: -4px 0 14px; }

.wa-number { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.wa-number select, .wa-number input, .wa-msg textarea, .wa-code-fields input, .wa-code-fields select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font: 400 0.95rem var(--font-body); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wa-number select, .wa-code-fields select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%237d00e1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
}
.wa-number input { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.02em; }
.wa-number select:focus, .wa-number input:focus, .wa-msg textarea:focus, .wa-code-fields input:focus, .wa-code-fields select:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px var(--lav-200); }
.wa-tool.has-error .wa-number input { border-color: #d04545; }
.wa-tool.has-error [data-wt-numero-ayuda] { color: #b83232; }

.wa-places { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-place {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: var(--lav-50); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wa-place input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.wa-place i { font-size: 1.1rem; color: var(--violet); transition: color 0.2s ease; }
.wa-place:hover { border-color: var(--lav-400); }
.wa-place:has(input:checked) { background: var(--violet); border-color: var(--violet); color: #fff; }
.wa-place:has(input:checked) i { color: #fff; }
.wa-place:has(input:focus-visible) { outline: 3px solid var(--violet-2); outline-offset: 3px; }

.wa-msgs { display: grid; gap: 14px; }
.wa-msg { display: grid; gap: 6px; }
.wa-msg-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.wa-msg-label i { font-size: 1.05rem; color: var(--violet); }
.wa-msg textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.wa-msg-note { margin: 0; font-size: 0.78rem; color: var(--muted); }
.wa-msg-note:empty { display: none; }
.wa-empty { margin: 0; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed var(--lav-400); background: var(--lav-50); font-size: 0.9rem; color: var(--muted); }

/* Vista previa: el chat como lo ve el cliente */
.wa-preview { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--deep); }
.wa-preview-label { margin: 0; font-size: 0.82rem; color: var(--deep-muted); }
.wa-preview-label b { color: #fff; font-weight: 600; }
.wa-phone { display: flex; flex-direction: column; width: 100%; max-width: 330px; min-height: 430px; margin-inline: auto; border: 8px solid var(--ink); border-radius: 34px; overflow: hidden; background-color: var(--lav-100); background-image: radial-gradient(var(--lav-300) 1px, transparent 1.2px); background-size: 14px 14px; box-shadow: var(--shadow-lg); }
.wa-phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--green-dark); color: #fff; }
.wa-phone-head > i { font-size: 1.1rem; opacity: 0.85; }
.wa-phone-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); font-size: 1.2rem; }
.wa-phone-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wa-phone-who b { font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-phone-who small { font-size: 0.7rem; opacity: 0.8; }
.wa-phone-chat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 14px; }
.wa-phone-day { padding: 4px 12px; border-radius: 8px; background: #fff; font-size: 0.7rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
.wa-phone-tip { max-width: 88%; padding: 8px 12px; border-radius: 8px; background: #fff3c4; color: #5c4a00; font-size: 0.74rem; line-height: 1.45; text-align: center; }
.wa-phone-bar { display: flex; align-items: flex-end; gap: 8px; padding: 10px; }
.wa-phone-input { flex: 1; min-width: 0; margin: 0; min-height: 44px; max-height: 9.4em; overflow: hidden; padding: 11px 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); font-size: 0.88rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.wa-phone-input::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--green-dark); animation: wa-caret 1.05s steps(1) infinite; }
.wa-phone-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-wa); }
@keyframes wa-caret { 50% { opacity: 0; } }

/* Resultado: un link por lugar */
.wa-out, .wa-code { margin-top: 24px; padding: clamp(22px, 3.5vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
/* "Tus links" es el resultado: el borde morado lo separa del resto. */
.wa-out { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.wa-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.wa-out-title { font-size: 1.4rem; letter-spacing: -0.025em; }
.wa-links { display: grid; gap: 10px; }
.wa-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--lav-50); }
.wa-link-main { display: grid; gap: 4px; min-width: 0; }
.wa-link-place { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink); }
.wa-link-place b { font-weight: 600; }
.wa-link-place i { font-size: 1.1rem; color: var(--violet); }
.wa-link-url { display: block; font: 0.78rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-link-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: #fff; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.wa-act i { font-size: 1.05rem; }
.wa-act:hover, .wa-act[aria-expanded="true"] { border-color: var(--violet); color: var(--violet); }
.wa-act.is-copied, .btn.is-copied { background: var(--mint); border-color: #cdeccf; color: var(--green-dark); }
.wa-link-qr { grid-column: 1 / -1; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 2px; padding-top: 16px; border-top: 1px dashed var(--lav-300); }
.wa-qr { padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.wa-qr svg { display: block; width: 100%; height: auto; }
.wa-qr-text p { margin: 0 0 12px; font-size: 0.9rem; }
.wa-qr-text .wa-hint { margin: 12px 0 0; }

/* Botón para la web */
.wa-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.wa-code-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 14px; }
.wa-code-type { margin: 0 0 14px; padding: 0; border: 0; }
.wa-code-type legend { margin-bottom: 8px; padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.wa-code-type label { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 6px 0; font-size: 0.9rem; cursor: pointer; }
.wa-code-type input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.wa-code-box { display: block; width: 100%; min-height: 128px; margin-bottom: 14px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--deep-2); color: #d9cdf0; font: 0.74rem/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace; resize: vertical; }
.wa-code-box:focus { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.wa-code-demo { display: grid; gap: 14px; align-content: start; }
.wa-site { border-radius: 18px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.wa-site-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--lav-100); }
.wa-site-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--lav-300); }
.wa-site-body { position: relative; display: grid; gap: 10px; align-content: start; min-height: 230px; padding: 24px; }
.wa-site-line { display: block; height: 10px; border-radius: 6px; background: var(--lav-100); }
.wa-site-line.w1 { width: 60%; height: 16px; background: var(--lav-200); }
.wa-site-line.w2 { width: 80%; }
.wa-site-btn { pointer-events: none; }
.wa-site-btn.is-pagina { margin-top: 12px; }
.wa-site-btn.is-flotante { position: absolute; right: 16px; bottom: 16px; }
.wa-site-btn a { position: static !important; }
.wa-code-nudge { margin: 0; font-size: 0.9rem; }
.wa-code-nudge a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.wa-privacy { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 0.82rem; color: var(--muted); }
.wa-privacy i { font-size: 1.05rem; color: var(--green-dark); }

/* Un link por lugar: bandeja de chats con el origen de cada uno */
.inbox { width: 100%; max-width: 480px; margin: 0 auto; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.inbox-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--green-dark); color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.inbox-head i { font-size: 1.3rem; }
.inbox-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.inbox-list p { grid-column: 1; margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.inbox-list time { grid-column: 2; grid-row: 1; font-size: 0.72rem; color: var(--muted); }
.inbox-tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.inbox-tag i { font-size: 0.95rem; }
.inbox-tag.t-ig { background: var(--lav-200); color: var(--violet-deep); }
.inbox-tag.t-map { background: var(--mint); color: var(--green-dark); }
.inbox-tag.t-loc { background: #fff3c4; color: #6b5200; }
.inbox-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; background: var(--lav-50); }
.inbox-count span { width: 100%; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.inbox-count b { padding: 4px 12px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.tool-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-uses li { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tool-uses i { display: block; margin-bottom: 14px; font-size: 1.8rem; color: var(--violet); }
.tool-uses h3 { margin-bottom: 8px; font-size: 1.1rem; letter-spacing: -0.015em; }
.tool-uses p { font-size: 0.9rem; }

.tool-cta { display: flex; flex-direction: column; align-items: center; max-width: 820px; text-align: center; }
.tool-cta .eyebrow { margin-bottom: 18px; }
.tool-cta .h2 { max-width: 20ch; }
.tool-cta .lead { margin: 22px auto 0; }
.tool-cta .btn-row { justify-content: center; margin-top: 34px; }
.tool-cta-note { margin: 18px 0 0; color: var(--deep-muted); }

@media (max-width: 960px) {
  .wa-tool-grid, .wa-code { grid-template-columns: 1fr; }
  .wa-preview { position: static; }
  .tool-uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wa-link { grid-template-columns: 1fr; }
  .wa-link-actions .wa-act { flex: 1 1 auto; justify-content: center; }
  .wa-link-qr { grid-template-columns: 1fr; }
  .wa-qr { width: 100%; max-width: 220px; margin-inline: auto; }
  .wa-code-fields, .tool-uses { grid-template-columns: 1fr; }
  .wa-phone { min-height: 380px; }
}
@media (max-width: 400px) {
  .wa-number { grid-template-columns: 1fr; }
}
