/* ===== Graficate Chile · estilos del sitio ===== */
:root {
  --c: #74B1E0;
  --m: #B9237E;
  --y: #F7EB48;
  --k: #0d0d12;
  --bg: #0d0d12;
  --bg-2: #14141c;
  --card: #1b1b26;
  --line: rgba(255, 255, 255, .09);
  --txt: #f4f4f8;
  --muted: #a3a3b5;
  --grad: linear-gradient(100deg, var(--c), var(--m) 55%, var(--y));
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --wrap: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: .9em;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--m); color: #fff; box-shadow: 0 10px 30px -10px var(--m); }
.btn-primary:hover { box-shadow: 0 14px 34px -8px var(--m); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: var(--txt); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--c); color: var(--c); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ----- Header ----- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.top.scrolled { background: rgba(13, 13, 18, .85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: -4px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: .5em 1em; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--txt); background: rgba(255,255,255,.06); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--txt); display: grid; place-items: center; transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--m); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--m); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--txt); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.halftone {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hero h1 .grad { display: inline-block; padding-bottom: .08em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.ink { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen; filter: blur(2px); opacity: .85; animation: float 9s ease-in-out infinite; }
.ink-c { background: var(--c); top: 6%; left: 4%; }
.ink-m { background: var(--m); top: 6%; right: 4%; animation-delay: -3s; }
.ink-y { background: var(--y); bottom: 4%; left: 21%; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(3%, -4%) scale(1.04); } }
.hero-logo {
  position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1;
  display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  transform: translate(-50%, -50%); transition: transform .5s;
}
.hero-logo img { width: 76%; height: auto; }
.hero-art:hover .hero-logo { transform: translate(-50%, -50%) scale(1.04); }
.reg { position: absolute; width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; background: rgba(255,255,255,.5); }
.reg::before { left: 50%; top: -10px; bottom: -10px; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: -10px; right: -10px; height: 1.5px; transform: translateY(-50%); }
.reg-tl { top: 0; left: 0; } .reg-br { bottom: 0; right: 0; }
.swatches { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(255,255,255,.3); }
.swatches .c { background: var(--c); } .swatches .m { background: var(--m); } .swatches .y { background: var(--y); } .swatches .k { background: #000; }

/* ----- Ticker ----- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font-weight: 700; font-size: 1.05rem; white-space: nowrap; color: var(--muted); display: flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--m); }
.ticker span:nth-child(3n+1)::after { background: var(--c); }
.ticker span:nth-child(3n+2)::after { background: var(--y); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ----- Secciones ----- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-head a { color: var(--c); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }
.service h3 { font-size: 1.15rem; margin-top: 18px; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-ico, .c-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.service-ico svg, .c-ico svg { width: 26px; height: 26px; }
.c0 { background: rgba(116,177,224,.14); color: var(--c); }
.c1 { background: rgba(185,35,126,.14); color: #e15aa9; }
.c2 { background: rgba(247,235,72,.13); color: var(--y); }

/* Portafolio */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-ig { display: block; }
.g-ig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent 55%); opacity: 0; transition: opacity .3s; }
.g-ig:hover::after, .g-ig:focus-visible::after { opacity: 1; }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; color: #fff; font-size: .85rem; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.g-ig:hover .g-cap, .g-ig:focus-visible .g-cap { opacity: 1; transform: none; }
.g-badge { position: absolute; top: 12px; right: 12px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.g-badge svg { width: 22px; height: 22px; }
.gallery-cta { text-align: center; margin-top: 32px; }
@media (hover: none) { .g-cap { display: none; } }
.g-ph { display: flex; align-items: flex-end; padding: 22px; border: 1px solid var(--line); }
.g-ph::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(currentColor 1.4px, transparent 1.8px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); }
.g-ph.c { color: var(--c); } .g-ph.m { color: var(--m); } .g-ph.y { color: var(--y); }
.g-ph span { position: relative; color: var(--txt); font-weight: 700; font-size: 1.15rem; }

/* Pedidos */
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--muted); }
.steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #111; font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 500; font-size: .9rem;
}
.filters button:hover { color: var(--txt); border-color: rgba(255,255,255,.3); }
.filters button[aria-selected="true"] { background: var(--txt); color: var(--k); border-color: var(--txt); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); box-shadow: var(--shadow); }
.p-img { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 0; padding: 0; width: 100%; display: block; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .p-img img { transform: scale(1.05); }
.p-img .noimg { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg-2); }
.p-img .noimg img { width: 30%; height: auto; opacity: .5; }
.p-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 4px; }
.p-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.p-desc { color: var(--muted); font-size: .9rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-price { font-weight: 700; }
.p-price small { font-weight: 500; color: var(--muted); font-size: .78rem; margin-right: 3px; }
.p-price.quote { color: var(--muted); font-weight: 500; font-size: .9rem; }
.p-add { padding: .6em 1.1em; font-size: .88rem; }
.loading, .empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty a { color: var(--c); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-txt h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.about-txt p { color: var(--muted); }
.about-txt .btn { margin-top: 10px; }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.process li { display: flex; gap: 20px; align-items: flex-start; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.process span { font-size: 1.6rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 44px; }
.process h3 { font-size: 1.05rem; margin-bottom: 4px; }
.process p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .3s, transform .3s; }
.c-card:hover { border-color: rgba(255,255,255,.25); transform: translateX(4px); }
.c-card small { display: block; color: var(--muted); font-size: .8rem; }
.c-card > span:last-child { font-weight: 600; overflow-wrap: anywhere; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0; position: relative; }
.foot::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--grad); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot p { margin: 0; color: var(--muted); font-size: .9rem; }
.to-top { color: var(--muted); font-size: .9rem; text-decoration: none; }
.to-top:hover { color: var(--txt); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ----- Modal producto ----- */
.modal, .drawer { position: fixed; inset: 0; z-index: 100; }
.modal-bg, .drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box {
  position: relative; width: min(940px, 100% - 32px); max-height: calc(100% - 48px); margin: 24px auto; top: 50%; transform: translateY(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; animation: pop .3s;
}
@keyframes pop { from { opacity: 0; transform: translateY(-46%) scale(.97); } }
.x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.m-gallery { background: #fff; display: flex; flex-direction: column; }
.m-main { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.m-main img { width: 100%; height: 100%; object-fit: contain; }
.m-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #f3f3f6; }
.m-thumbs:empty { display: none; }
.m-thumbs button { flex: 0 0 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.m-thumbs button.on { border-color: var(--m); }
.m-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.m-info { padding: 34px 30px; }
.m-cat { color: var(--c); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.m-info h3 { font-size: 1.6rem; }
.m-price { font-size: 1.15rem; font-weight: 700; }
.m-desc { color: var(--muted); white-space: pre-line; font-size: .95rem; }
.m-form, .d-form { display: grid; gap: 14px; margin-top: 20px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: .8em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--txt); font: inherit; font-size: .95rem; transition: border-color .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--c); }
input.invalid { border-color: var(--m); }
textarea { resize: vertical; }
.qty { display: flex; align-items: stretch; width: max-content; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; border: 0; background: var(--bg-2); color: var(--txt); font-size: 1.2rem; }
.qty button:hover { background: rgba(255,255,255,.08); }
.qty input { width: 80px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 32px; font-size: 1rem; }
.qty.sm input { width: 52px; padding: .4em; font-size: .9rem; }

/* ----- Drawer carrito ----- */
.drawer-box {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; animation: slide .3s;
}
@keyframes slide { from { transform: translateX(100%); } }
.d-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.d-head h3 { margin: 0; font-size: 1.25rem; }
.d-head .x { position: static; background: rgba(255,255,255,.06); }
.d-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.d-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.d-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.d-empty .btn { margin-top: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 64px; height: 64px; border-radius: 12px; background: #fff; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line h4 { font-size: .98rem; margin: 0 0 8px; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line textarea { margin-top: 10px; font-size: .85rem; padding: .6em .8em; }
.rm { background: none; border: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; padding: 4px; }
.rm:hover { color: var(--m); }
.back { background: none; border: 0; color: var(--muted); padding: 0; margin-bottom: 10px; font-size: .9rem; }
.back:hover { color: var(--txt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: rgba(185,35,126,.12); border: 1px solid rgba(185,35,126,.4); color: #f09acb; border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin: 0; }
.fine { color: var(--muted); font-size: .8rem; text-align: center; margin: 0; }
.d-done { text-align: center; padding-top: 60px; display: flex; flex-direction: column; gap: 12px; }
.done-ico { flex: 0 0 auto; width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #111; background: var(--grad); }
.d-done h4 { font-size: 1.5rem; margin: 0; }
.d-done p { color: var(--muted); }

/* Lightbox + toast */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .35s, visibility 0s .35s;
  background: var(--txt); color: var(--k); font-weight: 600; font-size: .92rem; padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s; }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .hero-in, .about, .contact { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; order: -1; }
  .hero { padding-top: 100px; min-height: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .modal-box { grid-template-columns: 1fr; top: 0; transform: none; margin: 16px auto; max-height: calc(100% - 32px); }
  @keyframes pop { from { opacity: 0; transform: scale(.97); } }
  .m-main { aspect-ratio: 4 / 3; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: rgba(13,13,18,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - 90px)); visibility: hidden; transition: transform .35s, visibility 0s .35s; z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .35s; }
  .nav a { padding: .85em 1em; font-size: 1.05rem; }
  .top { background: rgba(13,13,18,.85); backdrop-filter: blur(14px); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-ph { padding: 14px; } .g-ph span { font-size: .95rem; }
  .service { padding: 22px; }
  .steps li { font-size: .82rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .m-info { padding: 24px 20px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
