/* ============================================================================
 * styles.css — Capa sobre Tailwind (CDN) para el concurso "Hello Vancouver".
 * Marca: Poppins · gradiente #173CB5 -> #9D1F91 · logo diamante blanco.
 * Mobile-first. No reemplaza Tailwind; solo añade tokens y componentes.
 * ========================================================================== */

:root {
  --brand-blue: #173cb5;
  --brand-magenta: #9d1f91;
  --brand-gradient: linear-gradient(135deg, #173cb5 0%, #9d1f91 100%);
  --ink: #1a1a2e;
  --muted: #5b5b6b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
}

/* ----------------------------- Marca / utilidades ----------------------- */
.brand-gradient {
  background: var(--brand-gradient);
}
.brand-gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-brand-blue {
  color: var(--brand-blue);
}
.text-brand-magenta {
  color: var(--brand-magenta);
}

/* Diamante de marca decorativo (acento). */
.diamond {
  width: 0.9rem;
  height: 0.9rem;
  transform: rotate(45deg);
  display: inline-block;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* ----------------------------- Hero ------------------------------------- */
.hero {
  background: var(--brand-gradient);
  color: #fff;
}
.hero-logo {
  height: 44px;
  width: auto;
}

/* ----------------------------- Botones ---------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 8px 24px rgba(23, 60, 181, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(157, 31, 145, 0.32);
}
.btn-primary:disabled,
.btn-primary.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 9999px;
  font-weight: 600;
  color: var(--brand-blue);
  background: #fff;
  border: 2px solid var(--brand-blue);
  cursor: pointer;
}

/* ----------------------------- Tarjetas / pasos ------------------------- */
.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.07);
  border: 1px solid #eef0f6;
}
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--brand-gradient);
}

/* ----------------------------- Mini-reglas ------------------------------ */
.mini-rules {
  border-left: 4px solid var(--brand-magenta);
  background: #faf5fb;
  border-radius: 0.5rem;
}

/* ----------------------------- Formulario ------------------------------- */
.field-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d6d9e4;
  border-radius: 0.6rem;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(23, 60, 181, 0.12);
}
.input[readonly] {
  background: #f4f5fa;
  color: var(--muted);
}

/* Casillas de consentimiento. */
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  accent-color: var(--brand-blue);
}
/* La casilla de marketing va visualmente separada (CASL). */
.consent-marketing {
  border: 1px dashed #c9b2c7;
  background: #fcf8fc;
  border-radius: 0.6rem;
  padding: 0.75rem;
}

/* Disclaimer de participación junto al botón. */
.participation-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  background: #f7f8fc;
  border-radius: 0.6rem;
  padding: 0.85rem;
}

/* Mensajes del formulario. */
.form-message {
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.form-message--error {
  background: #fdecec;
  color: #9b1c1c;
  border: 1px solid #f5c2c2;
}
.form-message--ok {
  background: #eef6ff;
  color: #14529e;
  border: 1px solid #c2dbf5;
}

/* ----------------------------- Leaderboard ------------------------------ */
.leaderboard {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid #eef0f6;
}
.leaderboard td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #f0f1f7;
  font-size: 0.92rem;
}
.lb-rank {
  font-weight: 700;
  width: 3rem;
}
.lb-name {
  font-weight: 600;
}
.lb-num {
  text-align: right;
  color: var(--muted);
}
.lb-num--strong {
  color: var(--brand-blue);
  font-weight: 700;
}

/* ----------------------------- Portal ----------------------------------- */
.portal-section {
  max-width: 56rem;
  margin: 0 auto;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.leads-table th {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 2px solid #eef0f6;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}
.leads-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #f0f1f7;
}

/* ----------------------------- Helpers ---------------------------------- */
.hidden {
  display: none !important;
}
.footer-link {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Logo blanco sobre fondo de marca; logo azul sobre blanco. */
.logo-on-dark {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
