/* ============================================
   Pasaporte Mexicano — Main Stylesheet
   SEO & Core Web Vitals Optimized
   ============================================ */

:root {
  --color-primary: #1B3A4B;
  --color-primary-dark: #0D2137;
  --color-green: #006847;
  --color-green-light: #A8E6CF;
  --color-gold: #C9A84C;
  --color-gold-light: #F5E6B8;
  --color-red: #CE1126;
  --color-text: #1A1A2E;
  --color-text-light: #555;
  --color-text-muted: #888;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F9FB;
  --color-border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-green); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); color: var(--color-primary-dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; color: var(--color-text-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff; padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 10000; font-weight: 600; transition: top 0.3s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border); height: var(--header-height);
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 48px; width: auto; }

.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--color-text);
  padding: 8px 0; position: relative; transition: color 0.2s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--color-green); transition: width 0.3s;
}
.main-nav a:hover { color: var(--color-primary); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-green); color: #fff !important;
  padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}
.header-cta:hover { background: #004D33; color: #fff; transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: 0.3s; }

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #006847 100%);
  color: #fff; padding: 100px 0 80px; overflow: hidden; min-height: 600px;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%; background: rgba(201,168,76,0.06);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%; background: rgba(0,104,71,0.08);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.5rem); margin-bottom: 1.2rem; line-height: 1.15; }
.hero h1 span { color: var(--color-gold-light); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; text-align: center;
}
.btn-primary { background: var(--color-green); color: #fff; border-color: var(--color-green); }
.btn-primary:hover { background: #004D33; border-color: #004D33; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,104,71,0.3); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-secondary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--color-gold); color: var(--color-primary-dark); border-color: var(--color-gold); font-weight: 700; }
.btn-gold:hover { background: #B8952F; border-color: #B8952F; transform: translateY(-2px); }

/* ── Trust Bar ── */
.trust-bar { background: var(--color-bg-alt); padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; }
.trust-item svg { width: 24px; height: 24px; fill: var(--color-green); flex-shrink: 0; }

/* ── Section ── */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header .badge {
  display: inline-block; background: rgba(0,104,71,0.1); color: var(--color-green);
  padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-header p { color: var(--color-text-light); font-size: 1.05rem; }

/* ── Cards Grid ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius-md); padding: 36px 28px;
  border: 1px solid var(--color-border); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--color-green), var(--color-gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { font-size: 0.95rem; margin-bottom: 16px; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--color-green); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--color-primary); gap: 10px; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
.step { text-align: center; padding: 32px 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--color-green), var(--color-gold));
  color: #fff;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--color-text-light); }

/* ── Costs Table ── */
.costs-table { max-width: 800px; margin: 0 auto; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.costs-table table { width: 100%; border-collapse: collapse; background: #fff; }
.costs-table th { background: var(--color-primary); color: #fff; padding: 16px 24px; font-size: 0.95rem; text-align: left; }
.costs-table td { padding: 16px 24px; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.costs-table tr:last-child td { border-bottom: none; }
.costs-table tr:hover td { background: var(--color-bg-alt); }
.costs-table .price { font-weight: 700; color: var(--color-green); font-size: 1.1rem; }
.costs-table .highlight td { background: rgba(0,104,71,0.05); }
.costs-table .highlight .price { color: var(--color-green); font-size: 1.2rem; }

/* ── Features ── */
.features-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.features-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.feature-list { display: flex; flex-direction: column; gap: 28px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(0,104,71,0.08); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; fill: var(--color-green); }
.feature-text h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--color-primary-dark); }
.feature-text p { font-size: 0.92rem; margin: 0; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-question {
  width: 100%; background: none; border: none; padding: 20px 24px;
  font-size: 1rem; font-weight: 600; color: var(--color-text); text-align: left;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: var(--font-main); transition: background 0.2s;
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question svg { width: 20px; height: 20px; fill: var(--color-text-muted); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.95rem; color: var(--color-text-light); line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 600px; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #006847 100%);
  color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(201,168,76,0.06); top: -200px; right: -100px; }
.cta-section h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Info Box ── */
.info-box {
  background: var(--color-gold-light); border-left: 4px solid var(--color-gold);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.info-box p { color: var(--color-primary-dark); margin: 0; }
.info-box strong { color: var(--color-primary); }

.warning-box {
  background: #FFF3E0; border-left: 4px solid #E65100;
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.warning-box p { color: #333; margin: 0; }

/* ── Footer ── */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.9rem; margin-top: 16px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--color-gold-light); }

/* ── Breadcrumbs ── */
.breadcrumbs { padding: 16px 0; font-size: 0.85rem; }
.breadcrumbs ol { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs li::after { content: '/'; margin-left: 8px; color: var(--color-text-muted); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--color-green); }
.breadcrumbs span { color: var(--color-text-muted); }

/* ── Responsive ── */
@media (max-width: 968px) {
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: #fff; padding: 24px; border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg); transform: translateY(-110%); transition: transform 0.3s; z-index: 999;
  }
  .main-nav.active { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .hero { padding: 60px 0 50px; min-height: auto; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .costs-table th, .costs-table td { padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-items { gap: 20px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }
}

@media print {
  .site-header, .site-footer, .cta-section, .menu-toggle { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .step, .feature-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .card.visible, .step.visible, .feature-item.visible { opacity: 1; transform: translateY(0); }
}
