/* Tipografía de la marca: Monument Extended (Pangram Pangram) */
@font-face { font-family: "Monument Extended"; src: url("../fonts/MonumentExtended-Ultrabold.otf") format("opentype"); font-weight: 800 900; font-style: normal; font-display: swap; }
/* =========================================================
   Ian A. Ponce — Portafolio
   Rojo y blanco, toques de negro y café.
   ========================================================= */
:root {
  --red: #C8202B;
  --red-d: #A3151F;
  --ink: #1D1A19;
  --ink-2: #2A2624;
  --paper: #FFFFFF;
  --cream: #F7F2E9;
  --brown: #6B4430;
  --brown-l: #B08A6A;
  --line: rgba(29, 26, 25, .12);
  --radius: 22px;
  --pad: clamp(18px, 4vw, 56px);
  --display: "Archivo", system-ui, sans-serif;
  /* Tipografía de la marca (solo títulos principales). Para cambiarla, edita esta línea. */
  --brand: "Monument Extended", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(16px, 1.05vw, 18px)/1.55 var(--body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Tipografía ---------- */
.giant {
  font: 900 clamp(48px, 13vw, 260px)/.92 var(--brand); font-stretch: normal;
  letter-spacing: -.02em; margin: 0; color: var(--red); text-transform: none;
  overflow-wrap: anywhere;
}
.h2 { font: 850 clamp(34px, 5.6vw, 84px)/.95 var(--display); font-stretch: 125%; letter-spacing: -.035em; margin: 0 0 .35em; }
.h3 { font: 800 clamp(18px, 2vw, 26px)/1.15 var(--display); font-stretch: 112%; letter-spacing: -.01em; margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 750 15px/1 var(--display); font-stretch: 112%; text-decoration: none; letter-spacing: .01em;
  transition: transform .2s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-light { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--pad);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font: 650 15px/1 var(--display); font-stretch: 110%;
  padding: 10px 14px; border-radius: 999px; transition: background .2s;
}
.nav-links a:hover { background: var(--cream); }
.nav-cta { min-height: 42px; padding: 10px 20px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); position: relative; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 19px; } .nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: var(--nav-h) 0 auto; z-index: 49; background: #fff; padding: 12px var(--pad) 24px;
  display: grid; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0,0,0,.3);
}
.menu a:not(.btn) { font: 800 28px/1.2 var(--display); font-stretch: 120%; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; }

/* ---------- Secciones que se apilan (escritorio) ---------- */
.stack { position: relative; background: var(--paper); }
@media (min-width: 900px) and (min-height: 650px) {
  .stack { position: sticky; top: 0; }
  .hero.stack { z-index: 1; } .phrase.stack { z-index: 2; } .about { z-index: 3; }
  .phrase, .about { box-shadow: 0 -30px 60px -30px rgba(0,0,0,.25); border-radius: 36px 36px 0 0; }
  .about.stack { position: relative; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--nav-h) + 3vh) 0 4vh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-inner { padding: 0 var(--pad); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1.4vh; font: 700 clamp(12px, 1vw, 14px)/1.2 var(--display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .08em; }
.kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,32,43,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(200,32,43,0); } }
.hero .giant { margin-left: -.04em; }
.hero-row { display: grid; grid-template-columns: auto minmax(0, 520px); justify-content: space-between; align-items: end; gap: 24px; margin-top: 2vh; }
.hero-name { margin: 0; font: 900 clamp(22px, 2.6vw, 40px)/1.05 var(--brand); letter-spacing: 0; }
.hero-name small { display: block; margin-top: 10px; font: 500 14px/1.3 var(--body); font-stretch: 100%; letter-spacing: 0; color: var(--brown); }
.hero-text { margin: 0; color: #4a4340; }

/* Carrusel estilo Bloom: las fotos se achican de derecha a izquierda */
.carousel { position: relative; margin-top: 3vh; overflow: hidden; height: clamp(260px, 44vh, 470px); touch-action: pan-y; cursor: grab; user-select: none; }
.carousel:active { cursor: grabbing; }
.carousel-track { position: absolute; inset: 0; }
.cslide { position: absolute; left: 0; bottom: 0; margin: 0; width: 200px; height: 250px; overflow: hidden; border-radius: 18px; background: var(--cream); will-change: transform, width, height; }
.cslide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.cslide.ph { display: grid; place-items: center; }
.cslide.ph img { width: 50%; height: auto; object-fit: contain; opacity: .9; }
.ph-0 { background: var(--red); } .ph-0 img { filter: invert(1); }
.ph-1 { background: var(--cream); }
.ph-2 { background: var(--ink); } .ph-2 img { filter: invert(1); }
.ph-3 { background: var(--brown); } .ph-3 img { filter: invert(1); }

/* ---------- Frase ---------- */
.phrase { min-height: 100svh; display: grid; place-items: center; padding: 14vh var(--pad); background: var(--cream); }
.phrase-text { margin: 0; max-width: 1300px; font: 800 clamp(30px, 5.2vw, 82px)/1.08 var(--display); font-stretch: 118%; letter-spacing: -.03em; text-align: center; }
.pencil { position: relative; white-space: nowrap; color: var(--red); }
.pencil svg { position: absolute; left: -3%; bottom: -.16em; width: 106%; height: .32em; overflow: visible; }
.pencil path { fill: none; stroke: var(--brown); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1); }
.pencil path { stroke-dasharray: 400; stroke-dashoffset: 400; }
.phrase-text.is-in .pencil path { stroke-dashoffset: 0; }
.phrase-text.is-in .pencil:nth-of-type(2) path { transition-delay: .35s; }
.phrase-text.is-in .pencil:nth-of-type(3) path { transition-delay: .7s; }

/* ---------- Sobre mí y servicios ---------- */
.about { background: var(--ink); color: #fff; padding: 14vh var(--pad) 10vh; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; max-width: 1400px; margin: 0 auto; }
.about-photo { position: relative; margin: 0; transform: rotate(-2.5deg); }
.about-photo img, .about-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 10px solid #fff; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.about-ph { background: var(--cream); display: grid; place-items: center; }
.about-ph img { width: 70%; height: auto; aspect-ratio: auto; border: 0; box-shadow: none; }
.tape { position: absolute; top: -16px; left: 50%; width: 120px; height: 34px; transform: translateX(-50%) rotate(4deg); background: rgba(176,138,106,.85); }
.about-copy p { color: #e8e1d9; max-width: 60ch; }
.about-copy .h2 { color: #fff; }
.services { max-width: 1400px; margin: 12vh auto 0; display: grid; gap: 10px; }
.service-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 850 clamp(24px, 4.4vw, 64px)/1.08 var(--display); font-stretch: 125%; letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.service-group { color: var(--red); }
.service-items { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; color: var(--cream); }
.service-items i { font-style: normal; color: rgba(255,255,255,.35); }
.service-items a { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 4px no-repeat; transition: background-size .35s; }
.service-items a:hover { background-size: 100% 4px; }

/* Rueda de cápsulas */
.wheel { margin: 10vh calc(var(--pad) * -1) 0; overflow: hidden; transform: rotate(-3deg); }
.wheel-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.capsule { flex: none; padding: 14px 26px; border-radius: 999px; font: 800 clamp(16px, 2vw, 24px)/1 var(--display); font-stretch: 118%; white-space: nowrap; }
.capsule.c0 { background: var(--red); color: #fff; } .capsule.c1 { background: #fff; color: var(--ink); }
.capsule.c2 { background: var(--brown); color: #fff; } .capsule.c3 { border: 2px solid rgba(255,255,255,.5); color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mejores trabajos (videos que avanzan con el scroll) ---------- */
.reel { position: relative; z-index: 4; background: var(--red); color: #fff; }
.reel-sticky { padding: 10vh 0; overflow: hidden; }
.reel-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 var(--pad) 4vh; }
.reel-head .h2 { margin: 0; }
.reel-head p { margin: 0; font: 700 14px/1 var(--display); font-stretch: 120%; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.reel-track { display: flex; gap: 18px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-card { position: relative; flex: 0 0 auto; height: min(62vh, 600px); width: auto; max-width: 86vw; border-radius: var(--radius); overflow: hidden; padding: 0; border: 0; background: var(--ink); scroll-snap-align: start; text-align: left; }
.reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-label { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: grid; gap: 2px; }
.reel-label b { font: 800 18px/1.15 var(--display); font-stretch: 112%; }
.reel-label small { opacity: .8; font-size: 13px; }
.play { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); }
.play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid var(--red); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@media (min-width: 900px) {
  .reel.is-scrub { height: var(--reel-h, 250vh); }
  .reel.is-scrub .reel-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .reel.is-scrub .reel-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
}

/* ---------- Galería ---------- */
.work { position: relative; z-index: 4; background: var(--paper); padding: 14vh var(--pad) 10vh; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 4vh; }
.work-head p { margin: 0 0 .6em; color: var(--brown); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 9px 16px;
  font: 700 14px/1 var(--display); font-stretch: 110%; display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s;
}
.chip small { font-weight: 600; opacity: .55; }
.chip:hover { background: var(--cream); }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.chip.is-on small { opacity: .85; }
.chip-group { font: 800 12px/1 var(--display); font-stretch: 120%; text-transform: uppercase; letter-spacing: .1em; color: var(--brown); margin: 0 2px 0 12px; }
.type-toggle { display: inline-flex; margin: 18px 0 28px; padding: 4px; border-radius: 999px; background: var(--cream); }
.type-toggle button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 650 14px/1 var(--display); }
.type-toggle .is-on { background: var(--ink); color: #fff; }

.grid { columns: 4 240px; column-gap: 14px; }
.tile {
  position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--cream); break-inside: avoid; animation: tilein .5s ease both;
}
.tile { max-height: 85vh; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .play { width: 40px; height: 40px; top: 12px; right: 12px; }
.tile .play::after { left: 15px; top: 12px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
.tile-cap { position: absolute; inset: auto 0 0; padding: 34px 14px 12px; color: #fff; text-align: left; font: 700 14px/1.2 var(--display); background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(6px); transition: .3s; display: grid; gap: 2px; }
.tile-cap small { font-weight: 500; opacity: .8; font-size: 12px; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; } }
@keyframes tilein { from { opacity: 0; transform: translateY(14px); } }
.empty { text-align: center; padding: 8vh 0; color: var(--brown); font: 500 18px/1.4 var(--body); }
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- Marcas ---------- */
.brands { position: relative; z-index: 4; background: var(--cream); padding: 9vh 0; text-align: center; }
.brands .h3 { padding: 0 var(--pad); margin-bottom: 5vh; }
.brands-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-list { display: flex; gap: clamp(28px, 5vw, 70px); margin: 0; padding: 0 clamp(14px, 2.5vw, 35px); list-style: none; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 110px; }
.brand img { height: 64px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; transition: .3s; }
.brand:hover img { filter: none; opacity: 1; }
.brand span { font: 700 13px/1.2 var(--display); font-stretch: 110%; color: var(--brown); }
.brand-initial { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 900 28px/1 var(--display) !important; }

/* ---------- Paquetes ---------- */
.pricing { position: relative; z-index: 4; background: var(--paper); padding: 14vh var(--pad); }
.pricing-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 5vh; }
.pricing-head p { margin: 0 0 .6em; max-width: 46ch; color: var(--brown); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 26px; border-radius: 28px; border: 2px solid var(--ink); background: #fff; }
.plan h3 { margin: 0; font: 850 26px/1.05 var(--display); font-stretch: 118%; letter-spacing: -.02em; }
.plan-desc { margin: 0; color: #5a524e; }
.plan.is-hot { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-10px); box-shadow: 0 30px 50px -25px rgba(200,32,43,.7); }
.plan.is-hot .plan-desc, .plan.is-hot .feat li { color: #ffe9ea; }
.plan-custom { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-custom .plan-desc { color: #ddd4cc; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.price s { opacity: .55; font: 700 20px/1 var(--display); }
.amount { font: 900 clamp(40px, 4vw, 56px)/1 var(--display); font-stretch: 118%; letter-spacing: -.03em; }
.amount-sm { font-size: clamp(28px, 2.6vw, 36px); }
.per { font-size: 14px; opacity: .8; }
.until { margin: -6px 0 0; font: 700 13px/1.3 var(--display); color: var(--red); }
.plan.is-hot .until { color: #fff; }
.feat { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; flex: 1; }
.feat li { position: relative; padding-left: 26px; color: #3b3532; }
.feat li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.plan.is-hot .feat li::before { border-color: #fff; }
.plan .btn { margin-top: auto; }
.badge { position: absolute; top: -13px; right: 18px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 12px/1 var(--display); font-stretch: 112%; transform: rotate(4deg); }
.plan.is-hot .badge { background: #fff; color: var(--red); }
.badge-sale { background: var(--red); color: #fff; animation: wiggle 2.4s ease-in-out infinite; }
.plan.is-hot .badge-sale { background: var(--ink); color: #fff; }
.badge-brown { background: var(--brown); }
@keyframes wiggle { 50% { transform: rotate(-3deg) scale(1.06); } }

/* ---------- Contacto ---------- */
.contact { position: relative; z-index: 4; background: var(--red); color: #fff; padding: 14vh var(--pad) 12vh; text-align: center; }
.giant-light { color: #fff; font-size: clamp(30px, 7.4vw, 140px); line-height: 1.04; }
.contact-sub { max-width: 52ch; margin: 3vh auto 5vh; font-size: clamp(17px, 1.4vw, 21px); color: #ffe9ea; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 14px; }
.clink { display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 16px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s; }
.clink:hover { transform: translateY(-3px) rotate(-1deg); }
.clink svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--red); fill: #fff; flex: none; }
.clink span { display: grid; text-align: left; font: 750 16px/1.2 var(--display); font-stretch: 105%; word-break: break-all; }
.clink small { font: 600 12px/1.2 var(--body); color: var(--brown); text-transform: uppercase; letter-spacing: .08em; }
.contact-loc { margin: 5vh 0 0; font-weight: 600; opacity: .9; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 4; background: var(--ink); color: #fff; overflow: hidden; }
.footer-marquee { padding: 6vh 0 3vh; overflow: hidden; }
.footer-track { display: flex; align-items: center; gap: 4vw; width: max-content; animation: marquee 30s linear infinite; }
.footer-track span { font: 900 clamp(48px, 9vw, 160px)/1.1 var(--brand); letter-spacing: 0; white-space: nowrap; }
.footer-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 2px var(--red); }
.footer-track img { height: clamp(50px, 8vw, 120px); width: auto; filter: invert(1); }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #cfc6be; }
.footer-bar a { color: #fff; font-weight: 700; text-decoration: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(200,32,43,.7); transition: transform .2s, opacity .3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0E0C0B; display: flex; flex-direction: column; animation: fade .25s; overscroll-behavior: contain; }
@keyframes fade { from { opacity: 0; } }
.lb-media { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; margin: 64px 0 0; }
.lb-zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.lb-zoom img, .lb-zoom video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.lb-media.is-zoomed { cursor: grab; } .lb-media.is-panning { cursor: grabbing; }
.lb-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #fff; }
.lb-cap { margin: 0; min-width: 0; font: 700 15px/1.3 var(--display); }
.lb-cap small { display: block; font-weight: 500; color: var(--brown-l); margin-top: 2px; }
.lb-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lb-tools output { min-width: 52px; text-align: center; font: 700 13px/1 var(--display); color: #ddd; }
.lb-btn, .lb-nav, .lb-close { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover, .lb-nav:hover, .lb-close:hover { background: var(--red); }
.lb-close { position: absolute; top: 10px; right: 12px; z-index: 3; font-size: 30px; }
.lb-count { position: absolute; top: 22px; left: 18px; z-index: 3; color: #cfc6be; font: 700 13px/1 var(--display); }
.lb-nav { position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; font-size: 32px; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lightbox.is-zoomed .lb-nav { opacity: .25; }
.lb-nav-m { display: none; }
.lb-hint { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; pointer-events: none; transition: opacity .6s; white-space: nowrap; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 22px); }
  .hero-row { grid-template-columns: 1fr; }
  .carousel { height: 300px; margin-top: 28px; }
  .lb-nav { display: none; }
  .lb-nav-m { display: grid; }
  .lb-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .lb-cap { text-align: center; }
  .lb-tools { justify-content: space-between; }
  .lb-nav-m[hidden] { display: none; }
  .lb-media { margin-top: 58px; }
  .lb-tools output { display: none; }
  .reel-card { height: 62svh; }
  .phrase { min-height: 0; padding: 12vh var(--pad); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .services { margin-top: 8vh; }
  .grid { columns: 2 140px; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .plan.is-hot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .contact-links { flex-direction: column; } .clink { width: 100%; max-width: 360px; } }
