:root {
  --color-bg: #ffffff;
  --color-dark-green: #1f3d2b;
  --color-green-btn: #17301f;
  --color-orange: #e2792f;
  --color-whatsapp-green: #25d366;
  --color-gold: #d3a13c;
  --color-terracotta: #b5551f;
  --color-sage: #5f7a52;
  --color-text: #3a3a34;
  --color-text-muted: #5c5c53;
  --color-border: #d8cfba;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  z-index: 0;
  will-change: transform;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;

  /* neon color tokens (overridden per variant below) */
  --btn-neon: var(--color-orange);
  --btn-glow-1: rgba(226, 121, 47, 0.55);
  --btn-glow-2: rgba(226, 121, 47, 0.3);
}

.btn-primary {
  background: var(--color-whatsapp-green);
  color: #fff;
  --btn-neon: var(--color-whatsapp-green);
  --btn-glow-1: rgba(37, 211, 102, 0.55);
  --btn-glow-2: rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
}

.btn-arrow {
  font-size: 1rem;
  line-height: 1;
}

.btn-header {
  padding: 12px 24px;
}

/* Neon glow (adapted from skill-CSSNeonButton) */
.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 115%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--btn-neon);
  transform: perspective(1em) rotateX(40deg) scale(1, 0.35);
  filter: blur(1.1em);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s linear;
}

/* Hero and header buttons: no floor reflection/shadow beneath the button */
.hero-actions .btn::before,
.btn-header::before {
  display: none;
}

.btn:hover,
.btn:focus-visible {
  text-shadow:
    0 0 0.35em hsl(0 0% 100% / 0.55),
    0 0 0.55em var(--btn-neon);
  box-shadow:
    0 0 0.9em 0.15em var(--btn-glow-1),
    0 0 1.8em 0.45em var(--btn-glow-2);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 0.55;
}

/* Top section (header + hero share one continuous video background) */
.top-section {
  position: relative;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  display: none;
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  background: transparent;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--color-dark-green);
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.logo-text small {
  font-family: 'Playfair Display', serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-orange);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-dark-green);
  padding-bottom: 6px;
  position: relative;
}

.nav-link.active {
  border-bottom: 2px solid var(--color-dark-green);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 90px 0 140px;
}

.hero-inner {
  position: relative;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.18;
  color: var(--color-dark-green);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 20px;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--color-dark-green);
}

.dot-accent {
  color: var(--color-orange);
}

.hero-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero brand text (sits under the video logo, right side) */
.hero-brand {
  position: absolute;
  right: 15%;
  bottom: 70px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.brand-huma {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-dark-green);
}

.brand-consultoria {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-orange);
}

.brand-tagline {
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--color-dark-green);
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-brand {
    position: static;
    align-items: center;
    margin-top: 48px;
  }
}

/* Ticker (carousel between hero and services) */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--color-green-btn);
  padding: 20px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 160s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  list-style: none;
}

.ticker-group li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  white-space: nowrap;
  padding-right: 48px;
  margin-right: 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.ticker-group li:last-child {
  border-right: none;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* Services */
.services {
  position: relative;
  overflow: hidden;
  padding: 56px 0 120px;
  background: var(--color-bg);
}

.services-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-header {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-orange);
  margin-bottom: 14px;
}

.services-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.18;
  color: var(--color-dark-green);
  position: relative;
  padding-bottom: 20px;
}

.services-title::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--color-dark-green);
}

.services-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.service-card {
  --accent: var(--color-dark-green);
  position: relative;
  background: var(--accent);
  border: none;
  border-radius: 18px;
  padding: 18px 16px;
  flex: 1 1 0;
  min-width: 0;
  height: 460px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.service-card:nth-child(1) { --accent: var(--color-dark-green); }
.service-card:nth-child(2) { --accent: var(--color-orange); }
.service-card:nth-child(3) { --accent: var(--color-sage); }
.service-card:nth-child(4) { --accent: var(--color-green-btn); }
.service-card:nth-child(5) { --accent: var(--color-gold); }
.service-card:nth-child(6) { --accent: var(--color-terracotta); }

.service-card:hover,
.service-card.is-expanded {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.service-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.service-body::-webkit-scrollbar {
  width: 6px;
}

.service-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

/* Hidden by default on desktop/hover-capable screens; only the expanded card
   (tracked via the .is-expanded class, toggled synchronously on mouseenter/leave)
   reveals its text. Driven by CSS rather than independent GSAP opacity tweens so
   rapid hovering across cards can never leave a collapsed card's text visible. */
@media (hover: hover) and (min-width: 901px) {
  .service-body {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .service-card.is-expanded .service-body {
    opacity: 1;
    transition: opacity 0.4s ease 0.25s;
  }
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ffffff;
  white-space: normal;
  margin-bottom: 14px;
}

.service-text:last-child {
  margin-bottom: 0;
}

.service-number {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .services-grid {
    flex-direction: column;
  }

  .service-card {
    height: auto;
    flex: none;
    width: 100%;
    padding: 28px 24px;
  }

  .service-body {
    opacity: 1 !important;
  }
}

@media (max-width: 560px) {
  .services {
    padding: 80px 0;
  }

  .services-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 18px 20px;
  }

  .hero {
    padding: 60px 0 100px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .btn-header {
    display: none;
  }
}
