:root {
  /* Colores estilo XP */
  --bg: #008080;          /* fondo escritorio XP base */
  --surface: #c0c0c0;     /* ventanas */
  --surface-dark: #808080;/* bordes */
  --text: #000000;        /* texto negro clásico */
  --muted: #333333;       /* texto secundario */
  --primary: #000080;     /* azul botones XP */
  --primary-dark: #010081;/* azul oscuro hover */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tahoma", "Microsoft Sans Serif", Arial, sans-serif;
  background: #018281; /* verde Windows 98 clásico */
  color: var(--text);
  line-height: 1.6;
  scroll-padding-top: 96px;
  position: relative;
  overflow-x: hidden;
}


/* Nubes animadas estilo Bliss */
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: cloudMove linear infinite;
  z-index: 0;
}

@keyframes cloudMove {
  0% { transform: translateX(-250px); }
  100% { transform: translateX(120vw); }
}

main {
  position: relative; /* para que contenido quede sobre nubes */
  z-index: 1;
}

/* NAV estilo barra de tareas XP */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 6px 12px;
  background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 100%);
  border-bottom: 2px solid var(--surface-dark);
  z-index: 1001;
  display: flex;
  justify-content: center;
  gap: 4px;
}

nav a {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 100%);
  border: 2px solid #808080;
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 1px 1px #fff inset, -1px -1px #808080 inset;
}

nav a:hover,
nav a:focus-visible {
  background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
  outline: none;
}

header {
  text-align: center;
  padding: 110px 20px 70px;
  background: linear-gradient(to right, #000080 0%, #0000cd 100%); /* left dark blue to right lighter blue */
  color: #ffffff;
}

.hero-windowbar {
  max-width: 980px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(to right, #808080 0%, #b0b0b0 100%);
  border: 2px solid #808080;
  box-shadow: inset 1px 1px #ffffff, inset -1px -1px #808080;
  font-size: 13px;
  font-weight: 700;
}

.window-controls {
  letter-spacing: 2px;
  opacity: 0.9;
}

.hero-layout {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.hero-copy {
  flex: 1;
  text-align: left;
}

header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 20px;
}

.hero-meta {
  margin-top: 10px;
  font-size: 14px;
  color: #e6e6e6;
}

.hero-scene {
  min-width: 210px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid #808080;
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 100%);
  box-shadow: 1px 1px #fff inset, -1px -1px #808080 inset;
  font-size: 30px;
}

/* Botones estilo XP */
.btn, button {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 100%);
  border: 2px solid #808080;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 1px 1px #fff inset, -1px -1px #808080 inset;
  transition: background 0.2s;
}

.btn:hover,
button:hover,
.btn:focus-visible,
button:focus-visible {
  background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
  outline: none;
}

/* Flat submit buttons (no gradient) */
button {
  background: #c0c0c0;
}

button:hover,
button:focus-visible {
  background: #d0d0d0;
}

/* Secciones estilo ventana XP */
section {
  padding: 14px;
  max-width: 1040px;
  margin: 40px auto;
  background: rgba(192, 192, 192, 0.95); /* semi-transparente sobre Bliss */
  border: 2px solid var(--surface-dark);
  border-radius: 2px;
  box-shadow: 2px 2px #ffffff inset, -2px -2px #808080 inset;
}

section h2 {
  font-size: 24px;
  text-align: left;
  margin-bottom: 12px;
  color: var(--primary);
}

/* Section header as Windows 98 inactive title bar */
.section-header {
  background: linear-gradient(to right, #808080 0%, #c0c0c0 100%); /* dark grey to light grey */
  border: 2px solid #808080;       /* border like an inactive window */
  border-radius: 2px 2px 0 0;      /* rounded top corners */
  padding: 3px 8px;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
  color: #f2f2f2;
  box-shadow: inset 1px 1px #ffffff, inset -1px -1px #808080; /* subtle 3D inset effect */
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #f0f0f0;                 /* light text for inactive title bar */
  line-height: 24px;
}


/* Cards container */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Individual card */
.card {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  background: #ffffff;        /* entire card is white */
  border: 2px solid #808080; /* classic Windows 98 grey frame */
  border-radius: 2px;
  box-shadow: 2px 2px #ffffff inset, -2px -2px #808080 inset;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;           /* ensures header strip fits */
}

/* Header strip inside the card */
.card-header {
  background: linear-gradient(to right, #000080 0%, #0000cd 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  line-height: 24px;
  padding: 4px 8px;
  border-bottom: 2px solid #808080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-emoji {
  margin-left: auto;
  font-size: 16px;
  line-height: 1;
}

/* Card content text */
.card p {
  margin: 0;
  padding: 12px;
  color: #000000;
  font-size: 14px;
}



.hardware-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.hardware-list li + li {
  margin-top: 6px;
}

.lang-switch a {
  display: inline-block;
  padding: 2px 6px;
  background: var(--surface);
  border: 2px solid var(--surface-dark);
  border-radius: 2px;
  margin-right: 4px;
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  box-shadow: 1px 1px #fff inset, -1px -1px #808080 inset;
}
.lang-switch a:hover {
  background: #e0e0e0;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0;
}

/* Formularios estilo XP */
form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 700;
}

.hidden {
  display: none;
}

/* Form fields - make them distinct from buttons */
input,
textarea {
  width: 100%;
  padding: 6px 10px;
  border: 2px solid #808080;      /* classic XP border */
  border-radius: 2px;
  background: #ffffff;             /* white background for inputs */
  color: #000000;                  /* black text */
  font: inherit;
  box-shadow: inset 1px 1px #ccc, inset -1px -1px #999; /* subtle inset */
}

/* Focus state - highlight the input */
input:focus,
textarea:focus {
  outline: 2px solid #0a64ad;     /* classic XP blue focus */
  border-color: transparent;
  background: #f0f8ff;            /* optional light blue highlight */
}


/* Footer XP */
footer {
  text-align: center;
  padding: 32px 20px;
  background: var(--surface-dark);
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    scroll-padding-top: 140px;
  }

  nav a {
    font-size: 12px;
    padding: 4px 8px;
  }

  header {
    padding-top: 150px;
    padding-bottom: 56px;
  }

  header h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-scene {
    margin: 4px auto 0;
    min-width: 0;
  }

  .hero-icon {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }

  section h2 {
    font-size: 28px;
  }
}
