/* ==========================================================================
   Álvaro Solares · Portafolio
   Paleta: Preto #060808 · Branco #FFFFFF · Laranja #DD6211 · Laranja fogo #B92717 · Cinza queimado #7B7673
   ========================================================================== */
:root {
  --preto: #060808;
  --preto-2: #0d1010;
  --preto-3: #151918;
  --branco: #ffffff;
  --laranja: #dd6211;
  --fogo: #b92717;
  --cinza: #7b7673;
  --cinza-claro: #a39e9a;          /* cinza queimado aclarado: texto pequeño con contraste AA sobre preto */
  --grad: linear-gradient(100deg, var(--laranja), var(--fogo));
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--preto); color: var(--branco);
  font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden;
}
body.menu-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--laranja); color: #000; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

/* grano de película */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--h); transition: background .35s, backdrop-filter .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(6,8,8,.78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: rgba(123,118,115,.28); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: .12em; }
.brand b { color: var(--laranja); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #e9e6e3; position: relative; padding: .4rem 0; }
.nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-cta { border: 1px solid var(--laranja); padding: .55rem 1.2rem !important; border-radius: 99px; transition: background .25s, box-shadow .25s; }
.nav-cta:hover { background: var(--laranja); color: #000 !important; box-shadow: 0 0 30px rgba(221,98,17,.5); }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 11px; width: 24px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; --mx: .5; --my: .5; }
.hero-bg { position: absolute; inset: 4.2rem 0 0 30%; z-index: -4;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.hero-bg picture { display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 8% 40%; filter: saturate(.8) contrast(1.1) brightness(.75); animation: kb 26s ease-in-out infinite alternate; transform-origin: 40% 50%; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
/* luz cálida de estudio (light leak) */
.hero-light { position: absolute; inset: 0; z-index: -3; mix-blend-mode: screen; pointer-events: none; }
.hero-light i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; will-change: transform; }
.hero-light .l1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -10vmax; background: radial-gradient(circle, var(--laranja) 0%, transparent 65%); animation: float1 14s ease-in-out infinite alternate; }
.hero-light .l2 { width: 48vmax; height: 48vmax; right: -14vmax; bottom: -20vmax; background: radial-gradient(circle, var(--fogo) 0%, transparent 65%); animation: float2 17s ease-in-out infinite alternate; opacity: .7; }
.hero-light .l3 { width: 26vmax; height: 26vmax; right: 18%; top: 8%; background: radial-gradient(circle, rgba(221,98,17,.9) 0%, transparent 65%); animation: float3 11s ease-in-out infinite alternate; opacity: .4; transform: translate(calc((var(--mx) - .5) * -60px), calc((var(--my) - .5) * -60px)); }
@keyframes float1 { to { transform: translate(14vmax, 8vmax) scale(1.2); } }
@keyframes float2 { to { transform: translate(-16vmax, -9vmax) scale(1.15); } }
@keyframes float3 { to { transform: translate(-8vmax, 10vmax) scale(.85); } }
.hero-lens { position: absolute; z-index: -2; right: -8vmax; top: 50%; width: min(60vmax, 900px); translate: 0 -50%; opacity: .32; animation: spin 90s linear infinite; filter: drop-shadow(0 0 24px rgba(221,98,17,.6)); }
@keyframes spin { to { rotate: 360deg; } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,8,8,.9) 0%, rgba(6,8,8,.55) 36%, rgba(6,8,8,0) 70%),
    linear-gradient(0deg, var(--preto) 0%, rgba(6,8,8,0) 30%),
    linear-gradient(180deg, rgba(6,8,8,.95) 0%, rgba(6,8,8,.6) 9%, rgba(6,8,8,0) 24%); }
.hero-in { padding-top: var(--h); }
.eyebrow { font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--laranja); font-weight: 600; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .9rem; }
.eyebrow::before { content: ''; width: 38px; height: 2px; background: var(--grad); }
.hero h1 { font-size: clamp(4.2rem, 13.5vw, 12rem); font-weight: 800; line-height: .84; letter-spacing: .005em; display: flex; flex-direction: column; margin-bottom: 1.6rem; }
.hero h1 span:first-child { color: var(--branco); }
.hero h1 .grad { filter: drop-shadow(0 0 40px rgba(221,98,17,.35)); }
.tagline { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin-bottom: .8rem; }
.lead { max-width: 34rem; color: #d9d5d1; font-size: 1.1rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn { display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.9rem; border-radius: 99px; font: 600 .86rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -10px rgba(221,98,17,.7); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 50px -8px rgba(221,98,17,.9); }
.btn-ghost { border-color: rgba(255,255,255,.4); background: rgba(6,8,8,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--laranja); color: var(--laranja); transform: translateY(-3px); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-decoration: none; font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: var(--cinza-claro); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--laranja), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 1.8s ease-in infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(123,118,115,.3); background: var(--preto-2); padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--cinza); padding-inline: 1.6rem; display: inline-flex; align-items: center; gap: 3.2rem; white-space: nowrap; }
.marquee-track span::after { content: '✦'; font-size: .6em; color: var(--laranja); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section-head { margin-bottom: 2.6rem; }
.section h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; }
.section-sub { color: var(--cinza-claro); margin-top: 1.1rem; max-width: 36rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2) { transition-delay: .1s; } .cards .reveal:nth-child(3n) { transition-delay: .2s; }
.hero-in .reveal:nth-child(2) { transition-delay: .12s; } .hero-in .reveal:nth-child(3) { transition-delay: .24s; } .hero-in .reveal:nth-child(4) { transition-delay: .36s; } .hero-in .reveal:nth-child(5) { transition-delay: .48s; }
noscript ~ * , .noscript { color: var(--cinza-claro); }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.chip { font: 500 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #e9e6e3; background: transparent; border: 1px solid rgba(123,118,115,.55); border-radius: 99px; padding: .8rem 1.3rem; cursor: pointer; display: inline-flex; gap: .6rem; align-items: center; transition: all .3s var(--ease); }
.chip-n { font-size: .68rem; color: var(--cinza-claro); transition: color .3s; }
.chip:hover { border-color: var(--laranja); color: #fff; transform: translateY(-2px); }
.chip[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 30px -8px rgba(221,98,17,.7); }
.chip[aria-selected="true"] .chip-n { color: rgba(255,255,255,.85); }

/* ---------- Galería masonry ---------- */
.gallery { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: 1.1rem; }
.tile { break-inside: avoid; margin: 0 0 1.1rem; transition: opacity .3s ease, transform .3s ease; }
.tile[hidden] { display: none; }
.tile:not(.is-out) { animation: tileIn .65s var(--ease) both; animation-delay: var(--d, 0ms); }
.tile.is-out { opacity: 0; transform: scale(.94) translateY(10px); }
@keyframes tileIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.tile-btn { all: unset; box-sizing: border-box; display: block; width: 100%; position: relative; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--preto-3); isolation: isolate; }
.tile-btn:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; }
.tile-media { display: block; aspect-ratio: 4/3; background: linear-gradient(110deg, #101413 30%, #1a1f1d 50%, #101413 70%) 0 0/200% 100%; animation: shimmer 1.4s linear infinite; }
.tile-media:has(.is-loaded) { animation: none; background: var(--preto-3); }
@keyframes shimmer { to { background-position: -200% 0; } }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .9s var(--ease), filter .6s; }
.tile img.is-loaded { opacity: 1; }
.tile-btn::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(185,39,23,.78) 0%, rgba(221,98,17,.34) 35%, transparent 70%); opacity: 0; transition: opacity .45s; mix-blend-mode: multiply; }
.tile-btn::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 14px; box-shadow: inset 0 0 0 0 var(--laranja); transition: box-shadow .35s; pointer-events: none; }
.tile-cap { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 1.2rem 1.2rem 1rem; display: flex; justify-content: space-between; align-items: flex-end; transform: translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; background: linear-gradient(0deg, rgba(6,8,8,.7), transparent); }
.tile-cat { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.tile-ver { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.tile-ver i { font-style: normal; color: var(--laranja); display: inline-block; transition: transform .3s; }
.tile-btn:hover img, .tile-btn:focus-visible img { transform: scale(1.07); filter: saturate(1.15) contrast(1.05); }
.tile-btn:hover::before, .tile-btn:focus-visible::before { opacity: 1; }
.tile-btn:hover::after, .tile-btn:focus-visible::after { box-shadow: inset 0 0 0 2px var(--laranja); }
.tile-btn:hover .tile-cap, .tile-btn:focus-visible .tile-cap { transform: none; opacity: 1; }
.tile-btn:hover .tile-ver i { transform: translateX(5px); }
.tile.is-broken { display: none; }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; padding-top: 2.4rem; } .tile-ver { display: none; } .tile-cat { font-size: 1.15rem; } }

/* ---------- Sobre mí ---------- */
.about { background: radial-gradient(60% 70% at 15% 40%, rgba(185,39,23,.18), transparent 70%), var(--preto); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-photo { margin: 0; position: relative; aspect-ratio: 917 / 2000; max-width: 380px; width: 100%; }
.about-photo picture { display: block; width: 100%; height: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 18px; position: relative; z-index: 1; }
.about-frame { position: absolute; inset: 0; transform: translate(18px, 18px); border-radius: 18px; border: 2px solid var(--laranja); box-shadow: 0 0 60px -10px rgba(221,98,17,.55); }
.about-text p { color: #d4d0cc; max-width: 36rem; }
.about-text h2 { margin-bottom: .7rem; }
.about-role { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.55rem); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: #fff; margin: 0 0 1.4rem !important; }
.about-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin: 1.5rem 0 0; }
.chilazo-badge { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #fff; padding: .55rem 1rem .5rem; border-radius: 99px; border: 1px solid transparent; background: linear-gradient(var(--preto-2), var(--preto-2)) padding-box, var(--grad) border-box; box-shadow: 0 8px 30px -12px rgba(221,98,17,.7); }
.chilazo-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--laranja); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: .55rem; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(123,118,115,.5); color: #fff; text-decoration: none; font-size: .72rem; letter-spacing: .08em; font-weight: 600; transition: border-color .25s, background .25s, transform .25s, box-shadow .25s; }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social:hover, .social:focus-visible { border-color: var(--laranja); background: rgba(221,98,17,.15); transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(221,98,17,.8); }
.social-tiktok { width: auto; height: 42px; padding: 0 1rem 0 .85rem; border-radius: 99px; gap: .45rem; font-family: var(--body); font-size: .88rem; letter-spacing: .02em; font-weight: 500; }
.social-tiktok svg { width: 16px; height: 16px; flex-shrink: 0; }
.facts { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; gap: 2.6rem; flex-wrap: wrap; border-top: 1px solid rgba(123,118,115,.35); padding-top: 1.6rem; }
.facts strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--laranja); }
.facts span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cinza-claro); }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { position: relative; padding: 2.1rem 1.8rem 2rem; border-radius: 18px; background: linear-gradient(160deg, var(--preto-3), var(--preto-2)); border: 1px solid rgba(123,118,115,.28); overflow: hidden; transition: transform .45s var(--ease), border-color .35s, box-shadow .45s, opacity .9s var(--ease); }
.card::before { content: ''; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; background: radial-gradient(circle, rgba(221,98,17,.5), transparent 65%); opacity: 0; transition: opacity .5s; }
.card:hover { transform: translateY(-6px); border-color: var(--laranja); box-shadow: 0 24px 60px -24px rgba(221,98,17,.6); }
.card:hover::before { opacity: 1; }
.card svg { width: 42px; height: 42px; fill: none; stroke: var(--laranja); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.4rem; position: relative; }
.card h3 { font-size: 1.9rem; margin-bottom: .7rem; font-weight: 700; position: relative; }
.card p { color: var(--cinza-claro); margin: 0; font-size: .98rem; position: relative; }
.card.reveal.is-visible { transition-delay: 0s; }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(70% 80% at 85% 100%, rgba(221,98,17,.22), transparent 70%), radial-gradient(50% 60% at 0% 0%, rgba(185,39,23,.14), transparent 70%), var(--preto-2); border-top: 1px solid rgba(123,118,115,.25); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1.2rem; }
.btn-wa { background: #25d366; color: #04210f; box-shadow: 0 10px 40px -12px rgba(37,211,102,.6); }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 50px -10px rgba(37,211,102,.8); }
.line-link { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; padding: 1rem 0; border-bottom: 1px solid rgba(123,118,115,.4); font-size: 1.15rem; transition: color .25s, padding .3s var(--ease), border-color .3s; }
.line-link span { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cinza-claro); }
.line-link:hover { color: var(--laranja); padding-left: .6rem; border-color: var(--laranja); }
.form { display: grid; gap: 1.2rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 20px; background: rgba(6,8,8,.7); border: 1px solid rgba(123,118,115,.35); backdrop-filter: blur(8px); box-shadow: 0 30px 80px -40px rgba(221,98,17,.45); }
.field { display: grid; gap: .45rem; }
.field label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cinza-claro); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: #fff; background: var(--preto-3); border: 1px solid rgba(123,118,115,.5); border-radius: 12px; padding: .9rem 1rem; transition: border-color .25s, box-shadow .25s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--laranja) 50%), linear-gradient(135deg, var(--laranja) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(221,98,17,.3); }
.form .btn { justify-self: start; }
.form-nota { font-size: .85rem; color: var(--cinza-claro); margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(123,118,115,.3); padding: 2rem 0; font-size: .9rem; color: var(--cinza-claro); }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.socials-footer .social { width: 36px; height: 36px; font-size: .65rem; }
.footer p { margin: 0; } .footer a { text-decoration: none; transition: color .2s; } .footer a:hover { color: var(--laranja); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: radial-gradient(70% 70% at 50% 40%, rgba(40,20,10,.985), rgba(6,8,8,.995)); display: grid; grid-template-columns: 70px 1fr 70px; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .25s; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; }
.lb-count { font-family: var(--display); font-size: 1.4rem; letter-spacing: .2em; color: var(--cinza-claro); }
.lb-close, .lb-nav { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s; }
.lb-close:hover, .lb-nav:hover { background: var(--laranja); border-color: var(--laranja); }
.lb-nav { align-self: center; justify-self: center; font-size: 2rem; line-height: 1; padding-bottom: 5px; }
.lb-nav[hidden] { display: none; }
.lb-stage { position: relative; overflow: hidden; min-height: 0; grid-column: 2; grid-row: 2; }
.lb-prev { grid-column: 1; grid-row: 2; } .lb-next { grid-column: 3; grid-row: 2; }
.lb-slide { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .32s ease, transform .32s var(--ease); }
.lb-slide picture { display: contents; }
.lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 100px -20px rgba(221,98,17,.45); user-select: none; -webkit-user-drag: none; }
.lb-slide.from-right { animation: fromR .38s var(--ease); } .lb-slide.from-left { animation: fromL .38s var(--ease); }
@keyframes fromR { from { opacity: 0; transform: translateX(8%); } } @keyframes fromL { from { opacity: 0; transform: translateX(-8%); } }
.lb-slide.is-leaving { opacity: 0; transform: scale(.97); }
.lb-caption { grid-column: 1 / -1; text-align: center; margin: 0; padding: .9rem 1.2rem 1.4rem; color: var(--cinza-claro); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) { .gallery { column-count: 2; } .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 859px) {
  :root { --h: 66px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 0; background: rgba(6,8,8,.97); flex-direction: column; justify-content: center; gap: 1.6rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 110; background-image: radial-gradient(60% 40% at 80% 100%, rgba(221,98,17,.3), transparent 70%); }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-size: 2.6rem; letter-spacing: .1em; font-weight: 600; }
  .nav-cta { font-size: 1.6rem !important; margin-top: .6rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; margin-right: 18px; }
  .hero-lens { right: -35vmax; opacity: .22; }
  .hero-shade { background: linear-gradient(0deg, rgba(6,8,8,.92) 0%, rgba(6,8,8,.5) 55%, rgba(6,8,8,.38) 100%), linear-gradient(180deg, rgba(6,8,8,.7), transparent 25%); }
  .hero-bg { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-bg img { object-position: 36% 40%; }
}
@media (max-width: 600px) {
  .gallery { column-gap: .6rem; }
  .tile { margin-bottom: .6rem; }
  .tile-btn, .tile-btn::after { border-radius: 10px; }
  .cards { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-stage { grid-column: 1; padding-inline: .6rem; }
  .lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; background: rgba(6,8,8,.6); z-index: 2; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .hero h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .scroll-cue { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
