/* ============================================
   TraxWire — Estilos principales
   ============================================ */

:root {
  --navy-950: #1f3348;
  --navy-900: #37577f;
  --navy-800: #2c4868;
  --blue-600: #3f7fb0;
  --blue-500: #5a9bc7;
  --cyan-500: #00d2f2;
  --cyan-600: #00abc7;
  --header-bg: #e7ecf3;
  --page-bg: #ffffff;
  --section-bg: #f7f9fb;
  --text-dark: #1f2937;
  --text-gray: #57606f;
  --text-muted: #6b7280;
  --border-light: #e6e9ef;
  --white: #ffffff;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-width: 1200px;
  --focus-ring: 0 0 0 3px rgba(20, 184, 214, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--page-bg);
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(27, 58, 92, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 1.02rem;
}

.main-nav a svg {
  width: 18px;
  height: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-link {
  color: var(--text-dark);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-800);
}

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-white {
  background: var(--white);
  color: var(--navy-900);
}

.btn-white:hover {
  background: #f0f4f8;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-900) 35%, var(--blue-600) 100%);
  color: var(--white);
  padding: 80px 32px 64px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 3.1rem;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: #e4ecf3;
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-fineprint {
  font-style: italic;
  font-size: 0.92rem;
  color: #c9d8e6;
  max-width: 520px;
}

.hero-art {
  position: relative;
}

.hero-art .glow {
  position: absolute;
  top: -30px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.hero-art-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 45px rgba(8, 25, 48, 0.35);
}

.hero-art-card svg {
  width: 100%;
  height: auto;
}

.hero-art-caption {
  text-align: center;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  margin-top: 18px;
  line-height: 1.25;
}

/* ---------- Section titles ---------- */
.section {
  padding: 72px 32px;
}

.section-bg-alt {
  background: var(--section-bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 12px;
}

.section-header h2 .accent {
  color: var(--cyan-600);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-gray);
  margin: 0;
}

/* ---------- Feature cards ---------- */
.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(20, 40, 70, 0.04);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--navy-800);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.feature-card p {
  margin: 0;
  color: var(--text-gray);
}

/* ---------- How it works ---------- */
.how-it-works {
  max-width: 900px;
  margin: 56px auto 0;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 34px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-body h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.step-body p {
  margin: 0;
  color: var(--text-gray);
}

.cta-inline {
  max-width: 900px;
  margin: 8px auto 0;
}

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-500));
  color: var(--white);
  padding: 22px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.cta-bar svg {
  width: 20px;
  height: 20px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--blue-600));
  color: var(--white);
  text-align: center;
  padding: 72px 32px;
}

.cta-band h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.cta-band p {
  font-size: 1.15rem;
  color: #dce9f2;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--section-bg);
  padding: 56px 32px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-tagline {
  color: var(--text-gray);
  margin: 0 0 18px;
  max-width: 480px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-legal-links {
  display: flex;
  gap: 28px;
}

.footer-legal-links a {
  color: var(--navy-900);
  font-weight: 600;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

/* ---------- Contact page ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--blue-600));
  color: var(--white);
  text-align: center;
  padding: 56px 32px;
}

.page-hero h1 {
  font-size: 2.6rem;
  margin: 0 0 14px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: #e4ecf3;
  font-size: 1.1rem;
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 32px 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(20, 40, 70, 0.04);
}

.contact-card .feature-icon {
  margin: 0 auto 18px;
}

.contact-card h3 {
  margin: 0 0 14px;
}

.contact-card p {
  color: var(--text-gray);
  margin: 0 0 6px;
}

.contact-card a {
  color: var(--cyan-600);
  font-weight: 600;
}

.map-embed {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 32px;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
}

.contact-note {
  text-align: center;
  padding: 40px 32px 0;
  font-size: 1.05rem;
}

.contact-note a {
  color: var(--cyan-600);
  font-weight: 700;
}

/* ---------- Registro / formulario ---------- */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 32px 88px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 30px rgba(20, 40, 70, 0.08);
}

.form-card h1 {
  font-size: 1.8rem;
  color: var(--navy-900);
  margin: 0 0 8px;
}

.form-card > p {
  color: var(--text-gray);
  margin: 0 0 28px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  font-size: 1rem;
  background: #fbfcfd;
}

.field input:focus-visible {
  border-color: var(--cyan-500);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #e6f7ee;
  color: #146c43;
  border: 1px solid #b6e6cc;
}

.form-status.error {
  background: #fdeceb;
  color: #b3261e;
  border: 1px solid #f3c1bd;
}

.form-status.loading {
  background: #eef3f9;
  color: var(--navy-900);
  border: 1px solid var(--border-light);
}

/* ---------- Ayuda / FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 22px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-gray);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .main-nav {
    display: none;
  }

  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 16px 20px;
  }

  .section {
    padding: 56px 20px;
  }
}
