:root {
  --brand: #3f7f73;
  --brand-dark: #24584f;
  --brand-soft: #edf6f2;
  --sun: #d9a441;
  --terracotta: #b75f3b;
  --paper: #fffdf8;
  --sand: #f3eee4;
  --card: #ffffff;
  --text: #1f2a28;
  --muted: #5b6865;
  --line: #d9e5df;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 42px rgba(38, 73, 66, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbf9 0%, var(--sand) 100%);
  line-height: 1.65;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 4px solid var(--brand);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.site-main {
  padding-bottom: 72px;
}

.hero {
  padding: 48px 0 30px;
  background:
    radial-gradient(circle at 86% 18%, rgba(217, 164, 65, 0.18), transparent 28%),
    linear-gradient(180deg, var(--brand-soft) 0%, rgba(255, 255, 255, 0.72) 68%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.card,
.notice,
.contact-box,
.feature-panel {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.hero-card {
  padding: 22px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
}

.lead {
  max-width: 58ch;
  margin: 0 0 22px;
  color: #344642;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.route-mark {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.route-mark span {
  display: inline-flex;
  align-items: center;
}

.route-mark span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--sun);
  opacity: 0.72;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover,
button:hover {
  text-decoration: none;
  background: #1b453e;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-dark);
}

.btn--ghost:hover {
  background: var(--brand-soft);
}

.hero-photo {
  min-height: 250px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7f3ea, #e8f2ee);
}

.hero-photo img {
  width: 78%;
  max-height: 300px;
  object-fit: contain;
  opacity: 0.72;
}

.quick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.quick-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.quick-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 34px 0;
}

.section-soft {
  background: rgba(255, 253, 248, 0.48);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.page-home .eyebrow,
.page-home .section-title {
  text-transform: none;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 22px;
  color: #3e514c;
}

.grid-3,
.grid-2,
.contact-grid,
.feature-grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.card,
.notice {
  padding: 24px;
}

.card {
  border-top: 6px solid var(--brand);
}

.card:nth-child(2n) {
  border-top-color: var(--sun);
}

.card:nth-child(3n) {
  border-top-color: var(--terracotta);
}

.card h3,
.notice h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.card p,
.notice p,
.contact-meta p {
  margin: 0 0 14px;
  color: #3b4d49;
}

.card-link {
  font-weight: 800;
}

#themas .card {
  display: flex;
  flex-direction: column;
}

#themas .card-link {
  margin-top: auto;
}

.pillar-card-grid .card {
  display: flex;
  flex-direction: column;
}

.pillar-card-grid .card-link {
  margin-top: auto;
}

@supports (grid-template-rows: subgrid) {
  .pillar-card-grid {
    align-items: stretch;
  }

  .pillar-card-grid .card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
  }

  .pillar-card-grid .card-link {
    margin-top: 0;
    align-self: start;
  }
}

.route-grid .card {
  display: flex;
  flex-direction: column;
}

.route-grid .card-link {
  margin-top: auto;
}

.step {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-weight: 900;
}

.feature-panel {
  padding: 0;
  overflow: hidden;
}

.feature-copy {
  padding: 28px;
}

.notice {
  border-radius: 0;
  border: 0;
  border-left: 6px solid var(--terracotta);
  box-shadow: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("../images/guiasur-logo.png") center / 72% no-repeat;
}

.check-list {
  margin: 0;
  padding-left: 22px;
  color: #3b4d49;
}

.check-list li {
  margin-bottom: 8px;
}

.contact-box {
  padding: 28px;
}

.content-page {
  max-width: 820px;
}

.content-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.content-page.route-page h1 {
  max-width: 760px;
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.12;
  text-transform: none;
}

.content-page.route-page > p:first-of-type {
  max-width: 68ch;
  margin-bottom: 30px;
  font-size: 1.06rem;
}

.content-page h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.16;
}

.content-page p,
.content-page li {
  color: #3b4d49;
}

.content-page details {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.content-page summary {
  cursor: pointer;
  font-weight: 800;
}

.route-flow {
  display: grid;
  gap: 14px;
  margin: 18px 0 28px;
}

.route-flow div {
  padding: 16px 18px;
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.route-flow strong,
.route-flow span {
  display: block;
}

.route-flow span {
  color: #3b4d49;
}

.route-note {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 6px solid var(--sun);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.route-note strong,
.route-note span {
  display: block;
}

.route-note span {
  color: #3b4d49;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.term-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.term-grid h3 {
  margin: 0 0 8px;
}

.route-steps {
  display: grid;
  gap: 18px;
  margin: 18px 0 30px;
}

.route-steps article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.route-steps h3 {
  margin: 0 0 8px;
}

.route-steps ul {
  margin-bottom: 0;
}

.intake-form {
  display: grid;
  gap: 12px;
}

.intake-form label {
  font-weight: 800;
}

.intake-form input,
.intake-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #bfd6ce;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.intake-form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  padding: 36px 0 30px;
  border-top: 6px solid var(--brand);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 22px;
}

.footer-grid h4 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid ul {
  margin: 0;
  padding-left: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 64px;
  border-radius: 14px;
}

.copyright {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 920px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .term-grid,
  .feature-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main-nav ul {
    gap: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-card,
  .contact-box,
  .feature-copy,
  .card,
  .notice {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
