/* ============================================================
   Bestudio.ar — ROI > Ego
   Minimal studio aesthetic. Fine typography. One lime accent.
   ============================================================ */

:root {
  --bg: #070707;
  --bg-soft: #0d0d0d;
  --bg-card: #101010;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f4f2;
  --ink-dim: #a6a6a2;
  --ink-faint: #6b6b68;
  --lime: #cef91a;
  --lime-soft: rgba(206, 249, 26, 0.12);
  --maxw: 1120px;
  /* Reserve a side gutter on wide screens so the traveling ball has a
     clear lane beside the content. Falls back to normal padding when
     the viewport is too narrow to spare it. */
  --gutter: clamp(20px, 4vw, 72px);
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
/* Sections the traveling ball crosses reserve a side lane so the ball
   never overlaps the content column. Header/hero/footer keep full width. */
.manifesto > .wrap,
.solutions > .wrap,
.gastro > .wrap,
.why > .wrap,
.method > .wrap,
.contact > .wrap {
  width: min(var(--maxw), 100% - 2 * var(--lane));
  padding-left: 0; padding-right: 0;
}
:root { --lane: clamp(72px, 9vw, 160px); --ball-size: 38px; }
@media (max-width: 760px) { :root { --ball-size: 30px; } }

/* Typography scale ---------------------------------------------------- */
h1, h2, h3 { font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dot { color: var(--lime); }
.accent { color: var(--lime); }
.thin { font-weight: 200; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  font-size: 0.92rem; font-weight: 400; letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: #0a0a0a; font-weight: 500; }
.btn-primary:hover { background: #dbff45; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.03); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header -------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,7,7,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.brand .b-dot { color: var(--lime); }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--ink-dim); font-weight: 300; transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--lime); transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
.hero-stage {
  position: relative;
  margin: 0 auto 2.6rem;
  width: 100%;
}
.hero-logo {
  position: relative;
  width: clamp(180px, 26vw, 300px);
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.6));
}
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 0.4rem 0 1.4rem; }
.hero-lead {
  color: var(--ink-dim); font-size: clamp(1rem, 1.6vw, 1.22rem);
  max-width: 640px; margin: 0 auto 2.4rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* faint studio light behind hero */
.hero::before {
  content: ""; position: absolute; z-index: 0; top: -30%; left: 50%;
  width: 120vw; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(ellipse 40% 55% at 50% 20%, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

/* Traveling lime ball ------------------------------------------------ */
#travelBall {
  position: fixed;
  top: 0; left: 0;
  width: var(--ball-size, 38px); height: var(--ball-size, 38px);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px 2px rgba(206,249,26,0.55), 0 0 40px 6px rgba(206,249,26,0.18);
  z-index: 60;                 /* above content, below header dropdown/menu */
  pointer-events: none;
  will-change: transform;
  /* positioned entirely via transform in JS; hidden until initialised */
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}
#travelBall.ready { opacity: 1; }
/* while the ball IS the logo dot, the SVG dot is hidden */
.hero-logo.ball-active #limeDot { opacity: 0 !important; }

/* Section frame ------------------------------------------------------ */
section { position: relative; }
.section-pad { padding: clamp(80px, 12vh, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.2rem; }
.section-head .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); }
.section-head p { color: var(--ink-dim); margin-top: 1.2rem; font-size: 1.08rem; }

/* Manifesto / Quiénes somos ----------------------------------------- */
.manifesto { border-top: 1px solid var(--line); }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.manifesto-lead { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 200; line-height: 1.28; letter-spacing: -0.02em; }
.manifesto-lead .accent { font-weight: 300; }
.manifesto-body p { color: var(--ink-dim); margin-bottom: 1.2rem; }
.manifesto-body p:last-child { margin-bottom: 0; }

/* Solutions ---------------------------------------------------------- */
.solutions { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sol-card {
  background: var(--bg-card); padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background 0.5s var(--ease);
  position: relative; min-height: 100%;
}
.sol-card:hover { background: #151515; }
.sol-index { font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.15em; }
.sol-card h3 { margin: 1.4rem 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.sol-card h3 .h-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; flex: none; }
.sol-card .sol-desc { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: 1.5rem; }
.sol-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.sol-list li {
  font-size: 0.82rem; color: var(--ink-dim); font-weight: 300;
  border: 1px solid var(--line); border-radius: 100px; padding: 0.35em 0.85em;
  transition: border-color 0.3s, color 0.3s;
}
.sol-card:hover .sol-list li { border-color: var(--line-strong); }
.sol-list li:hover { color: var(--ink); border-color: var(--lime); }

/* Gastronomía feature ------------------------------------------------ */
.gastro { border-top: 1px solid var(--line); overflow: hidden; }
.gastro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.gastro-copy .eyebrow { display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.2rem; }
.gastro-copy .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); }
.gastro-copy h2 { margin-bottom: 1.4rem; }
.gastro-copy p { color: var(--ink-dim); margin-bottom: 1.1rem; }
.gastro-copy .diff-title { color: var(--ink); font-weight: 400; margin: 2rem 0 0.8rem; }
.gastro-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; }
.gastro-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-dim); }
.gastro-list li::before { content: ""; margin-top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); flex: none; }
.gastro-panel {
  border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem);
  background: radial-gradient(120% 120% at 100% 0%, var(--lime-soft), transparent 55%), var(--bg-card);
}
.gastro-panel h3 { font-weight: 400; margin-bottom: 1.4rem; }
.platforms { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.platforms span { font-size: 0.82rem; padding: 0.4em 0.9em; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink); }
.gastro-panel .metric { display: flex; align-items: baseline; gap: 0.6rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.gastro-panel .metric:last-child { border-bottom: 1px solid var(--line); }
.gastro-panel .metric b { font-size: 1.8rem; font-weight: 300; letter-spacing: -0.02em; }
.gastro-panel .metric span { color: var(--ink-dim); font-size: 0.9rem; }

/* Marcas — word cloud of logos ------------------------------------- */
.brands { border-top: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.brand-cloud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.4rem) clamp(2rem, 5vw, 4.5rem);
  max-width: 1000px; margin: 0 auto; padding: 1rem 0;
}
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
  will-change: transform;
  animation: floatLogo calc(6s + var(--fx) * 0.7s) ease-in-out calc(var(--fx) * -0.9s) infinite;
}
.brand-logo img {
  display: block; width: auto;
  height: clamp(30px, 4.4vw, 46px);
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
/* size accents so it reads like a cloud, not a rigid row */
.brand-logo.bl-2 img { height: clamp(54px, 7vw, 82px); }   /* Café Martínez disc — the anchor */
.brand-logo.bl-3 img,
.brand-logo.bl-4 img { height: clamp(34px, 5vw, 52px); }
.brand-logo.bl-5 img { height: clamp(40px, 5.6vw, 62px); }
.brand-logo.bl-6 img { height: clamp(40px, 5.4vw, 58px); }

.brand-logo:hover, .brand-logo:focus-visible {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.2);                 /* +20% on hover */
  outline: none;
}
@keyframes floatLogo {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
}

/* Why Be ------------------------------------------------------------- */
.why { border-top: 1px solid var(--line); background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.why-item { background: var(--bg-card); padding: clamp(1.6rem, 3vw, 2.4rem); transition: background 0.5s var(--ease); }
.why-item:hover { background: #151515; }
.why-item .n { font-size: 0.72rem; color: var(--lime); letter-spacing: 0.15em; }
.why-item h3 { font-weight: 400; margin: 1.2rem 0 0.6rem; }
.why-item p { color: var(--ink-dim); font-size: 0.95rem; }

/* Method ------------------------------------------------------------- */
.method { border-top: 1px solid var(--line); }
.method-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; border-top: 1px solid var(--line-strong); }
.step .s-num {
  position: absolute; top: -1px; left: 0; width: 34px; height: 34px; transform: translateY(-50%);
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg);
  display: grid; place-items: center; font-size: 0.8rem; color: var(--ink-dim);
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}
.step:hover .s-num { border-color: var(--lime); color: var(--lime); }
.step h3 { font-weight: 400; margin-bottom: 0.5rem; }
.step p { color: var(--ink-dim); font-size: 0.92rem; }

/* CTA ---------------------------------------------------------------- */
.cta { border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 120%, var(--lime-soft), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta h2 { margin-bottom: 1.4rem; }
.cta p { color: var(--ink-dim); margin-bottom: 2.4rem; font-size: 1.1rem; }

/* Contact ------------------------------------------------------------ */
.contact { border-top: 1px solid var(--line); background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-aside h2 { margin-bottom: 1.2rem; }
.contact-aside p { color: var(--ink-dim); margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method { display: flex; align-items: center; gap: 0.9rem; color: var(--ink-dim); transition: color 0.3s; }
.contact-method:hover { color: var(--ink); }
.contact-method .ic { width: 20px; height: 20px; flex: none; opacity: 0.8; }
form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 0.98rem; padding: 0.85em 1em; width: 100%;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: #0a0a0a; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
form .btn { justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: var(--lime); }
.form-status.err { color: #ff6b6b; }

/* Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3.5rem; }
.footer-brand .brand { font-size: 1.8rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-dim); max-width: 320px; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.2rem; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { color: var(--ink-dim); font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom .tag { color: var(--ink-dim); }
.footer-bottom .tag b { color: var(--lime); font-weight: 400; }

/* Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gastro-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, h2, .manifesto-lead { overflow-wrap: break-word; hyphens: auto; }
  h1 { font-size: clamp(1.8rem, 8vw, 4.6rem); }
  .manifesto-lead { font-size: clamp(1.3rem, 5.5vw, 2.2rem); }
  .eyebrow { letter-spacing: 0.16em; font-size: 0.66rem; }
  .hero-lead { font-size: 0.98rem; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: fixed; inset: 74px 0 auto 0; flex-direction: column;
    background: rgba(7,7,7,0.97); backdrop-filter: blur(14px); padding: 1.6rem var(--pad) 2rem;
    gap: 1.4rem; border-bottom: 1px solid var(--line);
  }
  .nav-links.open .nav-cta { margin: 0.4rem 0 0; }
  .sol-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .gastro-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
