/* =========================================================================
   INNOVATIVE PTY GRAPHICS — DESIGN CONFIGURATOR RESPONSIVE STYLES (V16)
   ========================================================================= */

:root {
  --blue: #118cff;
  --cyan: #00c8ff;
  --bg: #020407;
  --panel: #07101a;
  --line: #1d3141;
  --muted: #cbd5e1;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: #fff;
  font-family: "League Spartan", sans-serif;
  overflow-x: hidden;
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  height: 80px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 4, 7, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}

.desktop-nav { display: flex; align-items: center; gap: 2vw; margin: auto; }
.desktop-nav a { font-size: 0.86rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 0; }
.desktop-nav a.active, .desktop-nav a:hover { color: #fff; }

/* Selector de Idioma */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(17, 140, 255, 0.08);
  border: 1px solid rgba(17, 140, 255, 0.3);
  border-radius: 999px;
  padding: 3px 6px;
  margin-right: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover { color: #ffffff; }

.lang-btn.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  user-select: none;
}

.back {
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(17, 140, 255, 0.4);
  padding: 9px 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.intro {
  padding: 40px 4vw 20px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4vw;
  align-items: end;
}
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 0.84rem; letter-spacing: 0.12em; }
.intro h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 900; line-height: 0.85; margin: 0.4rem 0 0.8rem; }
.intro h1 span { color: var(--blue); }
.intro p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.intro-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  background: var(--panel);
  font-size: 0.85rem;
}
.intro-card b { color: var(--cyan); display: block; margin-bottom: 4px; font-size: 0.92rem; }
.intro-card span { display: block; color: var(--muted); font-size: 0.78rem; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.config-layout {
  padding: 0 4vw 60px;
  display: grid;
  grid-template-columns: 200px 1fr 320px;
  gap: 18px;
}

.steps, .config-panel, .preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  height: max-content;
}

.steps {
  padding: 10px;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  font: 800 0.82rem "League Spartan";
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.step span { color: rgba(255, 255, 255, 0.4); }
.step.active, .step:hover {
  background: rgba(17, 140, 255, 0.12);
  color: #fff;
  border-color: rgba(17, 140, 255, 0.35);
}
.step.active span { color: var(--cyan); }

.config-panel { padding: 24px; }
.panel { display: none; }
.panel.active { display: block; }
.panel-kicker { color: var(--cyan); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; }
.panel h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; margin: 0.3rem 0 1.2rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label, .panel > label { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }

select, input, textarea {
  width: 100%;
  background: #03060a;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  font: 600 0.88rem "League Spartan";
  min-height: 48px;
  outline: none;
}
select:focus, input:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.style-grid button {
  background: #03060a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  min-height: 52px;
}
.style-grid button.active { border-color: var(--blue); background: rgba(17, 140, 255, 0.14); }
.style-grid b { display: block; font-size: 0.88rem; }
.style-grid span { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 4px; }

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.color-grid input { height: 60px; padding: 4px; cursor: pointer; }

.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preset-row button {
  background: #03060a;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  color: #c2d2e2;
  font: 800 0.80rem "League Spartan";
  cursor: pointer;
  min-height: 40px;
}
.preset-row button:hover { border-color: var(--blue); color: #fff; }

.upload-box {
  border: 1px dashed var(--blue) !important;
  border-radius: 12px;
  padding: 2.5rem 1.5rem !important;
  text-align: center;
  background: rgba(17, 140, 255, 0.04);
  cursor: pointer;
  display: block;
}
.upload-box input { display: none; }
.upload-box strong { display: block; font-size: 1.0rem; color: #fff; }
.upload-box span { display: block; font-size: 0.82rem; color: var(--cyan); margin-top: 6px; }
.upload-box small { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 10px; }

.panel-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.primary, .secondary, .whatsapp {
  padding: 13px 24px;
  border-radius: 8px;
  font: 800 0.88rem "League Spartan";
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary { background: var(--blue); border: 1px solid var(--blue); color: #fff; }
.secondary { background: #03060a; border: 1px solid var(--line); color: #fff; }

.preview {
  padding: 16px;
  position: sticky;
  top: 96px;
}
.preview-stage {
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #050d17, #020407);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-vehicle { position: relative; z-index: 2; font-size: 1.8rem; font-weight: 900; font-style: italic; }
.preview-number { position: absolute; right: 20px; bottom: 16px; font-size: 4.5rem; font-weight: 900; opacity: 0.8; }

.summary { margin-top: 14px; font-size: 0.82rem; }
.summary div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.summary span { color: var(--muted); font-size: 0.72rem; }
.summary b { color: #fff; }

.whatsapp {
  width: 100%;
  margin-top: 16px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #25D366;
}

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .config-layout { grid-template-columns: 1fr; }
  .steps {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { min-width: 140px; flex-shrink: 0; min-height: 44px; }
  .preview { position: static; order: -1; }
  .intro { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar {
    height: 68px;
    height: calc(68px + var(--safe-top, 0px));
    padding: var(--safe-top, 0px) 16px 0;
  }
  .brand-logo-img { height: 24px; max-width: 160px; }
  .back { font-size: 0.75rem; padding: 8px 12px; min-height: 40px; }
  .intro { padding: 24px 16px 16px; }
  .intro h1 { font-size: clamp(2rem, 8.5vw, 2.5rem); line-height: 1.05; }
  .intro-card { display: none; }
  .config-layout { padding: 0 16px 40px; }
  .config-panel { padding: 16px; }
  .form-grid, .style-grid, .color-grid { grid-template-columns: 1fr; }
  select, input, textarea { font-size: 16px; }
  .panel-controls {
    position: sticky;
    bottom: 0;
    background: var(--panel);
    padding: 12px 0 max(12px, var(--safe-bottom));
    z-index: 10;
  }
  .primary, .secondary, .whatsapp { min-height: 48px; }
}
