/* PROCOVER ATELIER - LUXURY BESPOKE SUPERCAR DESIGN SYSTEM */
:root {
  --bg-deep: #05070b;
  --bg-surface: #0c1017;
  --bg-card: #111722;
  --bg-card-hover: #182232;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --text-pure: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-pure);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

/* Screen Management */
.atelier-screen {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.atelier-screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   1. SCREEN: WELCOME / DELIVERY REVEAL HERO
   ══════════════════════════════════════════════════════════ */
#screen-welcome {
  min-height: 100vh;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 1.5rem 2rem;
  background: #000000;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#welcome-logo-box, #welcome-cta-box {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

#screen-welcome.playing-reveal #welcome-logo-box {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

#screen-welcome.playing-reveal #welcome-cta-box {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}

.welcome-logo-box {
  margin-top: 0.5rem;
}

.official-main-logo {
  max-width: 440px;
  width: 88%;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(225, 29, 36, 0.4));
}

.official-topbar-logo {
  height: 38px;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 0 15px rgba(225, 29, 36, 0.3));
}

.atelier-brand-sub {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 10px;
}

.covered-car-stage {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
}

#screen-welcome.playing-reveal .covered-car-stage {
  transform: scale(1.06);
}

/* Cinematic Zoom-in ("Aproxima tela") */
#screen-welcome.zoom-in-transition .covered-car-stage {
  transform: scale(1.48);
  opacity: 0;
  filter: brightness(1.25) contrast(1.08);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease 0.3s;
}

.supercar-delivery-video {
  width: 100%;
  max-width: 1020px;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  object-fit: contain;
}

.btn-skip-video {
  display: none;
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#screen-welcome.playing-reveal .btn-skip-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  animation: fadeInSkip 0.5s ease 0.4s both;
}

@keyframes fadeInSkip {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 0.85; transform: translateY(0); }
}

.btn-skip-video:hover {
  background: rgba(225, 29, 36, 0.8);
  border-color: #e11d24;
  color: #fff;
  opacity: 1 !important;
  box-shadow: 0 0 25px rgba(225, 29, 36, 0.6);
  transform: translateY(-2px);
}

.welcome-cta-box {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-atelier-start {
  background: linear-gradient(135deg, #e11d24 0%, #b91c1c 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 45px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 0 40px rgba(225, 29, 36, 0.5), 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-atelier-start:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(225, 29, 36, 0.75), 0 15px 35px rgba(0, 0, 0, 0.7);
  filter: brightness(1.15);
}

/* ══════════════════════════════════════════════════════════
   ATELIER TOPBAR (SHARED IN WORKSPACES)
   ══════════════════════════════════════════════════════════ */
.atelier-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(12, 16, 23, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.btn-back-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-back-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.topbar-center-title {
  text-align: center;
}

.topbar-main-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

.topbar-sub-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

/* Vehicle Category Selector Pills */
.category-pills {
  display: flex;
  background: #080a0f;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.cat-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill.active {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #000;
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════════
   2. SCREEN: SERVICES HUB (ESTACIÓN DE PERSONALIZACIÓN)
   ══════════════════════════════════════════════════════════ */
.hub-content {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 8rem;
}

.hub-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hub-headline {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hub-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Station Cards Grid */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.station-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.station-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.15);
}

.station-card:hover::before {
  opacity: 1;
}

.station-card.configured {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, #111722 100%);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.station-badge-configured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.station-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.station-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #fff;
}

.station-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.station-brands-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.station-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.station-price-from {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.btn-station-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s;
}

.station-card:hover .btn-station-action {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

/* ══════════════════════════════════════════════════════════
   FLOATING HUD BAR (ACTIVE WHEN ITEMS ARE CONFIGURED)
   ══════════════════════════════════════════════════════════ */
.atelier-floating-hud {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 950px;
  width: calc(100% - 30px);
  background: rgba(17, 23, 34, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  border-radius: 50px;
  padding: 12px 24px;
  display: none;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.25);
  z-index: 100;
}

.atelier-floating-hud.active {
  display: flex;
  animation: slideUpHud 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpHud {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.hud-details {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hud-count-tag {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.hud-investment-box {
  display: flex;
  flex-direction: column;
}

.hud-investment-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.hud-investment-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.btn-hud-finish {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #3b82f6 100%);
  color: #000;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-hud-finish:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

/* ══════════════════════════════════════════════════════════
   3. ATELIER DEDICATED STUDIOS (PPF & WRAP CONFIGURATORS)
   ══════════════════════════════════════════════════════════ */
.studio-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 8rem;
}

.studio-step-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.studio-step-header {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Coverage Radio Options */
.options-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.option-select-box {
  background: #090d16;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-select-box:hover {
  border-color: #3b82f6;
}

.option-select-box.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.option-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
}

.option-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

/* Material Comparison Cards (XPEL, TeckWrap, GSWF) */
.material-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.mat-card {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mat-card:hover {
  border-color: var(--accent-cyan);
}

.mat-card.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.mat-brand-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.mat-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 3px 0 6px;
}

.mat-warranty-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.mat-highlights {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mat-highlights li::before {
  content: "✓ ";
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Studio Bottom Actions */
.studio-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem 2rem;
  margin-top: 2rem;
}

.btn-confirm-studio {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
}

.btn-confirm-studio:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   4. SCREEN: FINAL SPECIFICATION & CLIENT FORMALIZATION
   ══════════════════════════════════════════════════════════ */
.checkout-content {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 8rem;
}

.spec-sheet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.spec-sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.spec-sheet-table th {
  background: #090d16;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
}

.spec-sheet-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-total-box {
  background: #090d16;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Signature Box on Checkout */
.sig-container {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin: 1.5rem 0;
}

/* Print Slip 2 Vias */
#print-sheet {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  #print-sheet, #print-sheet * {
    visibility: visible;
  }
  #print-sheet {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    color: #111;
    padding: 20px;
    font-size: 11pt;
  }
  .print-page {
    page-break-after: always;
    border: 1px solid #ccc;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 8px;
    min-height: 95vh;
  }
}
