
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --win-blue: #0078d7;
  --win-light: #f0f0f0;
  --win-border: #a0a0a0;
  --win-text: #000;
  --win-shadow: rgba(0, 0, 0, 0.4);
  --taskbar-height: 46px;
}

body {
  background: linear-gradient(135deg, #74b4e8 0%, #4a90d9 100%);
  height: 100vh;
  overflow: hidden;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  color-scheme: light;
}

#backdrop {
  position: fixed;
  inset: 0;
  z-index: 50; 
  pointer-events: none;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  transition: opacity 220ms ease;
  opacity: 1;
}

#backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


#protection-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  color: white;
  padding: 20px;
}

.hidden { display: none !important; }

.overlay-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  border-radius: 10px;
  max-width: 420px;
  text-align: center;
}


.desktop-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--taskbar-height));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.welcome-banner {
  text-align: center;
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.welcome-banner h1 {
  font-size: 3.4rem;
  margin-bottom: 0.6rem;
  letter-spacing: 4px;
}

.welcome-banner p {
  font-size: 1.25rem;
  opacity: 0.95;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  transition: opacity 1s, visibility 1s;
}

.windows-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.window-pane {
  background: var(--win-blue);
  border: 2px solid white;
  animation: pulse 1.8s infinite ease-in-out;
}

.window-pane:nth-child(1) { animation-delay: 0s; }
.window-pane:nth-child(2) { animation-delay: 0.2s; }
.window-pane:nth-child(3) { animation-delay: 0.4s; }
.window-pane:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.loader-text {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 0 0 10px #00aefe;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #fff, 0 0 10px #00aefe; }
  to { text-shadow: 0 0 10px #fff, 0 0 20px #00aefe, 0 0 30px #00aefe; }
}

body.loaded #loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--taskbar-height));
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-content: flex-start;
  z-index: 10;
}

.window {
  position: absolute;
  background: var(--win-light);
  border: 2px solid var(--win-border);
  box-shadow: 6px 6px 15px var(--win-shadow);
  display: flex;
  flex-direction: column;
  z-index: 100;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s;
}

.window:not(.hidden) {
  opacity: 1;
  transform: scale(1);
}

.centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
}

.centered:not(.hidden) {
  transform: translate(-50%, -50%) scale(1);
}

.window-header {
  background: linear-gradient(to bottom, #0078d7, #005a9e);
  color: white;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 1px solid #004a80;
}

.close-btn {
  background: #e81123;
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

.window-body {
  padding: 20px;
}

.win7-content {
  color: var(--win-text);
  line-height: 1.6;
}

.win7-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--win-blue);
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.btn-primary, .btn-success, .btn-whatsapp {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #0078d7;
  color: white;
}

.btn-success {
  background: #107c10;
  color: white;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  text-decoration: none;
}

.service-item {
  background: #f8f9fa;
  padding: 12px;
  margin: 8px 0;
  border-left: 4px solid var(--win-blue);
  border-radius: 4px;
}

.portfolio-grid, .payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.portfolio-item, .payment-method {
  background: var(--win-blue);
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

.note {
  color: #666;
  font-style: italic;
  margin-top: 16px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  cursor: pointer;
  user-select: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  transition: transform 0.2s;
  z-index: 20;
}

.desktop-icon:hover {
  transform: scale(1.1);
}

.win-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--taskbar-height);
  background: linear-gradient(to top, #005a9e, #0078d7);
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
  z-index: 200;
}

.start-button {
  background: transparent;
  color: white;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.start-menu {
  position: absolute;
  bottom: calc(var(--taskbar-height));
  left: 12px;
  width: 220px;
  background: white;
  border: 1px solid var(--win-border);
  box-shadow: 2px 2px 10px var(--win-shadow);
  display: none;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
}

.start-menu:not(.hidden) {
  display: flex;
}

.menu-item {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--win-text);
  font-size: 15px;
}

.menu-item:hover {
  background: #e5f1fb;
  color: var(--win-blue);
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  color: white;
  font-size: 12px;
}

.pc-icon { opacity: 0.95; }

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

#taskbar-time {
  font-weight: 700;
  font-size: 13px;
}

#taskbar-date {
  font-size: 11px;
  opacity: 0.9;
}


@media (max-width: 600px) {
  .welcome-banner h1 { font-size: 2.2rem; }
  .welcome-banner p { font-size: 1rem; }
  .win7-title { font-size: 18px; }
  .desktop { padding: 12px; gap: 18px; }
  .start-menu { width: 180px; }
}
