/* TrámiteViewMX — vista clara del trámite */
:root {
  --paper: #f4f0e8;
  --paper-dark: #ebe4d8;
  --white: #ffffff;
  --ink: #1a2e2c;
  --ink-muted: #5a6b68;
  --teal: #2d6a5e;
  --teal-dark: #1f4f47;
  --teal-soft: rgba(45, 106, 94, 0.1);
  --clay: #b85c38;
  --border: #ddd5c8;
  --shadow: 0 8px 32px rgba(26, 46, 44, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  padding: 10px 18px; background: var(--teal); color: #fff; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 20px;
}

.logo { display: flex; flex-direction: column; color: var(--ink); line-height: 1.2; }
.logo:hover { color: var(--ink); }
.logo__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.logo__tag { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 8px; }

.nav__list {
  display: flex; align-items: center; gap: 4px; list-style: none;
}

.nav__link {
  padding: 8px 12px; font-size: 0.88rem; font-weight: 500;
  color: var(--ink-muted); border-radius: 8px; transition: background 0.2s, color 0.2s;
}
.nav__link:hover, .nav__link.active { color: var(--teal-dark); background: var(--teal-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-weight: 600; font-size: 0.9rem;
  border-radius: 999px; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 4px 16px rgba(45, 106, 94, 0.25); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--ghost { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}

.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600; line-height: 1.15; color: var(--ink);
  margin-bottom: 20px;
}

.hero__text { font-size: 1.05rem; color: var(--ink-muted); margin-bottom: 28px; max-width: 58ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.hero__note {
  font-size: 0.82rem; color: var(--ink-muted); padding: 12px 16px;
  background: var(--teal-soft); border-radius: var(--radius); border-left: 3px solid var(--teal);
  max-width: 58ch;
}

.hero__visual { position: relative; }

.hero__img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}

.hero__badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--white); padding: 16px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border); max-width: 240px;
}
.hero__badge strong { display: block; font-size: 0.85rem; color: var(--teal-dark); margin-bottom: 4px; }
.hero__badge span { font-size: 0.8rem; color: var(--ink-muted); }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--teal-dark); color: rgba(255,255,255,0.85); }
.section--paper { background: var(--paper-dark); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.section-head__label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--teal); margin-bottom: 12px;
}
.section--dark .section-head__label { color: rgba(255,255,255,0.6); }

.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; line-height: 1.2; margin-bottom: 16px;
}
.section--dark .section-head__title { color: #fff; }

.section-head__text { color: var(--ink-muted); font-size: 1.02rem; }
.section--dark .section-head__text { color: rgba(255,255,255,0.65); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step__num {
  font-family: var(--font-serif); font-size: 2rem; color: var(--teal);
  line-height: 1; margin-bottom: 12px; opacity: 0.5;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 0.88rem; color: var(--ink-muted); }

/* Module cards */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.module-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.module-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.module-card h3 {
  font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 12px; color: var(--ink);
}
.module-card p { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 16px; }
.module-card__link {
  font-weight: 600; font-size: 0.88rem; color: var(--teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.module-card__link::after { content: '→'; transition: transform 0.2s; }
.module-card__link:hover::after { transform: translateX(4px); }

/* Review grid */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.review-item {
  padding: 28px; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.review-item h3 { font-size: 1rem; margin-bottom: 10px; color: var(--teal-dark); }
.review-item p { font-size: 0.88rem; color: var(--ink-muted); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.split__img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }

.check-list { list-style: none; margin-top: 24px; }
.check-list li {
  padding: 12px 0 12px 28px; position: relative;
  border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}

.scope-box {
  background: var(--teal-soft); border: 1px solid rgba(45,106,94,0.2);
  border-radius: var(--radius); padding: 24px; margin-top: 24px;
}
.scope-box p { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 24px 20px; font-size: 0.92rem; color: var(--ink-muted); }

/* CTA band */
.cta-band {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: #fff; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px; max-width: 20ch; margin-left: auto; margin-right: auto;
}
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 28px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.page-hero p { color: var(--ink-muted); max-width: 640px; }

/* Content prose */
.prose { padding: 56px 0 80px; }
.prose .container { max-width: 760px; }
.prose h2 {
  font-family: var(--font-serif); font-size: 1.4rem; margin: 32px 0 12px; color: var(--ink);
}
.prose p, .prose li { color: var(--ink-muted); margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 16px; }

.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-card h3 { font-family: var(--font-serif); margin-bottom: 16px; }
.contact-card p { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 8px; }
.contact-card a { font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 64px 0 0; font-size: 0.88rem;
}

.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand__name { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.footer-brand__tag { font-size: 0.75rem; opacity: 0.5; margin-bottom: 16px; }
.footer-brand__desc { line-height: 1.7; margin-bottom: 16px; }
.footer-brand__scope { font-size: 0.8rem; opacity: 0.55; line-height: 1.65; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }

.site-footer h4 { color: #fff; font-size: 0.85rem; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.82rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.1); padding: 16px 0;
  transform: translateY(100%); transition: transform 0.35s;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cookie-banner p { font-size: 0.85rem; color: var(--ink-muted); max-width: 640px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--white); font-family: inherit;
}
.cookie-btn--accept { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split, .contact-layout, .site-footer__top { grid-template-columns: 1fr; }
  .steps, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: 1fr; }
  .hero__badge { position: static; margin-top: 16px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav__list {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px; box-shadow: var(--shadow);
  }
  .nav.open .nav__list { display: flex; }
  .nav .btn--primary { display: none; }
  .steps, .review-grid, .form-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
