/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d3a5c;
  --navy-dark: #092c47;
  --orange: #c0522a;
  --orange-dark: #a84422;
  --white:  #ffffff;
  --gray-bg: #f4f6f9;
  --gray-light: #eaedf2;
  --text:   #1a1a1a;
  --text-muted: #5a6475;
  --border: #d0d8e4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Top bar ───────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-divider { color: rgba(255,255,255,0.35); font-size: 0.9rem; }
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.65);
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── Site header ───────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-wrap { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.seal-svg  { width: 52px; height: 52px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-tld { color: var(--orange); }
.logo-sub  { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--gray-light); color: var(--orange); }

/* ── Registry tab bar ──────────────────────────────────────── */
.reg-tabbar {
  background: var(--navy);
  overflow-x: auto;
  scrollbar-width: none;
}
.reg-tabbar::-webkit-scrollbar { display: none; }
.reg-tabs {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  padding: 0 1rem;
}
.reg-tab {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.9rem 1.2rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.reg-tab:hover { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.reg-tab.active { color: var(--white); border-bottom-color: var(--orange); background: rgba(255,255,255,0.07); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(9,44,71,0.88) 0%, rgba(13,58,92,0.78) 50%, rgba(192,82,42,0.55) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1400&q=80') center/cover no-repeat;
  overflow: hidden;
}
/* Fallback — solid gradient if image fails or for local dev */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1a4a6e 60%, #2a5a7e 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  width: 100%;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192,82,42,0.25);
  border: 1px solid rgba(192,82,42,0.6);
  color: #ffcfb8;
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 680px;
}
.hero-accent { color: #ffb38a; }

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.12s;
  box-shadow: 0 4px 14px rgba(192,82,42,0.4);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

/* Trust bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
}
.trust-sep { color: rgba(255,255,255,0.3); font-size: 1.1rem; }

/* ── Section shared ────────────────────────────────────────── */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2.5rem;
  line-height: 1.25;
}
.section-title.left { margin-bottom: 1.25rem; }

/* ── How it works ──────────────────────────────────────────── */
.how-section { background: var(--gray-bg); }
.section-title { text-align: center; }

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  flex: 1;
  max-width: 300px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover { box-shadow: 0 8px 30px rgba(13,58,92,0.1); transform: translateY(-3px); }
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(13,58,92,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.step-connector {
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 700;
  padding: 0 0.5rem;
  align-self: center;
  flex-shrink: 0;
  margin-top: -1rem;
}

/* ── Form section ──────────────────────────────────────────── */
.form-section { background: var(--white); border-top: 1px solid var(--border); }

.form-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}
.form-side-info {
  flex: 1;
  padding-top: 0.5rem;
}
.form-side-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.value-list svg { flex-shrink: 0; margin-top: 2px; }
.secure-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
}

/* Form card */
.form-card {
  flex: 0 0 420px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(13,58,92,0.1);
  overflow: hidden;
}
.form-card-header {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

form { padding: 1.5rem; }

.field { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.field-hint { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }

input, select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,58,92,0.1);
}

.cedula-row { display: flex; align-items: center; gap: 0.35rem; }
.cedula-row input { width: auto; }
.cedula-short {
  width: 3.5rem !important;
  text-align: center;
}
#company-number { width: 7rem; text-align: center; letter-spacing: 0.1em; }
.cedula-sep { font-weight: 700; color: var(--text-muted); font-size: 1.1rem; }
.field-example { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }

button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.12s;
  box-shadow: 0 3px 12px rgba(192,82,42,0.35);
}
button[type="submit"]:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
}
.hidden { display: none; }

.form-footer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--gray-bg);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

/* ── Guarantees ────────────────────────────────────────────── */
.guarantees-section { background: var(--navy); }
.guarantees-section .section-label { color: #ffb38a; }
.guarantees-section .section-title { color: var(--white); }

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guarantee-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.guarantee-card:hover { background: rgba(255,255,255,0.1); }
.guarantee-card svg { margin-bottom: 1rem; }
.guarantee-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.guarantee-card p { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.65; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--orange);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-brand .logo-title { color: var(--white); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-right { text-align: right; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ── Success page (success.html reuse) ─────────────────────── */
.container.centered {
  max-width: 480px;
  margin: 4rem auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(13,58,92,0.1);
  padding: 2.5rem;
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  background: #22c55e;
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.muted { color: #888; font-size: 0.875rem; margin-top: 0.5rem; }
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--orange);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-layout { flex-direction: column; }
  .form-card   { flex: none; width: 100%; }
  .guarantees-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); margin: -0.5rem 0; }
  .site-nav { display: none; }
}

@media (max-width: 600px) {
  .header-inner, .hero-inner, .section-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .topbar { padding: 0.4rem 1.25rem; }
  .hero { min-height: 340px; }
  .hero-title { font-size: 1.8rem; }
}
