:root {
  --navy-950: #0b1022;
  --navy-900: #10162b;
  --navy-800: #171f3d;
  --teal: #16c7b6;
  --teal-dark: #0da695;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e4e8f2;
  --text: #1a2035;
  --text-muted: #6b7386;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(16, 22, 43, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  background: var(--navy-950);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1022;
  font-weight: 900;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #c4cbe6;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover { color: #fff; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 15px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 9px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--teal); color: #06211d; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn-dark { background: var(--navy-950); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at top, var(--navy-800), var(--navy-950));
  color: #fff;
  padding: 72px 0 90px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(22, 199, 182, 0.14);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 span { color: var(--teal); }

.hero p {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: #b9c2e0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Compare section ---------- */

.compare {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 30px;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .compare-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

.compare-card {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--card);
}

.compare-card.bad { opacity: 0.85; }

.compare-card.good {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}

.compare-card h3 {
  font-size: 16px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-card li {
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.compare-card.good li { color: #dbe1f5; }
.compare-card.bad li { color: var(--text-muted); }

/* ---------- Features ---------- */

.features {
  padding: 20px 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(22, 199, 182, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  background: var(--navy-950);
  color: #fff;
  padding: 80px 0;
}

.steps .section-head p { color: #b9c2e0; }
.steps .section-head .eyebrow { color: var(--teal); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 26px;
}

.step-card .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #06211d;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13.5px;
  color: #b9c2e0;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Usuarios nuevos (formulario de contacto) ---------- */

.lead {
  padding: 80px 0;
}

.lead-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
}

.lead-field {
  margin-bottom: 16px;
}

.lead-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.lead-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.lead-field input:focus {
  outline: none;
  border-color: var(--teal);
}

.lead-submit {
  width: 100%;
  margin-top: 6px;
}

.lead-message {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  display: none;
}

.lead-message.visible { display: block; }
.lead-message.ok { background: #e6f9f2; color: #0f6b5c; }
.lead-message.error { background: #fdecec; color: #b4232c; }

/* ---------- Usuarios (acceso de clientes) ---------- */

.users {
  background: var(--navy-950);
  color: #fff;
  padding: 80px 0;
}

.users .section-head p { color: #b9c2e0; }
.users .section-head .eyebrow { color: var(--teal); }

.users-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .users-grid { grid-template-columns: 1fr; }
}

.user-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.user-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(22, 199, 182, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.user-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.user-card p {
  font-size: 13.5px;
  color: #b9c2e0;
  line-height: 1.55;
  margin: 0 0 20px;
}

.user-card .btn { width: 100%; }

/* ---------- CTA ---------- */

.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.cta p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0 0 28px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Ayuda / Contacto, debajo de "Accede a tu cuenta" (visible también en el
   celular, donde el menú del header se oculta). */
.users-help {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 22px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  text-align: center;
}
.users-help h3 { margin: 0 0 6px; font-size: 18px; }
.users-help p { margin: 0 0 14px; color: #b9c2e0; font-size: 14px; }
.users-help .btn { max-width: 100%; white-space: normal; }

/* ---------- Footer ---------- */

footer {
  background: var(--navy-950);
  color: #8891b5;
  padding: 32px 0;
  font-size: 13px;
  text-align: center;
}

footer strong { color: #fff; }

/* ---------- Páginas legales (privacidad.html, terminos.html) ---------- */

.legal {
  padding: 56px 0 80px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 640px) {
  .legal-card { padding: 28px 20px; font-size: 14.5px; }
}

.legal-card h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
.legal-card .legal-updated { color: var(--text-muted); font-size: 13.5px; margin: 0 0 28px; }
.legal-card h2 { font-size: 18.5px; margin: 34px 0 10px; }
.legal-card h3 { font-size: 15.5px; margin: 20px 0 6px; }
.legal-card p, .legal-card li { color: #333b52; }
.legal-card ul { padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }
.legal-card table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal-card th, .legal-card td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-card th { background: var(--bg); }
.legal-note {
  background: rgba(22, 199, 182, 0.1);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}

/* Datos que el titular todavía tiene que completar: resaltados para que
   no se publiquen por accidente con el texto de relleno. */
.ph { background: #fff3c4; color: #7a5a00; padding: 0 4px; border-radius: 4px; font-weight: 700; }

.legal-table-wrap { overflow-x: auto; }

/* ---------- Pie con enlaces legales ---------- */

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links a { color: #c4cbe6; text-decoration: underline; }
.footer-links a:hover { color: #fff; }

/* ---------- Consentimiento y anti-spam del formulario ---------- */

.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 14px;
}

.lead-consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--teal-dark); }
.lead-consent a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

/* Campo trampa para bots: invisible para personas y lectores de pantalla. */
.lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
