/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: 0;
  overflow: hidden;
}

/* Background image with slow Ken Burns zoom */
.hero__bg {
  position: absolute;
  inset: -5%;
  background: url('../media/hero img bg.png') center/cover no-repeat;
  animation: hero-zoom 28s ease-in-out infinite alternate;
  z-index: 0;
}

/* 80% dark overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--primary-darker), var(--primary-dark) 50%, var(--primary));
  opacity: 0.9;
  z-index: 1;
}

/* Golden ambient glow — breathes */
.hero__glow {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 55%;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  animation: glow-pulse 7s ease-in-out infinite;
}

/* Decorative chevrons — float independently */
.hero__chevrons {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-55%);
  width: 380px;
  height: 460px;
  pointer-events: none;
  z-index: 2;
}

.hero__chevron {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 0%, 65% 50%, 0% 100%, 30% 100%, 95% 50%, 30% 0%);
}

.hero__chevron--1 {
  background: var(--accent);
  opacity: 0.06;
  animation: chevron-float 8s ease-in-out infinite;
}

.hero__chevron--2 {
  background: var(--green-lime);
  opacity: 0.05;
  translate: 60px 0;
  scale: 0.85;
  animation: chevron-float 10s ease-in-out 1s infinite;
}

.hero__chevron--3 {
  background: var(--green-bright);
  opacity: 0.04;
  translate: 120px 0;
  scale: 0.7;
  animation: chevron-float 12s ease-in-out 2s infinite;
}

/* Hero content */
.hero__body {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

/* Staggered entry animations */
.hero__tagline {
  font-size: var(--text-s);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--accent);
  margin-bottom: var(--space-s);
  line-height: 1;
  animation: hero-reveal 0.9s var(--ease-out) 0.15s both;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-m);
  animation: hero-reveal 0.9s var(--ease-out) 0.35s both;
}

.hero h1 span {
  color: var(--accent);
}

.hero__text {
  font-size: var(--text-l);
  color: var(--text-on-dark-muted);
  max-width: 580px;
  margin-bottom: var(--space-l);
  animation: hero-reveal 0.9s var(--ease-out) 0.55s both;
}

.hero .btn-group {
  animation: hero-reveal 0.9s var(--ease-out) 0.75s both;
}

/* Stats bar */
.hero__stats .grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 769px) {
  .hero__stats .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero__stats {
  position: relative;
  z-index: 3;
  padding-block: var(--space-l);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: hero-reveal 0.9s var(--ease-out) 0.95s both;
}

/* === HERO KEYFRAMES === */
@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes chevron-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; transform: scale(1.12); }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero__chevrons {
    right: -5%;
    width: 250px;
    height: 300px;
    opacity: 0.6;
  }

  .hero__content {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__glow,
  .hero__chevron,
  .hero__tagline,
  .hero h1,
  .hero__text,
  .hero .btn-group,
  .hero__stats {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* === ABOUT === */
.about__chairman-role {
  font-size: var(--text-s);
  font-weight: var(--font-weight-semibold);
  color: var(--primary);
  margin-bottom: var(--space-s);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.about__chairman .card h3 {
  margin-bottom: var(--space-2xs);
}

/* === BIZ SECTION REVERSED GRID === */
@media (max-width: 1024px) {
  .biz-grid--reversed .content-block {
    order: -1;
  }
}

/* === ECGAS TAGLINE === */
.ecgas-tagline {
  font-size: var(--text-l);
  color: var(--accent-light);
  font-weight: var(--font-weight-medium);
}

/* === CABEZA SPECIAL TREATMENT === */
#cabeza {
  background: linear-gradient(170deg, var(--primary-darker) 0%, hsl(158, 58%, 10%) 100%);
}

/* === INVESTOR COLUMNS === */
.investor__card {
  padding: var(--space-xl) var(--space-l);
}

.investor__card .card__title {
  font-size: var(--h4);
  margin-bottom: var(--space-s);
}

.investor__card .card__text {
  font-size: var(--text-m);
  line-height: var(--line-height-relaxed);
}

/* === CONTACT === */
.contact__icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  text-align: center;
  margin-inline: auto;
  margin-bottom: var(--space-s);
  color: var(--primary);
}

.contact__item h3 {
  font-size: var(--h5);
  margin-bottom: var(--space-xs);
}

.contact__item p {
  font-size: var(--text-s);
  color: var(--text-secondary);
  margin-inline: auto;
}

.contact__item a {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
}

.contact__item a:hover {
  color: var(--accent-dark);
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
}

/* === SECTION GRAIN OVERLAY (subtle depth) === */
.section--dark::before,
.section--darker::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.section--dark > *,
.section--darker > * {
  position: relative;
  z-index: 1;
}
