/* ══ VARIABLES ══ */
:root {
  --paper:      #FBFBF9;
  --paper-2:    #FFFFFF;
  --surface-alt: #F5F4F0;
  --ink:        #17160F;
  --ink-soft:   #6B675C;
  --ink-soft-2: #9C988B;
  --line:       #E7E4DC;
  --line-soft:  #F0EEE7;

  --red:        #146B57;
  --red-dark:   #0F5544;
  --red-deep:   #146B57;
  --red-tint:   #E9F3EF;
  --amber:      #A9720C;
  --amber-tint: #FBF1DC;
  --green:      #12805F;
  --green-tint: #E3F5EC;
  --blue:       #3457C9;
  --blue-tint:  #E9EDFC;
  --rose:       #B23B63;
  --rose-tint:  #FBEAF0;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --r:    12px;
  --r-sm: 8px;
  --r-lg: 18px;
  --sh-sm: 0 1px 2px rgba(20,20,15,0.06);
  --sh:    0 8px 20px -6px rgba(20,20,15,0.12), 0 2px 6px rgba(20,20,15,0.05);
  --sh-lg: 0 24px 60px -16px rgba(20,20,15,0.20), 0 8px 20px -8px rgba(20,20,15,0.08);
  --ease: 0.15s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
svg { display: block; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ══ REVEAL ══ */
html.js .anim { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
html.js .anim.in-view { opacity: 1; transform: none; }
html.reduced-motion .anim, html.reduced-motion .anim.in-view { opacity: 1 !important; transform: none !important; transition: none !important; }
html.force-visible .anim { opacity: 1 !important; transform: none !important; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--red); z-index: 200; transition: width 0.1s linear; }

/* ══ SHARED ══ */
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
  background: var(--red-tint);
  color: var(--red);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
}
.tag-invert { background: rgba(255,255,255,0.1); color: var(--paper); }

.display { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.display-sm { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.9rem; }
.hl { color: var(--red); }

/* ══ NAV ══ */
.nav { position: sticky; top: 0; z-index: 100; padding: 1.15rem 1.5rem 0; }
.nav-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  background: var(--red-deep); color: var(--paper);
  border-radius: 999px;
  padding: 0.7rem 0.7rem 0.7rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  box-shadow: 0 18px 34px -14px rgba(0,0,0,0.6), 0 3px 10px rgba(0,0,0,0.25);
}
.nav-brand { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo { height: 81px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 0.3rem; flex: 1; justify-content: center; }
.nav-links a {
  position: relative;
  font-size: 0.85rem; font-weight: 600;
  color: rgba(247,244,236,0.68);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  isolation: isolate;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--paper);
  font-weight: 700;
  background-image: linear-gradient(110deg,
    var(--paper) 0%, var(--paper) 42%,
    #fff 48%, #F5A623 50%, #fff 52%,
    var(--paper) 58%, var(--paper) 100%);
  background-size: 280% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nav-link-shine 2.5s linear infinite;
}

@keyframes nav-link-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
.nav-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.nav-actions .btn { border-radius: 999px; border: none; box-shadow: none; }
.nav-actions .btn:hover { transform: none; box-shadow: none; }
.nav-actions .btn-ghost { color: rgba(247,244,236,0.78); padding: 0.65rem 0.9rem; }
.nav-actions .btn-ghost:hover { color: var(--paper); }
.nav-actions .btn-primary { background: var(--paper); color: var(--ink); padding: 0.7rem 1.4rem; }
.nav-actions .btn-primary:hover { background: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 0.4rem; }
.nav-burger span { width: 20px; height: 2px; background: var(--paper); border-radius: 2px; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 0.88rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: none; }
.btn:active { transform: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-alt); border-color: var(--ink-soft-2); }
.btn-ghost { border-color: transparent; box-shadow: none; color: var(--ink-soft); padding: 0.7rem 0.6rem; }
.btn-ghost:hover { color: var(--ink); transform: none; box-shadow: none; }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 0.98rem; }
.btn-block { width: 100%; justify-content: center; }

/* ══ HERO ══ */
.hero { position: relative; padding: 4.5rem 1.5rem 0; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center; padding-bottom: 4rem; }
.hero-copy .display { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: 1.4rem; }
.hero-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 520px; margin-bottom: 1.9rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-hint { font-size: 0.85rem; color: var(--ink-soft); }
.hero-hint strong { color: var(--ink); }

/* ── Hero mock ── */
.hero-visual { position: relative; }
.mock-window { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 1.4rem; }
.mock-today-tab { position: absolute; top: -13px; right: 24px; background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 999px; }
.mock-topbar { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.mock-topbar-info { min-width: 0; }
.mock-topbar-title { font-size: 0.94rem; font-weight: 700; }
.mock-topbar-sub { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--ink-soft); }
.mock-live { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--green); font-weight: 600; }
.mock-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18,128,95,0.6); animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,128,95,0.55); } 70% { box-shadow: 0 0 0 6px rgba(18,128,95,0); } 100% { box-shadow: 0 0 0 0 rgba(18,128,95,0); } }

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 1.1rem; }
.mock-stat { min-width: 0; background: var(--paper-2); border: none; border-radius: 0; padding: 0.75rem 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.mock-stat-icon { width: 30px; height: 30px; border-radius: 8px; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-stat-icon svg { width: 14px; height: 14px; }
.icon-red   { background: var(--red-tint);   color: var(--red); }
.icon-amber { background: var(--amber-tint); color: var(--amber); }
.icon-green { background: var(--green-tint); color: var(--green); }
.icon-blue  { background: var(--blue-tint);  color: var(--blue); }
.icon-rose  { background: var(--rose-tint);  color: var(--rose); }

.mock-stat-text { min-width: 0; }
.mock-stat-num { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-stat-num.amber { color: var(--amber); }
.mock-stat-num.green { color: var(--green); }
.mock-stat-lbl { font-size: 0.66rem; color: var(--ink-soft-2); margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mock-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mock-item { display: flex; align-items: center; gap: 0.65rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.55rem 0.7rem; transition: transform var(--ease), box-shadow var(--ease); }
.mock-item:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.mock-item-date { min-width: 36px; text-align: center; background: var(--surface-alt); color: var(--ink); border-radius: 6px; padding: 0.25rem 0.3rem; flex-shrink: 0; }
.mock-item-date span { display: block; font-size: 0.95rem; font-weight: 800; line-height: 1; }
.mock-item-date { font-size: 0.58rem; font-weight: 700; color: var(--ink-soft-2); }
.mock-item-info { flex: 1; min-width: 0; }
.mock-item-name { font-size: 0.8rem; font-weight: 700; }
.mock-item-meta { font-size: 0.7rem; color: var(--ink-soft); }
.mock-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; font-weight: 700; padding: 0.22rem 0.55rem; border-radius: 999px; border: none; flex-shrink: 0; }
.mock-badge.pending { background: var(--amber-tint); color: var(--amber); }
.mock-badge.done { background: var(--green-tint); color: var(--green); }
.mock-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); animation: live-pulse 1.8s ease-out infinite; }

.mock-chip { margin-top: 1rem; padding: 0.55rem 0.9rem; background: var(--ink); border: none; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--paper); font-style: normal; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: var(--sh-lg); }
.mock-chip svg { width: 15px; height: 15px; color: var(--paper); opacity: 0.7; flex-shrink: 0; }

/* ══ MARQUEE ══ */
.marquee { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; gap: 3.5rem; animation: marquee-scroll 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-soft-2); white-space: nowrap; }
.marquee-track span:nth-child(4n+2) { color: var(--red); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.reduced-motion .marquee-track { animation: none; }

/* ══ SECTIONS ══ */
.section { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-flip { max-width: none; background: var(--ink); color: var(--paper); }
.section-flip > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-flip .section-head p { color: rgba(251,251,249,0.6); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1rem; }

/* ══ BENTO FEATURES ══ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "citas citas agenda agenda" "citas citas tareas contactos" "mensual mensual mensual mensual" "equipo equipo equipo equipo"; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bento-citas { grid-area: citas; } .bento-agenda { grid-area: agenda; } .bento-tareas { grid-area: tareas; } .bento-contactos { grid-area: contactos; } .bento-mensual { grid-area: mensual; } .bento-equipo { grid-area: equipo; }

.bento-card { background: var(--paper-2); border: none; border-radius: 0; padding: 1.75rem; box-shadow: none; transition: background 0.15s var(--ease-out); display: flex; flex-direction: column; gap: 1.25rem; }
.bento-card:hover { transform: none; background: var(--surface-alt); }

.bento-head { display: flex; align-items: flex-start; gap: 0.9rem; }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; border: none; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 19px; height: 19px; }
.bento-head h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.bento-head p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Mini visuals ── */
.mini { margin-top: auto; }
.mini-agenda-row { display: flex; align-items: center; gap: 0.55rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.8rem; }
.bento-citas .mini { flex: 1; }
.bento-citas .mini-agenda { height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; padding-left: 12px; }
.bento-citas .mini-agenda::before { content: ''; position: absolute; left: 2.5px; top: 12px; bottom: 12px; width: 2px; background: var(--line-soft); }
.bento-citas .mini-agenda .mini-dot { position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--paper-2); }
.mini-agenda-row.is-done { opacity: 0.55; }
.mini-agenda-row.is-done .mini-agenda-name { text-decoration: line-through; }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; border: none; }
.dot-red { background: var(--red); } .dot-blue { background: var(--blue); } .dot-green { background: var(--green); } .dot-amber { background: var(--amber); }
.mini-agenda-name { flex: 1; font-weight: 700; }
.mini-agenda-time { color: var(--ink-soft); font-size: 0.74rem; }

.mini-week-bars { display: flex; align-items: flex-end; gap: 0.4rem; height: 64px; padding-top: 0.5rem; }
.mini-week-bars span { flex: 1; height: var(--h); min-height: 6px; background: var(--line-soft); border-radius: 4px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.mini-week-bars span.is-today { background: var(--red); animation: bar-pulse 2.4s ease-in-out infinite; }
@keyframes bar-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }
.mini-week-bars span i { position: absolute; bottom: -1.15rem; font-style: normal; font-size: 0.66rem; color: var(--ink-soft); font-weight: 700; }
.mini-week-bars span.is-today i { color: var(--red); }

.mini-tasks { display: flex; flex-direction: column; gap: 0.5rem; }
.mini-task { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.mini-check { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-soft); flex-shrink: 0; position: relative; }
.mini-check::after { content: ''; position: absolute; left: 4px; top: 0.5px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); opacity: 0; }
.mini-task.is-checked { color: var(--ink-soft); text-decoration: line-through; }
.mini-task.is-checked .mini-check { background: var(--green); border-color: var(--green); }
.mini-task.is-checked .mini-check::after { opacity: 1; }

.mini-contacts { display: flex; flex-direction: column; gap: 0.7rem; }
.mini-avatars { display: flex; align-items: center; }
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; margin-left: -8px; }
.mini-avatar:first-child { margin-left: 0; }
.mini-avatar-more { background: var(--red); font-size: 0.6rem; }
.mini-avatar-add { background: var(--paper); border: 1.5px dashed var(--ink-soft-2); color: var(--ink-soft); }
.mini-contacts-note { font-size: 0.78rem; color: var(--ink-soft); }

.mini-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mini-month-grid span { height: 32px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line-soft); position: relative; display: flex; align-items: flex-start; justify-content: flex-end; padding: 4px 5px 0 0; font-size: 0.66rem; font-weight: 700; color: var(--ink-soft); }
.mini-month-grid span.has-event::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.mini-month-grid span.is-today { background: var(--red); border-color: var(--red); color: #fff; animation: bar-pulse 2.4s ease-in-out infinite; }

.mini-team { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mini-team-days { display: flex; gap: 0.4rem; flex: 1; min-width: 220px; max-width: 360px; }
.mini-team-days span { flex: 1; text-align: center; font-size: 0.7rem; font-weight: 700; padding: 0.55rem 0; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.mini-team-days span.is-open { background: var(--red); border-color: var(--red); color: #fff; }
.mini-team-bottom { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.mini-team-schedule { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line-soft); padding: 0.4rem 0.6rem; border-radius: 999px; }
.mini-team-schedule svg { width: 13px; height: 13px; color: var(--ink-soft); flex-shrink: 0; }

/* ══ CASOS DE USO ══ */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.case-card { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.85rem 1.6rem; box-shadow: none; transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), border-color 0.15s var(--ease-out); }
.case-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--ink-soft-2); }
.case-num { display: block; font-size: 0.85rem; font-weight: 700; color: var(--red); margin-bottom: 0.9rem; }
.case-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.case-card p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.case-stat { display: block; font-size: 0.76rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 0.85rem; }

/* ══ SPLIT SECTIONS ══ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-copy p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.4rem; }

.check-list { display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.7rem; font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.2rem; width: 18px; height: 18px; border-radius: 5px; background: var(--green); border: none; }
.check-list li::after { content: ''; position: absolute; left: 5px; top: 0.48rem; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

.mock-card-public { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 2rem; max-width: 340px; margin: 0 auto; text-align: center; }
.mock-public-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem; }
.mock-card-public h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.mock-card-public > p { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.mock-public-slots { display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.mock-slot { font-size: 0.78rem; padding: 0.45rem 0.6rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); transition: background var(--ease), color var(--ease); }
.mock-slot.is-selected { background: var(--red); color: #fff; border-color: var(--red); }
.mock-public-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line-soft); }
.mock-public-row span { color: var(--ink-soft); }
.mock-public-btn { margin-top: 1.25rem; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.86rem; padding: 0.8rem; border-radius: var(--r-sm); border: none; transition: transform var(--ease); }
.mock-card-public:hover .mock-public-btn { transform: translateY(-1px); }

.mock-chat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; max-width: 380px; margin: 0 auto; }
.mock-chat-header { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.mock-chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-chat-avatar svg { width: 16px; height: 16px; }
.mock-chat-title { font-size: 0.87rem; font-weight: 700; }
.mock-chat-sub { font-size: 0.72rem; color: var(--ink-soft); }
.mock-chat-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 236px; }
.mock-msg { max-width: 82%; padding: 0.55rem 0.8rem; border-radius: 12px; font-size: 0.8rem; line-height: 1.45; border: none; }
.mock-msg.bot { align-self: flex-start; background: var(--surface-alt); border-bottom-left-radius: 4px; }
.mock-msg.user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.mock-msg-typing { align-self: flex-start; display: none; align-items: center; gap: 4px; background: var(--surface-alt); border: none; border-radius: 12px; border-bottom-left-radius: 4px; padding: 0.65rem 0.85rem; }
.mock-msg-typing.is-visible { display: flex; }
.mock-msg-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); animation: typing-bounce 1.1s ease-in-out infinite; }
.mock-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ══ TIMELINE / STEPS ══ */
.timeline { position: relative; }
.timeline-track { display: none; position: absolute; top: 44px; left: calc(16.66% + 1px); right: calc(16.66% + 1px); height: 2px; background: var(--line-soft); z-index: 0; }
.timeline-fill { display: block; height: 100%; width: 0%; background: var(--red); transition: width 0.1s linear; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.85rem; box-shadow: none; transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out); }
.step:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.step-num { width: 38px; height: 38px; border-radius: 10px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.92rem; margin-bottom: 1.2rem; }
.step h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin-bottom: 0.55rem; }
.step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
@media (min-width: 981px) { .timeline-track { display: block; } }

/* ══ CONTACT ══ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; }
.contact-copy p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.5rem; max-width: 440px; }
.contact-form { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; padding: 1.85rem; display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field span { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem; resize: vertical;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.field-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; }

/* ══ FOOTER ══ */
.footer { background: var(--ink); color: var(--paper); border-top: none; padding: 2.75rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { height: 26px; width: auto; margin: 0 auto 0.9rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-inner p { font-size: 0.84rem; color: rgba(251,251,249,0.55); }
.footer-copy { margin-top: 0.5rem; font-size: 0.76rem; }
.footer-link { color: rgba(251,251,249,0.55); text-decoration: underline; }
.footer-link:hover { color: var(--paper); }

/* ══ RESPONSIVE ══ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 460px; width: 100%; min-width: 0; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "citas citas" "agenda agenda" "tareas contactos" "mensual mensual" "equipo equipo"; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .split-reverse .split-copy, .split-reverse .split-visual { order: initial; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 0.85rem 1rem 0; }
  .nav-inner { padding: 0.5rem 0.5rem 0.5rem 1.1rem; }
  .nav-logo { height: 60px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--red-deep); border-radius: 20px;
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 14px 30px -12px rgba(0,0,0,0.55);
  }
  .nav-links.nav-links-open { display: flex; }
  .nav-links a { padding: 0.65rem 0; width: 100%; color: rgba(247,244,236,0.78); }
  .nav-burger { display: flex; }
  .nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-burger span { transition: transform var(--ease), opacity var(--ease); }
  .nav-actions .btn-ghost { display: none; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "citas" "agenda" "tareas" "contactos" "mensual" "equipo"; }
  .cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .hero-inner { padding-left: 0; padding-right: 0; }
  .mock-window { padding: 1rem; }
  .mock-stats { gap: 0.4rem; }
  .mock-stat { padding: 0.55rem 0.4rem; gap: 0.4rem; }
  .mock-stat-icon { width: 26px; height: 26px; }
  .mock-stat-num { font-size: 1rem; }
  .mock-stat-lbl { font-size: 0.56rem; }
  .mini-team-days { min-width: 0; }
  .mock-list { gap: 0.4rem; }
  .mock-item { gap: 0.5rem; padding: 0.55rem 0.6rem; }
  .mock-item-date { min-width: 32px; padding: 0.2rem 0.3rem; }
  .mock-badge { font-size: 0.56rem; padding: 0.18rem 0.4rem; }
  .mock-topbar-title { font-size: 0.85rem; }
}

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock-live-dot, .mock-badge-dot, .mini-week-bars span.is-today, .mini-month-grid span.is-today, .mock-msg-typing span, .marquee-track { animation: none !important; }
}
