/* ==========================================================================
   Cantik CRM — Design System
   Newsreader (display) · Hanken Grotesk (body) · JetBrains Mono (labels)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Surfaces & ink */
  --cream:       #FBF8F6;
  --cream-2:     #F4ECEA;
  --white:       #FFFFFF;
  --ink:         #26141C;
  --ink-soft:    #6B5860;
  --ink-faint:   #9C8B92;
  --line:        rgba(38, 20, 28, 0.10);
  --line-strong: rgba(38, 20, 28, 0.18);

  /* Brand */
  --burgundy:      #A9165E;
  --burgundy-deep: #86114A;
  --burgundy-ink:  #5E0D34;
  --plum:          #2A0E1C;
  --plum-2:        #3D1528;
  --blush:         #FBEAF1;
  --blush-2:       #F5D3E1;
  --blush-line:    rgba(169, 22, 94, 0.16);
  --peach:         #FBB89A;
  --peach-2:       #F98E6B;
  --grad:          linear-gradient(120deg, #A9165E 0%, #C42D74 45%, #FBB89A 110%);

  /* Type families */
  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Fluid type — body scales 14px → 19px (375 → 1440 viewport) */
  --fs-50:  clamp(0.75rem, 0.71rem + 0.17vw, 0.875rem);   /* 12 → 14  small/mono */
  --fs-75:  clamp(0.8125rem, 0.75rem + 0.27vw, 1rem);     /* 13 → 16  meta */
  --fs-100: clamp(0.875rem, 0.765rem + 0.47vw, 1.1875rem);/* 14 → 19  BODY */
  --fs-200: clamp(1rem, 0.85rem + 0.64vw, 1.375rem);      /* 16 → 22  lead */
  --fs-300: clamp(1.2rem, 0.98rem + 0.95vw, 1.75rem);     /* 19 → 28  h4 */
  --fs-400: clamp(1.45rem, 1.1rem + 1.5vw, 2.3rem);       /* 23 → 37  h3 */
  --fs-500: clamp(1.85rem, 1.25rem + 2.55vw, 3.25rem);    /* 30 → 52  h2 */
  --fs-600: clamp(2.4rem, 1.4rem + 4.25vw, 4.5rem);       /* 38 → 72  h1 */
  --fs-700: clamp(3rem, 1.4rem + 6.8vw, 6rem);            /* 48 → 96  hero/display */

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Section rhythm */
  --section-y: clamp(4.5rem, 3rem + 6.5vw, 9rem);
  --gutter:    clamp(1.5rem, 0.8rem + 3vw, 3.5rem);
  --maxw:      1400px;
  --maxw-text: 680px;

  /* Radii & shadows */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(38,20,28,0.05), 0 2px 6px rgba(38,20,28,0.05);
  --shadow-md: 0 8px 24px -12px rgba(38,20,28,0.18), 0 2px 8px rgba(38,20,28,0.05);
  --shadow-lg: 0 30px 70px -30px rgba(42,14,28,0.35), 0 8px 24px -16px rgba(38,20,28,0.18);
  --shadow-burgundy: 0 18px 40px -18px rgba(169,22,94,0.5);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-100);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: none; }
ul, ol { padding: 0; list-style: none; }
hr { border: none; border-top: 1px solid var(--line); }

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-head, 1);
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}
h1, h2 { line-height: var(--lh-head-lg, 1); }
h3, h4 { line-height: var(--lh-head-sm, 1.05); }

/* Refuerzo de especificidad frente a los estilos de Astra
   (Astra aplica line-height a los encabezados dentro de .entry-content
   y vía estilos inline del Personalizador). */
.entry-content h1, .ast-container h1, .site-content h1,
.entry-content h2, .ast-container h2, .site-content h2 {
  line-height: var(--lh-head-lg, 1);
}
.entry-content h3, .ast-container h3, .site-content h3,
.entry-content h4, .ast-container h4, .site-content h4 {
  line-height: var(--lh-head-sm, 1.05);
}
.serif { font-family: var(--font-head); }
.serif-i { font-family: var(--font-head); font-style: italic; font-weight: 500; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-50);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.8em; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.no-rule::before { display: none; }

.mono { font-family: var(--font-body); }

.lead {
  font-size: var(--fs-200);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 920px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.bg-cream  { background: var(--cream); }
.bg-cream2 { background: var(--cream-2); }
.bg-white  { background: var(--white); }
.bg-blush  { background: var(--blush); }
.bg-plum   { background: var(--plum); color: var(--cream); }
.bg-plum hr, .bg-plum td, .bg-plum th, .bg-plum .divider { border-color: rgba(255,255,255,0.14); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-500); margin-top: var(--sp-4); }
.section-head p { margin-top: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-200); max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-weight: 600;
  font-size: var(--fs-75);
  letter-spacing: 0.005em;
  padding: 0.68em 1.4em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--burgundy); color: #fff; box-shadow: var(--shadow-burgundy); }
.btn-primary:hover { background: var(--burgundy-deep); transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(169,22,94,0.55); transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease); }
/* Astra colorea los enlaces (y su hover) con su color de acento; en los
   botones de fondo oscuro eso deja el texto invisible. Forzamos texto claro
   en todos los estados de los botones oscuros. */
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:active,
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  color: #fff !important;
}
.btn-primary:hover svg { color: #fff; }
.btn-ghost:hover, .btn-ghost:hover svg { color: var(--cream) !important; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-on-plum { background: var(--cream); color: var(--plum); }
.btn-on-plum:hover { background: #fff; transform: translateY(-2px); }
.btn-outline-plum { border-color: rgba(255,255,255,0.28); color: var(--cream); }
.btn-outline-plum:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-lg { padding: 0.85em 1.75em; font-size: var(--fs-100); }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--burgundy);
  font-size: var(--fs-75);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Pills / tags ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-50);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  border: 1px solid var(--blush-line);
  color: var(--burgundy);
  background: var(--blush);
}
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-muted { background: transparent; border-color: var(--line-strong); color: var(--ink-soft); }
.pill-status { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.status-soon  { color: var(--burgundy); }
.status-soon::before  { background: var(--burgundy); }
.status-planned { color: #B0732A; }
.status-planned::before { background: #C98A3A; }
.status-vision { color: var(--ink-faint); }
.status-vision::before { background: var(--ink-faint); }

/* ---- Logo --------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 0.6em; }
.logo-mark { width: 30px; height: 30px; flex: none; color: var(--burgundy); }
.logo-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.logo-crm {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  align-self: flex-start;
  margin-top: 0.15em;
}
.bg-plum .logo-word { color: var(--cream); }
.bg-plum .logo-mark { color: var(--blush-2); }
.bg-plum .logo-crm { color: rgba(247,244,251,0.6); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,251,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247,244,251,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: 74px; }
.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 0.2rem + 1vw, 1.6rem); }
.nav-links a {
  font-size: var(--fs-75); font-weight: 500; color: var(--ink-soft);
  padding: 0.4em 0.2em; position: relative; transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0.2em; right: 0.2em; bottom: -0.1em; height: 1.5px;
  background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-7px); } .nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.5px) translateX(1px); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: var(--fs-200); width: 100%; padding: 0.7em 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav .btn-ghost { display: none; }
}

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blush-line); }

.feature-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blush); color: var(--burgundy);
  margin-bottom: var(--sp-4);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: var(--fs-300); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { margin-top: var(--sp-3); color: var(--ink-soft); font-size: var(--fs-75); }

/* ---- Image frame & graceful fallback ------------------------------------ */
.imgframe { position: relative; overflow: hidden; background: var(--blush); border-radius: var(--r-lg); }
.imgframe img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.imgframe.is-fallback {
  background:
    linear-gradient(135deg, var(--blush) 0%, var(--blush-2) 55%, #C3A3EF 100%);
}
.imgframe.is-fallback::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(76,29,149,0.06) 0 2px, transparent 2px 9px);
}
.imgframe.is-fallback::after {
  content: attr(data-label);
  position: absolute; inset: 0; margin: auto; height: max-content;
  text-align: center; padding: 1rem;
  font-family: var(--font-body); font-size: var(--fs-50);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy-ink);
  opacity: 0.66; display: flex; align-items: center; justify-content: center;
}
.imgframe.is-fallback img { display: none; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--plum); color: rgba(247,244,251,0.78); padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-body); font-size: var(--fs-50); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247,244,251,0.5); margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7em; }
.footer-col a { color: rgba(247,244,251,0.78); font-size: var(--fs-75); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-blurb { color: rgba(247,244,251,0.7); font-size: var(--fs-75); margin-top: var(--sp-4); max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.12); font-size: var(--fs-50); color: rgba(247,244,251,0.55); font-family: var(--font-body); letter-spacing: 0.03em; }

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---- Utility ------------------------------------------------------------ */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.flex { display: flex; } .items-center { align-items: center; } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.wrap-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   Modal legal con pestañas
   ========================================================================== */
.legal-modal { position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 1.25rem; }
.legal-modal[hidden] { display: none; }
.legal-backdrop { position: absolute; inset: 0; background: rgba(38, 20, 28, 0.55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.legal-modal.is-open .legal-backdrop { opacity: 1; }
.legal-dialog { position: relative; width: 100%; max-width: 720px; max-height: 88vh;
  background: var(--white); border-radius: 20px; box-shadow: 0 30px 80px rgba(38,20,28,.35);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(14px) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.legal-modal.is-open .legal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.legal-x { position: absolute; top: .65rem; right: .8rem; z-index: 2; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: var(--cream); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .15s ease; }
.legal-x:hover { background: var(--cream-2); }
.legal-tabs { display: flex; gap: .25rem; padding: 1.1rem 1.1rem 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); }
.legal-tab { border: 0; background: transparent; padding: .55rem .9rem; border-radius: 10px 10px 0 0;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink-faint); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease; }
.legal-tab:hover { color: var(--ink-soft); }
.legal-tab.is-active { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.legal-body { padding: 1.4rem 1.6rem 1.8rem; overflow-y: auto; }
.legal-panel { display: none; }
.legal-panel.is-active { display: block; animation: legalFade .2s ease; }
@keyframes legalFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.legal-panel h3 { font-size: 1.02rem; margin: 1.15rem 0 .35rem; color: var(--ink); }
.legal-panel h3:first-of-type { margin-top: .4rem; }
.legal-panel p, .legal-panel li { color: var(--ink-soft); line-height: 1.62; font-size: .95rem; }
.legal-panel ul { margin: .4rem 0 .4rem 1.1rem; }
.legal-panel li { margin-bottom: .3rem; }
.legal-note { background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .8rem; font-size: .85rem !important; color: var(--ink-faint) !important; }
.legal-updated { margin-top: 1.2rem; font-size: .82rem !important; color: var(--ink-faint) !important;
  border-top: 1px solid var(--line); padding-top: .8rem; }
@media (max-width: 560px) {
  .legal-tab { padding: .5rem .7rem; font-size: .85rem; }
  .legal-body { padding: 1.1rem 1.1rem 1.5rem; }
}

/* ==========================================================================
   Clientes / Casos de éxito
   ========================================================================== */
.client-card .client-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.mini-tag { font-size: .72rem; font-weight: 600; color: var(--burgundy);
  background: var(--blush); border: 1px solid var(--blush-line);
  padding: .18rem .5rem; border-radius: 999px; }

/* Datos rápidos del cliente (hero de la ficha) */
.client-facts { display: flex; flex-wrap: wrap; gap: 2rem; }
.client-facts > div { display: flex; flex-direction: column; }
.cf-k { font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.cf-v { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: .15rem; }

/* Mockup de la web del cliente con barra de navegador */
.imgframe-wide { position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(38,20,28,.18); }
.imgframe-wide img { width: 100%; display: block; }
.browser-chrome { position: absolute; top: 0; left: 0; right: 0; height: 38px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: .4rem; padding: 0 .9rem;
  border-bottom: 1px solid var(--line); }
.browser-chrome .dot-r, .browser-chrome .dot-y, .browser-chrome .dot-g {
  width: 11px; height: 11px; border-radius: 50%; }
.browser-chrome .dot-r { background: #FF5F57; }
.browser-chrome .dot-y { background: #FEBC2E; }
.browser-chrome .dot-g { background: #28C840; }
.chrome-url { margin-left: .6rem; font-size: .8rem; color: var(--ink-soft);
  background: var(--cream); padding: .2rem .7rem; border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.fig-note { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-top: .9rem; }

/* Resultados: rejilla de métricas */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.stat-card { background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.6rem 1.4rem; text-align: center; }
.stat-n { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800;
  color: var(--burgundy); line-height: 1; }
.stat-d { margin-top: .6rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }

/* Lista de addons que usa el cliente */
.addon-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.addon-chip { display: inline-flex; align-items: center; gap: .45rem;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.addon-chip .ac-ic { width: 18px; height: 18px; color: var(--burgundy); display: inline-flex; }
.addon-chip .ac-ic svg { width: 100%; height: 100%; }

/* Cita del cliente */
.client-quote { margin: 2rem 0 0; padding: 1.6rem 1.8rem; background: var(--blush);
  border-left: 4px solid var(--burgundy); border-radius: 0 16px 16px 0; }
.client-quote p { font-size: 1.15rem; font-style: italic; color: var(--ink); line-height: 1.55; }
.client-quote cite { display: block; margin-top: .9rem; font-style: normal;
  font-weight: 700; color: var(--ink-soft); font-size: .92rem; }

/* CTA sobre fondo oscuro reutilizable */
.cta-on-plum h3 { color: var(--white); }
.cta-on-plum p { color: var(--blush-2); }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; }
  .client-facts { gap: 1.2rem; }
}

/* ==========================================================================
   Muro de clientes + testimonios (home)
   ========================================================================== */
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.5rem; }
.client-chip {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem;
  padding: 1.6rem 1rem 1.35rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.client-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blush-line); }
.client-mono {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--burgundy); font-weight: 800; font-size: 1.15rem; line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.client-chip:hover .client-mono { background: var(--burgundy); color: #fff; }
.client-name { font-weight: 700; color: var(--ink); letter-spacing: -.01em; font-size: var(--fs-75); line-height: 1.15; }
.client-meta { font-size: var(--fs-50); color: var(--ink-faint); }

.testimonial-card { display: flex; flex-direction: column; gap: .9rem; padding: 2rem 1.9rem; position: relative; }

/* ---- Testimonios: slider ------------------------------------------------ */
.testi-slider { margin-top: 3rem; }
.testi-viewport { overflow: hidden; border-radius: var(--r-xl); }
.testi-track { display: flex; transition: transform .6s var(--ease-out); touch-action: pan-y; }
.testi-slide {
  flex: 0 0 100%; min-width: 100%;
  padding: clamp(1rem, 0.5rem + 2vw, 2.5rem) clamp(1rem, 0.5rem + 3vw, 3rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.testi-quote {
  font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1.32; color: var(--ink);
  max-width: 24ch;
}
.testi-quote::before { content: "\201C"; color: var(--burgundy); }
.testi-quote::after  { content: "\201D"; color: var(--burgundy); }
.testi-author { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.testi-mono {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--blush); color: var(--burgundy); font-weight: 800; font-size: 1.2rem; line-height: 1;
}
.testi-who { display: flex; flex-direction: column; text-align: left; }
.testi-name { font-weight: 700; color: var(--ink); font-size: var(--fs-100); }
.testi-org { color: var(--ink-faint); font-size: var(--fs-75); }

.testi-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.6rem; }
.testi-arrow {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); color: var(--ink);
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.testi-arrow svg { width: 20px; height: 20px; }
.testi-arrow:hover { background: var(--burgundy); border-color: var(--burgundy); color: #fff; transform: translateY(-2px); }
.testi-dots { display: flex; align-items: center; gap: .5rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: all .25s var(--ease); }
.testi-dot.active { width: 26px; border-radius: 999px; background: var(--burgundy); }

@media (max-width: 1040px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
