/* Portfolio hub · direction "Escaparate" */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --sage: #eef1ea;
  --sage-2: #e0e7da;
  --forest: #173a2b;
  --forest-2: #21503c;
  --tangerine: #f7803a;
  --mute: #4a5f53;
  --white: #ffffff;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sage); color: var(--forest); font: 400 1.0625rem/1.6 var(--font); font-variation-settings: "opsz" 14; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; line-height: .98; font-weight: 800; font-stretch: 75%; font-variation-settings: "opsz" 96; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
.ph { background: #fff3c4; color: var(--forest); padding: 0 .25em; border-radius: 4px; }
.ph-inline { font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--spring), background .2s, color .2s, border-color .2s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-wa { background: var(--tangerine); color: var(--forest); }
.btn-wa:hover { background: #ff9450; }
.btn-line { border-color: var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--forest); color: var(--sage); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-2); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--sage); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-sm svg { width: 20px; height: 20px; }
.btn-lg { min-height: 60px; padding: 0 28px; font-size: 1.0625rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--sage) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { font-weight: 800; font-stretch: 75%; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: none; }
@media (max-width: 380px) { .site-header .btn-sm span { display: none; } .site-header .btn-sm { width: 44px; padding: 0; } }
@media (min-width: 760px) {
  .nav { display: flex; gap: 26px; }
  .nav a { text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(var(--tangerine), var(--tangerine)) 0 78% / 0 3px no-repeat; transition: background-size .3s var(--ease); }
  .nav a:hover { background-size: 100% 3px; }
}

/* hero */
.hero { padding: 28px 0 8px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(3.25rem, 15.5vw, 7.75rem); }
.hero-sub { font-size: 1.125rem; max-width: 34ch; margin: 22px 0 26px; color: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phones { position: relative; height: 430px; --p: 0; }
.phone { position: absolute; left: 50%; top: 18px; width: 186px; aspect-ratio: 9 / 18.6; margin-left: -93px; border-radius: 32px; background: var(--forest); padding: 7px; box-shadow: 0 30px 50px -24px rgba(23, 58, 43, .55); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.phone img { width: 100%; }
.p1 { transform: translateX(calc(-62% - var(--p) * 30%)) rotate(calc(-8deg - var(--p) * 4deg)); z-index: 1; }
.p2 { transform: translateY(calc(var(--p) * -20px)); z-index: 2; top: 0; }
.p3 { transform: translateX(calc(62% + var(--p) * 30%)) rotate(calc(8deg + var(--p) * 4deg)); z-index: 1; }
@media (min-width: 1000px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
  .phones { height: 600px; }
  .phone { width: 238px; margin-left: -119px; border-radius: 40px; padding: 9px; }
  .phone .screen { border-radius: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .phone { animation: rise 1.1s var(--spring) both; }
  .js .p1 { animation-delay: .25s; }
  .js .p2 { animation-delay: .1s; }
  .js .p3 { animation-delay: .4s; }
  .phone img { animation: browse 22s ease-in-out 1.6s infinite alternate; }
  .p1 img { animation-delay: 2.4s; }
  .p3 img { animation-delay: 3.2s; }
  .phones:hover img { animation-play-state: paused; }
  .js .hero-copy > :not(h1) { opacity: 0; transform: translateY(16px); animation: up .8s var(--ease) forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; translate: 0 120px; } }
@keyframes browse { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(-63%); } }
@keyframes up { to { opacity: 1; transform: none; } }

/* sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(2.75rem, 11vw, 5.5rem); }
.sec-head p { max-width: 44ch; color: var(--mute); margin: 0; font-size: 1.125rem; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 64px; } }

/* demo windows: each one lit in its own colours */
.demo { display: grid; gap: 28px; padding: 24px 18px 30px; border-radius: 28px; margin-bottom: 24px; overflow: hidden; }
.d-barberia { background: #1c1a17; color: #f3eee4; }
.d-barberia .kind { color: #f5c230; }
.d-barberia .try strong { color: #f5c230; }
.d-restaurante { background: #e6ecf6; color: #1d2742; }
.d-restaurante .kind { color: #1f3a7a; }
.d-marca { background: #ffffff; color: #1b1f2b; }
.d-marca .kind { color: #566070; }
.shots { position: relative; padding-right: 22%; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .45); }
.dots { display: flex; gap: 6px; padding: 9px 12px; background: #e9ebe6; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c3c9c0; }
.mini { position: absolute; right: 0; bottom: -14px; width: 30%; aspect-ratio: 9 / 18.6; border-radius: 18px; background: var(--forest); padding: 4px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .55); }
.mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; }
.demo-copy .kind { font-weight: 600; margin-bottom: 8px; }
.demo-copy h3 { font-size: clamp(2.5rem, 10vw, 4rem); margin-bottom: 16px; }
.demo-copy p { max-width: 42ch; }
.demo-copy .try { margin-bottom: 22px; }
@media (min-width: 1000px) {
  .demo { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; padding: 48px; margin-bottom: 32px; }
  .demo:nth-of-type(even) .shots { order: 2; }
  .demo:nth-of-type(even) { grid-template-columns: 1fr 1.35fr; }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .browser, .mini { transition: transform .6s var(--spring); }
    .demo:hover .browser { transform: translateY(-6px) rotate(-.6deg); }
    .demo:hover .mini { transform: translateY(-14px) rotate(2deg); }
  }
}

/* how we work */
.band { background: var(--white); }
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-weight: 800; font-stretch: 75%; font-size: 1.375rem; }
.steps h3 { font-size: 1.75rem; align-self: center; }
.steps p { margin: 0; color: var(--mute); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } .steps li { grid-template-columns: 1fr; } .steps li::before { grid-row: auto; margin-bottom: 10px; } }
.plans { display: grid; gap: 18px; }
.plan { background: var(--sage); border-radius: 24px; padding: 28px 22px; }
.plan-alt { background: var(--forest); color: var(--sage); }
.plan h3 { font-size: 2.25rem; margin-bottom: 10px; }
.price { font-size: 2rem; font-weight: 700; font-stretch: 75%; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 20px; }
.price small { font-size: 1rem; font-weight: 500; font-stretch: 100%; opacity: .85; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--tangerine); }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } .plan { padding: 36px 30px; } .plan h3 { font-size: 2rem; } }
.plans-note { margin-top: 18px; font-size: .95rem; max-width: 62ch; }

/* call to action */
.cta { background: var(--forest); color: var(--sage); text-align: left; }
.cta h2 { font-size: clamp(3rem, 13vw, 7rem); max-width: 12ch; margin-bottom: 20px; }
.cta p { font-size: 1.1875rem; max-width: 40ch; color: #cfdacb; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* legal */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2.75rem, 11vw, 4.5rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.75rem; margin: 36px 0 10px; }
.legal li { margin-bottom: 6px; }
.legal .muted { color: var(--mute); }

/* footer */
.site-footer { background: var(--forest-2); color: var(--sage); padding: 48px 0 24px; }
.f-brand { font-weight: 800; font-stretch: 75%; font-size: 1.75rem; margin: 0 0 4px; }
.f-line { color: #cfdacb; }
.f-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(238, 241, 234, .25); margin-top: 28px; padding-top: 14px; font-size: .9375rem; color: #cfdacb; }
.f-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.f-bottom a { min-height: 44px; display: inline-flex; align-items: center; }

/* reveals (content visible without JS) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
