:root {
  --green-950: #0c1f16;
  --green-900: #123026;
  --green-800: #1a3f2f;
  --green-700: #245240;
  --green-600: #2f6b52;
  --green-500: #3d8063;
  --green-200: #c5ddd0;
  --green-100: #e8f1ec;
  --white: #ffffff;
  --off-white: #f7faf8;
  --text: #12261c;
  --muted: #5a6e63;
  --line: rgba(18, 48, 38, 0.12);
  --line-light: rgba(255, 255, 255, 0.22);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ─── Header ─── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.45s var(--ease-out),
    backdrop-filter 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    height 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(12, 31, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.brand-nav img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-950);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 110px;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(61, 128, 99, 0.35) 0%, transparent 65%);
}

.hero-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50% 50% 0 0;
}

.hero-hill-1 {
  bottom: -8%;
  height: 42%;
  background: linear-gradient(180deg, var(--green-800), var(--green-950));
  opacity: 0.9;
}

.hero-hill-2 {
  bottom: -18%;
  height: 48%;
  background: linear-gradient(180deg, var(--green-700), var(--green-900));
  opacity: 0.55;
  transform: translateX(8%);
}

.hero-hill-3 {
  bottom: -28%;
  height: 52%;
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
  opacity: 0.28;
  transform: translateX(-6%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding-bottom: 24px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-brand-line {
  margin: 12px 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  margin: 0 auto 32px;
  max-width: 540px;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--green-950);
}

.btn-primary:hover {
  background: var(--green-100);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ─── Sections ─── */

.section {
  padding: 100px 0;
}

.section-muted {
  background: var(--white);
}

.section-tag {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-600);
}

.section-tag-light {
  color: var(--green-200);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--green-950);
  max-width: 640px;
}

.section p {
  color: var(--muted);
}

.section-header {
  margin-bottom: 48px;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--green-600);
  margin: 22px 0;
  opacity: 0.55;
}

.divider-light {
  background: rgba(255, 255, 255, 0.45);
}

/* Quiénes somos */

.split-editorial {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: stretch;
}

.editorial-copy p:last-child {
  margin: 0;
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.editorial-accent {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accent-label {
  margin: 0 0 16px !important;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-200) !important;
}

.editorial-accent h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--white);
}

.editorial-accent p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.75;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease-out);
}

.service-item:hover {
  background: var(--green-100);
}

.service-icon {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--green-700);
  margin-bottom: 18px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--green-950);
}

.service-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Audiences */

.audiences {
  padding: 0;
  background: var(--off-white);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(1120px, 100%);
  padding: 0;
}

.audience {
  padding: 90px 48px;
}

.audience-alt {
  background: linear-gradient(160deg, var(--green-950), var(--green-800));
  color: var(--white);
}

.audience-alt .section-tag {
  color: var(--green-200);
}

.audience-alt h2 {
  color: var(--white);
}

.audience-alt p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.audience h2 {
  max-width: 400px;
}

.audience p:last-child {
  margin: 0;
  max-width: 400px;
  line-height: 1.8;
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-panel {
  position: relative;
  min-height: 280px;
  padding: 36px 28px;
  background:
    linear-gradient(165deg, rgba(18, 48, 38, 0.2), rgba(12, 31, 22, 0.55)),
    linear-gradient(135deg, var(--green-800), var(--green-950));
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out);
}

.project-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(61, 128, 99, 0.35), transparent 55%);
  pointer-events: none;
}

.project-panel:hover {
  transform: translateY(-4px);
}

.project-index {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
}

.project-panel h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.project-panel p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* CTA */

.cta-section {
  background: var(--green-950);
  padding: 100px 0;
}

.cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-block h2 {
  color: var(--white);
  margin-left: auto;
  margin-right: auto;
}

.cta-block > p:not(.section-tag) {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 32px;
  max-width: 460px;
}

.cta-block .actions {
  margin-top: 8px;
}

.cta-block .divider {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

.site-footer {
  background: var(--green-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0 42px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-meta {
  margin: 2px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

/* ─── Motion ─── */

.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal-hero,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-line { animation: none; }
  .btn:hover,
  .project-panel:hover { transform: none; }
}

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .split-editorial,
  .service-grid,
  .project-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    border-left: none;
  }

  .service-item {
    border-left: 1px solid var(--line);
  }

  .audience {
    padding: 72px 40px;
  }

  .editorial-accent {
    padding: 40px 32px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(12, 31, 22, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hero {
    padding: calc(var(--header-h) + 28px) 0 88px;
    align-items: center;
  }

  .hero-logo {
    width: 76px;
    height: 76px;
  }

  .hero-brand {
    margin-bottom: 28px;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .audience {
    padding: 56px 28px;
  }

  .project-panel {
    min-height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-section {
    padding: 72px 0;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
