/* sections/hero.css */
/* Hero section styles — full viewport, navigation, burger menu, content, CTA */
/* No other section styles. Hero only. */

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HERO HEADER — Fixed Navigation Bar
   ============================================================ */

.hero__header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-dropdown);
  padding: var(--space-4) var(--space-6);
  background: transparent;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   BRAND NAME
   ============================================================ */

.hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero__brand:hover {
  color: var(--color-accent);
}

.hero__brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  position: relative;
  top: -3px;
}

/* ============================================================
   BURGER BUTTON
   ============================================================ */

.hero__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  z-index: var(--z-drawer);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hero__burger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ============================================================
   BURGER LINES
   ============================================================ */

.hero__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: var(--border-radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ============================================================
   NAVIGATION MENU — Slide From Right
   ============================================================ */

.hero__nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 100vw;
  background: var(--color-dark-section);
  z-index: var(--z-drawer);
  padding: var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.hero__nav-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

@media (min-width: 1120px) {
  .hero__nav-menu {
    padding: var(--space-16) var(--space-8);
    gap: var(--space-8);
  }
}

.hero__nav-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}


/* ============================================================
   NAV LIST AND LINKS
   ============================================================ */

.hero__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: 0;
}

@media (min-width: 1120px) {
  .hero__nav-list {
    gap: var(--space-6);
    padding-left: var(--space-16);
  }
}

.hero__nav-link {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (min-width: 1120px) {
  .hero__nav-link {
    font-size: var(--font-size-5xl);
  }
}

.hero__nav-link:hover {
  color: var(--color-text-primary);
}

.hero__nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ============================================================
   NAV SOCIAL
   ============================================================ */

.hero__nav-social {
  display: flex;
  gap: var(--space-4);
  margin-top: auto;
}

/* ============================================================
   HERO BODY
   Mobile: stacked column
   Desktop: relative container for absolute children
   ============================================================ */

.hero__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 80px;
}

@media (min-width: 1120px) {
  .hero__body {
    position: relative;
    padding-top: 0;
    height: 100vh;
  }
}

/* ============================================================
   HERO CONTENT
   Mobile: stacked, padded
   Desktop: absolute left center
   ============================================================ */

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-8);
  order: 2;
  position: relative;
}

@media (min-width: 1120px) {
  .hero__content {
    position: absolute;
    top: 50%;
    left: clamp(var(--space-8), 6vw, var(--space-24));
    transform: translateY(-50%);
    max-width: clamp(320px, 45vw, 600px);
    padding: 0;
    order: 0;
  }
}

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

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(var(--font-size-3xl), 3.5vw, var(--font-size-5xl));
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 24px;
}

@media (min-width: 1120px) {
  .hero__headline {
    text-align: left;
  }
}

/* ============================================================
   HERO HEADLINE ITALIC SPAN — "MOVIMIENTO" in headline, styled differently
   ============================================================ */

.hero__headline--italic {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-regular);
  padding-left: 0;
}

@media (min-width: 1120px) {
  .hero__headline--italic {
    padding-left: var(--space-16);
  }
}
/* ============================================================
   HERO SUBHEADLINE
   ============================================================ */

.hero__subheadline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);  line-height: var(--line-height-base);
  font-weight: var(--font-weight-slight);
  max-width: 480px;
  text-transform: none;
  margin-top: var(--space-4);
  margin-bottom: 32px;
}

/* ============================================================
   HERO MOTIF — decorative, behind headline
   ============================================================ */
.hero__motif {
  position: absolute;
  top: 30%;
  left: -65%;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%) rotate(-18deg);
  width: clamp(300px, 10vw, 380px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (min-width: 1120px) {
  .hero__motif {
    top: -10%;
    left: -140px;
    right: unset;
    margin: 0;
    transform: translateY(-50%) rotate(-12deg);
  }
}
/* ============================================================
   HERO CTA BUTTON
   ============================================================ */

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: var(--color-accent-secondary);
  color: var(--color-text-lighter);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-5) var(--space-12);
  border-radius: var(--border-radius-xl);
  border: none;
  cursor: pointer;
  width: fit-content;
  min-height: 56px;
  margin-top: var(--space-6);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  opacity: 0.97;
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

.hero__cta-arrow {
  display: inline-block;
  transition: transform var(--transition-slow);
  flex-shrink: 0;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

/* ============================================================
   PROFILE CARD
   Mobile: full width, side margins
   Desktop: absolute right, fluid width
   ============================================================ */

.hero__profile-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-background-darker);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  gap: var(--space-6);
  margin: var(--space-4);
  order: 1;
}

@media (min-width: 1120px) {
  .hero__profile-card {
    position: absolute;
    right: clamp(var(--space-24), 12vw, var(--space-64));
    top: 50%;
    transform: translateY(-50%);
    width: clamp(320px, 35vw, 500px);
    height: clamp(600px, 75vh, 900px);
    margin: 0;
    order: 0;
  }
}

/* ============================================================
   PROFILE PHOTO
   ============================================================ */

.hero__profile-photo-wrapper {
  width: clamp(160px, 20vw, 300px);
  height: clamp(160px, 20vw, 300px);
  margin: 0 auto;
  margin-top: var(--space-4);
}

.hero__profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   PROFILE INFO
   ============================================================ */

.hero__profile-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  margin-top: var(--space-8);
}

.hero__profile-name {
  font-family: var(--font-heading);
  font-size: clamp(var(--font-size-4xl), 2.5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-transform: none;
  opacity: 0.9;
}

.hero__profile-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: none;
  opacity: 0.9;
}

.hero__profile-bio {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  margin-top: var(--space-2);
  opacity: 0.8;
}

/* ============================================================
   Solid navbar state — applied by navigation.js on scroll
   ============================================================ */

.hero__header--solid {
  background-color: var(--color-background);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.hero__burger.is-open .hero__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hero__burger.is-open .hero__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hero__burger.is-open .hero__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero__subheadline-second-line {
  display: block;
  margin-top: 4px;
}

/* ============================================================
   PLAN ERROR STATE — dark premium theme
   ============================================================ */

.modal--plan .modal__error-state {
  background: transparent;
}

.modal__error-plan-stage {
  display: none;
  position: relative;
  width: 132px;
  height: 132px;
  place-items: center;
  margin: 4px auto 26px;
}

.modal--plan .modal__error-plan-stage {
  display: grid;
}

.modal__error-icon {
  display: flex;
}

.modal--plan .modal__error-icon[hidden] {
  display: none;
}

.modal__error-plan-glow {
  position: absolute;
  filter: blur(14px);
  opacity: 0;
  inset: -30%;
  border-radius: var(--border-radius-full);
  background: radial-gradient(circle, rgba(231, 201, 147, 0.46) 0%, transparent 62%);
  animation: glowIn 1s ease 0.15s 1 forwards, glowPulse 4.5s ease-in-out 1.2s infinite;
}

.modal__error-plan-mark {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(231, 201, 147, 0.42);
  background: rgba(202, 164, 114, 0.18);
  color: rgb(231, 201, 147);
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  box-shadow:
    rgba(202, 164, 114, 0.7) 0px 12px 38px -10px,
    rgba(231, 201, 147, 0.09) 0px 0px 0px 6px;
  transform: scale(0);
  animation: markPop 0.7s cubic-bezier(0.18, 1.3, 0.4, 1) 0.1s 1 forwards;
}

.modal--plan .modal__error-heading {
  color: var(--color-text-muted);
}

.modal--plan .modal__error-message {
  color: rgba(255, 252, 242, 0.6);
  opacity: 1;
}

.modal--plan .modal__retry {
  background: rgba(231, 201, 147, 0.08);
  border: 1px solid rgba(231, 201, 147, 0.35);
  color: rgb(231, 201, 147);
  border-radius: var(--border-radius-full);
}

.modal--plan .modal__retry:hover {
  background: rgba(231, 201, 147, 0.14);
  border-color: rgba(231, 201, 147, 0.6);
}