/* =========================================================
   CancelTimeshareMexico.com — Shared Stylesheet
   Palette:
     --primary  #1a56db  trustworthy blue
     --accent   #16a34a  green (CTA / success)
     --warning  #dc2626  red (urgency / danger)
     --bg       #f9fafb  background
     --text     #111827  text
     --border   #e5e7eb  borders
   ========================================================= */

:root {
  --primary: #1a56db;
  --primary-dark: #1742a8;
  --accent: #16a34a;
  --accent-dark: #128239;
  --warning: #dc2626;
  --warning-bg: #fef2f2;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --maxw: 1080px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-legal: 'Merriweather', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
}
.brand {
  display: flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: 1.15rem; color: var(--primary); text-decoration: none;
  white-space: nowrap;
}
.brand .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--primary); color: #fff;
  border-radius: 7px; font-size: 1rem;
}
.brand span.brand-text { color: var(--text); }
.brand span.brand-text b { color: var(--primary); }

.nav-links {
  display: flex; align-items: center; gap: 18px; list-style: none;
  margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; flex: 1;
}
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); text-decoration: none; }

.lang-toggle { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang-toggle a {
  font-weight: 700; font-size: 0.9rem; padding: 4px 9px; border-radius: 6px;
  color: var(--text-muted);
}
.lang-toggle a.active { background: var(--primary); color: #fff; }
.lang-toggle span { color: var(--border); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    order: 4; flex: 1 0 100%; flex-direction: column; align-items: flex-start;
    gap: 10px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 500px; padding-top: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius); border: none;
  text-decoration: none; text-align: center; transition: transform 0.05s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-cta:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: #eef2ff; color: var(--primary); }
.btn-lg { padding: 17px 34px; font-size: 1.12rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #eff4ff 0%, #f9fafb 70%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}
.hero h1 { max-width: 17ch; }
.hero .subhead { font-size: 1.2rem; color: var(--text-muted); max-width: 60ch; margin-bottom: 1.4em; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Alert / callout boxes ---------- */
.alert {
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
  border-left: 5px solid; background: var(--surface);
}
.alert-warning { border-color: var(--warning); background: var(--warning-bg); color: #7f1d1d; }
.alert-warning strong { color: var(--warning); }
.alert-info { border-color: var(--primary); background: #eff4ff; }
.alert-success { border-color: var(--accent); background: #ecfdf3; }
.alert h3 { margin-top: 0; }

.deadline-box {
  border: 2px solid var(--warning); background: var(--warning-bg);
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0;
  text-align: center;
}
.deadline-box .deadline-date { font-size: 1.6rem; font-weight: 800; color: var(--warning); display: block; }
.deadline-box .deadline-sub { color: #7f1d1d; font-weight: 600; }

/* ---------- Cards / sections ---------- */
.section { padding: 30px 0; }
.section-tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-card { position: relative; padding-top: 40px; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; box-shadow: var(--shadow);
}

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 12px 12px 12px 44px; position: relative; border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 12px; top: 12px; color: var(--accent);
  font-weight: 800; background: #ecfdf3; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.redflags { list-style: none; padding: 0; margin: 0; }
.redflags li { padding: 10px 12px 10px 40px; position: relative; }
.redflags li::before {
  content: "⚠"; position: absolute; left: 12px; top: 10px; color: var(--warning); font-weight: 800;
}

/* ---------- Tables ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--surface); }
table.data th, table.data td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.data th { background: #eff4ff; font-weight: 700; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; color: var(--border); }

/* ---------- AdSense slots ---------- */
.adsense-slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; margin: 26px auto; max-width: 970px;
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #eef0f3 10px, #eef0f3 20px);
  border: 1px dashed var(--border); border-radius: 8px;
  color: #9ca3af; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Affiliate section ---------- */
.affiliate-card { border: 1px solid var(--border); border-top: 4px solid var(--accent); }
.affiliate-link { font-weight: 600; }
.affiliate-note { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin: 10px 0; background: var(--surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--text-muted); }

/* =========================================================
   LETTER GENERATOR WIZARD
   ========================================================= */
.wizard { max-width: 760px; margin: 0 auto; }

.progress { margin: 24px 0 30px; }
.progress-bar-track { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 25%; background: var(--accent); border-radius: 99px; transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; margin-top: 12px; }
.progress-steps .pstep {
  flex: 1; text-align: center; font-size: 0.82rem; color: var(--text-muted); position: relative;
}
.progress-steps .pstep .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border);
  background: #fff; font-weight: 700; margin-bottom: 4px;
}
.progress-steps .pstep.active .num { border-color: var(--accent); background: var(--accent); color: #fff; }
.progress-steps .pstep.done .num { border-color: var(--accent); background: #ecfdf3; color: var(--accent); }
.progress-steps .pstep.active { color: var(--text); font-weight: 700; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field .error-msg { color: var(--warning); font-size: 0.85rem; margin-top: 5px; display: none; }
.field.has-error input, .field.has-error select { border-color: var(--warning); }
.field.has-error .error-msg { display: block; }

.input-group { display: flex; gap: 0; }
.input-group input { border-radius: 8px 0 0 8px; }
.input-group select { width: auto; border-radius: 0 8px 8px 0; border-left: none; }

.radio-card { display: block; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 18px 16px 48px; margin-bottom: 12px; cursor: pointer; position: relative; }
.radio-card input { position: absolute; left: 16px; top: 20px; }
.radio-card:hover { border-color: var(--primary); }
.radio-card.selected { border-color: var(--accent); background: #f0fdf4; }
.radio-card .rc-title { font-weight: 700; }
.radio-card .rc-cite { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.radio-card .rc-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }
.radio-card .rc-recommended { display: inline-block; background: var(--accent); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

.yesno { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.yesno label { padding: 9px 20px; cursor: pointer; font-weight: 600; background: #fff; margin: 0; }
.yesno label.sel-yes { background: var(--accent); color: #fff; }
.yesno label.sel-no { background: var(--text-muted); color: #fff; }
.yesno input { display: none; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }

/* ---------- Rights assessment ---------- */
.assessment {
  border: 2px solid var(--primary); border-radius: var(--radius);
  background: #eff4ff; padding: 22px; margin: 20px 0;
}
.assessment h3 { margin-top: 0; color: var(--primary); }
.assessment ul { margin: 8px 0; padding-left: 20px; }
.assessment .article-tag { display: inline-block; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin: 3px 4px 3px 0; }

/* ---------- Letter preview ---------- */
.letter-preview {
  font-family: var(--font-legal); background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: 4px; padding: 48px 52px;
  white-space: pre-wrap; font-size: 0.92rem; line-height: 1.7; color: #1f2937;
  max-height: 520px; overflow-y: auto;
}
@media (max-width: 600px) { .letter-preview { padding: 26px 24px; font-size: 0.85rem; } }

/* ---------- Paywall modal ---------- */
.paywall-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.paywall-modal {
  background: var(--surface); border-radius: 16px; max-width: 460px; width: 100%;
  padding: 30px 28px; box-shadow: var(--shadow-lg); position: relative; text-align: center;
  animation: fadeIn 0.2s ease;
}
.paywall-modal h3 { margin: 6px 0 10px; font-size: 1.4rem; }
.paywall-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 1.7rem; line-height: 1; color: var(--text-muted); cursor: pointer;
}
.paywall-price {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  font-size: 1.1rem; padding: 6px 18px; border-radius: 99px; margin-bottom: 4px;
}
.paywall-list { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; }
.paywall-list li { padding: 7px 7px 7px 32px; position: relative; }
.paywall-list li::before {
  content: "✓"; position: absolute; left: 6px; color: var(--accent); font-weight: 800;
  background: #ecfdf3; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.paywall-pay { width: 100%; }
.paywall-secure { font-size: 0.8rem; color: var(--text-muted); margin: 12px 0 0; }

/* ---------- Chargeback callout ---------- */
.chargeback-box { border: 2px solid var(--accent); background: #f0fdf4; border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; }
.chargeback-box h3 { margin-top: 0; color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a; color: #cbd5e1; margin-top: 50px;
  padding: 40px 0 28px; font-size: 0.9rem;
}
.site-footer a { color: #93c5fd; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 7px; }
.footer-legal { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.82rem; color: #94a3b8; }
.footer-legal p { margin: 0 0 8px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 1.4rem; } .mb-2 { margin-bottom: 1.4rem; }
.muted { color: var(--text-muted); }
.pill { display: inline-block; background: #eef2ff; color: var(--primary); font-weight: 600; font-size: 0.8rem; padding: 4px 12px; border-radius: 99px; }
.hidden { display: none !important; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; margin: 30px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band .btn-cta { margin-top: 8px; }
