:root {
  --ink: #10241e;
  --ink-soft: #44534e;
  --forest: #006b4f;
  --forest-dark: #004936;
  --mint: #08d5ad;
  --mint-pale: #dff9f1;
  --cream: #f5f7f5;
  --white: #fff;
  --line: #dce5e1;
  --shadow: 0 24px 64px rgba(2, 45, 34, .13);
  --radius: 22px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 124px) 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.contact-strip {
  color: #e9fff8;
  background: var(--forest-dark);
  font-size: .86rem;
}
.contact-strip__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.contact-strip a { display: inline-flex; align-items: center; gap: 8px; }
.contact-strip a:hover { color: var(--mint); }
.contact-strip svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.contact-strip__hours { margin-left: auto; color: #b8d8ce; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,73,54,.09);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { flex: 0 0 auto; }
.brand img { width: 245px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 24px; font-size: .93rem; font-weight: 650; }
.desktop-nav > a:not(.nav-cta) { position: relative; padding: 29px 0 25px; }
.desktop-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--mint);
  transition: right .2s ease;
}
.desktop-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  padding: 11px 20px;
  color: var(--white);
  background: var(--forest);
  border-radius: 999px;
}
.nav-cta:hover { background: var(--forest-dark); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.language-switch > span { color: var(--forest); }
.language-switch i { color: #a8b8b2; font-style: normal; font-weight: 400; }
.language-switch a:hover { color: var(--forest); }
.language-switch--mobile { width: fit-content; margin: 8px 13px 4px; }
.mobile-nav nav .language-switch a { display: inline; padding: 0; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 685px;
  display: grid;
  align-items: center;
  color: var(--white);
  background: #071e1a;
  overflow: hidden;
}
.hero__media,
.hero__veil { position: absolute; inset: 0; }
.hero__media {
  background: url("/assets/img/hero-payanos.webp") center 38% / cover no-repeat;
  transform: scale(1.015);
}
.hero__veil {
  background:
    linear-gradient(90deg, rgba(0,32,24,.97) 0%, rgba(0,42,31,.9) 43%, rgba(0,35,26,.24) 77%, rgba(0,35,26,.1) 100%),
    linear-gradient(0deg, rgba(0,24,18,.4), transparent 45%);
}
.hero__content { position: relative; z-index: 2; padding: 68px 0 150px; }
.eyebrow {
  margin: 0 0 17px;
  color: var(--mint);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--green { color: var(--forest); }
.eyebrow--mint { color: var(--mint); }
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.6vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero__lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: #d8ebe5;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 13px; margin-top: 34px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--forest-dark); background: var(--mint); }
.button--primary:hover { background: #2de5be; }
.button--ghost { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.button--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.button--dark { color: var(--white); background: var(--forest-dark); }
.button--outline { color: var(--forest-dark); border-color: var(--forest); background: transparent; }
.button--outline:hover { color: var(--white); background: var(--forest); }

.trust-bar {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 -8px 50px rgba(0,0,0,.12);
}
.trust-bar > div { min-height: 112px; display: flex; align-items: center; gap: 18px; padding: 25px 30px; }
.trust-bar > div + div { border-left: 1px solid var(--line); }
.trust-bar__number { color: var(--mint); font-family: Georgia, serif; font-size: 1.8rem; font-style: italic; }
.trust-bar p { margin: 0; line-height: 1.35; }
.trust-bar strong, .trust-bar p span { display: block; }
.trust-bar strong { margin-bottom: 5px; font-size: .98rem; }
.trust-bar p span { color: var(--ink-soft); font-size: .84rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(46px, 7vw, 96px);
}
.split--reverse { grid-template-columns: 1.08fr .92fr; }
.split__content h2,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.split__content > p:not(.eyebrow) { margin: 25px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.check-list { display: grid; gap: 11px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; font-weight: 650; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 50%;
  font-size: .7rem;
}
.intro__figure { position: relative; margin: 0; }
.intro__figure img { width: 100%; border-radius: 8px 90px 8px 8px; box-shadow: var(--shadow); }
.intro__figure figcaption {
  position: absolute;
  right: -16px;
  bottom: -25px;
  max-width: 245px;
  padding: 19px 24px;
  color: var(--white);
  background: var(--forest);
  border-radius: 14px 4px 14px 14px;
  font-weight: 700;
}

.services { background: var(--cream); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .62fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 46px;
}
.section-heading > p { margin: 0 0 7px; color: var(--ink-soft); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card {
  min-height: 278px;
  display: grid;
  grid-template-columns: minmax(170px, .82fr) 1.18fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(2,45,34,.1); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; justify-content: center; padding: 29px; }
.service-card__body > span { color: var(--forest); font-size: .76rem; font-weight: 850; letter-spacing: .14em; }
.service-card h3 { margin: 11px 0 12px; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.12; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.service-card--featured { border-color: rgba(0,107,79,.35); }

.about { color: var(--white); background: var(--forest-dark); }
.about__grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.portrait-wrap { position: relative; padding: 0 0 28px 28px; }
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 28px 28px 0 0;
  border: 1px solid rgba(8,213,173,.6);
  border-radius: 140px 140px 12px 12px;
}
.portrait-wrap img { position: relative; width: 100%; aspect-ratio: .82; object-fit: cover; object-position: center 20%; border-radius: 140px 140px 12px 12px; }
.portrait-note {
  position: absolute;
  right: -22px;
  bottom: 0;
  min-width: 230px;
  padding: 17px 22px;
  color: var(--forest-dark);
  background: var(--mint);
  box-shadow: 0 16px 32px rgba(0,0,0,.2);
}
.portrait-note strong, .portrait-note span { display: block; }
.portrait-note strong { font-family: Georgia, serif; font-size: 1.2rem; }
.portrait-note span { margin-top: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.about__content > p:not(.eyebrow) { max-width: 640px; margin: 25px 0 0; color: #c9e2da; font-size: 1.08rem; }
.about__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 36px 0; background: rgba(255,255,255,.14); }
.about__points > div { min-height: 130px; padding: 23px 19px; background: var(--forest-dark); }
.about__points strong, .about__points span { display: block; }
.about__points strong { color: var(--mint); font-family: Georgia, serif; font-size: 1.12rem; }
.about__points span { margin-top: 8px; color: #c9e2da; font-size: .83rem; line-height: 1.45; }
.text-link { display: inline-flex; align-items: center; gap: 13px; color: var(--white); font-weight: 800; }
.text-link span { color: var(--mint); font-size: 1.4rem; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.coverage { overflow: hidden; }
.coverage .split {
  width: var(--shell);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 64px);
}
.coverage__image { position: relative; display: grid; place-items: center; min-width: 0; }
.coverage .split__content { min-width: 0; }
.coverage__image::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  background: var(--mint-pale);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.coverage__image img { width: 100%; max-width: 500px; height: auto; margin-inline: auto; object-fit: contain; }
.coverage .button { margin-top: 30px; }

.resources { color: var(--white); background: #102c25; }
.section-heading--light > p { color: #bed7cf; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.resource-grid a {
  min-height: 154px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  padding: 25px 27px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  background: rgba(255,255,255,.045);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.resource-grid a:hover { background: rgba(8,213,173,.08); border-color: rgba(8,213,173,.65); transform: translateY(-3px); }
.resource-grid span { grid-column: 1; color: var(--mint); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.resource-grid strong { grid-column: 1; max-width: 410px; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.25; }
.resource-grid b { grid-column: 2; grid-row: 1 / span 2; align-self: start; color: var(--mint); font-size: 1.4rem; }

.contact { position: relative; overflow: hidden; background: var(--cream); }
.contact__photo {
  position: absolute;
  inset: 0 0 0 54%;
  background: linear-gradient(90deg, var(--cream) 0%, transparent 22%), url("/assets/img/atencion-payanos.webp") center / cover no-repeat;
  opacity: .37;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.contact__copy > p:not(.eyebrow) { max-width: 600px; margin: 24px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.contact__actions { display: flex; gap: 12px; margin-top: 31px; }
.contact-card {
  display: grid;
  gap: 0;
  padding: 12px 32px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-style: normal;
}
.contact-card > div { padding: 19px 0; }
.contact-card > div + div { border-top: 1px solid var(--line); }
.contact-card span, .contact-card strong { display: block; }
.contact-card span { margin-bottom: 5px; color: var(--forest); font-size: .73rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.contact-card strong, .contact-card a { font-size: .95rem; line-height: 1.55; }
.contact-card a { color: var(--forest); font-weight: 750; overflow-wrap: anywhere; }

.site-footer { color: #bed7cf; background: #071d17; }
.site-footer__grid { display: grid; grid-template-columns: 1.8fr .65fr .65fr; gap: 80px; padding: 68px 0 55px; }
.site-footer img { width: 225px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.site-footer p { max-width: 390px; margin: 19px 0 0; font-size: .92rem; }
.site-footer h2 { margin: 0 0 15px; color: var(--white); font-family: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__grid a { display: block; width: fit-content; margin-top: 9px; font-size: .9rem; }
.site-footer__grid a:hover { color: var(--mint); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 21px 0 25px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .76rem;
}

:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }

.error-page {
  min-height: 100vh;
  width: min(620px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  place-content: center;
  justify-items: start;
  background: radial-gradient(circle at 90% 15%, var(--mint-pale), transparent 40%);
}
.error-page img { width: 255px; margin-bottom: 55px; }
.error-page h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 5.7rem); line-height: 1; }
.error-page > p:not(.eyebrow) { margin: 24px 0 30px; color: var(--ink-soft); font-size: 1.08rem; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 760px); }
  .desktop-nav { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    list-style: none;
    cursor: pointer;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; height: 2px; background: var(--forest-dark); border-radius: 2px; }
  .mobile-nav nav {
    position: absolute;
    top: 54px;
    right: 0;
    width: min(290px, calc(100vw - 32px));
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .mobile-nav nav a { display: block; padding: 11px 13px; border-radius: 8px; font-weight: 700; }
  .mobile-nav nav a:hover { background: var(--mint-pale); }
  .hero { min-height: 730px; }
  .hero__content { padding-bottom: 245px; }
  .hero h1 { max-width: 680px; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar > div { min-height: 74px; padding: 14px 22px; }
  .trust-bar > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .split, .split--reverse, .coverage .split, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .split--reverse .coverage__image { order: 2; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .about__grid { max-width: 720px; }
  .portrait-wrap { max-width: 470px; margin-inline: auto; }
  .contact__photo { inset: 40% 0 0 0; opacity: .12; }
  .contact__grid { gap: 45px; }
  .site-footer__grid { grid-template-columns: 1.4fr .6fr .6fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 26px); }
  .section { padding: 72px 0; }
  .contact-strip__inner { min-height: 42px; justify-content: center; }
  .contact-strip a:nth-child(2), .contact-strip__hours { display: none; }
  .site-header__inner { min-height: 72px; }
  .brand img { width: 205px; }
  .hero { min-height: 765px; }
  .hero__media { background-position: 64% center; }
  .hero__veil { background: linear-gradient(90deg, rgba(0,35,26,.95), rgba(0,35,26,.62)); }
  .hero__content { align-self: start; padding-top: 74px; padding-bottom: 250px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.1rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions, .contact__actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .trust-bar__number { font-size: 1.4rem; }
  .trust-bar p span { font-size: .77rem; }
  .intro__figure figcaption { right: 0; bottom: -30px; }
  .service-card { min-height: 0; grid-template-columns: 118px 1fr; }
  .service-card__body { padding: 22px 19px; }
  .service-card h3 { font-size: 1.22rem; }
  .service-card p { font-size: .86rem; }
  .about__points { grid-template-columns: 1fr; }
  .about__points > div { min-height: 0; }
  .portrait-wrap { padding: 0 0 22px 15px; }
  .portrait-wrap::before { inset: 18px 18px 0 0; }
  .portrait-note { right: 0; min-width: 210px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-grid a { min-height: 142px; }
  .contact-card { padding-inline: 22px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 25px; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
