/* ==========================================================================
   LAYOUT · Nav, cover, hero, secciones, footer
   ========================================================================== */

/* ============ NAV ============ */

nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: none;
  box-shadow: none;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

nav.is-scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(26, 18, 64, .04), 0 8px 24px -16px rgba(26, 18, 64, .12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: 64px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
  white-space: nowrap;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav__logo {
  width: 42px;
  height: 42px;
}

.nav__brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.nav__brand-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--ink-900);
}

.nav__brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.1px;
  color: var(--ink-700);
  transition: color var(--t-fast);
}

.nav__links a:hover {
  color: var(--indigo-900);
}

.nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav__links,
  .nav__cta {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .nav__brand-sub {
    display: none;
  }
}

/* ============ COVER IMAGE ============ */

.cover-image {
  position: relative;
  height: 78vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.cover-image__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.cover-image__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(26, 18, 64, .72) 0%,
      rgba(26, 18, 64, .65) 35%,
      rgba(26, 18, 64, .92) 100%);
}

.cover-image__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  pointer-events: none;
}

.cover-image__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.cover-image__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.cover-image__coords {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .65);
  text-align: right;
}

.cover-image__content-bottom {
  max-width: 880px;
}

.cover-image__title {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 4px;
}

.cover-image__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin: 0 0 24px;
  max-width: 920px;
}

.cover-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cover-date-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  transition: background .25s, border-color .25s;
}

.cover-date-chip:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
}

.cover-date-chip__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  margin-bottom: 4px;
}

.cover-date-chip__value {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.2;
}

.cover-meta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  line-height: 1.5;
  padding: 10px 0;
}

@media (max-width: 640px) {
  .cover-image__title { letter-spacing: -1.5px; }
  .cover-info-row { gap: 12px; width: 100%; }
  .cover-date-chip { padding: 10px 14px; }
  .cover-date-chip__value { font-size: 14px; }
  .cover-meta-line { font-size: 10px; padding: 6px 0; width: 100%; }
}

.cover-image__scroll {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  padding: 10px 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  width: 100%;
  max-width: 280px;
  padding-top: 14px;
}

.cover-image__scroll svg {
  transition: transform var(--t-fast);
}

.cover-image__scroll:hover svg {
  transform: translateY(3px);
}

/* ============ SECCIONES (genéricas) ============ */

.section {
  padding: 80px 0;
  position: relative;
  overflow: visible;
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}

.section--bone {
  background: var(--bone);
}

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-header--split {
  max-width: none;
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 1024px) {
  .section-header--split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(40px, 6vw, 80px);
  }
}

.section-title {
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.04;
  margin-top: 16px;
  color: var(--ink-900);
}

.section-intro {
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.65;
  max-width: 460px;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(26, 18, 64, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 18, 64, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero {
    padding: 120px 0;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
  }
}

.hero__title {
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 600;
  letter-spacing: -2.5px;
  line-height: 1.02;
  margin-top: 18px;
  color: var(--ink-900);
}

.hero__desc {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 560px;
}

.hero__meta {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-500);
}

.hero-aval {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-100);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 320px;
}

.hero-aval__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}

.hero-aval__logo {
  width: auto;
  max-width: 280px;
  height: auto;
  max-height: 110px;
  display: block;
  transition: opacity .25s;
}

.hero-aval__logo:hover {
  opacity: .85;
}

@media (max-width: 640px) {
  .hero-aval {
    margin-top: 32px;
    padding-top: 22px;
    max-width: 100%;
  }
  .hero-aval__logo {
    max-height: 90px;
    max-width: 240px;
  }
}

/* ============ FOOTER ============ */

.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .75);
  padding: 80px 0 28px;
  margin-top: 0;
}

.footer .container { background: transparent; }

.footer__grid {
  display: grid;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
  }
}

.footer__brand {
  max-width: 420px;
  background: transparent;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer__logo-img {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.footer__brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.footer__brand-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: #fff;
}

.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.footer__text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .6);
}

.footer__col {
  background: transparent;
}

.footer__col-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--indigo-100);
  margin-bottom: 18px;
  background: transparent;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  transition: color var(--t-fast);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__credit-link {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer__credit-link:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* ============ ANIMACIÓN data-animate ============ */

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1),
              transform .6s cubic-bezier(.4, 0, .2, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ UTILIDADES ============ */

.dot-sep {
  color: var(--ink-300);
  margin: 0 4px;
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, .85);
}

.eyebrow--on-dark::before {
  background: rgba(255, 255, 255, .55);
}

.emphasis--on-dark {
  color: rgba(255, 255, 255, .55);
}
