/**
 * stacciolla/hero — style.css
 * Solo estilos del hero full-bleed.
 * Navbar y botones base → assets/css/global.css
 */

/* ============================================================
   WRAPPER
   Sin padding-top: el hero se extiende detrás del navbar fixed
   transparente. El contenido queda separado del nav via
   .fe-hero__stage { padding-top: calc(nav-height + space-16) }.
   ============================================================ */

.fe-hero-wrapper {
  position: relative;
}

/* ============================================================
   NAVBAR — dos capas separadas
   Capa 1: barra de menú fija (left + right, sin logo en el inner)
   Capa 2: logo flotante animado (position: fixed independiente)
   ============================================================ */

/* Capa 1: inner sin columna central — left nav | right nav */
.fe-nav__inner {
  grid-template-columns: 1fr 1fr;
}

/* Capa 2: logo centrado en pantalla inicialmente */
.fe-nav__logo {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fe-nav__logo svg {
  height: 210px;
  width: auto;
  transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estado scrolled — logo migra al centro del navbar (--fe-nav-height: 80px → top: 40px) */
.fe-nav--scrolled .fe-nav__logo {
  top: 40px;
  transform: translate(-50%, -50%);
}

.fe-nav--scrolled .fe-nav__logo svg {
  height: 44px;
}

/* Mega menu open — logo drops below mega panels so it never occludes them */
.fe-nav--mega-open .fe-nav__logo {
  z-index: 10 !important;
}

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

.fe-hero {
  position: relative;
  width: 100%;
  background-color: var(--fe-charcoal);
  background-image: var(--fe-bg-desktop, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .fe-hero {
    background-image: var(--fe-bg-tablet, var(--fe-bg-desktop, none));
  }
}

@media (max-width: 768px) {
  .fe-hero {
    background-image: var(--fe-bg-mobile, var(--fe-bg-tablet, var(--fe-bg-desktop, none)));
  }

  /* Logo home: reducido en mobile para no desbordarse */
  .fe-nav__logo svg {
    height: 110px;
  }

  .fe-nav--scrolled .fe-nav__logo svg {
    height: 40px;
  }
}

/* Alturas */
.fe-hero--full   { min-height: 100vh; }
.fe-hero--ninety { min-height: 90vh; }
.fe-hero--eighty { min-height: 80vh; }

/* Overlay */
.fe-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Stage — contenedor del contenido */
.fe-hero__stage {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  max-width: var(--fe-container-max);
  margin: 0 auto;
  padding: calc(var(--fe-nav-height) + var(--fe-space-16)) var(--fe-space-8) var(--fe-space-16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Posiciones del texto ── */

.fe-hero__content--bottom-left {
  align-self: flex-start;
  max-width: 640px;
}

.fe-hero__content--bottom-center {
  align-self: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.fe-hero__content--center {
  align-self: center;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

/* ── Eyebrow ── */

.fe-hero__eyebrow {
  color: var(--fe-gold-light);
  margin-bottom: var(--fe-space-4);
  display: block;
}

/* ── Headline ── */

.fe-hero__headline {
  font-family: var(--fe-font-display);
  font-size: var(--fe-size-hero);
  font-weight: var(--fe-weight-light);
  line-height: var(--fe-leading-tight);
  letter-spacing: var(--fe-tracking-tight);
  color: var(--fe-white);
  margin: 0 0 var(--fe-space-6);
}

.fe-hero__headline em {
  font-style: italic;
  font-weight: var(--fe-weight-light);
  color: var(--fe-gold-light);
}

/* ── Subtítulo ── */

.fe-hero__sub {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-md);
  font-weight: var(--fe-weight-light);
  line-height: var(--fe-leading-normal);
  color: rgba(253, 250, 246, 0.80);
  margin-bottom: var(--fe-space-8);
  max-width: 480px;
}

.fe-hero__content--bottom-center .fe-hero__sub,
.fe-hero__content--center .fe-hero__sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── CTAs ── */

.fe-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-space-4);
  align-items: center;
}

.fe-hero__content--bottom-center .fe-hero__ctas,
.fe-hero__content--center .fe-hero__ctas {
  justify-content: center;
}

/* Botón primario dentro del hero */
.fe-btn--hero {
  background: var(--fe-white);
  color: var(--fe-black);
  border-color: var(--fe-white);
}

.fe-btn--hero:hover {
  background: var(--fe-cream);
  color: var(--fe-black);
  border-color: var(--fe-cream);
}

/* Botón ghost sobre oscuro */
.fe-btn--ghost-light {
  color: rgba(253, 250, 246, 0.75);
  border-bottom: 1px solid rgba(253, 250, 246, 0.4);
  padding-bottom: 2px;
}

.fe-btn--ghost-light:hover {
  color: var(--fe-white);
  border-bottom-color: var(--fe-gold-light);
}

/* ── Motto bottom-right ── */

.fe-hero__motto {
  position: absolute;
  bottom: var(--fe-space-8);
  right: var(--fe-space-8);
  z-index: 2;
}

.fe-hero__motto .fe-eyebrow {
  color: rgba(253, 250, 246, 0.45);
  letter-spacing: var(--fe-tracking-widest);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

  .fe-hero--full,
  .fe-hero--ninety {
    min-height: 90svh;
  }

  .fe-hero__headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .fe-hero__sub {
    font-size: var(--fe-size-base);
  }

  .fe-hero__content--bottom-left {
    max-width: 100%;
  }

  .fe-hero__motto {
    display: none;
  }

  .fe-hero__stage {
    padding: calc(var(--fe-nav-height) + var(--fe-space-8)) var(--fe-space-4) calc(var(--fe-space-20) + env(safe-area-inset-bottom, 0px));
  }

  .fe-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .fe-hero__content--bottom-center .fe-hero__ctas,
  .fe-hero__content--center .fe-hero__ctas {
    align-items: center;
  }
}

/* ============================================================
   EDITOR PREVIEW — overrides solo para Gutenberg
   ============================================================ */

.editor-styles-wrapper .fe-hero-wrapper {
  padding-top: 0;
}

.editor-styles-wrapper .fe-hero--full,
.editor-styles-wrapper .fe-hero--ninety,
.editor-styles-wrapper .fe-hero--eighty {
  min-height: 520px;
}

.editor-styles-wrapper .fe-hero__stage {
  padding-top: var(--fe-space-16);
}
