/* =============================================================
   AEOS — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Type · 5. Components
   6. Sections · 7. Effects · 8. Responsive · 9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #FBF5EC;   /* crema cálida */
  --bg-2:      #F3E7D6;   /* arena */
  --paper:     #FFFDF9;
  --ink:       #2B1D14;   /* café oscuro */
  --ink-2:     #4D3D31;
  --mute:      #7A6757;
  --accent:    #C8461E;   /* terracota */
  --accent-hi: #B23C17;
  --accent-soft: #F6D9C9;
  --green:     #1F5C47;   /* verde nopal */
  --green-hi:  #174A39;
  --green-soft:#DCEBE2;
  --sun:       #F2B33D;   /* mostaza */
  --rose:      #F2B8AE;
  --danger:    #B3261E;
  --line:      rgba(43, 29, 20, 0.12);
  --line-2:    rgba(43, 29, 20, 0.2);
  --shadow:    0 18px 40px -18px rgba(74, 42, 20, .35);

  --display: "Fraunces", "Gelasio", Georgia, "Times New Roman", serif;
  --sans:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hand:    "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw:   1200px;
  --nav-h:  76px;
  --radius: 22px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  color-scheme: light;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.015em; font-weight: 600; }
ul, ol { padding: 0; }
em { font-style: italic; }
::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem;
  background: var(--ink); color: var(--bg);
  font-weight: 500; border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico .ico-fill, .ico-fill { fill: currentColor; stroke: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 18px; height: 9px;
  border-radius: 18px 18px 0 0;
  background: var(--sun);
  flex: none;
}
.kicker-light { color: var(--sun); }

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-top: 1rem;
  font-variation-settings: "SOFT" 100;
}
.section-title em, .hero-title em, .contact-title em {
  font-weight: 400;
  color: var(--accent);
}
.section-sub {
  color: var(--ink-2);
  margin-top: 1.1rem;
  max-width: 58ch;
  font-size: 1.08rem;
}
.hand {
  font-family: var(--hand);
  font-weight: 700;
  line-height: 1.1;
}

/* =============================================================
   5. Components
   ============================================================= */
/* Logo */
.logo-mark { width: 40px; height: 40px; flex: none; }
.lm-bg  { fill: var(--accent); }
.lm-sun { fill: var(--bg); }
.lm-ray { fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .45s var(--ease-out), background-color .3s var(--ease-soft),
              border-color .3s var(--ease-soft), box-shadow .45s var(--ease-out), color .3s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(200, 70, 30, .7); }
.btn-wa      { background: var(--green); color: #fff; }
.btn-ghost   { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-sm      { min-height: 44px; padding: 0 1.15rem; font-size: 15px; }
.btn-block   { width: 100%; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(200, 70, 30, .75); }
  .btn-wa:hover      { background: var(--green-hi); transform: translateY(-2px); }
  .btn-ghost:hover   { border-color: var(--ink); transform: translateY(-2px); }
}

/* Underline link */
.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  font-weight: 700;
  transition: background-size .5s var(--ease-out), color .3s var(--ease-soft);
  overflow-wrap: anywhere;
}
.u-link:hover { color: var(--accent); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 50;
  transition: background-color .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(251, 245, 236, .97);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(74, 42, 20, .35);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .nav.is-scrolled, .nav.is-open {
    background: rgba(251, 245, 236, .86);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; }
.brand-word {
  display: flex; flex-direction: column;
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: .06em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}
.nav-menu { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: .65rem 0;
  transition: color .3s var(--ease-soft);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .4rem;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 13px; right: 13px;
  height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav-toggle-bar:nth-of-type(1) { top: 18px; }
.nav-toggle-bar:nth-of-type(2) { top: 25px; }
.nav.is-open .nav-toggle-bar:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bar:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(242, 179, 61, .22), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(242, 184, 174, .35), transparent 70%),
    var(--bg);
}
/* Sol que gira lento detrás del teléfono */
.hero-sun {
  position: absolute;
  z-index: -1;
  width: min(900px, 140vw); aspect-ratio: 1;
  right: -30%; top: -12%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(242, 179, 61, .13) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
          mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: sunSpin 120s linear infinite;
  pointer-events: none;
}
@keyframes sunSpin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-top: 1.2rem;
  font-variation-settings: "SOFT" 100;
}
.hero-title em { display: block; }
.hero-sub {
  max-width: 52ch;
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}
.checks { list-style: none; display: grid; gap: .55rem; margin-top: 1.5rem; }
.checks li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-weight: 500;
}
.checks li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F5C47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-hand {
  display: flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem;
  font-size: 1.45rem;
  color: var(--green);
}
.hero-hand svg {
  width: 46px; height: 32px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transform: scaleY(-1) rotate(-10deg);
}

/* Phone mock */
.hero-visual { position: relative; display: grid; justify-items: center; padding: 2rem 0 3.4rem; }
.phone {
  position: relative;
  width: min(360px, 88vw);
  border-radius: 38px;
  padding: 12px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(74, 42, 20, .55), 0 0 0 1px rgba(0,0,0,.05);
  transform: rotate(2deg);
  transition: transform .8s var(--ease-out);
}
.phone-head {
  display: flex; align-items: center; gap: .7rem;
  padding: 14px 14px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 28px 28px 0 0;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sun); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 18px;
}
.phone-who { display: flex; flex-direction: column; line-height: 1.2; }
.phone-who strong { font-size: 15px; }
.phone-who small { font-size: 12.5px; opacity: .8; }
.chat {
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 400px;
  padding: 18px 14px 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(43, 29, 20, .05) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    #F1E8DA;
  border-radius: 0 0 28px 28px;
}
.msg {
  max-width: 82%;
  padding: .6rem .85rem;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(43, 29, 20, .08);
}
.msg-in  { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg-out { align-self: flex-end; background: #D7F0DE; border-top-right-radius: 4px; }
.chip-note {
  align-self: center;
  margin-top: .3rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(31, 92, 71, .12);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}
.typing {
  display: none;
  align-self: flex-end;
  gap: 4px;
  padding: .7rem .85rem;
  background: #D7F0DE;
  border-radius: 16px;
}
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  opacity: .45;
  animation: dot 1s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-3px); } }

.sticker {
  position: absolute;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
}
.sticker .ico { color: var(--green); }
.sticker-a { left: 0; top: -.4rem; transform: rotate(-4deg); }
.sticker-b { right: 0; bottom: 1.2rem; transform: rotate(3deg); }
.sticker-b .ico { color: var(--accent); }
.hero-hand-2 {
  position: absolute;
  bottom: -1.6rem; left: 6%;
  font-size: 1.35rem;
  color: var(--accent);
  transform: rotate(-3deg);
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: 1.2rem; margin-top: -2rem; position: relative; z-index: 2; }
.marquee {
  overflow: hidden;
  background: var(--accent);
  color: #FFF4EA;
  padding: 1rem 0;
  transform: rotate(-1.2deg);
  margin-inline: -2vw;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 1.6rem;
  padding-right: 1.6rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 16px; height: 8px;
  border-radius: 16px 16px 0 0;
  background: var(--sun);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections (shared) ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }

/* ---------- Pains ---------- */
.pains { background: var(--bg); padding-top: clamp(4.5rem, 9vw, 7rem); }
.pain-grid { display: grid; gap: 1.1rem; }
.pain {
  padding: 1.8rem 1.7rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.pain-quote {
  font-family: var(--hand);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}
.pain-fix { margin-top: 1rem; color: var(--ink-2); font-size: 1rem; }
.pain-fix span {
  display: inline-block;
  margin-right: .35rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em;
  vertical-align: 2px;
}
@media (hover: hover) {
  .pain:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
}

/* ---------- Negocios ---------- */
.biz { background: var(--bg-2); }
.biz-grid { display: grid; gap: 1.1rem; }
.biz-card {
  position: relative;
  padding: 1.9rem 1.8rem 2rem;
  border-radius: var(--radius);
  background: var(--tone-bg, var(--paper));
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.biz-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .7), transparent 60%);
  opacity: 0;
  transition: opacity .45s var(--ease-soft);
  pointer-events: none;
}
.biz-card > * { position: relative; }
.tone-coffee { --tone-bg: #F6DEC8; --tone-ink: #7A3B14; }
.tone-barber { --tone-bg: #DCE6F2; --tone-ink: #1F4A7A; }
.tone-food   { --tone-bg: #F8D9CF; --tone-ink: #9E3518; }
.tone-shop   { --tone-bg: #F4DDE6; --tone-ink: #8A2E55; }
.tone-pro    { --tone-bg: #DCEBE2; --tone-ink: #1F5C47; }
.tone-start  { --tone-bg: #F7E8C2; --tone-ink: #7A5410; }
.biz-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--tone-ink);
  box-shadow: 0 8px 18px -10px rgba(74, 42, 20, .4);
}
.biz-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.biz-title { font-family: var(--display); font-size: 1.45rem; margin: 1.2rem 0 .8rem; }
.biz-list { list-style: none; display: grid; gap: .4rem; }
.biz-list li { display: flex; gap: .6rem; color: var(--ink-2); font-size: 1rem; }
.biz-list li::before {
  content: ""; flex: none;
  width: 7px; height: 7px; margin-top: .62em;
  border-radius: 50%;
  background: var(--tone-ink);
}
.biz-more { margin-top: 2rem; font-size: 1.08rem; color: var(--ink-2); }
@media (hover: hover) {
  .biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
  .biz-card:hover::before { opacity: 1; }
}

/* ---------- Servicios ---------- */
.services { background: var(--paper); }
.svc-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-content: start;
  column-gap: 1.2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-num {
  position: absolute; right: 0; top: 1.7rem;
  font-family: var(--display); font-style: italic;
  font-size: 1rem; color: var(--mute);
}
.svc-icon {
  grid-row: span 3;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-title { font-family: var(--display); font-size: 1.4rem; padding-right: 2.5rem; margin-top: .55rem; }
.svc p { color: var(--ink-2); margin-top: .55rem; max-width: 52ch; }
.svc .svc-price {
  justify-self: start;
  margin-top: .9rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
}
@media (hover: hover) {
  .svc:hover .svc-icon { transform: rotate(-8deg) scale(1.06); background: var(--sun); color: var(--ink); }
}

/* ---------- IA + personas ---------- */
.human {
  background: var(--ink);
  color: var(--bg);
  overflow: clip;
}
.human::before {
  content: "";
  position: absolute;
  width: 520px; aspect-ratio: 1; border-radius: 50%;
  right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(242, 179, 61, .28), transparent 65%);
  pointer-events: none;
}
.human-grid { position: relative; display: grid; gap: 2.6rem; }
.human .section-title em { color: var(--sun); }
.human-sub { color: rgba(251, 245, 236, .78); margin-top: 1.1rem; max-width: 52ch; font-size: 1.08rem; }
.human-cols { display: grid; gap: 1rem; }
.human-col {
  padding: 1.7rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 245, 236, .18);
  background: rgba(251, 245, 236, .04);
}
.human-col-people { background: var(--bg); color: var(--ink); border-color: transparent; }
.human-label {
  font-family: var(--hand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sun);
  margin-bottom: .8rem;
}
.human-col-people .human-label { color: var(--accent); }
.human-col ul { list-style: none; display: grid; gap: .55rem; }
.human-col li { display: flex; gap: .7rem; }
.human-col li::before {
  content: ""; flex: none;
  width: 8px; height: 8px; margin-top: .6em;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .7;
}
.human-col-people li::before { background: var(--accent); border-color: var(--accent); opacity: 1; }
.human-note {
  padding-left: 1.1rem;
  border-left: 3px solid var(--sun);
  color: rgba(251, 245, 236, .82);
  max-width: 70ch;
}

/* ---------- Proceso ---------- */
.process { background: var(--bg); }
.steps { list-style: none; display: grid; gap: 1.1rem; counter-reset: s; }
.step {
  position: relative;
  padding: 1.8rem 1.7rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
}
.step:nth-child(2) .step-num { background: var(--sun); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--green); }
.step:nth-child(4) .step-num { background: var(--ink); }
.step-title { font-family: var(--display); font-size: 1.4rem; margin: 1.1rem 0 .5rem; }
.step p { color: var(--ink-2); }

/* ---------- ¿Somos para ti? ---------- */
.fit { background: var(--bg-2); }
.fit-grid { display: grid; gap: 1.1rem; }
.fit-col { padding: 2rem 1.8rem; border-radius: var(--radius); }
.fit-yes { background: var(--paper); box-shadow: var(--shadow); }
.fit-no  { border: 1.5px dashed var(--line-2); }
.fit-title { font-family: var(--display); font-size: 1.6rem; margin-bottom: 1.1rem; }
.fit-yes .fit-title { color: var(--green); }
.fit-no .fit-title { color: var(--mute); }
.fit-col ul { list-style: none; display: grid; gap: .75rem; }
.fit-col li { display: flex; gap: .75rem; align-items: flex-start; }
.fit-col li::before {
  content: ""; flex: none;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
}
.fit-yes li::before {
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F5C47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.fit-no li { color: var(--ink-2); }
.fit-no li::before {
  background: rgba(43, 29, 20, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 12h8' fill='none' stroke='%237A6757' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Nota del equipo ---------- */
.letter-sec { background: var(--bg); }
.letter-grid { display: grid; gap: 2.4rem; align-items: center; }
.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  width: 100%;
  justify-self: center;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 62%, rgba(242, 179, 61, .85), transparent 70%),
    linear-gradient(180deg, #F6DEC8 0%, #F2B8AE 55%, #C8461E 100%);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.team-photo-sun {
  position: absolute; left: 50%; bottom: 22%;
  width: 46%; aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: var(--bg);
  opacity: .92;
}
.team-photo-label {
  position: absolute; left: 0; right: 0; bottom: 8%;
  text-align: center;
  font-size: 1.8rem;
  color: var(--bg);
}
.team-photo.has-photo .team-photo-sun,
.team-photo.has-photo .team-photo-label { display: none; }

.letter {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.letter-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 1rem 0 1.2rem;
}
.letter p:not(.kicker):not(.letter-sign) { color: var(--ink-2); margin-top: .9rem; max-width: 60ch; }
.letter-sign { margin-top: 1.4rem; font-size: 1.9rem; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; gap: 1rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-item {
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 1.4rem;
  transition: box-shadow .4s var(--ease-soft);
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 44px;
  padding: 1.2rem 0;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.35;
  transition: color .3s var(--ease-soft);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem; font-weight: 500; line-height: 1;
  transition: transform .4s var(--ease-out), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { color: var(--ink-2); max-width: 62ch; padding-bottom: 1.3rem; }

/* ---------- Contacto ---------- */
.contact {
  background: var(--green);
  color: var(--bg);
  overflow: clip;
}
.contact::before {
  content: "";
  position: absolute;
  width: 640px; aspect-ratio: 1; border-radius: 50%;
  left: -220px; bottom: -320px;
  background: repeating-conic-gradient(from 0deg, rgba(242, 179, 61, .16) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
          mask: radial-gradient(circle, #000 20%, transparent 68%);
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; gap: 3rem; }
.contact-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-top: 1rem;
}
.contact .contact-title em { color: var(--sun); display: block; }
.contact-sub { color: rgba(251, 245, 236, .85); margin-top: 1.2rem; max-width: 42ch; font-size: 1.1rem; }
.contact-ways { list-style: none; display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.contact-ways li { display: grid; gap: .1rem; justify-items: start; }
.cw-label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.contact-ways a { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 400; }
.contact .u-link:hover { color: var(--sun); }

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.form-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
}
.form-head span { font-family: var(--hand); font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.field-row { display: grid; gap: 1rem; align-items: end; }
.field { display: grid; gap: .4rem; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.field .opt { color: var(--mute); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  transition: border-color .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234D3D31' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat;
  padding-right: 2.6rem;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field ::placeholder { color: #A8978A; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 70, 30, .15);
}
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13.5px; font-weight: 500; }
.form .btn-block { margin-top: .3rem; }
.form-status { min-height: 1.4em; font-size: 14.5px; color: var(--ink-2); }
.form-status.is-ok { color: var(--green); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding-block: 3.2rem 6rem; }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .06em; line-height: 1.2; }
.footer-tag { color: var(--mute); font-size: 15px; margin-top: .3rem; max-width: 38ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-nav a, .footer-contact a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 15px;
  transition: color .3s var(--ease-soft);
  overflow-wrap: anywhere;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: grid; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--mute); font-size: 13.5px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 56px;
  padding: 0 1.25rem 0 1.05rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 34px -12px rgba(31, 92, 71, .7);
  transition: transform .45s var(--ease-out), background-color .3s, opacity .4s, visibility .4s;
}
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { background: var(--green-hi); transform: translateY(-3px); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* =============================================================
   7. Effects — reveal on scroll (only when JS is running)
   ============================================================= */
/* Content is always readable: elements rest visible and only rise into place. */
.js [data-reveal] {
  transform: translateY(22px);
  transition: transform 1s var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].is-revealed { transform: none; }
/* Defensive: anything split-animated must never stay hidden */
.reveal[data-split] { opacity: 1; transform: none; }

/* Chat animation — only when JS successfully armed it */
.chat-anim .msg, .chat-anim .chip-note {
  display: none;
}
.chat-anim .msg.is-in, .chat-anim .chip-note.is-in {
  display: block;
  animation: msgIn .45s var(--ease-out) both;
}
.chat-anim .typing.is-on { display: inline-flex; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav-menu {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.6rem;
    background: var(--bg);
    box-shadow: 0 20px 40px -20px rgba(74, 42, 20, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease-soft), transform .45s var(--ease-out), visibility 0s .45s;
  }
  .js .nav.is-open .nav-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .35s var(--ease-soft), transform .45s var(--ease-out), visibility 0s;
  }
  .js .nav-link { font-size: 1.15rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .js .nav-link::after { display: none; }
  .js .nav-menu .btn { margin-top: 1.2rem; min-height: 52px; }
  html:not(.js) .nav-menu { display: none; }
  .wa-float-text { display: none; }
  .wa-float { padding: 0; width: 58px; justify-content: center; }
}

@media (max-width: 520px) {
  .sticker { font-size: 12.5px; padding: .5rem .75rem; }
  .sticker-a { left: -4px; top: -.6rem; }
  .sticker-b { right: -4px; bottom: 1rem; }
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 720px) {
  .pain-grid, .biz-grid, .fit-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .human-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; }
  .hero-visual { padding: 2.2rem 2rem 4rem; }
  .sticker-a { left: 0; top: -.6rem; }
  .sticker-b { right: -.5rem; bottom: 1.6rem; }
  .pain-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .biz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; column-gap: 2.6rem; }
  .svc { grid-template-columns: 1fr; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .svc-icon { grid-row: auto; margin-bottom: .4rem; }
  .svc-title { padding-right: 0; margin-top: .9rem; }
  .svc-num { top: 2.1rem; }
  .human-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 4rem; align-items: center; }
  .human-note { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fit-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .letter-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4.5rem; align-items: center; }
  .footer-inner { grid-template-columns: minmax(0, 1.2fr) auto auto; align-items: start; gap: 2rem 3rem; }
  .footer-nav { flex-direction: column; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sun { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
