/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #FAF8F4;
  color: #1A1A1A;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Color tokens ────────────────────────────────────── */
:root {
  --teal:       #25B9AD;
  --teal-dark:  #1A8C83;
  --teal-deeper:#0F5C57;
  --gold:       #FFC83A;
  --gold-lt:    #FFF8E0;
  --red:        #E63946;
  --cream:      #FAF8F4;
  --cream2:     #F2EFE8;
  --text:       #1A1A1A;
  --text-md:    #555;
  --text-lt:    #888;
  --border:     #E2DDD6;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     14px;
}

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link {
  color: var(--text-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--teal-dark); }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--cream2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  gap: 0;
  flex-shrink: 0;
}
.lt-pill {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-lt);
  transition: background .2s, color .2s;
  line-height: 1;
}
.lt-pill.active {
  background: var(--teal);
  color: #fff;
}

.nav-btn {
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.nav-btn:hover { opacity: .88; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity .15s, transform .1s;
  width: 100%;
}
.btn:active { transform: scale(.98); }
.btn-gold  { background: var(--gold); color: #1A1A1A; }
.btn-teal  { background: var(--teal); color: #fff; }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.4);
  font-size: 14px;
}
.btn-gold:hover, .btn-teal:hover, .btn-outline:hover { opacity: .88; }
.btn-outline:hover { border-color: rgba(255,255,255,.75); color: #fff; }

/* ── Trust strip ─────────────────────────────────────── */
.trust-strip {
  background: var(--gold);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.trust-strip-icon { font-size: 20px; flex-shrink: 0; }
.trust-strip-title { font-size: 13px; font-weight: 700; color: #1A1A1A; line-height: 1.3; }
.trust-strip-sub   { font-size: 11px; color: rgba(0,0,0,.55); }

/* ── Section helpers ─────────────────────────────────── */
.section       { padding: 48px 20px; max-width: 640px; margin: 0 auto; }
.section-white { background: #fff; }
.section-full  { padding: 48px 0; }
.section-inner { max-width: 640px; margin: 0 auto; padding: 0 20px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(21px, 5vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 6px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-md);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Forms ───────────────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.form-label  { font-size: 13px; font-weight: 600; color: var(--text); }
.form-sub    { font-size: 11px; color: var(--text-lt); margin-top: -2px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37,185,173,.12);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-select   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Radio / checkbox groups */
.radio-group, .check-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option, .check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.radio-option:has(input:checked),
.check-option:has(input:checked) { border-color: var(--teal); background: rgba(37,185,173,.05); }
.radio-option input, .check-option input { accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
.radio-option span, .check-option span { font-size: 14px; color: var(--text); }

/* Form card */
.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}
.form-success.visible { display: block; }
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.success-sub   { font-size: 14px; color: var(--text-md); line-height: 1.6; }

/* ── Category grid (shared) ──────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .15s, border-color .15s, transform .1s;
}
.cat-item:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-item.selected { border-color: var(--teal); background: rgba(37,185,173,.06); }
.cat-icon    { font-size: 24px; margin-bottom: 6px; }
.cat-primary { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-secondary { font-size: 11px; font-weight: 400; color: var(--text-md); }
/* language swap — in ES mode, Spanish label becomes primary */
body[data-lang="es"] .cat-primary   { font-size: 12px; font-weight: 600; }
body[data-lang="es"] .cat-secondary { font-size: 11px; color: var(--text-md); font-weight: 400; }
/* visually swap order */
.cat-item .cat-primary   { order: 1; }
.cat-item .cat-secondary { order: 2; }
body[data-lang="es"] .cat-item .cat-secondary { order: 1; color: var(--text); font-weight: 600; font-size: 12px; }
body[data-lang="es"] .cat-item .cat-primary   { order: 2; color: var(--text-md); font-weight: 400; font-size: 11px; }
.cat-item { display: flex; flex-direction: column; align-items: center; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--teal-deeper);
  color: rgba(255,255,255,.5);
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
}
.footer-logo { display: block; margin: 0 auto 10px; height: 40px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.25)); }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.35); margin-bottom: 14px; font-style: italic; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.22); }

/* ── Page header (inner pages) ───────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--teal-deeper) 0%, var(--teal-dark) 100%);
  padding: 36px 20px 28px;
  text-align: center;
  color: #fff;
}
.page-header-logo { height: 48px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 1px 8px rgba(0,0,0,.2)); }
.page-header-title { font-size: clamp(20px, 5vw, 26px); font-weight: 700; line-height: 1.25; }
.page-header-sub   { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 6px; line-height: 1.5; }

/* ── Desktop ─────────────────────────────────────────── */
@media (min-width: 600px) {
  nav { padding: 0 36px; }
  .nav-right { gap: 14px; }
  .section { padding: 56px 36px; }
  .section-inner { padding: 0 36px; }
  .section-full { padding: 56px 0; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .cat-item { padding: 18px 8px; }
  .btn { width: auto; }
  .page-header { padding: 44px 36px 36px; }
  .form-card { padding: 32px 28px; }
}
@media (min-width: 900px) {
  nav { padding: 0 56px; }
  .section { padding: 64px 56px; max-width: 760px; }
  .section-inner { padding: 0 56px; max-width: 760px; }
  .page-header { padding: 52px 56px 44px; }
}
