/* ============ TOKENS ============ */
:root {
  --yellow: #f5c518;
  --yellow-deep: #e0ac00;
  --ink: #1c1c1c;
  --ink-2: #2b2b2b;
  --text: #2d2d2d;
  --muted: #666;
  --line: #e7e4dc;
  --bg: #ffffff;
  --bg-alt: #f7f5ef;
  --pink: #ec2a8f;
  --orange: #f68b1f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .85rem/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--yellow); border-radius: 2px; }

.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 .08em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 197, 24, .35); }
.btn--primary:hover { background: var(--yellow-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: rgba(0, 0, 0, .08); }
.btn--whatsapp { background: #25d366; color: #fff; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; }
.brand__word { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--yellow); transition: width .2s;
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { width: 100%; }
.nav__cta { padding: 11px 20px; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; padding: 60px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 46%; height: 100%;
  background: var(--ink); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 40px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font: 800 2.6rem/1 var(--head); color: var(--ink); }
.hero__facts span { font-size: .9rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  position: relative; z-index: 1;
  border-radius: 200px 24px 24px 24px;
  aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.hero__swoosh {
  position: absolute; z-index: 0; inset: -22px auto auto -22px; width: 70%; height: 80%;
  background: var(--yellow); border-radius: 220px 30px 30px 30px;
}

/* ============ STRIP ============ */
.strip { background: var(--yellow); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.strip__item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.strip__item svg { width: 30px; height: 30px; flex: none; fill: var(--ink); }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #d6d6d6; }
.section--dark h2, .section--dark h3, .section--dark .eyebrow { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head p:last-child { color: var(--muted); font-size: 1.1rem; }

.tag {
  display: inline-block; font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow); padding: 7px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ============ LIFTS ============ */
.lifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lift {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lift__img { aspect-ratio: 4 / 3.6; overflow: hidden; display: grid; place-items: center; }
.lift__img img { height: 100%; width: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s; }
.lift:hover .lift__img img { transform: scale(1.05); }
.lift__img--pink { background: var(--pink); }
.lift__img--yellow { background: var(--yellow); }
.lift__img--orange { background: var(--orange); }
.lift__body { padding: 28px; }
.lift__body h3 small { font-size: .62em; font-weight: 600; color: var(--muted); }
.lift__body p { color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 6px 0; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z' fill='%231c1c1c'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ============ DOORS ============ */
.filters { display: flex; gap: 10px; margin: -24px 0 34px; flex-wrap: wrap; }
.filter {
  font: 600 .95rem/1 var(--body); padding: 11px 22px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s;
}
.filter.is-active, .filter:hover { background: var(--ink); color: var(--yellow); }

.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.door {
  margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .25s, box-shadow .25s, opacity .3s;
}
.door:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.door.is-hidden { display: none; }
.door img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.door figcaption {
  font: 700 1.15rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); padding: 16px 18px; border-top: 4px solid var(--yellow);
}

/* ============ SERVICES ============ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service {
  position: relative; padding: 34px 28px; border-radius: var(--radius);
  background: var(--bg-alt); border-bottom: 4px solid var(--yellow);
  transition: background .25s, transform .25s;
}
.service:hover { background: var(--ink); transform: translateY(-4px); }
.service:hover h3 { color: #fff; }
.service:hover p { color: #bbb; }
.service__num { font: 800 3rem/1 var(--head); color: var(--yellow); display: block; margin-bottom: 18px; }
.service p { color: var(--muted); margin: 0; transition: color .25s; }
.service h3 { transition: color .25s; }

/* ============ GENERATORS ============ */
.gen { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gen__media { background: #fff; border-radius: 24px; padding: 30px; }
.gen__sub { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow) !important; margin-top: 28px; }
.brands { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.brands li {
  border: 1px solid #444; border-radius: 999px; padding: 8px 16px; font-weight: 600; color: #fff; font-size: .95rem;
}

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about__copy p { color: var(--muted); font-size: 1.08rem; }
.about__ticks { margin-top: 22px; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 24px 120px 24px 24px; box-shadow: 0 0 0 10px var(--yellow), var(--shadow);
}

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 18px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--full { grid-column: 1 / -1; }
.gallery__item--full img { object-position: center 45%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery__item:hover img { transform: scale(1.06); opacity: .85; }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font: 700 1rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 999px;
}

/* ============ CTA ============ */
.cta { background: var(--yellow); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border: 40px solid rgba(0, 0, 0, .07); transform: rotate(45deg); border-radius: 30px;
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 60px 0; position: relative; z-index: 1; }
.cta h2 { margin: 0; max-width: 18em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__info > p { color: var(--muted); }
.info { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.info li { display: flex; gap: 16px; align-items: flex-start; }
.info svg {
  width: 46px; height: 46px; flex: none; padding: 12px; border-radius: 12px;
  background: var(--yellow); fill: var(--ink);
}
.info strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info address { font-style: normal; }
.info a { display: block; text-decoration: none; font-weight: 600; word-break: break-word; }
.info a:hover { color: var(--yellow-deep); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.form {
  background: var(--bg-alt); border-radius: 20px; padding: 38px; align-self: start;
  border-top: 6px solid var(--yellow); display: grid; gap: 16px;
}
.form h3 { margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--text); width: 100%;
  padding: 12px 14px; border: 1.5px solid #d9d5ca; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 197, 24, .45);
}
.form textarea { resize: vertical; }
.form__error { color: #b42318; margin: 0; font-weight: 500; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: #121212; color: #aaa; padding: 60px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid #2c2c2c; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font: 800 1.6rem/1 var(--head); color: #fff; text-transform: uppercase; margin: 0 0 6px; }
.footer__name span { color: var(--yellow); }
.footer__tag { margin: 0; font-size: .85rem; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a, .footer__contact a { text-decoration: none; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--yellow); }
.footer__contact { display: grid; gap: 4px; font-weight: 600; color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* ============ PRODUCT VIEWS ============ */
.has-views { position: relative; }
.has-views > img { cursor: zoom-in; }
.has-views:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.views-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .75rem/1 var(--body); letter-spacing: .04em;
  background: rgba(28, 28, 28, .85); color: #fff; padding: 7px 10px; border-radius: 999px;
  pointer-events: none;
}
.views-badge::before {
  content: ""; width: 12px; height: 12px; background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.view-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 72px)); gap: 8px; padding: 10px 10px 0; }
.door .view-strip { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; background: #fff; }
.view-strip button {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer;
  background: var(--bg-alt); aspect-ratio: 1; opacity: .65; transition: opacity .2s, border-color .2s;
}
.view-strip button:hover { opacity: 1; }
.view-strip button.is-active { border-color: var(--yellow); opacity: 1; }
.view-strip img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 12, .94);
  display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto;
  align-items: center; padding: 56px 16px 20px; gap: 12px;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 14px; min-height: 0; height: 100%; align-content: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; border-radius: 10px; background: #fff; }
.lightbox__caption { color: #fff; font: 600 1.15rem/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.lightbox__nav, .lightbox__close {
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s;
}
.lightbox__nav { width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; justify-self: center; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--yellow); color: var(--ink); }
.lightbox__close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; }
.lightbox__thumbs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lightbox__thumbs button {
  width: 72px; height: 72px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #fff; opacity: .55; transition: opacity .2s, border-color .2s;
}
.lightbox__thumbs button.is-active { border-color: var(--yellow); opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; padding: 60px 12px 16px; }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; }
  .lightbox__nav--next { grid-row: 2; }
  .lightbox__thumbs { grid-row: 3; }
  .lightbox__thumbs button { width: 58px; height: 58px; }
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .lifts { grid-template-columns: 1fr 1fr; }
  .doors, .services { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }

  .hero { padding: 36px 0 70px; }
  .hero::before { width: 100%; height: 42%; inset: auto 0 0 0; clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%); }
  .hero__inner, .gen, .about, .contact { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .brand__word { height: 26px; }
  .brand__mark { width: 38px; height: 38px; }
  .lifts, .services, .strip__inner { grid-template-columns: 1fr; }
  .doors, .gallery { gap: 14px; }
  .gallery { grid-auto-rows: 150px; }
  .gallery__item figcaption { font-size: .8rem; left: 8px; bottom: 8px; padding: 6px 9px; }
  .door figcaption { font-size: 1rem; padding: 12px; }
  .hero__facts { gap: 24px; }
  .hero__facts strong { font-size: 2.1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
