/* Agentic Mochi — hoja de estilos del sitio
   Paleta e identidad: ver Ficha_de_Marca_Agentic_Mochi.md */

:root {
  --matcha: #9CAF88;
  --matcha-dark: #5B7A52;
  --crema: #FBF6EC;
  --white: #FFFFFF;
  --cacao: #3B332A;
  --anko: #C97B5F;
  --anko-dark: #B2694F;
  --muted: #8a7f70;
  --line: #ecdfc4;

  --font-heading: 'Quicksand', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  --container: 1120px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;

  color-scheme: light;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  font-family: var(--font-body);
  color: var(--cacao);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--cacao);
}

p { margin: 0; }

img, svg { max-width: 100%; display: block; }

a {
  color: var(--matcha-dark);
  text-decoration: none;
}
a:hover { color: var(--anko); }

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--anko);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container { padding: 0 40px; }
}

.section {
  padding: 64px 0;
}
@media (min-width: 900px) {
  .section { padding: 88px 0; }
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .section-title { font-size: 34px; }
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}
@media (min-width: 640px) {
  .section-lead { font-size: 17px; margin-bottom: 40px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--anko);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: var(--anko-dark); color: var(--white); }
.btn-lg { font-size: 16px; padding: 16px 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--crema);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--matcha-dark);
}
.brand svg { width: 34px; height: 30px; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a:not(.btn) {
  font-size: 15px;
  color: var(--cacao);
  font-weight: 500;
}
.main-nav a:not(.btn):hover { color: var(--anko); }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cacao);
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--crema);
}
.mobile-panel.is-open { display: flex; }
@media (min-width: 860px) {
  .mobile-panel { display: none !important; }
}
.mobile-panel a:not(.btn) {
  padding: 12px 4px;
  font-size: 16px;
  color: var(--cacao);
  border-bottom: 1px solid var(--line);
}
.mobile-panel .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--crema);
}
.hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #EDE3C6;
  opacity: 0.55;
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero::before { width: 520px; height: 520px; }
}

.hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 64px;
}
@media (min-width: 900px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 96px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anko);
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  max-width: 560px;
}
@media (min-width: 640px) { .hero h1 { font-size: 44px; } }
@media (min-width: 900px) { .hero h1 { font-size: 54px; } }

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
}

.hero-sectors {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 520px;
  color: var(--muted);
  font-style: italic;
}

.hero-art {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art svg { width: 220px; height: 200px; }
@media (min-width: 640px) { .hero-art svg { width: 280px; height: 254px; } }
@media (min-width: 900px) { .hero-art svg { width: 320px; height: 290px; } }

/* ---------- El problema ---------- */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.problem-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.problem-item p { font-size: 16.5px; line-height: 1.55; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) {
  .service-card { padding: 32px; }
}
.service-card.has-media {
  gap: 22px;
}
@media (min-width: 560px) {
  .service-card.has-media { flex-direction: row; align-items: center; }
  .service-card.has-media.align-top { align-items: flex-start; }
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.service-body h3 { font-size: 19px; font-weight: 700; }
.service-body p { font-size: 15.5px; line-height: 1.55; }
.service-icon { color: var(--matcha-dark); }
.service-icon svg { width: 26px; height: 26px; }

.service-media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.service-media svg { width: 150px; height: auto; }
@media (min-width: 640px) { .service-media svg { width: 128px; } }

/* Chat mockup */
.chat-mock {
  flex: 0 0 auto;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  background: #2A2620;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 14px 32px rgba(59,51,42,0.18);
}
@media (min-width: 560px) { .chat-mock { margin: 0; } }
.chat-mock-inner {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}
.chat-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 3px;
  font-size: 9.5px;
  font-weight: 700;
}
.chat-topbar {
  background: var(--matcha-dark);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
}
.chat-topbar .chat-name { font-size: 11.5px; font-weight: 600; }
.chat-topbar .chat-status { font-size: 9px; color: #CBD8C0; }
.chat-body {
  background: #EFE6D2;
  padding: 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
}
.chat-bubble {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.chat-bubble.in { align-self: flex-start; }
.chat-bubble.out { align-self: flex-end; }
.chat-bubble .msg {
  border-radius: 12px 12px 12px 3px;
  padding: 7px 10px;
  font-size: 11.5px;
  line-height: 1.35;
  background: var(--white);
}
.chat-bubble.out .msg {
  border-radius: 12px 12px 3px 12px;
  background: var(--matcha);
}
.chat-bubble .time { font-size: 9px; color: #a89b86; padding: 0 4px; }
.chat-bubble.out .time { text-align: right; }
.chat-input-row {
  background: var(--white);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
}
.chat-input-row .field { flex: 1; height: 22px; border-radius: 12px; background: #F2EBDD; }

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.app-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--crema);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12.5px;
}
.app-chip svg { width: 14px; height: 14px; }
.app-chip img { width: 14px; height: 14px; border-radius: 3px; display: block; object-fit: contain; }

.services-callout {
  background: var(--white);
  border: 1.5px dashed #cdbfa0;
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.services-callout p { font-size: 15.5px; line-height: 1.5; flex: 1; min-width: 220px; }

.impact-banner {
  background: #F1E4D8;
  border-radius: 20px;
  padding: 28px 28px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 5px solid var(--anko);
}
@media (min-width: 640px) {
  .impact-banner { padding: 36px 44px; }
}
.impact-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.impact-icon svg { width: 26px; height: 26px; }
.impact-banner p { font-size: 16.5px; line-height: 1.55; }
@media (min-width: 640px) { .impact-banner p { font-size: 18px; } }

/* ---------- Cómo trabajamos ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 900px) {
  .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--matcha-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; }
.step p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Diferenciadores ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 700px) {
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.diff-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--anko);
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
}
.diff-item p { font-size: 16px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.faq-question h3 {
  font-size: 16px;
  font-weight: 600;
}
@media (min-width: 640px) { .faq-question h3 { font-size: 17px; } }
.faq-question svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-item[data-open="true"] .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-answer-inner {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  padding: 0 34px 22px 4px;
}

/* ---------- Contacto ---------- */
.contact-layout {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .contact-layout { flex-direction: row; align-items: flex-start; gap: 64px; }
}

.contact-form-wrap {
  width: 100%;
  max-width: 480px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form[hidden] { display: none; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 14px; font-weight: 600; }
.field-group input,
.field-group textarea {
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0 16px;
  font: inherit;
  color: var(--cacao);
  width: 100%;
}
.field-group textarea {
  height: 96px;
  padding: 12px 16px;
  resize: vertical;
}
.field-group input:focus,
.field-group textarea:focus {
  outline: 2px solid var(--matcha-dark);
  outline-offset: 1px;
}
.contact-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.contact-note a { color: var(--matcha-dark); font-weight: 600; }
.contact-success { color: var(--matcha-dark); font-weight: 600; font-size: 16px; }
.contact-error { color: var(--anko-dark); }
.contact-error a { color: var(--anko-dark); }

.contact-art {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.contact-art svg { width: 220px; height: auto; }
@media (min-width: 640px) { .contact-art svg { width: 260px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--matcha-dark);
  color: var(--white);
}
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 700px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { font-size: 14px; color: #E4EBDC; }
.footer-links a:hover { color: var(--white); }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.18); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #CBD8C0;
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Ver más (link en tarjetas de servicio) ---------- */
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--matcha-dark);
  border: 1.5px solid var(--matcha-dark);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  margin-top: 8px;
  align-self: flex-start;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.service-more:hover { background: var(--matcha-dark); color: var(--white); }
.service-more--demo { background: var(--anko); border-color: var(--anko); color: var(--white); }
.service-more--demo:hover { background: var(--anko-dark); border-color: var(--anko-dark); color: var(--white); }
.service-more svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.service-more:hover svg { transform: translateX(3px); }

/* ---------- Páginas de detalle de servicio ---------- */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.detail-narrow { max-width: 720px; }
.detail-copy { font-size: 16.5px; line-height: 1.65; }
.detail-copy + .detail-copy { margin-top: 14px; }

.detail-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .detail-split { flex-direction: row; align-items: flex-start; gap: 56px; }
}
.detail-split-copy { flex: 1; min-width: 0; }
.detail-split-media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 260px;
  display: flex;
  justify-content: center;
}
.detail-split-media svg { width: 100%; max-width: 190px; height: auto; }
.detail-split-media .chat-mock { max-width: 220px; margin: 0 auto; }
.detail-split-media img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(59,51,42,0.16);
  display: block;
}

.detail-showcase {
  margin: 36px auto 0;
  max-width: 960px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(59,51,42,0.16);
}
.detail-showcase-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-showcase img { width: 100%; min-width: 640px; height: auto; display: block; }
@media (min-width: 680px) {
  .detail-showcase img { min-width: 0; }
}

/* Imagen de hero angosta (retrato), usada cuando el mockup va justo debajo
   del título en vez de al costado del checklist (ver detail-split-media). */
.detail-hero-media-narrow {
  margin: 36px auto 0;
  max-width: 300px;
}
.detail-hero-media-narrow img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(59,51,42,0.16);
  display: block;
}

.detail-tools-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
}
.detail-tools-card p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.55;
}
.check-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--matcha-dark);
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 760px) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
.example-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.example-sector {
  display: inline-block;
  align-self: flex-start;
  background: var(--crema);
  color: var(--anko);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.example-card p { font-size: 15px; line-height: 1.6; }

.examples-compact {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.examples-compact-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.examples-compact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .examples-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
.examples-compact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.examples-compact-item .example-sector { margin-bottom: 2px; }
.examples-compact-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cacao);
  margin: 0;
}

.detail-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.detail-cta p { font-size: 19px; font-weight: 600; line-height: 1.4; }
@media (min-width: 640px) { .detail-cta p { font-size: 21px; } }
.detail-cta .btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
  height: auto;
}

/* ---------- Legal page ---------- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h1 { font-size: 30px; margin-bottom: 24px; }
.legal-content h2 { font-size: 19px; margin: 28px 0 10px; }
.legal-content p, .legal-content li { font-size: 15.5px; line-height: 1.6; color: var(--cacao); }
.legal-content ul { padding-left: 20px; }
.legal-back { display: inline-block; margin-bottom: 24px; font-size: 14.5px; }

/* ---------- Utilidades ---------- */
.bg-white { background: var(--white); }
.bg-crema { background: var(--crema); }
