/* ─────────────────────────────────────────────────────────
   Tradeo - sitio público
   Paleta: dark #1c1c1e, orange #e8710a, accent yellow #f9b233
   ───────────────────────────────────────────────────────── */

:root {
  --color-dark: #1c1c1e;
  --color-orange: #e8710a;
  --color-orange-hover: #c95a00;
  --color-yellow: #f9b233;
  --color-bg: #f5f5f5;
  --color-card: #ffffff;
  --color-text: #1c1c1e;
  --color-text-muted: #555;
  --color-success: #2e7d32;
  --color-error: #c62828;
  --max-width: 800px;
  --form-width: 440px;
}

/* Reset */
* {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li, a, input, button, label, form {
  margin: 0;
  padding: 0;
  border: none;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ─── Header ─────────────────────────────────────────── */
header {
  background-color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 4em;
}

.logo img {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--color-yellow);
}

/* ─── Main layouts ───────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}

.home-container,
.policy-container,
.form-container {
  width: 100%;
  background: var(--color-card);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.home-container {
  max-width: var(--max-width);
  text-align: center;
}

.policy-container {
  max-width: var(--max-width);
}

.form-container {
  max-width: var(--form-width);
  text-align: center;
}

/* Home */
.home-container h1 {
  margin-bottom: 1em;
  font-size: 2rem;
  font-weight: 300;
}

.home-container img {
  max-width: 50%;
  height: auto;
}

/* Políticas */
.policy-container h1 {
  margin-bottom: 1em;
  text-align: center;
  font-size: 1.75rem;
  color: var(--color-dark);
}

.policy-container h2 {
  margin: 1.5em 0 0.5em;
  font-size: 1.2rem;
  color: var(--color-orange);
}

.policy-container p {
  margin-bottom: 1em;
}

.policy-container ul {
  margin: 0 0 1em 1.5em;
}

.policy-container li {
  margin-bottom: 0.5em;
  list-style: disc;
}

.policy-container a {
  color: var(--color-orange);
}

.policy-container a:hover {
  color: var(--color-orange-hover);
}

/* Formulario */
.form-container h1 {
  margin-bottom: 0.75em;
  font-size: 1.5rem;
}

.form-container > p {
  margin-bottom: 1.5em;
  color: var(--color-text-muted);
  text-align: left;
}

.form-container form {
  text-align: left;
}

input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--color-orange);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

button {
  width: 100%;
  padding: 14px;
  background-color: var(--color-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s;
}

button:hover:not(:disabled) {
  background-color: var(--color-orange-hover);
}

button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.95rem;
  display: none;
}

.message.success {
  background: #e8f5e9;
  color: var(--color-success);
  display: block;
}

.message.error {
  background: #ffebee;
  color: var(--color-error);
  display: block;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 32px 16px;
}

footer h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.app-stores a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
}

.app-stores a img {
  height: 50px;
  width: auto;
  margin-bottom: 8px;
}

/* ─── 404 ────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 64px 16px;
}

.not-found h1 {
  font-size: 4rem;
  color: var(--color-orange);
  margin-bottom: 0.25em;
}

.not-found p {
  margin-bottom: 1.5em;
  color: var(--color-text-muted);
}

.not-found a {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    padding: 1em;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .home-container,
  .policy-container,
  .form-container {
    padding: 24px 20px;
  }

  .policy-container h1 {
    font-size: 1.4rem;
  }

  body {
    font-size: 14px;
  }
}
