/* =========================================================
   MM CCTV — mm-seguridad.com
   Paleta tomada del logo: negro carbón, rojo señal, acero.
   ========================================================= */

:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --card: #15151b;
  --card-2: #1b1b22;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --txt: #f4f4f6;
  --muted: #a0a0ab;
  --red: #e01f26;
  --red-2: #ff3b41;
  --red-dim: rgba(224, 31, 38, .14);
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --wrap: 1180px;
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.hl { color: var(--red-2); }
.lead { color: #cfcfd6; font-size: 1.08rem; }

/* ---------------- botones ---------------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid var(--b);
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  background: transparent; color: var(--txt);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(224, 31, 38, .3); }
.btn--red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #06240f; font-weight: 700; box-shadow: 0 10px 26px rgba(37, 211, 102, .22); }
.btn--wa:hover { background: #2ee878; border-color: #2ee878; }
.btn--ghost { --b: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { --b: var(--red); background: var(--red-dim); }

/* ---------------- topbar ---------------- */
.topbar {
  background: #08080a;
  border-bottom: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
}
.topbar__in { display: flex; align-items: center; gap: 1.4rem; height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__cta { margin-left: auto; color: var(--txt); }
.topbar__cta strong { color: var(--wa); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 12, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-stuck { box-shadow: 0 12px 34px rgba(0, 0, 0, .5); background: rgba(8, 8, 10, .95); }
.nav__in { display: flex; align-items: center; gap: 1rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.brand__txt { font-family: var(--head); font-size: 1.5rem; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.brand__txt b { color: var(--red-2); }
.brand__txt small {
  display: block; font-family: var(--body); font-size: .63rem; font-weight: 500;
  letter-spacing: .16em; color: var(--muted); margin-top: 4px; text-transform: uppercase;
}

.nav__links { margin-left: auto; display: flex; align-items: center; gap: 1.55rem; }
.nav__links > a:not(.btn) { font-size: .93rem; font-weight: 500; color: #d4d4da; position: relative; padding: .3rem 0; }
.nav__links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .22s ease;
}
.nav__links > a:not(.btn):hover { color: #fff; }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__wa { padding: .6rem 1.15rem; }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--txt); margin: 5px 0; transition: .25s; }
.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; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 3.5rem; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: .55;
}
.hero__glow {
  position: absolute; top: -22%; right: -12%; width: 62vw; height: 62vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(224, 31, 38, .3) 0%, transparent 62%);
  filter: blur(24px); pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.35fr .85fr; gap: 3rem; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .38rem .95rem; font-size: .8rem; color: #d6d6dd;
  background: rgba(255, 255, 255, .03); margin-bottom: 1.4rem;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .18); }

.hero__copy .lead { max-width: 58ch; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero__marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.hero__marks li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.hero__marks .ico { color: var(--red-2); }

.hero__card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.hero__card h3 { margin: .35rem 0 1rem; font-size: 1.45rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 31, 38, .55); } 50% { box-shadow: 0 0 0 7px rgba(224, 31, 38, 0); } }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.quick__b {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--txt); border-radius: var(--radius-sm); padding: .75rem .7rem;
  font-size: .87rem; font-weight: 500; text-align: left; cursor: pointer; transition: .18s;
}
.quick__b:hover { border-color: var(--red); background: var(--red-dim); transform: translateY(-2px); }
.hero__card-foot { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); }

.stats {
  margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 1.4rem 1.2rem; text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: 2.3rem; color: var(--red-2); line-height: 1; }
.stat span { font-size: .84rem; color: var(--muted); }

/* ---------------- marcas ---------------- */
.brands { border-block: 1px solid var(--line); background: #08080a; padding: 1.1rem 0; }
.brands__in { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.brands__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.brands__list { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1.8rem; margin: 0; padding: 0; }
.brands__list li { font-family: var(--head); font-size: 1.22rem; letter-spacing: .05em; color: #8b8b96; text-transform: uppercase; transition: color .2s; }
.brands__list li:hover { color: #e6e6ec; }

/* ---------------- secciones ---------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.shead { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.shead--left { text-align: left; margin-inline: 0; }
.shead p { color: var(--muted); }
.kicker {
  display: inline-block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red-2); font-weight: 600; margin-bottom: .7rem;
}
.kicker::before { content: '// '; opacity: .6; }

/* ---------------- cards servicios ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; transition: .22s; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-dim); border: 1px solid rgba(224, 31, 38, .3); margin-bottom: 1.1rem;
}
.card__ico svg { width: 26px; height: 26px; fill: var(--red-2); }
.card > p { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .92rem; color: #ccccd4; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-right: 2px solid var(--red-2); border-bottom: 2px solid var(--red-2); transform: rotate(45deg) translateY(-2px);
}

.section__cta {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.4rem 1.6rem; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .02);
}
.section__cta p { margin: 0; color: #d0d0d8; }

/* ---------------- proceso ---------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.step__n {
  font-family: var(--head); font-size: 3rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(224, 31, 38, .55); display: block; margin-bottom: .5rem;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------------- trabajos ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #c8c8d0;
  border-radius: 999px; padding: .5rem 1.05rem; font-size: .86rem; cursor: pointer; transition: .18s;
}
.filter:hover { border-color: var(--line-2); color: #fff; }
.filter.is-on { background: var(--red); border-color: var(--red); color: #fff; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.3rem; }
.works__loading, .works__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2.5rem 0; }

.work {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .22s;
}
.work:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.work__media { position: relative; aspect-ratio: 4 / 3; background: #0e0e12; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; cursor: zoom-in; }
.work:hover .work__media img { transform: scale(1.05); }
.work__ph {
  width: 100%; height: 100%; display: grid; place-items: center; gap: .6rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(224, 31, 38, .18), transparent 62%),
    repeating-linear-gradient(45deg, #0f0f14 0 14px, #121218 14px 28px);
  color: #55555f; text-align: center; padding: 1rem;
}
.work__ph svg { width: 46px; height: 46px; fill: rgba(224, 31, 38, .45); }
.work__ph span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.work__count {
  position: absolute; right: .7rem; bottom: .7rem; background: rgba(0, 0, 0, .72);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .25rem .7rem; font-size: .76rem;
  display: inline-flex; align-items: center; gap: .35rem; backdrop-filter: blur(4px);
}
.work__tag {
  position: absolute; left: .7rem; top: .7rem; background: rgba(224, 31, 38, .92);
  border-radius: 999px; padding: .25rem .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
}
.work__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.work__body h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.work__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--muted); margin-bottom: .7rem; }
.work__meta span { display: inline-flex; align-items: center; gap: .32rem; }
.work__body p { color: var(--muted); font-size: .92rem; margin: 0; }
.work__thumbs { display: flex; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.work__thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; transition: .18s; }
.work__thumbs img:hover { border-color: var(--red); transform: translateY(-2px); }

/* ---------------- por qué ---------------- */
.why { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: start; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why__list li { background: var(--card); padding: 1.3rem 1.2rem; }
.why__list b { display: block; font-family: var(--head); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .3rem; }
.why__list span { font-size: .89rem; color: var(--muted); }

/* ---------------- testimonios ---------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.2rem; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; position: relative; }
.quote::after { content: '”'; position: absolute; right: 1rem; top: .1rem; font-size: 4.5rem; font-family: Georgia, serif; color: rgba(224, 31, 38, .14); line-height: 1; }
.stars { color: #ffb400; letter-spacing: .15em; font-size: .95rem; margin-bottom: .7rem; }
.quote blockquote { margin: 0 0 1.1rem; font-size: .96rem; color: #dcdce2; }
.quote figcaption b { display: block; font-size: .95rem; }
.quote figcaption span { font-size: .82rem; color: var(--muted); }
.disclaimer { text-align: center; margin-top: 1.6rem; font-size: .8rem; color: #6d6d78; }

/* ---------------- zonas ---------------- */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.zone { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.zone b { display: block; font-family: var(--head); font-size: 1.3rem; text-transform: uppercase; margin-bottom: .3rem; }
.zone span { font-size: .88rem; color: var(--muted); }

/* ---------------- faq ---------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.acc { display: grid; gap: .6rem; }
.acc__i { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; transition: border-color .2s; }
.acc__i[open] { border-color: rgba(224, 31, 38, .4); }
.acc__i summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600;
  font-size: .98rem; position: relative;
}
.acc__i summary::-webkit-details-marker { display: none; }
.acc__i summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--red-2); line-height: 1; transition: transform .2s;
}
.acc__i[open] summary::after { content: '−'; }
.acc__i p { margin: 0 0 1.1rem; color: var(--muted); font-size: .93rem; }

/* ---------------- cta ---------------- */
.cta { background: linear-gradient(120deg, #17070a 0%, #0b0b0d 55%), var(--bg); border-block: 1px solid var(--line); padding: 3.2rem 0; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta h2 { margin-bottom: .3rem; }
.cta p { margin: 0; color: var(--muted); }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------- contacto ---------------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.ci { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--red-dim); border: 1px solid rgba(224, 31, 38, .28); }
.ci svg { width: 20px; height: 20px; fill: var(--red-2); }
.contact__list b { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__list a, .contact__list div > span { font-size: 1.02rem; color: var(--txt); }
.contact__list a:hover { color: var(--red-2); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.form h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .9rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: .35rem; background: #0d0d11; border: 1px solid var(--line);
  color: var(--txt); border-radius: var(--radius-sm); padding: .75rem .85rem;
  font: inherit; font-size: .95rem; transition: border-color .18s, box-shadow .18s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 31, 38, .16);
}
.form input.is-bad, .form textarea.is-bad { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg { margin: .9rem 0 0; font-size: .9rem; min-height: 1.2em; }
.form__msg.ok { color: var(--wa); }
.form__msg.bad { color: var(--red-2); }
.form__note { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); }
.form__note a { color: var(--wa); text-decoration: underline; }

/* ---------------- footer ---------------- */
.foot { background: #08080a; border-top: 1px solid var(--line); padding-top: 3rem; }
.foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.foot__brand img { width: 62px; height: 62px; object-fit: contain; margin-bottom: .9rem; border-radius: 10px; }
.foot__brand p { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.foot__col h4 { font-size: 1rem; letter-spacing: .06em; margin-bottom: .9rem; }
.foot__col a, .foot__col span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.foot__col a:hover { color: var(--red-2); }
.foot__bar {
  border-top: 1px solid var(--line); padding: 1.1rem 0; display: flex;
  justify-content: space-between; align-items: center; font-size: .82rem; color: #6c6c76; flex-wrap: wrap; gap: .5rem;
}
.foot__admin { color: #4d4d57; }
.foot__admin:hover { color: var(--muted); }

/* ---------------- whatsapp flotante ---------------- */
.wafab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .38);
  transition: transform .2s;
}
.wafab svg { width: 30px; height: 30px; fill: #06240f; }
.wafab:hover { transform: scale(1.08); }

/* ---------------- lightbox ---------------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .93); display: grid; place-items: center; padding: 4vh 5vw; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb__fig img { max-width: 90vw; max-height: 82vh; width: auto; border-radius: 10px; margin-inline: auto; }
.lb__fig figcaption { color: var(--muted); font-size: .88rem; margin-top: .8rem; }
.lb__x { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-2); color: #fff; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb__nav:hover { background: var(--red); border-color: var(--red); }
.lb__prev { left: 14px; } .lb__next { right: 14px; }

/* ---------------- animación de entrada ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { order: 2; }
  .why, .faq, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__item--hide { display: none; }
  .nav__in { height: 64px; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #0c0c10; border-bottom: 1px solid var(--line);
    padding: .5rem 5vw 1.4rem; transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; }
  .nav__links > a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav__wa { margin-top: 1rem; }
  .burger { display: block; margin-left: auto; }
  .why__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 1.4rem; }
  .section__cta { flex-direction: column; align-items: flex-start; }
  .cta__in { flex-direction: column; align-items: flex-start; }
  .quick { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .wafab { width: 52px; height: 52px; bottom: 14px; right: 14px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .brand__txt { font-size: 1.3rem; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
}
