/* ═══════════════════════════════════════════════════════════
   BUDGET TRAVEL MEXICO — Global Stylesheet
   budgettravelmexico.com
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --verde:    #006847;
  --verde-lt: #2e8b57;
  --rojo:     #CE1126;
  --gold:     #E8A317;
  --sand:     #faf5eb;
  --cream:    #fefcf7;
  --white:    #ffffff;
  --text:     #1e1e1e;
  --muted:    #6b7280;
  --border:   #e8dfd1;

  /* Aliases for code compatibility */
  --jungle:   var(--verde);
  --palm:     var(--verde-lt);
  --coral:    var(--rojo);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;
  --max-w:        1140px;
  --radius:       10px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:    0 8px 30px rgba(0,0,0,0.10);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--verde-lt); text-decoration: none; transition: color .2s; }
a:hover { color: var(--verde); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: .6em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; margin-bottom: .5em; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1em; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section   { padding: 60px 0; }
.section-alt { background: var(--sand); }

/* ═══════════════════════════════════════════════════════════
   HEADER + NAV
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--verde);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span { color: var(--gold); }
.logo:hover { color: var(--gold); }

/* Nav */
.nav-list {
  list-style: none;
  display: flex;
  gap: 6px;
}
.nav-list a {
  color: rgba(255,255,255,.88);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--verde);
    padding: 10px 20px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    padding: 11px 14px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #003c28 0%, #006847 60%, #004d34 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero h1 { color: var(--white); margin-bottom: 14px; }
.hero p  { font-size: 1.15rem; opacity: .92; max-width: 620px; margin: 0 auto 20px; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary {
  background: var(--rojo);
  color: var(--white);
}
.btn-primary:hover { background: #b80f21; color: var(--white); }

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-secondary:hover { background: rgba(255,255,255,.25); color: var(--white); }

.btn-green {
  background: var(--verde-lt);
  color: var(--white);
}
.btn-green:hover { background: #247a4a; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
}
.btn-outline:hover { background: var(--verde); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   STAT BOXES
   ═══════════════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.stat-box:hover { transform: translateY(-3px); }
.stat-box .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat-box .label {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  font-size: 2.4rem;
  padding: 28px 24px 0;
}
.card-body { padding: 16px 24px 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p  { font-size: .93rem; color: var(--muted); margin-bottom: 14px; }

/* 6-col city cards */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.city-card:hover { transform: translateY(-3px); }
.city-card h3 { display: flex; align-items: center; gap: 8px; }
.city-card .price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead { background: var(--verde); color: var(--white); }
thead th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--sand); }
tbody tr:hover { background: #f0ead6; }

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHT / INFO BOXES
   ═══════════════════════════════════════════════════════════ */
.highlight-box {
  background: linear-gradient(135deg, #e8f5ec, #f0faf3);
  border-left: 5px solid var(--verde);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 28px 0;
  font-size: .97rem;
}
.highlight-box strong { color: var(--verde); }

.tip-box {
  background: linear-gradient(135deg, #fff8e5, #fdf4d8);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 28px 0;
}
.tip-box strong { color: #b8860b; }

.warning-box {
  background: linear-gradient(135deg, #ffeaed, #fff0f2);
  border-left: 5px solid var(--rojo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 28px 0;
}
.warning-box strong { color: var(--rojo); }

/* ═══════════════════════════════════════════════════════════
   AFFILIATE BOXES
   ═══════════════════════════════════════════════════════════ */
.aff-box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
  box-shadow: var(--shadow);
}
.aff-box h3 { margin-bottom: 8px; }
.aff-box p  { color: var(--muted); margin-bottom: 18px; }
.aff-box .btn { margin: 4px; }

/* ═══════════════════════════════════════════════════════════
   AD PLACEHOLDERS
   ═══════════════════════════════════════════════════════════ */
.ad-banner {
  background: var(--sand);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .8rem;
  margin: 30px auto;
  min-height: 90px;
  max-width: 728px;
}
.ad-sidebar {
  background: var(--sand);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .8rem;
  min-height: 250px;
  width: 300px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--verde);
}
.faq-a { color: var(--muted); font-size: .95rem; }

/* ═══════════════════════════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card .tag {
  display: inline-block;
  background: var(--verde);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--verde); }
.blog-card p { font-size: .9rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   VS HERO (Comparisons)
   ═══════════════════════════════════════════════════════════ */
.vs-hero {
  padding: 60px 0;
  text-align: center;
  color: var(--white);
  position: relative;
}
.vs-hero h1 { color: var(--white); }
.vs-flags {
  font-size: 3.2rem;
  margin-bottom: 14px;
}
.vs-flags .vs-text {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  vertical-align: middle;
  margin: 0 12px;
  opacity: .85;
}

/* Verdict banner */
.verdict-banner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 32px;
  margin: -28px auto 32px;
  max-width: 640px;
  position: relative;
  z-index: 5;
  text-align: center;
}
.verdict-banner .verdict-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.verdict-banner .verdict-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--verde);
}

/* Category rows */
.cat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.cat-row:last-child { border-bottom: none; }
.cat-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--muted);
}
.cat-side {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cat-side.winner {
  border-color: var(--verde);
  background: #f0faf3;
}
.cat-side .cat-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold);
}
.cat-side .cat-detail { font-size: .85rem; color: var(--muted); }

@media (max-width: 600px) {
  .cat-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* "You want... → Go to..." decision table */
.decision-table td:first-child { font-weight: 600; }
.decision-table td:nth-child(2) { color: var(--verde); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   CONTENT ARTICLE
   ═══════════════════════════════════════════════════════════ */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h2 { margin-top: 2em; }
.article-content ul, .article-content ol {
  margin: 0 0 1.2em 1.4em;
  line-height: 1.8;
}
.article-content li { margin-bottom: .4em; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: .84rem;
  color: var(--muted);
  padding: 14px 0;
}
.breadcrumbs a { color: var(--verde-lt); }
.breadcrumbs a:hover { text-decoration: underline; }

/* Internal link blocks */
.internal-links {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.internal-links h4 { margin-bottom: 10px; }
.internal-links a {
  display: inline-block;
  margin: 3px 8px 3px 0;
  font-size: .92rem;
}
.internal-links a::before { content: '→ '; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--verde);
  color: rgba(255,255,255,.85);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; opacity: .75; max-width: 280px; }

.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: .95rem;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 7px; }
.footer-links a {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  opacity: .6;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   WIDGET PLACEHOLDERS
   ═══════════════════════════════════════════════════════════ */
.widget-placeholder {
  background: var(--sand);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  margin: 30px 0;
  font-size: .88rem;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 40px; }

/* Golden rule box */
.golden-rule {
  background: linear-gradient(135deg, #fdf9ed, #fef6dc);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  font-style: italic;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #7a6520;
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON INDEX GRID
   ═══════════════════════════════════════════════════════════ */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.comp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.comp-card:hover { transform: translateY(-3px); }
.comp-card .flags { font-size: 2.4rem; margin-bottom: 10px; }
.comp-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.comp-card .verdict { font-size: .88rem; color: var(--verde); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   WINS-FOR BLOCKS
   ═══════════════════════════════════════════════════════════ */
.wins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
}
.wins-box {
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.wins-box.green { background: #eef8f1; border: 1px solid #c1e0cc; }
.wins-box.alt   { background: #f5f0ff; border: 1px solid #ddd4f0; }
.wins-box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.wins-box ul { margin-left: 1.2em; }
.wins-box li { margin-bottom: 5px; font-size: .93rem; }

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

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .ad-banner, .aff-box, .widget-placeholder { display: none; }
  body { background: #fff; }
  .hero { background: #006847 !important; -webkit-print-color-adjust: exact; }
}
