/* =========================================================
   Oppein Venezuela · Landing page
   Palette from oppeinhome.com: accent #EE7B30 (site accent / loader),
   ink #121212 (body text), grey #454545, warm off-white #FAF8F5.
   ========================================================= */
:root {
  --orange: #EE7B30;
  --orange-dark: #C95E17;     /* AA contrast on white for small orange text */
  --ink: #121212;
  --ink-2: #454545;
  --muted: #6B6B6B;
  --line: #E7E3DD;
  --paper: #FFFFFF;
  --paper-2: #FAF8F5;
  --paper-3: #F0EDE8;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(18, 18, 18, .28);
  --header-h: 64px;
  --container: 1240px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 140px; height: auto; }

.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 20px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
.main-nav a {
  display: block; padding: 14px 0; text-decoration: none; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line); position: relative;
}
.main-nav .nav-cta { color: var(--orange-dark); font-weight: 600; border-bottom: 0; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lang-switch button {
  background: none; border: 0; padding: 8px 6px; min-width: 32px; min-height: 36px; cursor: pointer; color: var(--muted);
  letter-spacing: .08em; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.lang-switch button:hover { color: var(--ink); }

.menu-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.menu-toggle .bar, .menu-toggle .bar::before, .menu-toggle .bar::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background-color .3s;
}
.menu-toggle .bar::before, .menu-toggle .bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bar::before { top: -7px; }
.menu-toggle .bar::after { top: 7px; }
.menu-open .menu-toggle .bar { background: transparent; }
.menu-open .menu-toggle .bar::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle .bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; background: var(--paper); overflow: hidden; }
.hero-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; }
.hero-content { padding-top: 36px; padding-bottom: 56px; }
.hero-logo { width: 220px; margin-bottom: 28px; animation: fadeUp .9s var(--ease) both; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); padding-left: 14px; border-left: 3px solid var(--orange); margin-bottom: 20px;
  animation: fadeUp .9s .1s var(--ease) both;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 700; max-width: 14ch; animation: fadeUp .9s .2s var(--ease) both; }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--ink-2); max-width: 46ch; font-weight: 400; animation: fadeUp .9s .3s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: fadeUp .9s .4s var(--ease) both; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

/* Credentials */
.credentials { background: var(--paper-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 26px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat .num::after { content: ""; display: block; width: 22px; height: 2px; background: var(--orange); margin-top: 12px; }
.stat .label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.pillars { display: grid; gap: 28px; margin-top: 48px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: .4em; }
.pillar p { font-size: .95rem; margin: 0; }
.source-note { margin: 36px 0 0; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }

/* Products */
.product-grid { display: grid; gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.product figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product:hover figure img { transform: scale(1.04); }
.product-body { padding: 22px 22px 26px; position: relative; }
.product-index { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--orange-dark); }
.product h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.product p { font-size: .95rem; margin: 0; }

.integral {
  margin-top: 28px; padding: 30px 24px; background: var(--ink); color: #D9D9D9;
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start; position: relative; overflow: hidden;
}
.integral::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--orange); }
.integral h3 { color: #fff; font-size: 1.4rem; }
.integral p { margin: 0; max-width: 60ch; }

/* Design */
.design { background: var(--paper-3); }
.design-grid { display: grid; gap: 40px; align-items: center; }
.design-media { position: relative; }
.design-media::before {
  content: ""; position: absolute; left: -10px; top: -10px; width: 55%; height: 60%;
  border-left: 3px solid var(--orange); border-top: 3px solid var(--orange); pointer-events: none;
}
.design-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow); }
.design-badge {
  position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px;
}
.design-copy h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.steps { counter-reset: step; margin: 28px 0 32px; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2; width: 44px; height: 44px; border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink); background: #fff;
}
.steps strong { color: var(--ink); font-weight: 600; }
.steps span { font-size: .93rem; color: var(--muted); }

/* Showrooms */
.showroom-grid { display: grid; gap: 22px; }
.showroom { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: 380px; display: flex; align-items: flex-end; }
.showroom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease), opacity .6s; }
.showroom:hover img { transform: scale(1.04); opacity: .45; }
.showroom::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 20%, rgba(18,18,18,.85) 100%); }
.showroom-body { position: relative; z-index: 1; padding: 28px 24px; width: 100%; }
.showroom h3 { color: #fff; font-size: clamp(2rem, 6vw, 2.8rem); margin: 14px 0 2px; font-weight: 700; }
.showroom-type { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: #fff; margin-bottom: 16px; }
.showroom-size { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.showroom-size::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
.showroom-addr { font-size: .88rem; color: #CFCFCF; margin: 0; }
.tag { display: inline-block; background: var(--orange); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; }

/* Contact */
.contact { background: #fff; }
.contact-grid { display: grid; gap: 40px; }
.contact-copy h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.contact-mail a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 4px; word-break: break-all; }
.lead-form { background: var(--paper-2); border: 1px solid var(--line); padding: 26px 20px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CFC9C0; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(238, 123, 48, .3); }
.field [aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }
.form-status { font-size: .88rem; font-weight: 600; margin: 0; min-height: 1.3em; }
.form-status.is-error { color: #B03A2E; }
.form-status.is-ok { color: #2E7D4F; }

/* Footer */
.site-footer { background: var(--ink); color: #BDBDBD; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { margin-bottom: .4em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-title { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.muted { color: #8F8F8F; }
.small { font-size: .78rem; }
.social { display: flex; gap: 10px; margin-bottom: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #3A3A3A; border-radius: 50%;
  cursor: not-allowed; transition: border-color .2s, color .2s;
}
.social a:hover { border-color: var(--orange); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2C2C2C; display: flex; flex-direction: column; gap: 8px; font-size: .78rem; color: #8F8F8F; }
.footer-legal p { margin: 0; }

/* ---------- Motion (CSS-only) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 32px 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product--wide { grid-column: 1 / -1; }
  .product--wide figure { aspect-ratio: 16 / 7; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 34px 32px; }
  .integral { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-legal { flex-direction: row; justify-content: space-between; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { width: 168px; }
  .menu-toggle { display: none; }
  .main-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; background: none; }
  .main-nav ul { display: flex; align-items: center; gap: 30px; }
  .main-nav a { padding: 6px 0; border: 0; font-size: .88rem; }
  .main-nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .main-nav .nav-cta { padding: 10px 18px; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius); transition: background-color .25s, color .25s; }
  .main-nav .nav-cta:hover { background: var(--ink); color: #fff; }
  .header-inner { gap: 32px; }
  .main-nav { margin-left: auto; }
  .header-tools { padding-left: 22px; border-left: 1px solid var(--line); }

  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: min(calc(100svh - var(--header-h)), 820px); }
  .hero-media { order: 2; aspect-ratio: auto; height: 100%; }
  .hero-media::before {
    content: ""; position: absolute; z-index: 1; left: 0; top: 12%; bottom: 12%; width: 4px; background: var(--orange);
  }
  .hero-content {
    order: 1; align-self: center; max-width: none; padding: 56px 56px 56px max(32px, calc((100vw - var(--container)) / 2 + 32px));
  }
  .hero-logo { width: 260px; }

  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .product-grid { grid-template-columns: repeat(6, 1fr); }
  .product { grid-column: span 2; }
  .product--wide { grid-column: span 4; grid-row: span 1; }
  .product--wide figure { aspect-ratio: 16 / 8.2; }
  .product:nth-child(2) { grid-column: span 2; }
  .product:nth-child(2) figure { aspect-ratio: 4 / 3.6; }
  .product:nth-child(n+3) { grid-column: span 2; }
  .product:nth-child(n+3) figure { aspect-ratio: 4 / 3; }
  /* rows: [kitchen x4 | closet x2], [bath x2 | doors x2 | furniture x2] */

  .design-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }

  .showroom-grid { grid-template-columns: 1.35fr 1fr; }
  .showroom { min-height: 480px; }
  .showroom-body { padding: 40px; }

  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
  .contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Honeypot (spam trap) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
