/* Duxo — diseño claro aprobado (crema, arena, lavanda, menta, durazno) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FDFBF7;
  --sand: #F4EFE6;
  --lavender: #EAE4F8;
  --lavender-border: #D8CEEE;
  --mint: #E3F5EC;
  --mint-border: #BFE6D3;
  --peach: #FDE8E1;
  --peach-border: #F5CEC1;
  --border: #E8E2D5;
  --charcoal: #18181B;
  --text-muted: #52525B;
  --accent: #00A884;
  --focus: #18181B;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;

  --chat-bg: #EFEAE2;
  --chat-in: #FFFFFF;
  --chat-out: #D9FDD3;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--charcoal); text-decoration-color: var(--lavender-border); }

p a, li a { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.brand-word {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  white-space: nowrap;
}

.brand-star { color: var(--accent); margin-left: 1px; }

.brand-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--lavender);
  border: 1px solid var(--lavender-border);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav {
  display: none;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--charcoal); }

@media (min-width: 880px) {
  .site-nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover { background: #3F3F46; transform: translateY(-1px); }

.btn-header {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-ghost {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--sand); }

.chat-icon { width: 16px; height: 16px; flex-shrink: 0; }

.cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }

.cta-micro { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin: 0; }

.cta-secondary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
}
.cta-secondary:hover { color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 60px; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F5132;
  background: var(--mint);
  border: 1px solid var(--mint-border);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 20px;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 46ch;
}

.scenario-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 540px;
}

.scenario-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.scenario-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid var(--border);
  color: #3F3F46;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover { background: var(--lavender); border-color: var(--lavender-border); color: var(--charcoal); }
.pill[aria-pressed="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

/* ---------- Phone mockup ---------- */
.hero-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-decor {
  position: absolute;
  inset: -16px;
  background: linear-gradient(to bottom right, var(--lavender), var(--sand), var(--mint));
  border-radius: 48px;
  border: 1px solid var(--border);
  z-index: 0;
}

.toast {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  background: var(--cream);
  border: 2px solid var(--accent);
  color: var(--charcoal);
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(24, 24, 27, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.toast-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

@media (prefers-reduced-motion: no-preference) {
  .toast { animation: floatSlow 3.8s ease-in-out infinite; }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background: var(--cream);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 0 0 6px var(--charcoal), 0 25px 60px -12px rgba(24, 24, 27, 0.22);
  overflow: hidden;
}

.phone-statusbar {
  background: var(--charcoal);
  color: rgba(253, 251, 247, 0.85);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 4px;
  border-radius: 32px 32px 0 0;
}

.statusbar-pill { width: 46px; height: 10px; background: rgba(253,251,247,0.5); border-radius: 999px; }

.chat-header {
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 18px; height: 18px; }

.chat-identity { line-height: 1.25; min-width: 0; }
.chat-name { font-size: 0.82rem; font-weight: 800; margin: 0; }
.chat-status { font-size: 0.7rem; color: var(--mint); margin: 0; font-weight: 600; }

.chat-area {
  background: var(--chat-bg);
  background-image: radial-gradient(rgba(0,0,0,0.045) 1px, transparent 0);
  background-size: 20px 20px;
  height: 370px;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-day {
  align-self: center;
  background: rgba(255,255,255,0.85);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.bubble p { margin: 0; font-weight: 500; line-height: 1.4; }
.bubble time { display: block; text-align: right; font-size: 0.62rem; color: var(--text-muted); margin-top: 4px; }

.bubble-in {
  align-self: flex-start;
  background: var(--chat-in);
  color: var(--charcoal);
  border-top-left-radius: 2px;
}

.bubble-out {
  align-self: flex-end;
  background: var(--chat-out);
  color: var(--charcoal);
  border-top-right-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .bubble.is-animated {
    animation: popMsg 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes popMsg {
  0% { opacity: 0; transform: translateY(10px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-inputbar {
  background: var(--chat-bg);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0 0 32px 32px;
}

.chat-inputbar .fake-input {
  flex: 1;
  background: var(--cream);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.replay-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.replay-btn:hover { background: var(--sand); }

/* ---------- Transición ---------- */
.transition-section { padding: 10px 0 56px; }

.transition-box {
  max-width: 920px;
  margin: 0 auto;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.tag-peach { background: var(--peach); border: 1px solid var(--peach-border); color: #7C2D12; }
.tag-lavender { background: var(--lavender); border: 1px solid var(--lavender-border); color: var(--charcoal); }

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.transition-box p {
  color: #3F3F46;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 680px;
  margin: 0 auto 10px;
  font-weight: 500;
}

/* ---------- Secciones generales ---------- */
.section { padding: 56px 0; }

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

/* ---------- Beneficios (bento) ---------- */
.bento-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.bento-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(24,24,27,0.12);
}

.bento-card.wide { grid-column: 1 / -1; }

@media (min-width: 720px) {
  .bento-card.wide { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 24px; align-items: center; }
  .bento-card.wide > div:first-child { margin-bottom: 0; }
}

.card-lavender { background: var(--lavender); }
.card-mint { background: var(--mint); }
.card-peach { background: var(--peach); }
.card-sand { background: var(--sand); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.06);
}
.card-icon svg { width: 24px; height: 24px; }

.bento-card h3 { font-size: 1.2rem; margin: 0 0 10px; font-weight: 800; }
.bento-card p { margin: 0; font-size: 0.92rem; color: #3F3F46; font-weight: 500; line-height: 1.55; }

.card-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
}

.card-footer-badge { background: var(--cream); padding: 3px 10px; border-radius: 999px; }

/* ---------- Cómo funciona ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; }
.step p { margin: 0; color: #3F3F46; font-weight: 500; font-size: 0.92rem; }

/* ---------- Para quién es ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0; padding: 0; }

.chip {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3F3F46;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }

.faq details {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  font-size: 0.95rem;
}

.faq p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Cierre ---------- */
.closing-box {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(to bottom right, var(--mint), var(--sand), var(--lavender));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}

.closing-box p { color: #3F3F46; font-size: 1.02rem; max-width: 560px; margin: 0 auto 28px; font-weight: 500; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-item {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.contact-item .label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 0 0 6px; }
.contact-item a, .contact-item p.value { font-size: 0.98rem; font-weight: 700; color: var(--charcoal); text-decoration: none; margin: 0; }
.contact-item a:hover { text-decoration: underline; }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: var(--lavender); }

/* ---------- Legal ---------- */
.legal h1 { margin-bottom: 6px; }
.legal-vigencia { color: var(--text-muted); margin-top: 0; margin-bottom: 32px; font-weight: 600; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 12px; font-weight: 800; }
.legal p, .legal li { color: #3F3F46; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }

.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { margin-bottom: 12px; }
.not-found p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--sand);
  padding: 36px 0 44px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner { display: grid; gap: 12px; }

.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }

.footer-social { display: flex; gap: 10px; }
.footer-social a { color: var(--charcoal); }

.footer-legal, .footer-trademark, .footer-copy { margin: 0; }
