@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Landing-specific */

body.landing-ref {
  --bg: #e1e6ea;
  --bg-2: #d2d9de;
  --surface: rgba(255,255,255,0.88);
  --surface-2: #ffffff;
  --border: rgba(31,37,42,0.12);
  --border-2: rgba(31,37,42,0.18);
  --text: #1f252a;
  --muted: #5b656d;
  --muted-2: #74808a;
  --accent: #b57a15;
  --accent-2: #d39b2a;
  --accent-deep: #8a5a0c;
  --danger: #c84f40;
  --success: #3fb576;
  --info: #3775d6;
  --shadow-lg: 0 40px 90px -44px rgba(31,37,42,0.55), 0 0 0 1px rgba(31,37,42,0.05);
  --shadow-glow: 0 0 60px rgba(181,122,21,0.16);
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.landing-ref .grain { opacity: 0.02; }
body.landing-ref ::selection { background: rgba(181,122,21,0.35); color: #0f1418; }

body.landing-ref .btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1f252a;
  border: 0;
  box-shadow: 0 12px 28px -16px rgba(31,37,42,0.65), inset 0 1px 0 rgba(255,255,255,0.35);
}
body.landing-ref .btn-primary:hover { box-shadow: 0 16px 34px -18px rgba(31,37,42,0.7); }

body.landing-ref .section-light {
  background: var(--bg);
  color: var(--text);
}

body.landing-ref .section-dark {
  --bg: #0f1418;
  --bg-2: #171d22;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.16);
  --text: #f4f6f7;
  --muted: rgba(255,255,255,0.62);
  --muted-2: rgba(255,255,255,0.45);
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 700px at 100% 30%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, #10161b, #0f1418);
  color: var(--text);
}

body.landing-ref .section-dark .kicker { color: rgba(255,255,255,0.60); }
body.landing-ref .section-dark .kicker::before { background: rgba(181,122,21,0.85); }
body.landing-ref .section-dark .section-header p { color: rgba(255,255,255,0.60); }
body.landing-ref .section-dark .filter-btn { border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.62); }
body.landing-ref .section-dark .filter-btn.active { background: rgba(255,255,255,0.92); color: #10161b; border-color: rgba(255,255,255,0.92); }

body.landing-ref .section-light .kicker { color: rgba(31,37,42,0.70); }
body.landing-ref .section-light .kicker::before { background: rgba(181,122,21,0.9); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(18,22,26,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: all .35s ease;
}
.nav.scrolled {
  background: rgba(18,22,26,0.98);
  border-bottom-color: rgba(255,255,255,0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.78); transition: all .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px; color: var(--text); }

.nav .brand-text .top { color: rgba(255,255,255,0.92); }
.nav .brand-text .sub { color: rgba(255,255,255,0.55); }

.nav .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.86);
}
.nav .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); color: #fff; }
.nav .btn-primary { color: #1f252a; }

.nav .btn { box-shadow: none; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,10,12,0.96); backdrop-filter: blur(30px);
  display: flex; flex-direction: column; padding: 90px 28px 40px;
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { padding: 18px 0; font-size: 22px; font-family: var(--font-display); border-bottom: 1px solid var(--border); }
.mobile-menu .close { position: absolute; top: 22px; right: 22px; background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px; color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex; align-items: center;
  overflow: hidden;
  width: 100%;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 700px at 10% 22%, rgba(233, 226, 214, 0.95), transparent 60%),
    radial-gradient(900px 700px at 88% 16%, rgba(210, 220, 228, 0.90), transparent 62%),
    linear-gradient(90deg, #e9e2d6 0%, #dfe6eb 55%, #d2dde3 100%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,37,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,37,42,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0;
  background-image: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 84px; align-items: center; }

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 520px;
}

.hero-title {
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 24px 0 24px;
  white-space: pre-line;
}
.hero-title-strong { color: #1f252a; }
.hero-title-soft { color: rgba(31,37,42,0.46); }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 540px; line-height: 1.55; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

body.landing-ref .hero.hero-ref { padding: 150px 0 110px; }
body.landing-ref .hero.hero-ref .container { max-width: 1680px; }
body.landing-ref .hero.hero-ref .hero-inner { grid-template-columns: minmax(520px, 1fr) minmax(880px, 1.25fr); }
body.landing-ref .hero.hero-ref .hero-media { justify-self: end; width: 100%; max-width: 980px; position: relative; z-index: 1; }
body.landing-ref .hero.hero-ref .hero-stack { width: 100%; margin-left: auto; }
body.landing-ref .hero.hero-ref .kicker { color: rgba(31,37,42,0.70); }
body.landing-ref .hero.hero-ref .kicker::before { background: rgba(181,122,21,0.9); width: 22px; }
body.landing-ref .hero.hero-ref .btn-ghost { background: rgba(255,255,255,0.55); border-color: rgba(31,37,42,0.18); color: rgba(31,37,42,0.9); }
body.landing-ref .hero.hero-ref .btn-ghost:hover { background: rgba(255,255,255,0.72); border-color: rgba(31,37,42,0.22); }

body.landing-ref .hero-bg::after {
  opacity: 0.10;
  background-image:
    repeating-linear-gradient(0deg, rgba(31,37,42,0.05) 0, rgba(31,37,42,0.05) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(31,37,42,0.05) 0, rgba(31,37,42,0.05) 1px, transparent 1px, transparent 44px);
}

body.landing-ref .hero.hero-ref .moving-showcase {
  position: relative;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  padding: 18px;
  background: rgba(210, 218, 224, 0.80);
  border: 1px solid rgba(31,37,42,0.10);
  box-shadow:
    0 20px 40px rgba(31,37,42,0.14),
    0 2px 0 rgba(255,255,255,0.5) inset;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

body.landing-ref .hero.hero-ref .ms-col { position: relative; height: 100%; overflow: hidden; }
body.landing-ref .hero.hero-ref .ms-track { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; will-change: transform; }
body.landing-ref .hero.hero-ref .ms-col.up .ms-track { animation: msScrollUp 70s linear infinite; }
body.landing-ref .hero.hero-ref .ms-col.down .ms-track { transform: translateY(-33.33%); animation: msScrollDown 70s linear infinite; }

@keyframes msScrollUp { from { transform: translateY(0); } to { transform: translateY(-33.33%); } }
@keyframes msScrollDown { from { transform: translateY(-33.33%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  body.landing-ref .hero.hero-ref .ms-col.up .ms-track,
  body.landing-ref .hero.hero-ref .ms-col.down .ms-track { animation: none; transform: translateY(0); }
}

.hero-media { width: 100%; justify-self: end; }
body.landing-ref .hero.hero-ref .ms-card {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 4/3.4;
  cursor: pointer;
  border: 1px solid rgba(20,30,40,0.1);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
body.landing-ref .hero.hero-ref .ms-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
body.landing-ref .hero.hero-ref .ms-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,8,10,0.92)); pointer-events: none; }
body.landing-ref .hero.hero-ref .ms-card:hover { border-color: rgba(240,168,48,0.5); transform: scale(1.015); }
body.landing-ref .hero.hero-ref .ms-card:hover img { transform: scale(1.08); }
body.landing-ref .hero.hero-ref .ms-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px; display: flex; flex-direction: column; gap: 3px;
}
body.landing-ref .hero.hero-ref .ms-tag {
  align-self: flex-start;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; margin-bottom: 4px;
  backdrop-filter: blur(10px);
}
body.landing-ref .hero.hero-ref .ms-tag.finalizada { color: var(--success); background: rgba(78,201,136,0.16); border: 1px solid rgba(78,201,136,0.35); }
body.landing-ref .hero.hero-ref .ms-tag.proceso { color: var(--accent-2); background: rgba(240,168,48,0.16); border: 1px solid rgba(240,168,48,0.35); }
body.landing-ref .hero.hero-ref .ms-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: #fff; }
body.landing-ref .hero.hero-ref .ms-loc { font-size: 12px; color: rgba(255,255,255,0.72); }

body.landing-ref .hero.hero-ref .ms-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10,10,12,0.52);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  font-weight: 600;
}

body.landing-ref .hero.hero-ref .ms-fade { position: absolute; left: 0; right: 0; height: 74px; pointer-events: none; z-index: 4; }
body.landing-ref .hero.hero-ref .ms-fade.top { top: 0; background: linear-gradient(180deg, rgba(233,238,241,1), rgba(233,238,241,0)); }
body.landing-ref .hero.hero-ref .ms-fade.bottom { bottom: 0; background: linear-gradient(0deg, rgba(221,227,231,1), rgba(221,227,231,0)); }

body.landing-ref .hero.hero-ref .ms-overlay {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
}
body.landing-ref .hero.hero-ref .ms-now,
body.landing-ref .hero.hero-ref .ms-count {
  background: rgba(10,10,12,0.72); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px; border-radius: 12px;
  font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9);
}
body.landing-ref .hero.hero-ref .ms-count { color: rgba(255,255,255,0.62); }
body.landing-ref .hero.hero-ref .ms-now b { font-weight: 700; }
body.landing-ref .hero.hero-ref .ms-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-stats {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat .v { font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Hero responsive */
@media (max-width: 1200px) {
  .moving-showcase { height: 460px; }
}

@media (max-width: 980px) {
  .hero { padding: 120px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .moving-showcase { height: 420px; }
  .hero-title { font-size: clamp(40px, 8vw, 72px); }
}

@media (max-width: 760px) {
  .hero { padding: 130px 20px 70px; min-height: auto; }
  .moving-showcase { height: 360px; }
  .hero-title { font-size: clamp(36px, 9vw, 56px); margin: 18px 0; }
  .hero-sub { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }
}

@media (max-width: 640px) {
  .hero { padding: 140px 16px 60px; }
  .moving-showcase { height: 300px; border-radius: 18px; padding: 16px; gap: 14px; }
  .ms-track { gap: 14px; }
  .hero-title { 
    font-size: clamp(32px, 10vw, 48px); 
    margin: 16px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 150px 14px 50px; }
  .moving-showcase { height: 260px; }
  .hero-title { 
    font-size: clamp(28px, 11vw, 42px); 
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .hero-stats { 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    margin-top: 50px;
  }
  .stat .v { font-size: clamp(32px, 8vw, 44px); }
  .stat .l { font-size: 12px; }
}

@media (max-width: 380px) {
  .hero { padding: 160px 12px 40px; }
  .hero-title { font-size: clamp(26px, 12vw, 38px); }
  .moving-showcase { height: 240px; }
}

/* Sections */
section { position: relative; padding: 120px 0; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; max-width: 700px; }
.section-header p { color: var(--muted); max-width: 380px; }
@media (max-width: 760px) { .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 36px; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  position: relative; padding: 32px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.service::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 50%), rgba(240,168,48,0.1), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.service:hover { transform: translateY(-4px); border-color: var(--border-2); }
.service:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 28px;
  color: var(--accent);
}
.service h3 { font-size: 22px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* Obras */
.obras-filter { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-2); }
.filter-btn.active { background: var(--text); color: #0a0a0c; border-color: var(--text); }
.obras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .obras-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .obras-grid { grid-template-columns: 1fr; } }
.obra-card {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.obra-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.obra-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.obra-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.obra-card:hover .obra-img img { transform: scale(1.08); }
.obra-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6)); pointer-events: none; }
.obra-status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.obra-status.proceso { background: rgba(240,168,48,0.2); color: var(--accent-2); border: 1px solid rgba(240,168,48,0.4); }
.obra-status.finalizada { background: rgba(78,201,136,0.2); color: var(--success); border: 1px solid rgba(78,201,136,0.4); }
.obra-info { padding: 22px; }
.obra-info h3 { font-size: 20px; margin-bottom: 6px; }
.obra-info .meta { color: var(--muted); font-size: 13px; display: flex; gap: 14px; }
.obra-progress { margin-top: 16px; }
.obra-progress-bar { height: 4px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.obra-progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 1s ease; }
.obra-progress .label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* Materiales catalog */
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .mat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .mat-grid { grid-template-columns: repeat(2, 1fr); } }
.mat-card {
  border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: all .3s ease;
  cursor: pointer;
}
.mat-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.mat-swatch { aspect-ratio: 1.2; position: relative; overflow: hidden; }
.mat-swatch canvas, .mat-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-info { padding: 16px; }
.mat-info .name { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.mat-info .cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mat-info .price { font-size: 13px; margin-top: 10px; color: var(--text); }
.mat-info .price b { color: var(--accent-2); font-weight: 600; }

/* Material Tester */
.tester {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tester-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tester-header h3 { font-size: 22px; }
.tester-header .ai-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(240,168,48,0.1); border: 1px solid rgba(240,168,48,0.3);
  color: var(--accent-2); font-size: 12px; font-weight: 600;
}
.tester-header .ai-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }

.tester-body { display: grid; grid-template-columns: 1fr 320px; gap: 0; min-height: 540px; }
@media (max-width: 980px) { .tester-body { grid-template-columns: 1fr; } }

.tester-canvas-wrap {
  position: relative;
  background:
    repeating-conic-gradient(rgba(255,255,255,0.02) 0% 25%, rgba(255,255,255,0.04) 0% 50%) 50% / 24px 24px,
    var(--bg);
  display: grid; place-items: center;
  min-height: 540px;
  overflow: hidden;
}
.tester-canvas { max-width: 100%; max-height: 100%; cursor: crosshair; display: block; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.tester-empty { text-align: center; padding: 40px; }
.tester-empty .ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.tester-empty h4 { font-size: 18px; margin-bottom: 6px; }
.tester-empty p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0 auto 20px; }
.tester-drop { border: 2px dashed var(--border-2); padding: 28px; border-radius: 16px; transition: all .25s; }
.tester-drop.dragging { border-color: var(--accent); background: rgba(240,168,48,0.05); }

.tester-side {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 16px;
  max-height: 720px;
  overflow-y: auto;
}
@media (max-width: 980px) { .tester-side { border-left: none; border-top: 1px solid var(--border); } }
.tester-side h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 4px 0; font-weight: 600; }
.tester-mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tester-mat {
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; position: relative;
  background: var(--surface);
  transition: all .2s;
}
.tester-mat.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,168,48,0.2); }
.tester-mat canvas { width: 100%; aspect-ratio: 1; display: block; }
.tester-mat .label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8)); padding: 14px 8px 6px; font-size: 10px; font-weight: 600; }

.tester-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tester-embed-shell {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(8, 12, 16, 0.72);
  box-shadow: 0 26px 70px rgba(0,0,0,0.32);
}
.tester-embed-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #161310;
}
@media (max-width: 980px) {
  .tester-embed-shell { border-radius: 20px; }
  .tester-embed-frame { min-height: 1040px; }
}
.tool-btn {
  padding: 9px 13px; font-size: 12px; font-weight: 600;
  border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
}
.tool-btn.active { background: var(--accent); color: #1a1305; border-color: var(--accent); }
.brush-size { display: flex; align-items: center; gap: 10px; }
.brush-size input[type=range] { flex: 1; accent-color: var(--accent); }

.ai-suggest {
  background: linear-gradient(135deg, rgba(240,168,48,0.1), rgba(240,168,48,0.02));
  border: 1px solid rgba(240,168,48,0.25);
  border-radius: 14px; padding: 16px;
}
.ai-suggest h4 { color: var(--accent-2); margin-bottom: 8px; font-size: 12px; }
.ai-suggest p { font-size: 13px; color: var(--text); line-height: 1.5; margin: 0 0 12px; }
.ai-suggest textarea { min-height: 70px; resize: vertical; font-size: 13px; }
.ai-suggest .ai-output {
  margin-top: 12px; padding: 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; line-height: 1.55; color: var(--text);
  white-space: pre-wrap;
}

/* Testimonios */
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .test-grid { grid-template-columns: 1fr; } }
.test-card {
  padding: 32px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  position: relative;
}
.test-card .quote-ico {
  position: absolute; top: 24px; right: 28px;
  font-family: serif; font-size: 80px; line-height: 0.5;
  color: var(--border-2);
}
.test-stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 18px; }
.test-text { font-family: var(--font-display); font-size: 19px; line-height: 1.5; margin-bottom: 24px; }
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #1a1305; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.test-author .who { font-size: 14px; font-weight: 600; }
.test-author .role { font-size: 12px; color: var(--muted); }

body.landing-ref .section-light .test-card {
  background: rgba(255,255,255,0.72);
  border-color: rgba(31,37,42,0.12);
}
body.landing-ref .section-light .test-card .quote-ico { color: rgba(31,37,42,0.18); }
body.landing-ref .section-light .test-stars { color: var(--accent); }
body.landing-ref .section-light .test-avatar { color: #1f252a; }

/* Brands */
.brands-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
@media (max-width: 780px) { .brands-strip { grid-template-columns: repeat(2, 1fr); } }
.brand-cell {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--muted);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all .25s;
}
.brand-cell-logo {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  max-width: none;
  max-height: 84px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(.75);
  transition: filter .25s;
}
.brand-cell:hover { color: var(--text); background: var(--surface-2); }
.brand-cell:hover .brand-cell-logo { filter: none; }
.brand-cell:nth-child(4n) { border-right: none; }
@media (max-width: 780px) {
  .brand-cell { border-right: 1px solid var(--border); }
  .brand-cell:nth-child(2n) { border-right: none; }
}

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-info-list { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.contact-info-list .row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info-list .row:last-child { border-bottom: none; }
.contact-info-list .ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.contact-info-list .lbl { font-size: 12px; color: var(--muted); }
.contact-info-list .val { font-size: 15.5px; font-weight: 500; }

body.landing-ref #contacto.section-dark form.card {
  --bg: #e4e8eb;
  --surface: #eef2f4;
  --surface-2: #ffffff;
  --border: rgba(31,37,42,0.14);
  --border-2: rgba(31,37,42,0.18);
  --text: #1f252a;
  --muted: #5b656d;
  --muted-2: #74808a;
  --accent: #b57a15;
  --accent-2: #d39b2a;
  --accent-deep: #8a5a0c;
  background: var(--surface);
  border-color: rgba(31,37,42,0.12);
  box-shadow: 0 30px 70px -48px rgba(0,0,0,0.55);
}

body.landing-ref #contacto.section-dark form.card label { color: rgba(31,37,42,0.70); }
body.landing-ref #contacto.section-dark form.card input:focus,
body.landing-ref #contacto.section-dark form.card textarea:focus,
body.landing-ref #contacto.section-dark form.card select:focus {
  box-shadow: 0 0 0 3px rgba(181,122,21,0.18);
}

/* Footer */
footer { padding: 60px 0 30px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.footer-credits { color: var(--muted); font-size: 13px; }
.footer-madeby { color: var(--muted); font-size: 12px; }
.footer-credits a { color: var(--text); border-bottom: 1px dashed var(--border-2); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }

section#top > div.container.hero-inner { max-width: 1320px; }
section#top > div.container.hero-inner > div.hero-copy > div.reveal { width: 667px; }
section#top > div.container.hero-inner > div.reveal > div.hero-media > div.moving-showcase { width: 500px; height: 550px; top: auto; left: 200px; }
section#obras > div.container > div.reveal:nth-child(2) > div.obras-filter > button.filter-btn:nth-child(1).active { color: #ffffff; }

@media (max-width: 1200px) {
  section#top > div.container.hero-inner { max-width: 100%; }
  section#top > div.container.hero-inner > div.hero-copy > div.reveal { width: min(667px, 100%); }
  section#top > div.container.hero-inner > div.reveal > div.hero-media > div.moving-showcase { left: 0; width: min(500px, 100%); }
}

/* Footer brand/logo upgrade + madeby link */
.footer-brand {
  display: inline-block;
  text-decoration: none;
}
.footer-logo {
  width: 220px;
  max-width: 48vw;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  display: block;
  margin: 0 0 6px;
}
.madeby-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--border-2);
  transition: color .2s, border-color .2s;
}
.madeby-link:hover {
  color: var(--accent);
  border-color: rgba(181,122,21,0.35);
}

/* ─────────────── Lumi · chatbot flotante ─────────────── */
.lumi-fab {
  position: fixed;
  right: 22px;
  bottom: 108px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 80;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, #f3b94e 100%);
  box-shadow:
    0 18px 40px -18px rgba(0, 0, 0, 0.38),
    0 0 0 0 rgba(211, 155, 42, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.lumi-fab:hover { transform: translateY(-2px) scale(1.02); }
.lumi-fab:active { transform: translateY(0) scale(0.98); }
.lumi-fab.is-open {
  background: linear-gradient(135deg, #1f252a 0%, #2d343b 100%);
}
.lumi-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(211,155,42,0.55);
  animation: lumi-pulse 2s infinite;
  pointer-events: none;
}
@keyframes lumi-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(211,155,42,0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(211,155,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(211,155,42,0); }
}

.lumi-modal {
  position: fixed;
  right: 22px;
  bottom: 178px;
  width: min(380px, calc(100vw - 28px));
  max-height: 72vh;
  min-height: 520px;
  background: #ffffff;
  color: #1f252a;
  border-radius: 22px;
  border: 1px solid rgba(31,37,42,0.12);
  box-shadow:
    0 36px 80px -30px rgba(0, 0, 0, 0.32),
    0 10px 30px -16px rgba(0, 0, 0, 0.16);
  z-index: 79;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.lumi-modal.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.lumi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(181,122,21,0.10), rgba(211,155,42,0.10));
  border-bottom: 1px solid rgba(31,37,42,0.06);
}
.lumi-head-brand { display: flex; align-items: center; gap: 12px; }
.lumi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1a1305;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 20px -14px rgba(181,122,21,0.55);
}
.lumi-title { font-size: 15px; font-weight: 700; }
.lumi-sub { font-size: 11.5px; color: #5b656d; margin-top: 2px; }
.lumi-close {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(31,37,42,0.10);
  background: #fff;
  display: grid; place-items: center;
  color: #3c444b;
  cursor: pointer;
  transition: background .2s;
}
.lumi-close:hover { background: #f4f6f8; }

.lumi-msgs {
  padding: 16px 16px 6px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.lumi-msgs::-webkit-scrollbar { width: 6px; }
.lumi-msgs::-webkit-scrollbar-thumb { background: rgba(31,37,42,0.12); border-radius: 6px; }

.lumi-msg { display: flex; flex-direction: column; }
.lumi-msg.lumi-user { align-items: flex-end; }
.lumi-msg.lumi-bot { align-items: flex-start; }
.lumi-bubble {
  max-width: 85%;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.lumi-user .lumi-bubble {
  background: linear-gradient(135deg, #1f252a, #2d343b);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 20px -14px rgba(0,0,0,0.5);
}
.lumi-bot .lumi-bubble {
  background: #f4f6f8;
  color: #1f252a;
  border: 1px solid rgba(31,37,42,0.06);
  border-bottom-left-radius: 6px;
}
.lumi-bubble b, .lumi-bubble strong { font-weight: 700; }
.lumi-meta {
  margin: 3px 4px 0;
  font-size: 10.5px;
  color: #99a3ab;
  letter-spacing: 0.01em;
}

.lumi-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px;
}
.lumi-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #99a3ab;
  animation: lumi-typing 1.1s infinite ease-in-out both;
}
.lumi-typing span:nth-child(1) { animation-delay: -0.32s; }
.lumi-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes lumi-typing {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
  40%           { transform: scale(1);    opacity: 1; }
}

.lumi-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 4px;
  border-top: 1px solid rgba(31,37,42,0.05);
  background: #fbfcfd;
}
.lumi-chip {
  appearance: none;
  border: 1px solid rgba(31,37,42,0.10);
  background: #fff;
  color: #3c444b;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.lumi-chip:hover {
  border-color: rgba(181,122,21,0.45);
  color: #8a5a0c;
  background: rgba(211,155,42,0.08);
}

.lumi-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(31,37,42,0.06);
  background: #fff;
}
.lumi-input input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31,37,42,0.14);
  background: #f4f6f8;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.lumi-input input::placeholder { color: #838e97; }
.lumi-input input:focus {
  background: #fff;
  border-color: rgba(181,122,21,0.45);
  box-shadow: 0 0 0 3px rgba(211,155,42,0.14);
}
.lumi-send {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1305;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
  flex-shrink: 0;
}
.lumi-send:disabled { opacity: 0.5; cursor: not-allowed; }
.lumi-send:not(:disabled):hover { transform: translateY(-1px); }
.lumi-send:not(:disabled):active { transform: translateY(0) scale(0.97); }

@media (max-width: 480px) {
  .lumi-fab { right: 14px; bottom: 92px; width: 54px; height: 54px; }
  .lumi-modal {
    right: 10px;
    left: 10px;
    bottom: 164px;
    width: auto;
    min-height: 480px;
  }
  .footer-logo { width: 180px; max-height: 88px; }
}


@media (max-width: 980px) {
  section#top > div.container.hero-inner > div.hero-copy > div.reveal { width: 100%; }
  section#top > div.container.hero-inner > div.reveal > div.hero-media > div.moving-showcase {
    left: 0;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  section#top > div.container.hero-inner > div.reveal > div.hero-media > div.moving-showcase { max-width: 520px; }
}

@media (max-width: 480px) {
  section#top > div.container.hero-inner > div.reveal > div.hero-media > div.moving-showcase { max-width: 440px; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  animation: fadeIn .3s ease;
  padding: 24px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; max-width: 440px; width: 100%;
  padding: 36px; position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .35s cubic-bezier(.2,.7,.2,1);
}
.modal.lg { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 6px; color: var(--muted); }
.modal h3 { font-size: 26px; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border-2);
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  animation: toastIn .35s cubic-bezier(.2,.7,.2,1);
  display: inline-flex; align-items: center; gap: 10px;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translateX(-50%); } }
.toast.success { border-color: rgba(78,201,136,0.5); }
.toast .check { width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #0a0a0c; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* Obra detail responsive */
@media (max-width: 980px) {
  .obra-detail-content > div {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .obra-detail-cover img {
    height: 320px !important;
  }
  .obra-detail-gallery > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .obra-detail-cover img {
    height: 240px !important;
  }
  .obra-detail-gallery > div {
    grid-template-columns: 1fr !important;
  }
}

.ca-viz {
  display: grid;
  gap: 16px;
}

.ca-viz-panel,
.ca-viz-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.ca-viz-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ca-viz-tabs {
  background: var(--surface-2);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
}

.ca-viz-tabs button,
.ca-viz-materials button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ca-viz-tabs button {
  background: transparent;
  border-radius: 9px;
  color: var(--text);
  min-height: 42px;
}

.ca-viz-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.ca-viz-finishes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.ca-viz-finishes button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 128px;
  padding: 12px;
  text-align: center;
}

.ca-viz-finishes button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 138, 74, .18);
}

.ca-viz-finishes button span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.ca-viz-finish-thumb {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  display: block;
  height: 72px;
  width: 72px;
}

.ca-viz-materials {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ca-viz-materials button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: grid;
  gap: 12px;
  grid-template-columns: 68px 1fr;
  min-height: 78px;
  padding: 8px 12px 8px 8px;
  text-align: left;
}

.ca-viz-materials button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 138, 74, .18);
}

.ca-viz-swatch {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  height: 62px;
  width: 62px;
}

.ca-viz-material-photo {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  height: 62px;
  object-fit: cover;
  width: 62px;
}

.ca-viz-materials button span {
  display: grid;
  gap: 3px;
}

.ca-viz-materials button strong {
  font-size: 14px;
  line-height: 1.2;
}

.ca-viz-materials button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ca-viz-generate {
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 48px;
}

.ca-viz-generate:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ca-viz-toolbox {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.ca-viz-control-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ca-viz-viewmodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ca-viz-mask-editor {
  display: grid;
  gap: 10px;
}

.ca-viz-mask-editor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ca-viz-viewmodes button,
.ca-viz-mask-editor-row button,
.ca-viz-secondary-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 12px;
}

.ca-viz-viewmodes button.active {
  background: rgba(200,170,120,.18);
  border-color: rgba(200,170,120,.45);
  color: var(--accent);
}

.ca-viz-mask-editor-row button.active {
  background: rgba(76,201,255,.14);
  border-color: rgba(76,201,255,.34);
  color: #7ddfff;
}

.ca-viz-control {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ca-viz-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ca-viz-control strong {
  color: var(--text);
  font-size: 15px;
}

.ca-viz-control input[type=range] {
  accent-color: var(--accent);
  cursor: ew-resize;
  width: 100%;
}

.ca-viz-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ca-viz-tool-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.ca-viz-tool-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ca-viz-chip {
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
}

.ca-viz-chip.ready {
  background: rgba(63,181,118,.14);
  border-color: rgba(63,181,118,.28);
  color: #80d7a2;
}

.ca-viz-footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.ca-viz-footer strong {
  color: var(--danger);
}

.ca-viz-footer em {
  color: #8dd6a1;
  font-style: normal;
  font-weight: 700;
}

.ca-viz-lead {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ca-viz-lead strong {
  grid-column: 1 / -1;
}

.ca-viz-lead button {
  min-height: 44px;
}

.ca-viz-budget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.ca-viz-budget-head {
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
}

.ca-viz-budget-head strong {
  color: var(--text);
  font-size: 18px;
}

.ca-viz-budget-head span {
  color: var(--muted);
  font-size: 14px;
}

.ca-viz-budget textarea {
  grid-column: 1 / -1;
  min-height: 82px;
  resize: vertical;
}

.ca-viz-budget button {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 48px;
}

@media (max-width: 760px) {
  .ca-viz-finishes,
  .ca-viz-control-grid,
  .ca-viz-tabs,
  .ca-viz-budget {
    grid-template-columns: 1fr;
  }
}

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  z-index: 90;
  transition: transform .2s ease;
}

.whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.08);
}

.ca-compare {
  display: grid;
  gap: 10px;
}

.ca-compare-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.ca-compare-frame.is-interactive {
  cursor: grab;
  outline: none;
}

.ca-compare-frame.is-interactive:active {
  cursor: grabbing;
}

.ca-compare-frame.is-interactive:focus-visible {
  box-shadow: 0 0 0 2px rgba(200,170,120,.35);
}

.ca-compare-frame.is-editing-mask {
  cursor: crosshair;
  box-shadow: 0 0 0 2px rgba(76,201,255,.22);
}

.ca-compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ca-compare-after { z-index: 1; }
.ca-compare-before { z-index: 2; }

.ca-compare-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  background: var(--surface-2);
}

.ca-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.ca-compare-tag {
  position: absolute;
  top: 12px;
  z-index: 4;
  background: rgba(15, 15, 16, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.ca-compare-tag-before { left: 12px; }
.ca-compare-tag-after { right: 12px; }

.ca-compare-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.ca-compare-hud {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  gap: 4px;
  max-width: min(100%, 310px);
  background: rgba(15, 15, 16, 0.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  padding: 10px 12px;
  pointer-events: none;
}

.ca-compare-hud-editor {
  left: auto;
  right: 12px;
  bottom: 12px;
}

.ca-compare-hud strong {
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ca-compare-hud span {
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 700;
}

.ca-compare-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.ca-compare-stats b {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.ca-compare-range {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: ew-resize;
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .ca-compare-hud {
    max-width: calc(100% - 24px);
  }
}
