/* ============================================================
   LAYOUT — nav, secciones wrapper, header, footer
   ============================================================ */

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-brand img {
  height: 42px;
  width: auto;
}

.nav-brand-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--lime);
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--lime);
  color: var(--ink);
}

/* ─── Wrappers de sección ─── */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Sección con fondo blanco y bordes */
.section-inset {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inset > .section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Sección sobre fondo oscuro */
.section-dark {
  background: var(--ink);
}

.section-dark > .section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* ─── Header / Intro ─── */
.site-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 9rem var(--space-lg) 11rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.intro-content {
  display: flex;
  flex-direction: column;
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: up 0.7s 0.1s forwards;
}

.intro-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--lime);
  flex-shrink: 0;
}

.intro-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.45vw, 4.33rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: up 0.7s 0.25s forwards;
}

.intro-title .highlight {
  display: inline-block;
  background: var(--lime);
  padding: 0 0.12em;
  font-style: italic;
  font-weight: 700;
}

.intro-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: up 0.7s 0.4s forwards;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: up 0.7s 0.55s forwards;
  position: relative;
}

.intro-media {
  opacity: 0;
  animation: left 0.8s 0.5s forwards;
}

.intro-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 16px 64px rgba(0, 0, 0, 0.1),
    0 2px 16px rgba(0, 0, 0, 0.06);
}

.intro-media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Marquee ─── */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  padding: 0.9rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  display: inline-block;
  margin: 0 3rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.marquee-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 var(--space-sm);
  opacity: 0.4;
}

/* ─── Footer ─── */
footer {
  background: var(--ink);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: var(--lime);
}

.footer-center {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
}

.footer-center a {
  color: var(--lime);
  text-decoration: none;
  opacity: 0.7;
}

.footer-center a:hover {
  opacity: 1;
}

.footer-right {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  nav {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    padding: 150px var(--space-md) 4rem;
  }

  .intro-media {
    display: none;
  }

  .section,
  .section-dark > .section-inner,
  .section-inset > .section-inner {
    padding: var(--space-xl) var(--space-md);
  }

  .section-inset {
    padding: var(--space-xl) var(--space-md);
  }
}
