/* ==========================================================
   BEYOND.TF — estilos
   Paleta: negro cálido + hueso + naranja quemado + terracota
   Tipografía: Anton (display) + Inter (texto)
   ========================================================== */

:root{
  --black: #16120e;
  --black-2: #201a14;
  --terracotta: #8a4128;
  --terracotta-2: #ab5636;
  --terracotta-glow: #c8622f;
  --ink: #f5f3ee;
  --ink-dim: #d8d3c8;
  --muted: #ada393;
  --rust: #ff5a1f;
  --rust-dim: #c1440e;
  --line: #382f26;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background:
    radial-gradient(1100px 700px at 15% 0%, rgba(171,86,54,0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgba(171,86,54,0.10), transparent 55%),
    var(--black);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ margin:0; font-family: var(--font-display); font-weight:400; letter-spacing:0.2px; text-transform:none; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
section{ position:relative; }
section[id]{ scroll-margin-top: 90px; } /* evita que el header fijo tape el título al saltar con el menú */
.wrap{ max-width: var(--wrap); margin:0 auto; padding: 0 var(--pad); }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:11px; letter-spacing:3px; text-transform:uppercase;
  color: var(--rust); font-weight:600; margin-bottom:18px;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--rust); display:inline-block; }

.eyebrow--dark{ color: var(--terracotta-2); }
.eyebrow--dark::before{ background: var(--terracotta-2); }

.h-xl{ font-size: clamp(40px, 7vw, 84px); line-height:0.98; }
.h-lg{ font-size: clamp(32px, 5vw, 56px); line-height:1.02; }
.h-md{ font-size: clamp(24px, 3vw, 34px); line-height:1.1; }

.lead{ font-size: clamp(16px,1.6vw,19px); color: var(--ink-dim); max-width: 640px; line-height:1.65; }
.muted{ color: var(--muted); }

/* ---------- botones ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 15px 28px; font-size:14px; font-weight:700;
  letter-spacing:0.5px; text-transform:uppercase;
  border-radius:2px; border:2px solid transparent; transition: all .18s ease;
  white-space:nowrap;
}
.btn--primary{ background: var(--rust); color:#0d0b09; }
.btn--primary:hover{ background:#ff7440; transform: translateY(-1px); }
.btn--ghost{ border-color: var(--ink-dim); color: var(--ink); }
.btn--ghost:hover{ border-color: var(--rust); color: var(--rust); }
.btn--block{ width:100%; justify-content:center; }

/* ---------- textura de grano reutilizable ---------- */
.grain{ position:relative; }
.grain::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:2;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:.05; mix-blend-mode:overlay;
}

/* ---------- marco de esquinas (motivo de marca) ---------- */
.bracket{ position:relative; }
.bracket::before, .bracket::after{
  content:""; position:absolute; width:26px; height:26px;
  border-color: var(--rust); border-style:solid; border-width:0;
  pointer-events:none; z-index:3;
}
.bracket::before{ top:-1px; left:-1px; border-top-width:3px; border-left-width:3px; }
.bracket::after{ bottom:-1px; right:-1px; border-bottom-width:3px; border-right-width:3px; }

/* puntitos decorativos */
.dots{
  position:absolute; width:70px; height:14px;
  background-image: radial-gradient(circle, var(--muted) 1px, transparent 1.4px);
  background-size: 9px 9px; opacity:.5;
}

/* ================= HEADER ================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(13,11,9,0.97);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ display:flex; align-items:center; gap:12px; font-family: var(--font-display); font-size:18px; letter-spacing:1px; }
.brand img{ width:34px; height:34px; border-radius:50%; object-fit:cover; }
.nav-links{ display:flex; align-items:center; gap:34px; font-size:13px; letter-spacing:0.5px; text-transform:uppercase; font-weight:600; }
.nav-links a{ opacity:.85; }
.nav-links a:hover{ opacity:1; color:var(--rust); }
.nav-cta{ display:flex; align-items:center; gap:24px; }
.nav-toggle{ display:none; background:none; border:none; color:var(--ink); }
.nav-toggle svg{ width:26px; height:26px; }

@media (max-width: 880px){
  .nav-links{
    position:fixed; inset:74px 0 0 0; background: var(--black); flex-direction:column;
    justify-content:flex-start; padding-top: 40px; gap: 28px; font-size:16px;
    transform: translateX(100%); transition: transform .25s ease; z-index:99;
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-cta .btn--ghost{ display:none; }
  .nav-toggle{ display:block; }
}

/* ================= HERO ================= */
.hero{
  min-height: 100svh; display:flex; align-items:flex-end; position:relative; overflow:hidden;
  padding-top: 74px;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; object-position: 78% center; opacity:.55; }
.hero-bg::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, var(--black) 20%, rgba(13,11,9,.75) 48%, rgba(13,11,9,.15) 78%),
              linear-gradient(0deg, var(--black) 0%, rgba(13,11,9,0) 34%);
  z-index:1;
}
.hero-content{ position:relative; z-index:2; padding: 90px 0 80px; }
.hero-content .h-xl{ max-width: 15ch; margin-bottom: 26px; text-wrap: balance; }
.hero-content .lead{ margin-bottom: 40px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-scroll{
  position:absolute; right: var(--pad); bottom: 28px; z-index:2;
  writing-mode: vertical-rl; font-size:11px; letter-spacing:3px; text-transform:uppercase;
  color: var(--muted); display:flex; align-items:center; gap:10px;
}
.hero-scroll::after{ content:""; width:1px; height:46px; background: var(--muted); display:block; }

/* ================= QUIÉN SOMOS ================= */
.about{ padding: 130px 0 110px; border-top:1px solid var(--line); }
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items:start; }
.about-pull{
  font-family: var(--font-display); font-size: clamp(28px,3.4vw,42px); line-height:1.12;
  color: var(--rust); margin: 34px 0; max-width: 14ch;
}
.about-body p{ color: var(--ink-dim); margin-bottom: 20px; max-width: 54ch; }
@media (max-width: 860px){ .about-grid{ grid-template-columns:1fr; gap: 30px; } }

/* ================= SERVICIOS ================= */
.services{ padding: 110px 0; background: var(--black-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.services-head{ margin-bottom: 60px; max-width: 640px; }
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card{
  background: var(--black); border:1px solid var(--line); padding: 34px 28px; position:relative;
  display:flex; flex-direction:column; min-height: 420px;
}
.service-card .index{ font-family: var(--font-display); font-size:13px; color: var(--muted); letter-spacing:2px; margin-bottom:22px; }
.service-card h3{ font-size: 26px; margin-bottom:8px; }
.badge{
  display:inline-block; font-size:10px; letter-spacing:1.5px; text-transform:uppercase; font-weight:700;
  color: var(--rust); border:1px solid var(--rust); padding:4px 10px; border-radius:20px; margin-bottom:16px; width:fit-content;
}
.service-card .field{ margin-top:16px; }
.service-card .field b{ display:block; font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-bottom:6px; font-weight:700; }
.service-card .field p{ color: var(--ink-dim); font-size:14.5px; }
.service-card .btn{ margin-top:auto; padding-top:26px; align-self:flex-start; }
.service-card .btn--ghost{ padding: 11px 20px; font-size:12px; }
@media (max-width: 980px){ .services-grid{ grid-template-columns:1fr; } .service-card{ min-height:auto; } }

/* ================= PROCESO ================= */
.process{ padding: 120px 0; }
.process-head{ margin-bottom: 56px; max-width: 640px; }
.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 30px 0; border-top:1px solid var(--line);
  align-items:start;
}
.process-list .process-item:last-child{ border-bottom:1px solid var(--line); }
.process-item .num{ font-family: var(--font-display); font-size:38px; color: var(--terracotta-2); }
.process-item h4{ font-size:20px; margin-bottom:8px; font-family: var(--font-body); font-weight:700; }
.process-item p{ color: var(--ink-dim); max-width:60ch; }
@media (max-width: 700px){ .process-item{ grid-template-columns: 50px 1fr; gap:16px; } .process-item .num{ font-size:26px; } }

/* ================= TRABAJO / PORTFOLIO ================= */
.work{ padding: 120px 0; background: var(--black-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.work-head{ max-width: 680px; margin-bottom: 54px; }
.work-head p{ color: var(--ink-dim); margin-top:18px; max-width: 58ch; }
.work-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-item{ position:relative; overflow:hidden; aspect-ratio: 4/5; }
.work-item img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; filter: saturate(0.92); }
.work-item:hover img{ transform: scale(1.04); }
.work-item .cap{
  position:absolute; left:0; right:0; bottom:0; padding: 16px 18px;
  background: linear-gradient(0deg, rgba(13,11,9,.92), transparent);
  font-size:12px; letter-spacing:1px; text-transform:uppercase; color: var(--ink-dim);
}
.work-item.placeholder{
  display:flex; align-items:center; justify-content:center; text-align:center;
  border: 1px dashed var(--line); background: var(--black); padding: 20px;
}
.work-item.placeholder span{ color: var(--muted); font-size:13px; max-width: 20ch; }
@media (max-width: 980px){ .work-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .work-grid{ grid-template-columns: 1fr; } }

/* ================= CONFIANZA ================= */
.trust{ padding: 120px 0; }
.trust-head{ max-width: 640px; margin-bottom: 54px; }
.trust-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-bottom: 54px; }
.trust-card{ border-top: 3px solid var(--rust); padding-top: 18px; }
.trust-card p{ color: var(--ink-dim); font-size:14.5px; }
.trust-closing{
  border-top:1px solid var(--line); padding-top: 40px; font-size: clamp(19px,2.2vw,24px);
  color: var(--ink-dim); max-width: 70ch; font-style: normal;
}
.trust-closing b{ color: var(--ink); }
@media (max-width: 980px){ .trust-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .trust-grid{ grid-template-columns: 1fr; } }

/* ================= PRECIOS ================= */
.pricing{ padding: 120px 0; background: var(--black-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.pricing-head{ max-width: 660px; margin-bottom: 54px; }
.pricing-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.price-card{ background: var(--black); border:1px solid var(--line); padding: 32px 26px; }
.price-card.is-featured{ border-color: var(--rust); position:relative; }
.price-card .tag{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.price-card h3{ font-size:22px; margin-bottom:14px; }
.price-card .amount{ font-family: var(--font-display); font-size: 30px; color: var(--rust); margin-bottom:18px; }
.price-card p.desc{ color: var(--ink-dim); font-size:14.5px; }
.pricing-note{ margin-top: 40px; color: var(--muted); font-size: 13.5px; max-width: 62ch; }
@media (max-width: 980px){ .pricing-grid{ grid-template-columns:1fr; } }

/* ================= CONTACTO ================= */
.contact{ padding: 130px 0; border-top:1px solid var(--line); }
.contact-grid{ display:grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.contact-info .h-lg{ margin-bottom: 22px; max-width: 12ch; }
.contact-info .lead{ margin-bottom: 34px; }
.contact-direct{ margin-top: 40px; padding-top: 28px; border-top:1px solid var(--line); }
.contact-direct a{ display:block; margin-top:10px; font-size:15px; }
.contact-direct a:hover{ color: var(--rust); }

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field{ margin-bottom: 20px; }
.form-field label{ display:block; font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-bottom:8px; font-weight:700; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; background: var(--black-2); border:1px solid var(--line); color: var(--ink);
  padding: 13px 14px; font-family: var(--font-body); font-size:14.5px; border-radius:2px;
}
.form-field textarea{ min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:none; border-color: var(--rust); }
.form-note{ font-size:12.5px; color: var(--muted); margin-top:14px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } .field-row{ grid-template-columns:1fr; } }

/* ================= FOOTER ================= */
.site-footer{ border-top:1px solid var(--line); padding: 50px 0; }
.footer-grid{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 20px; }
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ width:30px; height:30px; border-radius:50%; object-fit:cover; }
.footer-links{ display:flex; flex-wrap:wrap; gap: 18px 26px; font-size:13px; text-transform:uppercase; letter-spacing:0.5px; }
.footer-links a:hover{ color: var(--rust); }
.footer-bottom{ margin-top: 30px; font-size:12.5px; color: var(--muted); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* reveal on scroll — visible por defecto; sólo se oculta si el JS confirma que corrió.
   Así, si algo bloquea el script (bloqueador de contenido, navegador raro, etc.),
   el contenido de las secciones se ve igual en vez de quedar invisible. */
[data-reveal]{ opacity:1; transform:none; transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); transition-delay: var(--d, 0s); }
html.js-reveal [data-reveal]{ opacity:0; transform: translateY(26px) scale(.985); }
html.js-reveal [data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; } }

/* ================= MARQUEE (tira de movimiento) ================= */
.marquee{
  position:relative; overflow:hidden; background: var(--terracotta-2);
  border-top:1px solid rgba(0,0,0,.2); border-bottom:1px solid rgba(0,0,0,.2);
  padding: 16px 0;
}
.marquee-track{
  display:flex; width:max-content; white-space:nowrap;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track span{
  font-family: var(--font-display); font-size: clamp(20px,2.6vw,30px);
  color: var(--black); padding: 0 28px; display:inline-flex; align-items:center; gap:28px;
  letter-spacing: 0.5px;
}
.marquee-track span::after{ content:"—"; color: rgba(22,18,14,.45); }
@keyframes marquee-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* ================= HERO: fondo generativo ================= */
.hero-art{ position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; mix-blend-mode: screen; }
.hero-art .blob{
  position:absolute; border-radius:50%; filter: blur(70px); opacity:.55;
  background: radial-gradient(circle, var(--terracotta-glow), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-art .blob--a{ width:520px; height:520px; top:-140px; left:-120px; animation-duration: 26s; }
.hero-art .blob--b{ width:380px; height:380px; bottom:-120px; left:20%; opacity:.35; animation-duration: 19s; animation-delay: -6s; }
.hero-art .ring{
  position:absolute; border:1px solid rgba(255,255,255,.16); border-radius:50%;
  animation: spin 60s linear infinite;
}
.hero-art .ring--a{ width:340px; height:340px; top:8%; left:6%; }
.hero-art .ring--b{ width:180px; height:180px; top:60%; left:2%; border-color: rgba(255,90,31,.35); animation-duration: 40s; animation-direction: reverse; }
.hero-art .bracket-big{
  position:absolute; width:120px; height:120px; border-color: var(--rust); border-style:solid; border-width:0;
  opacity:.8;
}
.hero-art .bracket-big.tl{ top:100px; left:5%; border-top-width:3px; border-left-width:3px; }
.hero-art .bracket-big.br{ bottom:60px; left:calc(5% + 140px); border-bottom-width:3px; border-right-width:3px; width:70px; height:70px; opacity:.5; }
.hero-art .glitch-bar{
  position:absolute; left:0; height:2px; width:38%; background: var(--rust); opacity:0;
  animation: glitch-flicker 7s ease-in-out infinite;
}
.hero-art .glitch-bar--1{ top:22%; animation-delay: .4s; }
.hero-art .glitch-bar--2{ top:61%; width:22%; animation-delay: 2.8s; }
.hero-art .dotgrid{
  position:absolute; width:130px; height:90px; bottom:14%; left:4%;
  background-image: radial-gradient(circle, rgba(245,243,238,.5) 1.5px, transparent 1.8px);
  background-size: 14px 14px; opacity:.5;
}
@keyframes drift{ from{ transform: translate(0,0) scale(1); } to{ transform: translate(40px,30px) scale(1.08); } }
@keyframes spin{ from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
@keyframes glitch-flicker{ 0%,88%,100%{ opacity:0; transform: translateX(0); } 89%{ opacity:.9; transform: translateX(6px); } 92%{ opacity:0; } 93%{ opacity:.6; transform: translateX(-10px); } 95%{ opacity:0; } }
@media (max-width: 880px){ .hero-art .blob--a{ width:340px; height:340px; } .hero-art .ring--a{ width:220px; height:220px; } }
@media (prefers-reduced-motion: reduce){ .hero-art .blob, .hero-art .ring, .hero-art .glitch-bar{ animation: none; opacity:.3; } }

/* parallax en la imagen del hero */
.hero-bg img{ will-change: transform; transition: transform .1s linear; }

/* ================= hover motion general ================= */
.nav-links a{ position:relative; }
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-6px; height:2px; background: var(--rust);
  transition: right .25s ease;
}
.nav-links a:hover::after{ right:0; }

.service-card, .trust-card, .work-item{ transition: transform .35s ease, border-color .35s ease; }
.service-card:hover{ transform: translateY(-6px); border-color: rgba(255,90,31,.4); }
.trust-card{ transition: transform .3s ease; }
.trust-card:hover{ transform: translateY(-4px); }

.btn--primary{ position:relative; animation: pulse-glow 3.2s ease-in-out infinite; }
@keyframes pulse-glow{
  0%,100%{ box-shadow: 0 0 0 0 rgba(255,90,31,.35); }
  50%{ box-shadow: 0 0 0 8px rgba(255,90,31,0); }
}
@media (prefers-reduced-motion: reduce){ .btn--primary{ animation: none; } }

/* ================= bocetos (trabajo conceptual) ================= */
.sketch-badge{
  position:absolute; top:14px; left:14px; z-index:2; font-size:10px; letter-spacing:1.5px; text-transform:uppercase;
  font-weight:700; color: var(--black); background: var(--rust); padding:4px 10px; border-radius:20px;
}
.work-item.sketch{ aspect-ratio:auto; min-height:340px; background: var(--black-2); display:flex; flex-direction:column; padding:20px; }
.work-item.sketch .sketch-label{ margin-top:auto; padding-top:14px; font-size:12px; letter-spacing:1px; text-transform:uppercase; color: var(--ink-dim); }
@media (max-width:600px){ .work-item.sketch{ min-height:0; } }

/* boceto: chatbot */
.mock-chat{ margin-top: 40px; display:flex; flex-direction:column; gap:10px; }
.mock-bubble{ max-width:78%; padding:9px 13px; border-radius:14px; font-size:12.5px; line-height:1.4; }
.mock-bubble.bot{ background: var(--terracotta-2); color: var(--black); align-self:flex-start; border-bottom-left-radius:3px; }
.mock-bubble.user{ background: #35302a; color: var(--ink-dim); align-self:flex-end; border-bottom-right-radius:3px; }
.mock-typing{ display:flex; gap:4px; align-self:flex-start; padding: 9px 13px; background: var(--terracotta-2); border-radius:14px; border-bottom-left-radius:3px; }
.mock-typing span{ width:5px; height:5px; border-radius:50%; background: var(--black); opacity:.6; animation: typing-bounce 1.2s infinite ease-in-out; }
.mock-typing span:nth-child(2){ animation-delay:.15s; }
.mock-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typing-bounce{ 0%,60%,100%{ transform: translateY(0); } 30%{ transform: translateY(-4px); } }

/* boceto: automatización (flujo) */
.mock-flow{ margin-top:30px; }
.mock-flow svg{ width:100%; height:150px; }
.mock-flow circle.pulse{ animation: flow-pulse 2.4s ease-in-out infinite; }
@keyframes flow-pulse{ 0%{ opacity:0; } 10%{ opacity:1; } 90%{ opacity:1; } 100%{ opacity:0; } }

/* boceto: herramienta / dashboard */
.mock-dash{ margin-top:30px; }
.mock-dash .big-number{ font-family: var(--font-display); font-size:34px; color: var(--rust); }
.mock-bars{ display:flex; align-items:flex-end; gap:6px; height:52px; margin-top:14px; }
.mock-bars i{ flex:1; height:100%; background: var(--terracotta-2); border-radius:2px 2px 0 0; transform: scaleY(0); transform-origin:bottom; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
html.js-reveal [data-reveal].is-visible .mock-bars i{ transform: scaleY(var(--h)); }
html:not(.js-reveal) .mock-bars i{ transform: scaleY(var(--h)); }
