/**
 * Marmota.BOT — landing (referencia premium: crema, verde bosque, serif + sans)
 * Tipografías: Playfair Display + Inter (cargadas en views/home.php)
 */

:root {
  /* Paleta — base */
  --bg-main: #f5f2eb;
  --bg-card: #ffffff;
  --border-soft: #e8e3d9;
  --text-primary: #2b2b2b;
  --text-secondary: #6b6b6b;
  /* Marca */
  --green-primary: #2f4f2f;
  --green-hover: #3a5f3a;
  --green-soft: #dfe8dc;
  /* Acentos */
  --beige-accent: #e9e2d3;
  --shadow-soft: rgba(0, 0, 0, 0.06);
  --shadow-float: rgba(0, 0, 0, 0.08);

  /* Compatibilidad con clases / secciones existentes */
  --ml-bg: var(--bg-card);
  --ml-bg-soft: #ede9e1;
  --ml-bg-warm: #faf8f4;
  --ml-ink: var(--text-primary);
  --ml-ink-muted: var(--text-secondary);
  --ml-ink-soft: #8a8a8a;
  --ml-border: var(--border-soft);
  --ml-accent: var(--green-primary);
  --ml-accent-hover: var(--green-hover);
  --ml-forest: var(--green-primary);
  --ml-forest-soft: #4a6b4a;
  --ml-sand: var(--beige-accent);
  --ml-surface: var(--bg-card);
  --ml-radius: 20px;
  --ml-radius-sm: 14px;
  --ml-shadow: 0 4px 24px var(--shadow-soft);
  --ml-shadow-lg: 0 10px 30px var(--shadow-soft);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

html,
body.marmota-landing {
  margin: 0;
  padding: 0;
}

.marmota-landing {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.marmota-landing * {
  box-sizing: border-box;
}

.marmota-landing a {
  color: inherit;
  text-decoration: none;
}

.marmota-landing p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ml-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Layout contenedor ─────────────────────────────────── */

.ml-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Navegación ───────────────────────────────────────── */

.ml-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 208, 194, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.ml-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.ml-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.ml-logo-image {
  display: block;
  width: clamp(180px, 21vw, 286px);
  height: auto;
}

.ml-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.6vw, 2.7rem);
  font-size: 14px;
  font-weight: 500;
  color: #262626;
}

.ml-nav-links a {
  position: relative;
  padding: 0.45rem 0.1rem 0.7rem;
  transition: color 0.2s ease;
}

.ml-nav-links a:hover {
  color: var(--green-primary);
}

.ml-nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #b99a54;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.ml-nav-links a:hover::after,
.ml-nav-links a.is-active::after {
  width: 2rem;
}

.ml-nav-links a.is-active {
  color: #7a6030;
}

.ml-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
}

.ml-nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.25rem;
  transition: color 0.2s ease;
}

.ml-nav-login:hover {
  color: var(--green-primary);
}

@media (max-width: 900px) {
  .ml-nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .ml-nav-links {
    display: none;
  }
}

/* ── Botones (pill) ───────────────────────────────────── */

.ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ml-btn:hover {
  transform: translateY(-1px);
}

.ml-btn:active {
  transform: translateY(0) scale(0.99);
}

.ml-btn:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 3px;
}

.marmota-landing a.ml-btn-primary,
.ml-btn-primary {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.marmota-landing a.ml-btn-primary:hover,
.ml-btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}

.marmota-landing a.ml-btn-ghost,
.ml-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

.marmota-landing a.ml-btn-ghost:hover,
.ml-btn-ghost:hover {
  background: var(--bg-card);
  border-color: #d4cfc4;
  color: var(--text-primary);
}

.ml-btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.ml-nav-cta-main {
  font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────── */

.ml-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
  /* visible: la marmota grande y el blob pueden sobresalir del bloque sin recortarse */
  overflow-x: clip;
  overflow-y: visible;
}

.ml-hero::before {
  content: '';
  position: absolute;
  inset: -35% -15% auto;
  height: 65%;
  background: radial-gradient(ellipse 70% 50% at 70% 0%, rgba(47, 79, 47, 0.07), transparent 60%);
  pointer-events: none;
}

.ml-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  column-gap: clamp(2.5rem, 6.5vw, 5.75rem);
  row-gap: clamp(2.25rem, 5vw, 4rem);
  position: relative;
}

@media (min-width: 961px) {
  .ml-hero-copy {
    position: relative;
    z-index: 2;
    padding-right: clamp(0.75rem, 2vw, 2rem);
    min-width: 0;
  }

  .ml-hero-visual {
    padding-left: clamp(1rem, 3.5vw, 2.75rem);
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .ml-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .ml-hero-visual {
    order: -1;
    max-width: min(640px, 100%);
    margin: 0 auto;
  }

  .ml-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .ml-hero-actions {
    justify-content: center;
  }

  .ml-hero-perks {
    justify-content: center;
  }
}

.ml-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  background: #e6f0e2;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(47, 79, 47, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.ml-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.8vw, 4.65rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1.65rem;
  color: var(--text-primary);
  max-width: 8.9ch;
  text-wrap: balance;
}

.ml-hero-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 34ch;
  line-height: 1.72;
  margin-bottom: 1.8rem;
}

.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-bottom: 1.45rem;
}

.ml-hero-actions .ml-btn {
  min-height: 52px;
  padding-inline: 1.55rem;
}

.ml-hero-actions .ml-btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--border-soft);
  color: var(--text-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.ml-hero-actions .ml-btn-ghost:hover {
  background: #e2dacb;
  border-color: #d4cfc4;
}

.ml-btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.ml-hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  align-items: center;
  max-width: 40rem;
}

.ml-hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #5f5a4f;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
}

.ml-hero-perk-icon {
  width: 18px;
  height: 18px;
  stroke: #8b774a;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

/* Hero visual: chat integrado + marmota/blob como hermanos */

.ml-hero-visual {
  position: relative;
  width: 100%;
  overflow: visible;
  isolation: isolate;
}

.ml-hero-stage {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
  width: min(860px, 100%);
  margin: 0 auto;
  min-height: clamp(420px, 52vw, 600px);
  overflow: visible;
}

@media (min-width: 961px) {
  .ml-hero-stage {
    margin: 0 0 0 auto;
    justify-content: flex-end;
  }
}

.ml-hero-chat-slot {
  position: relative;
  z-index: 4;
  flex: 0 0 clamp(300px, 32vw, 360px);
  max-width: min(360px, 92vw);
  margin-right: clamp(-1.6rem, -3vw, -0.8rem);
  padding: 1.1rem 0 2rem;
  box-sizing: border-box;
  overflow: visible;
}

.ml-hero-chat-slot,
.ml-hero-chat-slot * {
  box-sizing: border-box;
}

.ml-hero-chat-slot {
  --ml-chat-green: #2d5a3d;
  --ml-chat-green-light: #4a8c5c;
  --ml-chat-user: #e0dbd2;
  --ml-chat-bg: #f0ede7;
  --ml-chat-white: #ffffff;
  --ml-chat-gray: #9a9589;
  --ml-chat-text: #1a1a1a;
}

.ml-hero-chat-slot .chat-panel {
  width: 100%;
  background: var(--ml-chat-bg);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 42px 84px -18px rgba(0, 0, 0, 0.16),
    0 24px 52px rgba(0, 0, 0, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.045);
  display: flex;
  flex-direction: column;
}

.ml-hero-chat-slot .chat-header {
  background: #f7f5f1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.ml-hero-chat-slot .header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  background: #e0dbd2;
}

.ml-hero-chat-slot .header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 15%;
  transform: scale(1.5) translateY(6px);
}

.ml-hero-chat-slot .header-info {
  flex: 1;
}

.ml-hero-chat-slot .header-name {
  color: var(--ml-chat-text);
  font-weight: 700;
  font-size: 15px;
}

.ml-hero-chat-slot .header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7a7a6e;
  font-size: 12px;
  margin-top: 2px;
}

.ml-hero-chat-slot .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 5px #4caf5066;
  animation: ml-chat-pulse 2s infinite;
}

.ml-hero-chat-slot .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ml-hero-chat-slot .header-actions span {
  color: #999;
  font-size: 18px;
  line-height: 1;
}

.ml-hero-chat-slot .chat-body {
  height: 440px;
  overflow: hidden;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.ml-hero-chat-slot .date-divider {
  text-align: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.ml-hero-chat-slot .date-divider span {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ml-chat-gray);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
}

.ml-hero-chat-slot .msg {
  display: flex;
  flex-direction: column;
  max-width: 83%;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ml-hero-chat-slot .msg.visible {
  opacity: 1;
  transform: none;
}

.ml-hero-chat-slot .msg.bot {
  align-self: flex-start;
}

.ml-hero-chat-slot .msg.user {
  align-self: flex-end;
}

.ml-hero-chat-slot .tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

.ml-hero-chat-slot .tag.proactive {
  background: #fff3cd;
  color: #7a5500;
}

.ml-hero-chat-slot .tag.ai {
  background: #deeeff;
  color: #1548a0;
}

.ml-hero-chat-slot .tag.sales {
  background: #fde8ec;
  color: #a0152c;
}

.ml-hero-chat-slot .bubble {
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ml-chat-text);
  word-break: break-word;
  min-height: 40px;
}

.ml-hero-chat-slot .msg.bot .bubble {
  background: var(--ml-chat-white);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ml-hero-chat-slot .msg.user .bubble {
  background: var(--ml-chat-user);
  border-bottom-right-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ml-hero-chat-slot .msg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ml-chat-gray);
}

.ml-hero-chat-slot .msg.user .msg-meta {
  justify-content: flex-end;
}

.ml-hero-chat-slot .check {
  color: #53bdeb;
}

.ml-hero-chat-slot .typing-bubble {
  display: none;
  align-self: flex-start;
  background: var(--ml-chat-white);
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  gap: 4px;
  align-items: center;
}

.ml-hero-chat-slot .typing-bubble.active {
  display: flex;
}

.ml-hero-chat-slot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b0bec5;
  animation: ml-chat-bounce 1.2s infinite ease-in-out;
}

.ml-hero-chat-slot .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ml-hero-chat-slot .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.ml-hero-chat-slot .chat-footer {
  background: var(--ml-chat-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ml-hero-chat-slot .input-field {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 4px;
  font-size: 14px;
  color: #aaa;
  outline: none;
  font-family: inherit;
}

.ml-hero-chat-slot .send-btn {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--ml-chat-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ml-hero-chat-slot .send-btn svg {
  width: 15px;
  height: 15px;
  fill: white;
}

.ml-hero-chat-slot .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ml-chat-gray);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: ml-chat-blink 0.7s step-end infinite;
}

.ml-hero-deco {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: clamp(200px, 24vw, 300px);
  min-height: clamp(360px, 46vw, 560px);
  /* La marmota entra por detrás del chat sin empujarlo hacia el texto */
  margin-left: clamp(-2.25rem, -4vw, -0.75rem);
  pointer-events: none;
}

@keyframes ml-hero-blob-morph {
  0%,
  100% {
    transform: rotate(-7deg) scale(1) translate(0, 0);
    border-radius: 58% 42% 48% 52% / 52% 48% 55% 45%;
  }
  40% {
    transform: rotate(-5deg) scale(1.045) translate(1%, -0.5%);
    border-radius: 52% 48% 55% 45% / 48% 52% 50% 50%;
  }
  70% {
    transform: rotate(-8deg) scale(0.985) translate(-0.5%, 0.5%);
    border-radius: 60% 40% 46% 54% / 54% 46% 52% 48%;
  }
}

.ml-hero-blob {
  position: absolute;
  right: -28%;
  bottom: -14%;
  left: auto;
  width: min(260%, 760px);
  aspect-ratio: 1;
  max-width: none;
  background: radial-gradient(ellipse 76% 72% at 52% 48%, #b8cbb2 0%, #d5e3d0 32%, rgba(220, 232, 216, 0.45) 56%, transparent 78%);
  border-radius: 58% 42% 48% 52% / 52% 48% 55% 45%;
  z-index: 0;
  transform: rotate(-7deg);
}

@media (min-width: 961px) {
  .ml-hero-blob {
    animation: ml-hero-blob-morph 10s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-hero-blob {
    animation: none !important;
  }
}

.ml-hero-mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: clamp(320px, 44vmin, 480px);
  max-height: 480px;
  max-width: min(400px, 42vw);
  margin: 0 -0.25rem -6px 0;
  object-fit: contain;
  object-position: bottom right;
  filter:
    drop-shadow(0 36px 64px rgba(0, 0, 0, 0.12))
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.07))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
  transform: translateX(clamp(0.9rem, 3.2vw, 2.6rem));
}

@media (max-width: 960px) {
  .ml-hero-stage {
    flex-direction: column;
    align-items: center;
    width: min(440px, 100%);
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .ml-hero-deco {
    order: -1;
    min-height: clamp(220px, 62vw, 360px);
    min-width: 0;
    width: 100%;
    max-width: min(400px, 94vw);
    margin-left: 0;
    justify-content: center;
  }

  .ml-hero-blob {
    right: 0;
    left: 50%;
    transform: translateX(-40%) rotate(-6deg);
    bottom: -6%;
    width: min(185%, 540px);
    animation: none;
  }

  .ml-hero-mascot {
    height: clamp(240px, 64vw, 340px);
    max-height: 360px;
    max-width: min(88vw, 340px);
    margin: 0 auto -10px;
    object-position: bottom center;
    transform: none;
  }

  .ml-hero-chat-slot {
    flex: 0 0 auto;
    width: min(360px, 94vw);
    max-width: min(360px, 94vw);
    margin-right: 0;
    padding: 0 0 1rem;
    box-sizing: border-box;
  }
}

@keyframes ml-chat-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes ml-chat-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

@keyframes ml-chat-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── Icon circle (features) ──────────────────────────── */

.ml-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--beige-accent);
  border: 1px solid var(--border-soft);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: none;
}

/* ── Secciones ────────────────────────────────────────── */

.ml-section {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.ml-section-alt {
  background: var(--ml-bg-soft);
}

.ml-friction-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 18%, rgba(223, 232, 220, 0.85), transparent 22rem),
    linear-gradient(180deg, #f5f1e9 0%, #eee9e0 100%);
}

.ml-friction-section .ml-container {
  position: relative;
  z-index: 1;
}

.ml-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.ml-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.ml-section-head p {
  font-size: 1.0625rem;
}

.ml-friction-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(2.4rem, 5vw, 3.8rem);
}

.ml-friction-head {
  text-align: left;
  max-width: 560px;
  margin: 0;
}

.ml-friction-head h2 {
  font-size: clamp(3rem, 6.6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-bottom: 1.35rem;
}

.ml-friction-head p {
  max-width: 560px;
  color: #686560;
}

.ml-friction-preview {
  position: relative;
  min-height: 245px;
}

.ml-friction-preview::before {
  content: '';
  position: absolute;
  inset: 10% 0 auto 18%;
  width: 310px;
  height: 210px;
  background: rgba(222, 230, 215, 0.72);
  border-radius: 48% 52% 48% 52%;
  filter: blur(2px);
}

.ml-friction-widget {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin-left: auto;
  padding: 1rem;
  border: 1px solid rgba(232, 227, 217, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(68, 61, 50, 0.13);
  backdrop-filter: blur(16px);
}

.ml-friction-widget-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ml-friction-widget-top img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  background: #ece7dc;
}

.ml-friction-widget-top strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.15;
}

.ml-friction-widget-top span {
  display: block;
  font-size: 0.72rem;
  color: #71936a;
}

.ml-friction-dots {
  color: #b4aea4 !important;
  letter-spacing: 0.08em;
}

.ml-friction-widget-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 50px;
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(245, 242, 235, 0.86);
  color: #6a6862;
  font-size: 0.79rem;
  line-height: 1.35;
}

.ml-friction-widget-line svg {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Strip */

.ml-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.7rem, 5vw, 5.4rem);
  align-items: stretch;
}

@media (max-width: 768px) {
  .ml-strip {
    grid-template-columns: 1fr;
  }
}

.ml-strip-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: clamp(1.45rem, 3vw, 2rem);
  box-shadow: 0 20px 55px rgba(64, 55, 42, 0.08);
  min-height: 240px;
}

.ml-friction-section .ml-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 0.55rem);
  width: calc(clamp(1.7rem, 5vw, 5.4rem) - 1.1rem);
  border-top: 2px dotted rgba(134, 127, 112, 0.26);
}

.ml-friction-section .ml-strip-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  left: calc(100% + clamp(1.7rem, 5vw, 5.4rem) - 0.6rem);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid rgba(134, 127, 112, 0.28);
}

.ml-strip-icon {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.45rem;
}

.ml-strip-icon svg {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  padding: 15px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-primary);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-strip-icon b {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--green-primary);
}

.ml-strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.ml-strip-item span {
  display: block;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Template gallery */

.ml-templates-section {
  background: linear-gradient(180deg, #fbf8f2 0%, #f3eee6 100%);
}

.ml-templates-section .ml-section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ml-templates-section .ml-section-head h2 {
  font-size: clamp(2.3rem, 4.6vw, 4.25rem);
  line-height: 1;
}

.ml-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.ml-template-card {
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 1.7rem);
  border: 1px solid rgba(232, 227, 217, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 55px rgba(66, 58, 45, 0.08);
}

.ml-template-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ml-template-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-primary);
}

.ml-template-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-template-result {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #fbfaf6;
  color: #746f65;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(66, 58, 45, 0.05);
  white-space: nowrap;
}

.ml-template-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.ml-template-card > p {
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 28rem;
}

.ml-template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.15rem;
}

.ml-template-tags span,
.ml-template-pills span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
  background: #f6f3ed;
  color: #6d685e;
  font-size: 0.74rem;
  font-weight: 600;
}

.ml-template-chat,
.ml-template-scheduler {
  min-height: 245px;
  overflow: hidden;
  border: 1px solid #ece7dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8f5ef 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 30px rgba(66, 58, 45, 0.06);
}

.ml-template-chat {
  padding: 0.9rem;
}

.ml-template-chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f0ebe3;
}

.ml-template-chat-head img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #ece7dc;
}

.ml-template-chat-head strong,
.ml-template-steps strong {
  display: block;
  font-size: 0.75rem;
  line-height: 1.15;
}

.ml-template-chat-head small,
.ml-template-steps small {
  display: block;
  color: #75936b;
  font-size: 0.64rem;
}

.ml-template-chat-head b {
  color: #b6afa4;
}

.ml-template-message {
  max-width: 78%;
  width: fit-content;
  margin: 0.55rem 0;
  padding: 0.62rem 0.78rem;
  border-radius: 13px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #57534c;
}

.ml-template-message.is-bot {
  background: #f2efe8;
}

.ml-template-message.is-user {
  margin-left: auto;
  background: #e8e3da;
}

.ml-template-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.ml-template-pills span {
  font-size: 0.65rem;
  padding: 0.36rem 0.52rem;
}

.ml-template-scheduler {
  display: grid;
  grid-template-columns: minmax(90px, 0.72fr) 1fr;
  gap: 0.8rem;
  padding: 1rem;
}

.ml-template-steps {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-content: start;
  gap: 0.55rem 0.65rem;
  padding-top: 0.3rem;
}

.ml-template-steps > span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2efe8;
  color: #777166;
  font-size: 0.68rem;
  font-weight: 700;
}

.ml-template-steps > span.is-done {
  background: var(--green-primary);
  color: #fff;
}

.ml-template-calendar {
  padding: 0.9rem;
  border: 1px solid #ece7dd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.ml-template-calendar > strong {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
}

.ml-template-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ml-template-days span {
  display: block;
  padding: 0.55rem 0.35rem;
  border: 1px solid #eee8de;
  border-radius: 12px;
  text-align: center;
  color: #625e56;
  font-size: 0.68rem;
  line-height: 1.25;
}

.ml-template-days span.is-active {
  border-color: var(--green-primary);
  background: #edf4ea;
  color: var(--green-primary);
}

.ml-template-days b,
.ml-template-days small {
  display: block;
}

.ml-template-confirm {
  margin-top: 0.85rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: #f4f8f1;
  color: var(--green-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ml-friction-intro {
    grid-template-columns: 1fr;
  }

  .ml-friction-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
  }

  .ml-friction-preview {
    display: none;
  }

  .ml-template-grid {
    grid-template-columns: 1fr;
  }

  .ml-template-card {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ml-strip {
    gap: 1rem;
  }

  .ml-strip-item {
    min-height: 0;
  }

  .ml-friction-section .ml-strip-item::before,
  .ml-friction-section .ml-strip-item::after {
    display: none;
  }

  .ml-template-scheduler {
    grid-template-columns: 1fr;
  }
}

/* Cards grid */

.ml-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .ml-grid-2 {
    grid-template-columns: 1fr;
  }
}

.ml-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--ml-radius);
  padding: 24px;
  box-shadow: 0 10px 30px var(--shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ml-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  border-color: #dcd6cc;
  transform: translateY(-2px);
}

.ml-card-icon-svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.ml-card p {
  font-size: 0.9375rem;
}

.ml-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--ml-radius);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.ml-highlight h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ml-highlight p {
  max-width: 70ch;
}

/* In Page showcase */

.ml-inpage-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(218, 211, 199, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 16%, rgba(223, 232, 220, 0.6), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 241, 0.88));
  box-shadow: 0 24px 70px rgba(62, 54, 42, 0.1);
}

.ml-inpage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  margin-bottom: 1.3rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.ml-inpage-content h3 {
  max-width: 560px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
}

.ml-inpage-content > p {
  max-width: 520px;
  margin-bottom: 1.8rem;
  color: #67645e;
}

.ml-inpage-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.7rem;
}

.ml-inpage-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0.75rem;
  border: 1px solid #ece6dc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(64, 55, 42, 0.07);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-inpage-product:hover,
.ml-inpage-product:focus-visible,
.ml-inpage-product.is-active {
  border-color: rgba(47, 79, 47, 0.35);
  box-shadow: 0 18px 44px rgba(64, 55, 42, 0.12);
  transform: translateY(-2px);
}

.ml-inpage-product:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 4px;
}

.ml-inpage-product > span {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  color: var(--green-primary);
  font-size: 0.68rem;
  font-weight: 800;
}

.ml-product-visual {
  position: relative;
  height: 112px;
  margin: -0.15rem -0.15rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f5ef 0%, #eee9df 100%);
}

.ml-product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f3ed;
}

.ml-product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ml-product-chair::before {
  content: '';
  position: absolute;
  left: 27%;
  top: 30%;
  width: 46%;
  height: 33%;
  border: 9px solid #b58b52;
  border-top-width: 7px;
  border-radius: 12px 12px 7px 7px;
  transform: skewX(-7deg);
}

.ml-product-chair::after {
  content: '';
  position: absolute;
  left: 34%;
  top: 58%;
  width: 38%;
  height: 34%;
  border-left: 5px solid #9a7445;
  border-right: 5px solid #9a7445;
}

.ml-product-table::before {
  content: '';
  position: absolute;
  left: 28%;
  top: 38%;
  width: 46%;
  height: 13px;
  border-radius: 50%;
  background: #c9a36c;
}

.ml-product-table::after {
  content: '';
  position: absolute;
  left: 48%;
  top: 47%;
  width: 7px;
  height: 42px;
  background: #9c7b51;
  box-shadow: -23px 34px 0 -2px #9c7b51, 23px 34px 0 -2px #9c7b51;
}

.ml-product-sofa::before {
  content: '';
  position: absolute;
  left: 17%;
  top: 39%;
  width: 66%;
  height: 34%;
  border-radius: 18px 18px 10px 10px;
  background: #d9d2c4;
  box-shadow: inset 0 -13px 0 #c7bdaa;
}

.ml-product-sofa::after {
  content: '';
  position: absolute;
  left: 14%;
  top: 58%;
  width: 72%;
  height: 22%;
  border-radius: 13px;
  background: #bfb3a0;
}

.ml-inpage-product strong,
.ml-inpage-product small,
.ml-inpage-product b,
.ml-inpage-product em {
  display: block;
}

.ml-inpage-product strong {
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.ml-inpage-product small {
  min-height: 2.5rem;
  color: #6f6a60;
  font-size: 0.68rem;
  line-height: 1.35;
}

.ml-inpage-product b {
  margin: 0.55rem 0;
  color: #3b3935;
  font-size: 0.9rem;
}

.ml-inpage-product em {
  padding: 0.55rem;
  border-radius: 10px;
  background: #edf3e9;
  color: var(--green-primary);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.ml-inpage-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ml-inpage-benefits div {
  min-width: 0;
}

.ml-inpage-benefits span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-primary);
  font-weight: 800;
}

.ml-inpage-benefits strong,
.ml-inpage-benefits small {
  display: block;
}

.ml-inpage-benefits strong {
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
}

.ml-inpage-benefits small {
  color: #6f6a60;
  font-size: 0.72rem;
  line-height: 1.45;
}

.ml-inpage-chat {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  max-width: 390px;
  height: clamp(560px, 64vw, 720px);
  max-height: 720px;
  min-height: 0;
  width: 100%;
  justify-self: end;
  padding: 1rem;
  border: 1px solid #ece6dc;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 65px rgba(64, 55, 42, 0.12);
}

.ml-inpage-chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #eee8de;
}

.ml-inpage-chat-head strong {
  font-size: 0.92rem;
}

.ml-inpage-chat-head span {
  color: #74926a;
  font-size: 0.74rem;
}

.ml-inpage-chat-head b {
  color: #aaa399;
}

.ml-inpage-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  overscroll-behavior: contain;
}

.ml-inpage-bubble {
  width: fit-content;
  max-width: 82%;
  margin: 0.7rem 0;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  color: #5a554d;
  font-size: 0.82rem;
  line-height: 1.38;
}

.ml-inpage-bubble.is-bot {
  background: #f3f0ea;
}

.ml-inpage-bubble.is-user {
  margin-left: auto;
  background: #ece8df;
}

.ml-inpage-bubble.is-typing {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  min-width: 52px;
}

.ml-inpage-bubble.is-typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a9488;
  animation: ml-inpage-typing 1s infinite ease-in-out;
}

.ml-inpage-bubble.is-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.ml-inpage-bubble.is-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ml-inpage-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.ml-inpage-chat-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin: 0.85rem 0;
  padding: 0.75rem;
  border: 1px solid #eee8de;
  border-radius: 16px;
  background: #fff;
}

.ml-inpage-chat-card .ml-product-visual {
  height: 78px;
  margin: 0;
}

.ml-inpage-chat-card strong,
.ml-inpage-chat-card small,
.ml-inpage-chat-card b,
.ml-inpage-chat-card a,
.ml-inpage-chat-card button {
  display: block;
}

.ml-inpage-chat-card strong {
  font-size: 0.86rem;
}

.ml-inpage-chat-card small {
  color: #6f6a60;
  font-size: 0.68rem;
  line-height: 1.3;
}

.ml-inpage-chat-card b {
  margin: 0.3rem 0;
  font-size: 0.86rem;
}

.ml-inpage-chat-card a,
.ml-inpage-chat-card button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--green-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-align: left;
}

.ml-inpage-reserve-card {
  margin: 0.85rem 0;
  padding: 0.9rem;
  border: 1px solid rgba(47, 79, 47, 0.18);
  border-radius: 16px;
  background: #f3f8f0;
  color: #4f5948;
}

.ml-inpage-reserve-card strong,
.ml-inpage-reserve-card span,
.ml-inpage-reserve-card a,
.ml-inpage-reserve-card button {
  display: block;
}

.ml-inpage-reserve-card strong {
  color: var(--green-primary);
  font-size: 0.86rem;
}

.ml-inpage-reserve-card span {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.74rem;
  line-height: 1.35;
}

.ml-inpage-reserve-card a,
.ml-inpage-reserve-card button {
  appearance: none;
  width: 100%;
  border: 0;
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  background: var(--green-primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.ml-inpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.ml-inpage-actions button {
  appearance: none;
  border: 1px solid #e7e0d5;
  border-radius: 999px;
  background: #f8f5ef;
  color: #625d54;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.5rem 0.7rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ml-inpage-actions button:hover,
.ml-inpage-actions button:focus-visible {
  background: var(--green-soft);
  border-color: rgba(47, 79, 47, 0.22);
  color: var(--green-primary);
  outline: none;
  transform: translateY(-1px);
}

.ml-inpage-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #eee8de;
  border-radius: 14px;
  color: #aaa399;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ml-inpage-input.is-disabled {
  cursor: not-allowed;
  opacity: 0.68;
  background: #faf8f4;
}

.ml-inpage-input:hover,
.ml-inpage-input:focus-visible {
  border-color: rgba(47, 79, 47, 0.3);
  box-shadow: 0 0 0 3px rgba(47, 79, 47, 0.08);
  outline: none;
}

.ml-inpage-input.is-disabled:hover {
  border-color: #eee8de;
  box-shadow: none;
}

.ml-inpage-input b {
  color: var(--green-primary);
}

@media (max-width: 980px) {
  .ml-inpage-showcase {
    grid-template-columns: 1fr;
  }

  .ml-inpage-chat {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .ml-inpage-showcase {
    padding: 1rem;
    border-radius: 22px;
  }

  .ml-inpage-products,
  .ml-inpage-benefits {
    grid-template-columns: 1fr;
  }

  .ml-inpage-chat-card {
    grid-template-columns: 1fr;
  }
}

/* In Product demo */

.ml-inproduct-section {
  background:
    radial-gradient(circle at 16% 8%, rgba(223, 232, 220, 0.65), transparent 20rem),
    linear-gradient(180deg, #fbf8f2 0%, #f2ede5 100%);
}

.ml-inproduct-section .ml-section-head {
  max-width: 760px;
}

.ml-inproduct-section .ml-section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.02;
}

.ml-inproduct-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(218, 211, 199, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(62, 54, 42, 0.09);
}

.ml-inproduct-product {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid #ece6dc;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fbf8f2 100%);
}

.ml-inproduct-gallery {
  min-width: 0;
}

.ml-inproduct-gallery .ml-product-visual {
  height: min(360px, 38vw);
  min-height: 250px;
  margin: 0;
  border-radius: 20px;
}

.ml-inproduct-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.ml-inproduct-thumbs span {
  height: 54px;
  border: 1px solid #eee8de;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8f5ef 0%, #eee8de 100%);
}

.ml-inproduct-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.ml-inproduct-eyebrow {
  color: var(--green-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ml-inproduct-info h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0.65rem 0 0.8rem;
}

.ml-inproduct-info p {
  max-width: 36rem;
}

.ml-inproduct-price {
  margin: 1rem 0;
  color: var(--text-primary);
  font-size: 1.65rem;
  font-weight: 800;
}

.ml-inproduct-info ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  color: #625d54;
  font-size: 0.92rem;
}

.ml-inproduct-info li::before {
  content: '✓';
  margin-right: 0.45rem;
  color: var(--green-primary);
  font-weight: 800;
}

.ml-inproduct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ml-inproduct-assist-btn {
  appearance: none;
  border: 1px solid rgba(47, 79, 47, 0.24);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 14px 20px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ml-inproduct-assist-btn:hover,
.ml-inproduct-assist-btn:focus-visible {
  background: #d5e4d1;
  box-shadow: 0 10px 26px rgba(47, 79, 47, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.ml-inproduct-chat {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  max-height: 620px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #ece6dc;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(64, 55, 42, 0.09);
  overscroll-behavior: contain;
}

.ml-inproduct-chat-empty {
  display: grid;
  min-height: 100%;
  place-content: center;
  gap: 0.45rem;
  color: #746f65;
  text-align: center;
}

.ml-inproduct-chat-empty strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.ml-inproduct-chat-empty span {
  max-width: 20rem;
  font-size: 0.9rem;
}

.ml-inproduct-chat .ml-inpage-bubble,
.ml-inproduct-chat .ml-inpage-chat-card,
.ml-inproduct-chat .ml-inpage-reserve-card {
  flex: 0 0 auto;
}

.ml-inproduct-composer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(47, 79, 47, 0.18);
  border-radius: 14px;
  background: #fbfaf6;
  color: var(--green-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-inproduct-composer:hover,
.ml-inproduct-composer:focus-visible {
  border-color: rgba(47, 79, 47, 0.32);
  box-shadow: 0 0 0 3px rgba(47, 79, 47, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.ml-inproduct-composer:disabled {
  color: #9a9488;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.ml-inproduct-final {
  flex: 0 0 auto;
  margin: 0.85rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: var(--green-primary);
  color: #fff;
  box-shadow: 0 18px 42px rgba(47, 79, 47, 0.18);
}

.ml-inproduct-final strong,
.ml-inproduct-final span,
.ml-inproduct-final a {
  display: block;
}

.ml-inproduct-final strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.ml-inproduct-final span {
  margin: 0.55rem 0 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ml-inproduct-final a {
  padding: 0.68rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--green-primary);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.ml-inproduct-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.ml-inproduct-related article {
  padding: 0.75rem;
  border: 1px solid #eee8de;
  border-radius: 14px;
  background: #fff;
}

.ml-inproduct-related strong,
.ml-inproduct-related small,
.ml-inproduct-related b {
  display: block;
}

.ml-inproduct-related strong {
  font-size: 0.78rem;
}

.ml-inproduct-related small {
  color: #6f6a60;
  font-size: 0.68rem;
  line-height: 1.3;
}

.ml-inproduct-related b {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

@media (max-width: 1000px) {
  .ml-inproduct-demo,
  .ml-inproduct-product {
    grid-template-columns: 1fr;
  }

  .ml-inproduct-gallery .ml-product-visual {
    height: 280px;
  }
}

@media (max-width: 560px) {
  .ml-inproduct-demo {
    padding: 0.75rem;
  }

  .ml-inproduct-related {
    grid-template-columns: 1fr;
  }
}

/* Pricing */

.ml-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .ml-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.ml-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--ml-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.ml-price-card.featured {
  border-color: var(--green-primary);
  box-shadow: 0 12px 40px rgba(47, 79, 47, 0.12);
}

.ml-price-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
}

.ml-price-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ml-price-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.75rem 0;
  color: var(--text-primary);
}

.ml-price-amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ml-ink-soft);
}

.ml-price-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 0;
}

.ml-price-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.ml-price-list li {
  padding: 0.45rem 0;
  padding-left: 1.35rem;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}

.ml-price-list li:last-child {
  border-bottom: none;
}

.ml-price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-primary);
  font-weight: 700;
}

.ml-price-card .ml-btn {
  width: 100%;
}

/* Table */

.ml-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--ml-radius);
  background: var(--bg-card);
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.ml-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.ml-table th,
.ml-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.ml-table th {
  background: var(--bg-main);
  font-weight: 600;
  color: var(--text-primary);
}

.ml-table tr:last-child td {
  border-bottom: none;
}

.ml-table td:not(:first-child) {
  text-align: center;
}

.ml-yes {
  color: var(--green-primary);
  font-weight: 600;
}

.ml-no,
.ml-partial {
  color: var(--ml-ink-soft);
}

/* Addons */

.ml-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .ml-addon-grid {
    grid-template-columns: 1fr;
  }
}

.ml-addon {
  background: var(--bg-card);
  border: 1px dashed var(--border-soft);
  border-radius: var(--ml-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.ml-addon strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.ml-addon .price {
  color: var(--green-primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Footer CTA */

.ml-footer-cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background: linear-gradient(180deg, var(--ml-bg-soft) 0%, var(--bg-main) 100%);
}

.ml-footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.ml-footer-cta p {
  margin-bottom: 1.5rem;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.ml-site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ml-ink-soft);
  background: var(--bg-main);
}

.ml-site-footer::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: min(32vw, 320px);
  min-height: 140px;
  background: url('../fondo_planta.png') left bottom / 100% auto no-repeat;
  opacity: 0.22;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}

.ml-site-footer .ml-container {
  position: relative;
  z-index: 1;
}

/* FAQ */

.ml-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ml-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--ml-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ml-faq-item[open] {
  border-color: rgba(47, 79, 47, 0.35);
  box-shadow: 0 8px 24px var(--shadow-soft);
}

.ml-faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.ml-faq-item summary::-webkit-details-marker {
  display: none;
}

.ml-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ml-faq-item[open] summary::after {
  content: '−';
}

.ml-faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.938rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Footer grid */

.ml-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  text-align: left;
}

.ml-footer-brand .ml-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ml-footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.ml-footer-sub {
  font-size: 0.8rem;
  color: var(--ml-ink-soft);
}

.ml-footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ml-ink-soft);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.ml-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ml-footer-col li,
.ml-footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ml-footer-col a:hover {
  color: var(--green-primary);
}

.ml-footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ml-ink-soft);
  text-align: center;
}

@media (max-width: 768px) {
  .ml-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .ml-footer-brand {
    grid-column: 1 / -1;
  }

  .ml-footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .ml-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
