/* ────────────────────────────────────────────────────────────────────────
   HYG Asesoría Legal — design tokens
   Inspired by brazeauseller.com structure (sticky overlay nav, bold hero,
   dual "quiénes / qué hacemos" band, dark contact band) but applying the
   modular type / 8pt grid / single-accent discipline from the T.C site.
   Palette mirrors Brazeau Seller: cyan-blue primary + lime green secondary
   + warm dark brown CTA band, on a near-white canvas. Poppins throughout.
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --canvas:        #ffffff;
  --canvas-soft:   #f5f5f3;
  --ink:           #1c1c1c;
  --ink-2:         #3a3a3a;
  --ink-muted:     #66676b;
  --ink-subtle:    #9a9b9e;
  --hairline:      #e6e6e6;
  --hairline-soft: #efefee;

  --primary:       #00759b;   /* deeper, more legal-firm than brazeauseller's #00A7CE */
  --primary-bright:#00a7ce;   /* the brazeauseller cyan, used sparingly for links */
  --secondary:     #5bbc2e;   /* lime green accent (matches brazeauseller) */
  --dark-band:     #3e3935;   /* warm dark brown (matches brazeauseller) */
  --dark-band-2:   #2b2724;
  --on-dark:       #ffffff;

  /* Type scale — modular 1.25, snapped to 8pt-friendly values */
  --t-12: 12px;
  --t-14: 14px;
  --t-16: 16px;
  --t-18: 18px;
  --t-20: 20px;
  --t-24: 24px;
  --t-28: 28px;
  --t-32: 32px;
  --t-40: 40px;
  --t-56: 56px;
  --t-72: 72px;

  /* Spacing — 8pt */
  --s-4:  4px;
  --s-8:  8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;
  --s-128: 128px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --container: 1200px;
  --container-narrow: 900px;

  --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ────────────────────────────────────────────────────────────────────────
   Reset & base
   ──────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

::selection { background: var(--primary); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-32);
  padding-right: var(--s-32);
}
@media (max-width: 720px) {
  .container { padding-left: var(--s-24); padding-right: var(--s-24); }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ────────────────────────────────────────────────────────────────────────
   Typography utilities
   ──────────────────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--s-16);
}
.eyebrow--on-dark { color: var(--primary-bright); }

.display-md {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.section__lede {
  font-size: var(--t-18);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: var(--s-16) 0 0;
}

/* ────────────────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: var(--t-14);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 0;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 28px; font-size: var(--t-14); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--dark-band); border-color: var(--dark-band); }
.btn--accent {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn--accent:hover { background: #4ea226; border-color: #4ea226; }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ────────────────────────────────────────────────────────────────────────
   Nav — sticky transparent → solid on scroll (like brazeauseller)
   ──────────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(28, 28, 28, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: var(--s-32);
  color: #fff;
}
.nav__brand {
  display: inline-flex; align-items: baseline; gap: var(--s-12);
  color: #fff;
  font-weight: 700;
}
.nav__mark {
  display: inline-block;
  padding: 6px 10px;
  background: var(--primary);
  color: #fff;
  font-size: var(--t-14);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav__wordmark {
  font-size: var(--t-14);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links {
  display: flex; gap: var(--s-32);
  font-size: var(--t-13, 13px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__links a {
  color: #fff;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.nav__links a:hover { border-color: var(--primary-bright); color: var(--primary-bright); }

.nav__menu {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  width: 40px; height: 40px;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__menu span { width: 16px; height: 2px; background: #fff; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav .btn { display: none; }
}
@media (max-width: 720px) {
  .nav__menu { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--dark-band);
    padding: var(--s-24);
    gap: var(--s-16);
  }
}

/* ────────────────────────────────────────────────────────────────────────
   HERO — full-bleed, dark overlay, bold headline (brazeauseller pattern)
   ──────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 144px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    url("assets/durango-hero.jpg") center 30% / cover no-repeat,
    #0c2032;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,15,30,.35) 0%, rgba(10,15,30,.55) 60%, rgba(10,15,30,.7) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-64);
  align-items: end;
  color: #fff;
}
@media (max-width: 960px) {
  .hero { min-height: 720px; padding: 128px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--s-24);
  color: #fff;
}
.hero__accent { color: var(--primary-bright); }
.hero__lede {
  font-size: var(--t-20);
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  max-width: 50ch;
  margin: 0 0 var(--s-32);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--s-16);
}

.hero__news {
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(0, 0, 0, .9);
  box-shadow: -2px 1px 12px 0 rgba(0,0,0,.5);
  padding: var(--s-32) var(--s-24);
  color: #fff;
  text-align: center;
}
.hero__news-label {
  margin: 0 0 var(--s-12);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255,255,255,.25);
  font-size: var(--t-20);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero__news-title {
  margin: 0 0 var(--s-8);
  font-size: var(--t-16);
  font-weight: 500;
  line-height: 1.4;
}
.hero__news-meta {
  margin: 0 0 var(--s-16);
  font-size: var(--t-12);
  color: rgba(255,255,255,.7);
  font-style: italic;
}
.hero__news-cta {
  display: inline-block;
  padding: 8px 28px;
  background: var(--primary);
  color: #fff;
  font-size: var(--t-12);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__news-cta:hover { background: var(--primary-bright); }

/* ────────────────────────────────────────────────────────────────────────
   DUAL BAND — quiénes / qué hacemos
   ──────────────────────────────────────────────────────────────────────── */

.dual {
  background: var(--dark-band);
  color: #fff;
  padding: clamp(72px, 9vw, 128px) 0;
}
.dual__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-96);
}
@media (max-width: 860px) {
  .dual__grid { grid-template-columns: 1fr; gap: var(--s-64); }
}
.dual__col {
  display: flex; flex-direction: column;
  align-items: flex-start;
}
.dual__title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--s-24);
}
.dual__pre {
  display: block;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--s-4);
}
.dual__accent { color: var(--primary-bright); }
.dual__body {
  font-size: var(--t-20);
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  margin: 0 0 var(--s-32);
  max-width: 36ch;
}

/* ────────────────────────────────────────────────────────────────────────
   SECTION shell
   ──────────────────────────────────────────────────────────────────────── */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--alt { background: var(--canvas-soft); }
.section__head { max-width: var(--container-narrow); margin: 0 0 var(--s-64); }

/* ────────────────────────────────────────────────────────────────────────
   SERVICES
   ──────────────────────────────────────────────────────────────────────── */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.service {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: var(--s-32);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
  display: flex;
  flex-direction: column;
}
.service:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 40px -16px rgba(0, 117, 155, .25);
  transform: translateY(-2px);
}
.service h3 {
  margin: 0 0 var(--s-12);
  font-size: var(--t-20);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.service > p {
  margin: 0 0 var(--s-16);
  font-size: var(--t-14);
  line-height: 1.6;
  color: var(--ink-muted);
}
.service__detail {
  margin: auto 0 0;
  padding-top: var(--s-16);
  border-top: 1px solid var(--hairline);
  font-size: var(--t-13, 13px);
  color: var(--ink-2);
}
.service__detail li {
  position: relative;
  padding: 4px 0 4px var(--s-16);
}
.service__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1.5px;
  background: var(--primary);
}

/* ────────────────────────────────────────────────────────────────────────
   TEAM
   ──────────────────────────────────────────────────────────────────────── */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-32);
}
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.member {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: var(--s-32);
}
.member__photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #d6dade, #b8bec4);
  margin-bottom: var(--s-24);
}
.member__name {
  margin: 0 0 var(--s-4);
  font-size: var(--t-20);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.member__role {
  margin: 0 0 var(--s-16);
  font-size: var(--t-12);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.member__bio {
  margin: 0;
  font-size: var(--t-14);
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ────────────────────────────────────────────────────────────────────────
   CTA dark band
   ──────────────────────────────────────────────────────────────────────── */

.cta {
  background: var(--dark-band-2);
  color: #fff;
  padding: clamp(72px, 9vw, 128px) 0;
  text-align: center;
}
.cta__inner { max-width: 760px; margin: 0 auto; }
.cta__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.cta__lede {
  margin: var(--s-24) auto 0;
  max-width: 56ch;
  font-size: var(--t-18);
  color: rgba(255,255,255,.8);
}
.cta__actions {
  margin-top: var(--s-48);
  display: flex; gap: var(--s-16); justify-content: center; flex-wrap: wrap;
}
.cta__note {
  margin-top: var(--s-32);
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.cta__details {
  margin-top: var(--s-48);
  padding-top: var(--s-32);
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-48);
  text-align: left;
}
@media (max-width: 600px) {
  .cta__details {
    grid-template-columns: 1fr;
    gap: var(--s-32);
    text-align: center;
  }
}
.cta__detail-label {
  margin: 0 0 var(--s-8);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-bright);
}
.cta__details address {
  font-style: normal;
  font-size: var(--t-14);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}
.cta__detail-phones {
  margin: 0;
  font-size: var(--t-14);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}
.cta__details a {
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.cta__details a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ────────────────────────────────────────────────────────────────────────
   SOCIAL BAR (the cyan band, brazeauseller-style)
   ──────────────────────────────────────────────────────────────────────── */

.socialbar {
  background: var(--primary);
  color: #fff;
  padding: var(--s-32) 0;
}
.socialbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-24);
}
.socialbar__contact {
  margin: 0;
  font-size: var(--t-18);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s-16);
  flex-wrap: wrap;
}
.socialbar__contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s var(--ease);
}
.socialbar__contact a:hover { border-color: rgba(255,255,255,.5); }
.socialbar__sep { opacity: .55; }
.socialbar__icons {
  display: flex; gap: var(--s-24);
  font-size: var(--t-14);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.socialbar__icons a { color: #fff; opacity: .9; transition: opacity .15s var(--ease); }
.socialbar__icons a:hover { opacity: 1; }

/* ────────────────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--dark-band);
  color: rgba(255,255,255,.7);
  padding: var(--s-48) 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-32);
  align-items: center;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
}
.footer__brand {
  display: inline-flex; align-items: baseline; gap: var(--s-12);
  font-size: var(--t-14);
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__mark {
  padding: 4px 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.footer__links {
  display: flex; gap: var(--s-24); justify-content: center;
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.footer__links a { color: rgba(255,255,255,.75); }
.footer__links a:hover { color: #fff; }
.footer__legal {
  font-size: var(--t-12);
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
  text-align: right;
}
@media (max-width: 720px) { .footer__legal { text-align: left; } }

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