/* ===== Tokens ===== */
:root {
  --bg: #e9e9ec;
  --surface: #ffffff;
  --ink: #0d0c10;
  --ink-2: #4a4950;
  --muted: #8d8c94;
  --line: #ececef;
  --soft: #f4f4f6;
  --radius-xl: 36px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 30px 60px -30px rgba(13, 12, 16, .25);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 inherit; font-family: inherit; cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.2rem; font-size: .85rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #26252b; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  background: var(--surface); border-radius: 999px;
  padding: .55rem .6rem .55rem 1.4rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 26px; fill: currentColor; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav__links a { color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }

/* Menú de productos */
.nav__drop { position: relative; }
.nav__drop-btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: 0;
  font: inherit; color: var(--ink-2); background: none; border: 0; cursor: pointer; transition: color .2s;
}
.nav__drop-btn:hover, .nav__drop-btn[aria-expanded="true"] { color: var(--ink); }
.nav__drop-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s; }
.nav__drop-btn[aria-expanded="true"] svg { rotate: 180deg; }
.nav__drop-panel {
  position: absolute; top: calc(100% + 22px); left: 50%; translate: -50% 0; width: 300px;
  display: grid; gap: 2px; padding: .5rem; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__drop:last-child .nav__drop-panel { left: auto; right: -1rem; translate: none; }
.nav__drop.is-open .nav__drop-panel { opacity: 1; visibility: visible; transform: none; }
.nav__links .nav__prod { display: flex; align-items: center; gap: .75rem; padding: .65rem .7rem; border-radius: 14px; color: var(--ink); white-space: normal; }
.nav__links a.nav__prod:hover { background: var(--soft); color: var(--ink); }
.nav__prod-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); }
.nav__prod-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.nav__prod strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.nav__prod small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.nav__prod.is-soon { cursor: default; opacity: .6; }

/* ===== Layout ===== */
main { padding: 0 16px; }
.section { max-width: var(--max); margin: 0 auto; padding: 96px 0 0; }
.card {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.card--dark { background: var(--ink); color: #fff; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 500; color: var(--muted); margin-bottom: 1rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: #9b9aa3; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.title-center { text-align: center; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 34rem; margin: 1.2rem 0 2rem; }
.lead--center { text-align: center; margin: 0 auto 2.2rem; }
.lead--light { color: #b9b8c0; }

/* ===== Hero ===== */
.hero { max-width: var(--max); margin: 12px auto 0; }
.hero__card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem;
  padding: 72px 64px; min-height: 620px; overflow: hidden;
}
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: 2.4rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__stats strong { display: block; font-size: 1.15rem; }
.hero__stats span { font-size: .85rem; color: var(--muted); }

/* Teléfonos */
.hero__visual { position: relative; height: 520px; }
.phone {
  position: absolute; width: 230px; height: 470px;
  background: #111; border-radius: 40px; padding: 9px;
  box-shadow: 0 40px 60px -20px rgba(0,0,0,.35), inset 0 0 0 2px #3a3a3f;
}
.phone::before { /* isla */
  content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0;
  width: 70px; height: 20px; background: #111; border-radius: 20px; z-index: 2;
}
.phone__screen {
  height: 100%; border-radius: 32px; background: #fafafa; overflow: hidden;
  padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  font-size: 11px;
}
.phone--back  { left: 4%;  top: 60px; rotate: -14deg; animation: float 7s ease-in-out infinite; }
.phone--front { left: 40%; top: 0;    rotate: 8deg;   animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.ui-top { display: flex; justify-content: space-between; align-items: center; }
.ui-dot { width: 22px; height: 22px; border-radius: 50%; background: #e5e5e8; }
.ui-pill, .ui-chip { background: #ececef; border-radius: 99px; padding: 4px 10px; font-weight: 600; }
.ui-chip { background: var(--ink); color: #fff; }
.ui-label { color: var(--muted); margin-top: 6px; }
.ui-big { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: -8px; }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding: 8px; background: #f0f0f2; border-radius: 14px; }
.ui-bars i { flex: 1; height: var(--h); background: var(--ink); border-radius: 4px; opacity: .85; }
.ui-bars i:nth-child(odd) { opacity: .3; }
.ui-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 1px 0 #ececef; }
.ui-avatar { width: 26px; height: 26px; border-radius: 8px; background: #dcdce0; flex: none; }
.ui-lines { flex: 1; display: grid; gap: 4px; }
.ui-lines b { height: 6px; border-radius: 4px; background: #d9d9de; }
.ui-lines b + b { width: 60%; background: #ececef; }
.ui-tag { font-weight: 700; font-size: 10px; }
.ui-btn { margin-top: auto; background: var(--ink); color: #fff; text-align: center; padding: 10px; border-radius: 99px; font-weight: 600; }
.chat { max-width: 85%; padding: 8px 11px; border-radius: 14px; line-height: 1.35; }
.chat--in { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat--out { align-self: flex-start; background: #ececef; border-bottom-left-radius: 4px; }
.chat--typing { display: flex; gap: 4px; padding: 10px 12px; }
.chat--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat--typing span:nth-child(2) { animation-delay: .2s; }
.chat--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.ui-dark { margin-top: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px; display: grid; gap: 8px; font-weight: 600; }
.ui-row--dark { background: #23222a; box-shadow: none; }
.ui-row--dark .ui-lines b { background: #3c3b44; }
.ui-arrow { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); }

/* ===== Servicios ===== */
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.chip {
  font: 500 .85rem/1 "Outfit", sans-serif; padding: .7rem 1.15rem; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); border: 0; cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  background: var(--surface); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .3s, box-shadow .3s, opacity .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service.is-hidden { display: none; }
.service__icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--soft);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--ink-2); margin-top: .6rem; font-size: .96rem; }

/* ===== IA ===== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; padding: 72px 64px; align-items: center; }
.ia-list { list-style: none; display: grid; gap: 12px; }
.ia-list li { display: flex; gap: 1.2rem; padding: 22px; background: #1a1920; border-radius: var(--radius-md); }
.ia-list span { font-weight: 700; color: #6e6d76; }
.ia-list p { color: #a9a8b1; font-size: .94rem; margin-top: .3rem; }

/* ===== Listas con palomita ===== */
.checks { list-style: none; display: grid; gap: .7rem; margin-bottom: 2rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .7rem; display: grid; place-items: center;
}
.checks--sm { gap: .55rem; font-size: .93rem; }

/* ===== Proceso ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.6rem; }
.steps li { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; }
.steps span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 1.2rem;
}
.steps p { color: var(--ink-2); font-size: .94rem; margin-top: .5rem; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 64px; }
.contact__direct { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.link { font-weight: 600; border-bottom: 1.5px solid currentColor; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: 400 1rem "Outfit", sans-serif; color: var(--ink);
  background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; padding: .85rem 1rem;
  transition: border-color .2s, background .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form__note { font-size: .88rem; color: var(--ink-2); min-height: 1.2em; }

/* ===== Footer ===== */
.footer {
  max-width: var(--max); margin: 96px auto 0; padding: 32px 16px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid #d8d8dc; color: var(--muted); font-size: .9rem;
}
.footer .brand { color: var(--ink); }
.social { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.social svg { width: 22px; height: 22px; fill: #1877f2; }
.social:hover { color: var(--ink); }

/* ===== Animación de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .chat--typing span { animation: none; }
}

/* ===== Barra inferior (celulares) ===== */
.tabbar, .sheet { display: none; }
.tabbar__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar__item [cx] { fill: currentColor; stroke: none; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); background: var(--surface);
  border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px -20px rgba(13, 12, 16, .3);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.sheet__backdrop { position: absolute; inset: 0; background: rgba(13, 12, 16, .4); opacity: 0; transition: opacity .26s; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__handle { display: block; width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: #d9d9de; }
.sheet__title { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0 .7rem .6rem; }
.sheet__body { display: grid; gap: 2px; }
.sheet__body .nav__prod { display: flex; align-items: center; gap: .85rem; padding: .8rem .7rem; border-radius: 16px; }
.sheet__body .nav__prod:active, .sheet__link:active { background: var(--soft); }
.sheet__link { display: flex; align-items: center; justify-content: space-between; padding: .8rem .7rem; border-radius: 14px; font-weight: 500; font-size: 1.05rem; }
.sheet__link::after { content: "›"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.sheet__link[aria-current="page"] { font-weight: 700; }
.sheet__cta { margin-top: .8rem; width: 100%; padding: 1rem; }
.sheet-lock, .sheet-lock body { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero__card, .split, .contact { grid-template-columns: 1fr; padding: 48px 32px; gap: 2.5rem; }
  .hero__visual { order: 2; height: 480px; max-width: 460px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__inner { gap: 1rem; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 5px; margin-left: auto; width: 44px; height: 44px; place-content: center;
    background: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: calc(100% - 4px); left: 16px; right: 16px;
    flex-direction: column; gap: 0; padding: .6rem; background: var(--surface);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .25s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { padding: .9rem 1rem; border-radius: 12px; }
  .nav__links a:hover { background: var(--soft); }
  .nav__drop-btn { width: 100%; justify-content: space-between; padding: .9rem 1rem; border-radius: 12px; }
  .nav__drop-btn:hover { background: var(--soft); }
  .nav__drop-panel, .nav__drop:last-child .nav__drop-panel {
    position: static; translate: none; width: auto; display: none; padding: 0 0 .3rem .5rem;
    box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__drop.is-open .nav__drop-panel { display: grid; }
  .nav__links .nav__prod { padding: .6rem 1rem; }
  /* Con barra inferior: arriba solo marca + botón de cotizar */
  .has-tabbar .nav__links, .has-tabbar .nav__toggle { display: none; }
  .has-tabbar .nav__cta { display: inline-flex; margin-left: auto; }
  .has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px);
    border-radius: 24px; box-shadow: 0 12px 40px -12px rgba(13, 12, 16, .35), 0 0 0 1px var(--line);
  }
  .tabbar__item {
    display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border: 0; border-radius: 18px;
    background: none; font: 500 .68rem/1 "Outfit", sans-serif; color: var(--muted); cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s;
  }
  .tabbar__item.is-active { color: var(--ink); background: var(--soft); }
  .tabbar__item.is-active span { font-weight: 600; }
  .tabbar__item:active { transform: scale(.94); }
  .sheet { display: block; position: fixed; inset: 0; z-index: 70; }
  .sheet[hidden] { display: none; }
  .section { padding-top: 72px; }
  .hero__card, .split, .contact { padding: 36px 22px; border-radius: 28px; }
  .hero__visual { height: 400px; }
  .phone { width: 180px; height: 370px; border-radius: 32px; }
  .phone__screen { border-radius: 25px; font-size: 9px; padding: 38px 12px 12px; gap: 7px; }
  .ui-big { font-size: 20px; }
  .ui-bars { height: 56px; }
  .phone--back { left: 0; }
  .phone--front { left: auto; right: 0; }
  .hero__stats { gap: 1.4rem; }
  .services, .steps { grid-template-columns: 1fr; }
}
/* ===== Ideas ===== */
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.ideas-hero { padding-top: 72px; }
.ideas-hero h1 { margin-bottom: .4rem; }
.ideas-grid-wrap { padding-top: 40px; }

.ideas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.idea {
  background: var(--surface); border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
a.idea:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.idea__art {
  position: relative; height: 220px; display: grid; place-items: center;
  background: var(--soft);
}
.idea--burger .idea__art { height: 280px; background: radial-gradient(circle at 50% 60%, #ffd9b8, #ffeede 55%, #fff6ef); }
.idea__emoji { font-size: 96px; line-height: 1; filter: drop-shadow(0 18px 18px rgba(120, 50, 0, .22)); animation: idea-float 5s ease-in-out infinite; }
.idea--burger .idea__emoji { font-size: 130px; }
.idea__emoji--sm { position: absolute; font-size: 54px !important; }
.idea__emoji--sm.a { left: 14%; bottom: 18%; rotate: -14deg; animation-delay: -1.5s; }
.idea__emoji--sm.b { right: 14%; top: 18%; rotate: 12deg; animation-delay: -3s; }
.idea--soon .idea__emoji { opacity: .55; filter: grayscale(.4); animation: none; }
@keyframes idea-float { 50% { transform: translateY(-10px); } }

.idea__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.idea__tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.idea__tags span { font-size: .74rem; font-weight: 600; padding: .35rem .7rem; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.idea__tags .is-live { background: #fff0e6; color: #e2501a; }
.idea__body p { color: var(--ink-2); font-size: .95rem; }
.idea__cta { margin-top: auto; padding-top: .6rem; font-weight: 600; }

@media (max-width: 1000px) {
  .ideas-grid { grid-template-columns: 1fr 1fr; }
  .idea--burger { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ideas-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .idea__emoji { animation: none; } }
.idea--barber .idea__art { background: radial-gradient(circle at 50% 60%, #5a3a22, #2a1a10 70%); }
.idea--barber .idea__tags .is-live { background: #3a2a1d; color: #f0c879; }
.idea--pos .idea__art { background: radial-gradient(circle at 50% 60%, #2b524b, #1f403b 70%); }
.idea--pos .idea__tags .is-live { background: #efe3c4; color: #8a6a1f; }
