/* =================================================================
   VANMARD — styles.css
   1. Tokens · 2. Base · 3. Logo · 4. Botones · 5. Header y menú
   6. Hero · 7. Marquee · 8. Secciones · 9. Footer · 10. WhatsApp
   11. Animaciones · 12. Responsive · 13. Movimiento reducido
   ================================================================= */

/* 1. Tokens ------------------------------------------------------- */
:root {
  /* Paleta de marca */
  --black: #111111;
  --white: #FFFFFF;
  --gray-light: #E6E6E6;
  --off-white: #F4F4F2;
  --gray-mid: #8A8A8A;
  --whatsapp: #25D366;              /* reservado al ícono del botón de WhatsApp */

  /* Grises intermedios */
  --gray-1c: #1C1C1C;
  --gray-2a: #2A2A2A;
  --gray-cf: #CFCFCF;

  /* Derivados (escalas de grises) */
  --gray-text: #5E5E5E;              /* texto secundario chico sobre fondos claros (AA) */
  --ink-2: #1A1A1A;
  --line-dark: rgba(255,255,255,.14);
  --line-light: rgba(17,17,17,.14);

  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --header-h: 76px;

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

/* 2. Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 59px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
fieldset { border: 0; min-width: 0; }
::selection { background: var(--black); color: var(--white); }
.s-black ::selection, .hero ::selection, .cta ::selection, .footer ::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: .6rem 1rem; background: var(--white); color: var(--black); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--gray-mid); }

/* 3. Logo --------------------------------------------------------- */
.brand { --iso-bg: var(--black); --iso-v: var(--white); display: inline-flex; align-items: center; gap: 10px; }
.header .brand, .brand-inv { --iso-bg: var(--white); --iso-v: var(--black); }
.brand-iso { width: 30px; height: 30px; flex: none; transition: transform .7s var(--ease-out); }
.brand:hover .brand-iso { transform: rotate(-360deg); }
.brand-word { font-weight: 800; letter-spacing: 0.02em; font-size: 17px; line-height: 1; }

/* 4. Botones ------------------------------------------------------ */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1;
  white-space: nowrap; text-align: center;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out), opacity .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn:disabled { opacity: .35; }
.btn:disabled::before { display: none; }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: 14px; }
.btn-lg { --pad-y: 18px; --pad-x: 28px; font-size: 16px; }
.btn-block { width: 100%; white-space: normal; }
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light::before { background: var(--black); }
.btn-light:hover { color: var(--white); }
.s-off .btn-light:hover, .s-gray .btn-light:hover { border-color: var(--black); }
.btn-ghost-dark { color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-ghost-dark::before { background: var(--white); }
.btn-ghost-dark:hover { color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark::before { background: var(--white); }
.btn-dark:hover { color: var(--black); }
.btn-outline { color: var(--black); border-color: var(--line-light); background: var(--white); }
.btn-outline::before { background: var(--black); }
.btn-outline:hover:not(:disabled) { color: var(--white); border-color: var(--black); }

.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 0; vertical-align: 2px; white-space: nowrap; }
.badge[hidden] { display: none; }
.badge-inv { background: var(--white); color: var(--black); }

/* 5. Header y menú ------------------------------------------------ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white); border-bottom: 1px solid transparent; transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; transition: height .5s var(--ease-out); }
.header.is-scrolled { background: rgba(17,17,17,.88); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line-dark); }
.header.is-scrolled .header-inner { height: 60px; }
.header .brand { margin-right: auto; position: relative; z-index: 2; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); transition: color .3s, background-color .3s; }
.nav a:hover, .nav a.is-active { color: var(--white); background: rgba(255,255,255,.1); }
.header-cta { display: none; }
.header-cta:hover { border-color: var(--white); }

.burger { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform .5s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 99; background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-out); }
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(38px, 11vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; padding: 6px 0; border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.menu-nav a span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--gray-mid); width: 22px; }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu-nav a:nth-child(5) { transition-delay: .2s; }
.menu-foot { display: grid; gap: 18px; }
.menu-foot p { color: var(--gray-mid); font-size: 14px; }
.menu-foot p a { color: var(--white); }
body.menu-open { overflow: hidden; }

/* 6. Hero --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; min-height: 100svh; background: var(--black); color: var(--white); padding: calc(var(--header-h) + 32px) 0 88px; display: flex; align-items: center; }
.hero-grid-lines { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero-grid-lines i { border-left: 1px solid rgba(255,255,255,.05); }
.hero-grid-lines i:last-child { border-right: 1px solid rgba(255,255,255,.05); }
.hero-glow { position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -10vw; background: radial-gradient(closest-side, rgba(255,255,255,.09), rgba(255,255,255,0)); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 56px; align-items: center; }
.hero-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.72); padding: 8px 14px 8px 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,.03); margin-bottom: clamp(24px, 4vw, 44px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--white); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

.hero-title { font-size: clamp(34px, 10.2vw, 168px); letter-spacing: -0.05em; line-height: 0.95; margin-left: -0.04em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.hero-title .line > span { display: inline-block; transition: transform .7s var(--ease-out); }
.hero-title .line-muted { color: rgba(255,255,255,.45); }
.js .hero-title .line > span { transform: translateY(105%); }
.js.is-ready .hero-title .line > span { transform: none; }
.js.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .07s; }
.js.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .14s; }
.js.is-ready .hero-title .line:nth-child(4) > span { transition-delay: .21s; }

.hero-copy { margin-top: clamp(24px, 3.5vw, 44px); }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: rgba(255,255,255,.75); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Mockups */
.devices { position: relative; height: clamp(260px, 70vw, 460px); }
.devices > * { will-change: transform; }
.laptop { position: absolute; left: 0; right: 12%; bottom: 8%; animation: float 7s var(--ease-soft) infinite alternate; }
.laptop-screen { background: #0b0b0b; border: 1px solid rgba(255,255,255,.18); border-radius: 14px 14px 4px 4px; padding: 8px; aspect-ratio: 16 / 10.2; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.laptop-base { height: 12px; margin: 0 -6%; background: linear-gradient(#3a3a3a, #1c1c1c); border-radius: 2px 2px 14px 14px; border: 1px solid rgba(255,255,255,.1); }
.laptop-base::after { content: ""; display: block; width: 16%; height: 4px; margin: 0 auto; background: #0d0d0d; border-radius: 0 0 6px 6px; }
.mock-browser { height: 100%; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #151515; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #1d1d1d; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3a; }
.mock-bar span { margin: 0 auto; font-size: 9px; color: #8a8a8a; background: #111; padding: 2px 14px; border-radius: 999px; }
.mock-site { flex: 1; }
.mock-barber { padding: 4% 5%; display: flex; flex-direction: column; gap: 6%; background: radial-gradient(120% 80% at 90% 10%, rgba(255,255,255,.1), transparent 60%), #121212; color: #fff; }
/* Fotos: tratamiento en blanco y negro, acorde a la marca */
.mock-barber { position: relative; overflow: hidden; }
.mock-barber > *:not(.mb-photo) { position: relative; z-index: 1; }
.mb-photo { position: absolute; right: 0; top: 0; width: 52%; height: 78%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.45); -webkit-mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to top, transparent, #000 25%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to top, transparent, #000 25%); mask-composite: intersect; }
.mb-nav { display: flex; align-items: center; gap: 12px; font-size: clamp(6px, .75vw, 10px); color: #9a9a9a; }
.mb-nav b { color: #fff; letter-spacing: .14em; margin-right: auto; font-size: 1.15em; }
.mb-nav em { font-style: normal; color: #111; background: #fff; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.mb-tag { font-size: clamp(6px, .7vw, 9px); color: #9a9a9a; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.mb-title { font-size: clamp(16px, 2.6vw, 40px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; }
.mb-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: clamp(6px, .72vw, 10px); color: #bdbdbd; }
.mb-row em { font-style: normal; background: #fff; color: #111; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.mb-cards { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mb-cards div { border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 7px 8px; display: flex; justify-content: space-between; font-size: clamp(6px, .7vw, 10px); background: rgba(255,255,255,.03); }
.mb-cards span { color: #8a8a8a; }

.phone { position: absolute; right: 0; bottom: 0; width: clamp(118px, 27%, 200px); aspect-ratio: 9 / 19; background: #0a0a0a; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; padding: 7px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.95), 0 0 0 6px rgba(17,17,17,.9); animation: float 6s var(--ease-soft) -2s infinite alternate; display: flex; }
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 30%; height: 12px; background: #000; border-radius: 999px; z-index: 2; }
.mock-cafe { min-width: 0; width: 100%; border-radius: 20px; overflow: hidden; background: var(--off-white); color: var(--black); padding: 30px 10% 10%; display: flex; flex-direction: column; gap: 8px; font-size: clamp(7px, .75vw, 10px); }
.mc-head { display: flex; justify-content: space-between; align-items: center; }
.mc-head b { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 1.6em; }
.mc-head span { color: var(--gray-text); }
.mc-hero { font-size: clamp(13px, 1.25vw, 19px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; margin: 6px 0; }
.mc-hero span { color: var(--gray-mid); }
.mc-tabs { display: flex; gap: 4px; overflow: hidden; white-space: nowrap; }
.mc-tabs > * { padding: 3px 7px; border-radius: 999px; border: 1px solid #d0d0d0; }
.mc-tabs em { font-style: normal; background: var(--black); color: #fff; border-color: var(--black); }
.mc-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid #dcdcdc; }
.mc-item div { display: grid; min-width: 0; }
.mc-item b, .mc-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-item span { color: var(--gray-text); font-size: .9em; }
.mc-item img { width: 28px; height: 28px; flex: none; border-radius: 6px; object-fit: cover; filter: grayscale(1) contrast(1.05); background: #cfcfcf; }
.mc-cta { margin-top: auto; text-align: center; background: var(--black); color: #fff; border-radius: 999px; padding: 7px; font-weight: 600; }

.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: rgba(30,30,30,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; font-size: 12px; line-height: 1.3; color: var(--white); animation: float 5s var(--ease-soft) infinite alternate; }
.float-chip div { display: grid; }
.float-chip b { font-weight: 600; }
.float-chip div span { color: rgba(255,255,255,.65); }
.float-chip .chip-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--white); color: var(--black); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.float-chip .chip-ico-check { background: rgba(255,255,255,.14); color: var(--white); }
.chip-a { top: 0; left: 4%; animation-delay: -1s; }
.chip-b { bottom: 34%; right: 22%; animation-delay: -3s; display: none; }
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }

.scroll-cue { display: none; position: absolute; left: var(--gutter); bottom: 28px; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }
.scroll-cue-line { position: relative; width: 1px; height: 40px; background: rgba(255,255,255,.18); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--white); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* 7. Marquee ------------------------------------------------------ */
.marquee { background: var(--white); color: var(--black); border-block: 1px solid var(--black); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span { font-size: clamp(28px, 4.2vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; padding: 0 clamp(18px, 2.4vw, 40px); white-space: nowrap; }
.marquee-group span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--black); }
.marquee-group i { font-style: normal; font-size: clamp(14px, 1.6vw, 22px); color: var(--gray-mid); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Secciones ---------------------------------------------------- */
.section { padding: clamp(88px, 12vw, 180px) 0; position: relative; }
.s-black { background: var(--black); color: var(--white); }
.s-gray  { background: var(--gray-light); color: var(--black); }
.s-off   { background: var(--off-white); color: var(--black); }
.s-black .muted, .cta .muted { color: rgba(255,255,255,.45); }
.s-gray .muted { color: #7A7A7A; }

.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.sec-label span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; }
.sec-title { font-size: clamp(36px, 5.6vw, 92px); letter-spacing: -0.045em; line-height: 0.98; max-width: 17ch; }
.sec-lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; max-width: 46ch; margin-top: 24px; opacity: .78; }

/* El problema */
.problems { display: grid; gap: 16px; }
.problem { background: var(--off-white); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; transition: background-color .4s var(--ease-out), transform .4s var(--ease-out); }
.problem:hover { background: var(--white); transform: translateY(-4px); }
.problem-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.problem-n { width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.problem h3 { font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px; }
.problem p { color: var(--gray-text); max-width: 40ch; }
.problem-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-light); border-radius: 999px; background: var(--white); font-size: 13px; color: #444; max-width: 230px; flex: 1; min-width: 0; }
.ps-g { font-weight: 800; }
.ps-q { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ps-cursor { width: 1px; height: 14px; background: var(--black); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.problem-chat { display: grid; gap: 6px; justify-items: end; font-size: 12px; }
.problem-chat span { background: var(--white); border: 1px solid var(--line-light); padding: 6px 11px; border-radius: 12px 12px 2px 12px; white-space: nowrap; }
.problem-chat span:nth-child(2) { opacity: .7; }
.problem-chat span:nth-child(3) { opacity: .45; }
.problem-frames { position: relative; width: 120px; height: 90px; }
.problem-frames i { position: absolute; width: 80px; height: 60px; border-radius: 8px; border: 1px solid var(--line-light); }
.problem-frames i:first-child { left: 0; top: 0; background: repeating-linear-gradient(45deg, #ddd 0 6px, #f4f4f2 6px 12px); transform: rotate(-6deg); }
.problem-frames i:last-child { right: 0; bottom: 0; background: var(--black); box-shadow: inset 0 -14px 0 rgba(255,255,255,.12); }

/* 01 Servicios */
.services { display: grid; gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 28px; background: var(--ink-2); overflow: hidden; transition: border-color .4s var(--ease-out), transform .4s var(--ease-out); }
.service::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 60%); opacity: 0; transition: opacity .4s; }
.service:hover { border-color: rgba(255,255,255,.35); }
.service:hover::before { opacity: 1; }
.service-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 44px; }
.service-n { font-size: 13px; font-weight: 500; color: var(--gray-mid); }
.service-tag { font-size: 12px; font-weight: 500; padding: 4px 10px; border: 1px solid var(--line-dark); border-radius: 999px; color: rgba(255,255,255,.8); }
.service h3 { font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -0.04em; margin-bottom: 14px; }
.service p { color: rgba(255,255,255,.7); max-width: 38ch; }
.ticks { margin: 24px 0 28px; border-top: 1px solid var(--line-dark); }
.ticks li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; font-weight: 500; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.service .service-price { margin-top: auto; font-size: 15px; color: rgba(255,255,255,.7); }
.service-price strong { display: block; color: var(--white); font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 2px; }
.service-feature { background: var(--white); color: var(--black); border-color: var(--white); }
.service-feature::before { display: none; }
.service-feature p, .service-feature .service-price { color: var(--gray-text); }
.service-feature .service-price strong { color: var(--black); }
.service-feature .ticks, .service-feature .ticks li { border-color: var(--line-light); }
.service-feature .service-n { color: var(--gray-text); }
.service-tag-inv { background: var(--black); color: var(--white); border-color: var(--black); }
.service-cta { justify-content: space-between; gap: 32px; min-height: 260px; background: transparent; border-style: dashed; }
.service-cta-title { font-size: clamp(28px, 2.4vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; max-width: 12ch; }
.service-cta-arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.service-cta-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-cta:hover .service-cta-arrow { transform: rotate(-45deg); }

/* 02 Trabajos — proyectos conceptuales a todo color.
   Cada proyecto define sus colores con --p-bg (fondo) y --p-dot (detalle). */
.projects { display: grid; gap: clamp(72px, 10vw, 150px); }
.project { display: grid; gap: 28px; }
.project-stage { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; aspect-ratio: 1 / 1.08; background: var(--p-bg); }
.project-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.06); }
.project-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--p-bg) 30%, transparent) 0%, color-mix(in srgb, var(--p-bg) 85%, transparent) 70%, var(--p-bg) 100%); }

.pdev { position: absolute; will-change: transform; }
.pdev-laptop { left: 5%; right: 5%; top: 7%; }
.pdev-screen { background: #0b0b0b; border: 1px solid rgba(255,255,255,.2); border-radius: 12px 12px 4px 4px; padding: 1.2%; box-shadow: 0 50px 90px -30px rgba(0,0,0,.75); }
.pdev-base { height: clamp(8px, 1.1vw, 16px); margin: 0 -5%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#d6d6d6, #8f8f8f); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.pdev-phone { right: 5%; bottom: 5%; width: 29%; padding: 2.2%; border-radius: 30px; background: #0a0a0a; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); }
.pframe { position: relative; overflow: hidden; }
.pframe-laptop { aspect-ratio: 16 / 10; border-radius: 5px; }
.pframe-phone { aspect-ratio: 390 / 844; border-radius: 22px; }
.pframe iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; opacity: 0; transition: opacity .6s var(--ease-out); }
.pframe.is-live iframe { opacity: 1; }
.pframe { background: #1C1C1C; }
.pframe-laptop iframe { width: 1280px; height: 800px; transform: scale(var(--s, .27)); }
.pframe-phone iframe { width: 390px; height: 844px; transform: scale(var(--s, .3)); }
.pframe-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease-out); }
.pframe.is-live .pframe-poster { opacity: 0; }

.project-info { display: grid; gap: 22px; }
.project-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-text); }
.project-kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--p-dot); box-shadow: 0 0 0 1px rgba(17,17,17,.15); }
.project h3 { font-size: clamp(38px, 4.6vw, 68px); letter-spacing: -0.045em; margin-top: 12px; }
.project-sub { color: var(--gray-text); font-size: 17px; margin-top: 8px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 14px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line-light); border-radius: 999px; background: var(--white); }

@media (min-width: 720px) {
  .project-stage { aspect-ratio: 16 / 10.5; }
  .pdev-laptop { left: 7%; right: 22%; top: 9%; }
  .pdev-phone { width: 19%; right: 6%; bottom: 7%; padding: 1.1%; }
}
@media (min-width: 960px) {
  .project-info { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .project-actions { justify-content: flex-end; }
}

/* 03 Proceso — línea de tiempo */
.timeline { position: relative; display: grid; gap: 0; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-dark); }
.tl-fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; pointer-events: none; }
.tl-fill i { display: block; height: 100%; width: 1px; background: var(--white); transform: scaleY(0); transform-origin: top; transition: transform .2s linear; }
.no-js .tl-fill i { transform: none; }
.step { position: relative; padding: 0 0 clamp(48px, 7vw, 88px); }
.step:last-child { padding-bottom: 0; }
.step-dot { position: absolute; left: -36px; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: var(--black); transition: background-color .4s var(--ease-out), border-color .4s, transform .4s var(--ease-out); }
.step.is-active .step-dot { background: var(--white); border-color: var(--white); transform: scale(1.15); }
.step-n { display: block; font-size: 14px; font-weight: 500; color: var(--gray-mid); margin-bottom: 14px; }
.step h3 { font-size: clamp(32px, 4.6vw, 76px); letter-spacing: -0.045em; color: rgba(255,255,255,.4); transition: color .5s var(--ease-out); }
.step.is-active h3 { color: var(--white); }
.step p { color: rgba(255,255,255,.7); max-width: 46ch; margin-top: 14px; font-size: 17px; }

/* 04 Presupuesto — calculadora */
.calc { display: grid; gap: 16px; align-items: start; }
.calc-main { display: grid; gap: 16px; min-width: 0; }
.calc-progress { display: none; }
.calc-step { background: var(--off-white); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.calc-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.calc-step legend span { width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0; flex: none; }
.calc-step legend + * { clear: both; }
.opt-grid { display: grid; gap: 8px; }
.opt { position: relative; cursor: pointer; display: block; }
.opt input, .chip input, .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; height: 100%; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-light); background: var(--white); transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s; }
.opt b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; grid-column: 1; }
.opt small { font-size: 13px; color: var(--gray-text); grid-column: 1; transition: color .3s; }
.opt em { font-style: normal; font-weight: 700; font-size: 15px; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }
.opt:hover > span { border-color: var(--black); }
.opt input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.opt input:checked + span small { color: rgba(255,255,255,.7); }
.opt input:focus-visible + span, .chip input:focus-visible + span, .chk input:focus-visible ~ .box { outline: 2px solid var(--black); outline-offset: 3px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--white); font-size: 15px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--black); }
.chip input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.calc-hint { margin-top: 16px; font-size: 14px; color: var(--gray-text); padding-left: 14px; border-left: 2px solid var(--black); }

.stepper { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.stepper-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light); background: var(--white); font-size: 22px; font-weight: 500; line-height: 1; transition: background-color .3s, color .3s, border-color .3s; }
.stepper-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.stepper input { width: 84px; height: 52px; text-align: center; border: 1px solid var(--line-light); border-radius: var(--r-md); background: var(--white); font: inherit; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--black); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.stepper-note { flex-basis: 100%; font-size: 14px; color: var(--gray-text); }

.chk-list { display: grid; }
.chk { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-light); cursor: pointer; }
.chk:last-child { border-bottom: 1px solid var(--line-light); }
.chk .box { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #7a7a7a; background: var(--white); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.chk .box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--ease-out); }
.chk input:checked ~ .box { background: var(--black); border-color: var(--black); }
.chk input:checked ~ .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.chk-t { font-size: 15px; font-weight: 500; line-height: 1.35; }
.chk-p { font-size: 14px; color: var(--gray-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chk.is-included { cursor: default; }
.chk.is-included .chk-p { color: var(--black); font-weight: 700; }

.calc-nav { display: none; }

.calc-result { background: var(--black); color: var(--white); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; min-width: 0; }
.calc-result-label { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.72); }
.calc-price { font-size: clamp(52px, 6vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 10px; }
.calc-cur { font-size: 18px; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.65); }
.calc-ars { font-size: 15px; color: rgba(255,255,255,.75); margin-top: -6px; }
.calc-ars span { color: var(--white); font-weight: 600; }
.calc-lines { border-top: 1px solid var(--line-dark); }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
.calc-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); }
.calc-mant { font-size: 14px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.08); }
.calc-mant[hidden] { display: none; }
.calc-fine { font-size: 13px; color: rgba(255,255,255,.65); }

/* 05 Por qué Vanmard */
.why { display: grid; gap: 16px; }
.why-card { border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 28px; background: var(--ink-2); display: flex; flex-direction: column; gap: 12px; transition: border-color .4s var(--ease-out), transform .4s var(--ease-out); }
.why-card:hover { border-color: rgba(255,255,255,.35); transform: translateY(-4px); }
.why-card h3 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.04em; margin-top: auto; }
.why-card p { color: rgba(255,255,255,.7); max-width: 40ch; }
.why-visual { height: 110px; margin-bottom: 28px; position: relative; }
.why-v-design { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; max-width: 220px; }
.why-v-design i { border: 1px solid rgba(255,255,255,.3); border-radius: 6px; }
.why-v-design i:first-child { grid-row: 1 / 3; background: var(--white); }
.why-v-design i:nth-child(4) { display: none; }
.why-v-speed { display: flex; align-items: center; max-width: 260px; }
.why-v-speed span { position: relative; display: block; width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.why-v-speed span::after { content: ""; position: absolute; inset: 0; background: var(--white); border-radius: inherit; transform: scaleX(.05); transform-origin: left; transition: transform 1.2s var(--ease-out) .3s; }
.why-card.is-in .why-v-speed span::after, .no-js .why-v-speed span::after { transform: scaleX(1); }
.why-v-phone i { display: block; width: 56px; height: 104px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.why-v-phone i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 30px; background: var(--white); border-radius: 4px; box-shadow: 0 40px 0 -8px rgba(255,255,255,.3); }
.why-v-pin i { display: block; width: 46px; height: 46px; border-radius: 50% 50% 50% 0; background: var(--white); transform: rotate(-45deg); margin: 18px 0 0 6px; }
.why-v-pin i::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--black); }
.why-v-chat { display: flex; align-items: center; }
.why-v-chat span { display: inline-block; padding: 12px 18px; border-radius: 18px 18px 18px 4px; background: var(--white); color: var(--black); font-weight: 700; font-size: 15px; }

/* 06 Mantenimiento */
.plans { display: grid; gap: 16px; max-width: 1080px; }
.plan { display: flex; flex-direction: column; gap: 28px; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line-light); background: var(--white); }
.plan-pro { background: var(--black); color: var(--white); border-color: var(--black); }
.plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 32px; letter-spacing: -0.04em; }
.plan-price { font-size: clamp(56px, 6vw, 80px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 12px; font-variant-numeric: tabular-nums; }
.plan-cur { font-size: 18px; font-weight: 600; letter-spacing: 0; vertical-align: super; margin-right: 4px; }
.plan-per { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--gray-text); margin-left: 4px; }
.plan-pro .plan-per { color: rgba(255,255,255,.65); }
.plan-desc { color: var(--gray-text); max-width: 36ch; }
.plan-pro .plan-desc { color: rgba(255,255,255,.72); }
.plan-list { border-top: 1px solid var(--line-light); flex: 1; }
.plan-pro .plan-list, .plan-pro .plan-list li { border-color: var(--line-dark); }
.plan-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; font-weight: 500; }
.plan-list li::before { content: "✓"; font-weight: 700; flex: none; }

/* 07 FAQ */
.faq-wrap { display: grid; }
.faq { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item h3 { font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; transition: padding .4s var(--ease-out); }
.faq-q:hover { padding-left: 8px; }
.faq-q i { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-light); flex: none; transition: background-color .4s, color .4s, transform .5s var(--ease-out); }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .5s var(--ease-out); }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i { background: var(--black); color: var(--white); border-color: var(--black); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.js .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 56px 28px 0; color: var(--gray-text); max-width: 62ch; font-size: 17px; }

/* CTA final */
.cta { background: var(--black); color: var(--white); padding: clamp(100px, 14vw, 200px) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line-dark); }
.cta-title { font-size: clamp(52px, 12.5vw, 230px); letter-spacing: -0.06em; line-height: .9; margin-left: -0.05em; }
.cta-sub { font-size: clamp(17px, 1.5vw, 22px); color: rgba(255,255,255,.75); max-width: 40ch; margin: 32px 0 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 9. Footer ------------------------------------------------------- */
.footer { background: var(--black); color: var(--white); padding: 0 0 28px; overflow: hidden; }
.footer-word { font-size: clamp(56px, 19vw, 300px); font-weight: 800; letter-spacing: -0.06em; line-height: .78; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); white-space: nowrap; margin: 0 -0.04em 40px; user-select: none; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; }
.footer-grid { display: grid; gap: 36px; padding: 36px 0; border-top: 1px solid var(--line-dark); }
.footer-brand p { margin-top: 16px; color: rgba(255,255,255,.7); max-width: 32ch; font-size: 15px; }
.footer-col .k { font-size: 13px; font-weight: 500; color: var(--gray-mid); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li[hidden] { display: none; }
.footer-col a, .footer-col address, .footer-zone { font-size: 15px; }
.footer-zone { margin-top: 12px; color: rgba(255,255,255,.7); }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg .fill { fill: currentColor; stroke: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: rgba(255,255,255,.65); }
.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); padding-bottom: 1px; }
.ul:hover { background-size: 100% 1px; }

/* Página de créditos */
.page-credits { background: var(--off-white); }
.page-credits .section { min-height: 100vh; }
.credits-title { margin: 32px 0 8px; }
.credits-list { margin-top: 48px; border-top: 1px solid var(--line-light); max-width: 900px; }
.credit { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.credit img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); filter: grayscale(1); }
.credit-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.credit-meta { font-size: 14px; color: var(--gray-text); margin-top: 2px; }

/* 10. WhatsApp flotante ------------------------------------------ */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--black); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .4s var(--ease-out), opacity .4s, translate .5s var(--ease-out); }
.js .wa-float:not(.is-visible) { opacity: 0; translate: 0 24px; pointer-events: none; }
.wa-float svg { width: 28px; height: 28px; fill: var(--whatsapp); }
.wa-float:hover { transform: scale(1.06); }
.wa-float::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); opacity: 0; animation: wa-ring 3s var(--ease-out) infinite 1s; pointer-events: none; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.wa-tip { position: absolute; right: calc(100% + 12px); top: 50%; translate: 8px -50%; padding: 8px 12px; border-radius: var(--r-sm); background: var(--white); color: var(--black); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease-out); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; translate: 0 -50%; }

/* 11. Animaciones de entrada ------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease-out); }
.split.is-in .w > span { transform: none; }

/* 12. Responsive -------------------------------------------------- */
@media (max-width: 959px) {
  /* Calculadora en pasos */
  .js .calc.is-stepper .calc-progress { display: block; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 16px 18px; position: sticky; top: 68px; z-index: 5; }
  .calc-progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
  .calc-progress-top span:first-child { color: var(--gray-text); font-weight: 500; }
  .calc-bar { height: 4px; border-radius: 999px; background: var(--gray-light); overflow: hidden; }
  .calc-bar i { display: block; height: 100%; background: var(--black); transform-origin: left; transform: scaleX(.1667); transition: transform .5s var(--ease-out); }
  .js .calc.is-stepper .calc-step:not(.is-current) { display: none; }
  .js .calc.is-stepper .calc-step.is-current { animation: stepIn .45s var(--ease-out); }
  .js .calc.is-stepper .calc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .calc-step:focus { outline: none; }
  .calc-price { font-size: clamp(48px, 15vw, 72px); }
  .wa-float { width: 52px; height: 52px; }
}
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (min-width: 540px) {
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .opt-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .opt-grid .opt:last-child:nth-child(odd):not(.opt-grid-3 .opt) { grid-column: 1 / -1; }
  .chip-b { display: flex; }
}

@media (min-width: 720px) {
  .problem { padding: 32px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .timeline { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .timeline::before, .tl-fill { left: 50%; }
  .step { padding: 0 0 72px; }
  /* el primer <li> es la barra de progreso: los pasos 1 y 3 son nth-child(even) */
  .step:nth-child(even) { grid-column: 1; text-align: right; padding-right: 48px; }
  .step:nth-child(odd) { grid-column: 2; padding-left: 24px; margin-top: 140px; }
  .step:nth-child(even) .step-dot { left: auto; right: -32px; }
  .step:nth-child(odd) .step-dot { left: -31px; }
  .step:nth-child(even) p { margin-left: auto; }
  .why { grid-template-columns: repeat(6, 1fr); }
  .why-card { grid-column: span 3; }
  .why-card:nth-child(n+3) { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
  .menu { display: none !important; }
  .scroll-cue { display: flex; }
  .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
  .hero-title { font-size: clamp(56px, 6.1vw, 118px); }
  .devices { height: clamp(380px, 36vw, 600px); margin-right: calc(var(--gutter) * -0.5); }
  .laptop { left: -8%; right: 8%; bottom: 14%; }
  .sec-head-split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
  .sec-head-split .sec-label { align-self: start; padding-top: 14px; }
  .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .problem { min-height: 420px; }
  .problem-top { min-height: 110px; }
  .problem h3 { margin-top: auto; }
  .problem-chat span { white-space: normal; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .service { padding: 32px; }
  .calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
  .calc-result { position: sticky; top: 84px; padding: 36px; }
  .faq-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .faq-wrap .sec-head { align-self: start; position: sticky; top: 110px; }
  .faq-wrap .sec-title { font-size: clamp(36px, 4.4vw, 76px); }
}

@media (min-width: 1280px) {
  .problem { padding: 40px; }
  .service { padding: 36px; }
}

/* 14. Monocromo: textura, profundidad y detalles ------------------
   El sitio usa solo blanco, negro y grises. El color vive en los
   proyectos de ejemplo. Única excepción: el ícono de WhatsApp.      */

/* Grano muy leve sobre los fondos negros */
.hero::after, .s-black::after, .cta::after, .footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.footer { position: relative; }
.hero-inner, .scroll-cue, .s-black > .container, .cta > .container, .footer > .container { position: relative; z-index: 1; }

/* Hero: luces difusas en grises que se mueven muy lento */
.hero-mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; filter: blur(80px); }
.hero-mesh i { position: absolute; border-radius: 50%; background: var(--white); will-change: transform; }
.hero-mesh i:nth-child(1) { width: 52vw; height: 52vw; left: -16vw; top: -20vw; opacity: .075; animation: mesh-a 30s ease-in-out infinite alternate; }
.hero-mesh i:nth-child(2) { width: 34vw; height: 34vw; right: 6vw; bottom: -14vw; opacity: .05; animation: mesh-b 36s ease-in-out infinite alternate; }
.hero-mesh i:nth-child(3) { width: 40vw; height: 40vw; right: -14vw; top: -8vw; opacity: .06; animation: mesh-c 42s ease-in-out infinite alternate; }
@keyframes mesh-a { to { transform: translate(14vw, 10vw) scale(1.15); } }
@keyframes mesh-b { to { transform: translate(-12vw, -8vw) scale(.9); } }
@keyframes mesh-c { to { transform: translate(-8vw, 14vw) scale(1.1); } }

/* Palabra destacada del titular: blanca, con subrayado que se dibuja */
.hero-title .hl { font-style: normal; color: var(--white); position: relative; white-space: nowrap; }
.hero-title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .06em; border-radius: 99px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out) .7s; }
.js.is-ready .hero-title .hl::after, html:not(.js) .hero-title .hl::after { transform: scaleX(1); }

/* Tarjetas de servicios: elevación + borde que se ilumina en blanco */
.service { transition: border-color .4s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.service:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.45); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }

/* Tarjeta "Hablar con un asesor" */
.advisor { position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center; margin-bottom: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--black); color: var(--white); }
.advisor::before { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -190px; border-radius: 50%; background: var(--white); filter: blur(80px); opacity: .1; pointer-events: none; }
.advisor > * { position: relative; }
.advisor-k { font-size: 13px; font-weight: 600; color: var(--gray-cf); margin-bottom: 8px; }
.advisor-title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 26ch; }
.advisor .btn { justify-self: start; }
.calc-result .btn-ghost-dark { margin-top: -6px; }
@media (min-width: 720px) {
  .advisor { grid-template-columns: 1fr auto; padding: 32px 36px; }
}

/* Mockups del hero: muestran los proyectos con sus propios colores */
.mock-barber { background: radial-gradient(120% 80% at 90% 10%, rgba(122,31,43,.55), transparent 60%), #141414; }
.mb-photo { filter: saturate(1.05) brightness(.95); }
.mb-nav b { color: #EFE6D8; font-family: Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.mb-nav em, .mb-row em { background: #C9A227; color: #141414; }
.mb-tag { color: #C9A227; }
.mb-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.02em; color: #EFE6D8; }
.mb-cards div { border-color: rgba(201,162,39,.35); }
.mock-cafe { background: #F3E9DC; color: #3B2418; }
.mc-head b { color: #3B2418; }
.mc-hero { color: #C65D3B; font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.03em; }
.mc-hero span { color: #5E6B3A; }
.mc-tabs > * { border-color: #E2D3BF; }
.mc-tabs em { background: #C65D3B; color: #fff; border-color: #C65D3B; }
.mc-item { border-color: #E2D3BF; }
.mc-item span { color: #7A6355; }
.mc-item img { filter: none; }
.mc-cta { background: #5E6B3A; }

/* 13. Movimiento reducido: sin animaciones ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js .reveal, .split .w > span, .js .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { transform: none; }
}
