/* ==========================================================================
   ERNESTO BEIBE | MENTORING & ESTRATEGIA DIRECTIVA
   Design System & Luxury Architectural Stylesheet
   ========================================================================== */

:root {
  --brand-primary: #0A0E1A;
  --brand-surface-1: #111625;
  --brand-surface-2: #182032;
  --brand-accent: #C5A880;
  --brand-accent-light: #E4D3BD;
  --brand-accent-dark: #9E8158;
  --brand-bg: #FFFFFF;
  --brand-surface: #F8F9FA;
  --brand-surface-card: #FFFFFF;
  --brand-text-main: #0A0E1A;
  --brand-text-light: #F8FAFC;
  --brand-text-muted: #5A6578;
  --brand-text-muted-light: #94A3B8;
  --brand-border-dark: rgba(197, 168, 128, 0.22);
  --brand-border-light: rgba(10, 14, 26, 0.08);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-primary);
  color: var(--brand-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography Helpers */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #F0E2CE 0%, #C5A880 50%, #9E8158 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.serif-accent-dark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #B58F58 0%, #8D6B34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.eyebrow-tag::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--brand-accent);
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: 2px;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #D4BE9F 0%, #C5A880 50%, #B09066 100%);
  color: #0A0E1A;
  box-shadow: 0 4px 20px rgba(197, 168, 128, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E2CFAF 0%, #D4BE9F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-text-light);
  border: 1px solid var(--brand-border-dark);
}

.btn-secondary:hover {
  border-color: var(--brand-accent);
  background: rgba(197, 168, 128, 0.08);
  color: var(--brand-accent-light);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 1px solid rgba(10, 14, 26, 0.18);
  color: var(--brand-primary);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: var(--brand-accent-dark);
  background: rgba(197, 168, 128, 0.08);
  color: var(--brand-accent-dark);
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border-dark);
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-text-light);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text-muted-light);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link:focus {
  color: var(--brand-accent-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--brand-accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brand-text-light);
  transition: var(--transition);
}

/* ==========================================================================
   HERO DE AUTORIDAD
   ========================================================================== */

.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(24, 32, 50, 0.7) 0%, rgba(10, 14, 26, 1) 75%);
  padding: 70px 0 90px;
  border-bottom: 1px solid var(--brand-border-dark);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--brand-text-light);
  letter-spacing: -0.015em;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--brand-text-muted-light);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--brand-border-dark);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-text-muted-light);
  font-weight: 600;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--brand-border-dark);
  padding: 10px;
  background: rgba(17, 22, 37, 0.7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.98);
}

.hero-badge-corner {
  position: absolute;
  bottom: 24px;
  right: -16px;
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid var(--brand-accent);
  padding: 12px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent-light);
  font-weight: 600;
}

/* ==========================================================================
   MÉTODO BEIBE (ANÁLISIS SISTÉMICO)
   ========================================================================== */

.metodo-section {
  background-color: var(--brand-bg);
  color: var(--brand-text-main);
  padding: 100px 0;
  border-bottom: 1px solid var(--brand-border-light);
}

.metodo-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 60px;
}

.blueprint-card {
  background: #FFFFFF;
  border: 1px solid rgba(10, 14, 26, 0.12);
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 16px 40px rgba(10, 14, 26, 0.05);
  width: 100%;
}

.blueprint-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-accent-dark);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(10, 14, 26, 0.08);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.blueprint-coords {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--brand-text-muted);
}

.blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
}

.blueprint-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 14, 26, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--brand-text-muted);
  letter-spacing: 0.06em;
}

.blueprint-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot-gold {
  width: 7px;
  height: 7px;
  background: var(--brand-accent);
  display: inline-block;
}

.legend-dot-dark {
  width: 7px;
  height: 7px;
  background: var(--brand-primary);
  display: inline-block;
}

.metodo-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--brand-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.metodo-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 28px;
}

.metodo-lead strong {
  color: var(--brand-primary);
}

.metodo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 14, 26, 0.1);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4B5563;
}

.feature-item::before {
  content: '■';
  color: var(--brand-accent-dark);
  font-size: 0.75rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.feature-item strong {
  color: var(--brand-primary);
}

/* ==========================================================================
   PILARES DEL CRECIMIENTO
   ========================================================================== */

.pilares-section {
  background-color: var(--brand-surface);
  color: var(--brand-text-main);
  padding: 100px 0;
  border-bottom: 1px solid var(--brand-border-light);
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--brand-primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--brand-text-muted);
  line-height: 1.6;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pilar-card {
  background: var(--brand-surface-card);
  border: 1px solid rgba(10, 14, 26, 0.1);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pilar-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 36px rgba(10, 14, 26, 0.08);
}

.pilar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.pilar-card:hover::before {
  opacity: 1;
}

.pilar-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-accent-dark);
  line-height: 1;
  margin-bottom: 20px;
}

.pilar-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.pilar-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #4B5563;
  flex-grow: 1;
}

/* ==========================================================================
   AUTORIDAD Y LIBROS (LIDERAZGO DE PENSAMIENTO)
   ========================================================================== */

.autoridad-section {
  background-color: var(--brand-bg);
  color: var(--brand-text-main);
  padding: 100px 0;
  border-bottom: 1px solid var(--brand-border-light);
}

.autoridad-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.book-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-frame {
  position: relative;
  max-width: 360px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 14, 26, 0.1);
  box-shadow: 0 20px 48px rgba(10, 14, 26, 0.12);
  margin-bottom: 20px;
}

.book-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-details {
  text-align: center;
  max-width: 360px;
}

.book-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
  margin-bottom: 8px;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.book-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--brand-text-muted);
}

.monograph-table {
  width: 100%;
  border-top: 1px solid var(--brand-accent-dark);
  margin-bottom: 32px;
}

.monograph-row {
  display: flex;
  border-bottom: 1px solid rgba(10, 14, 26, 0.1);
  padding: 20px 0;
  align-items: baseline;
  justify-content: space-between;
}

.monograph-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
  font-weight: 700;
  flex: 0 0 35%;
}

.monograph-value {
  font-size: 0.95rem;
  color: var(--brand-text-main);
  font-weight: 500;
  line-height: 1.5;
  flex: 0 0 62%;
}

.monograph-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--brand-primary);
  line-height: 1.4;
  margin-top: 4px;
}

.autoridad-note {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   PORTAL EJECUTIVO DIRECTO (CTA FINAL)
   ========================================================================== */

.cta-section {
  background: radial-gradient(circle at 50% 50%, rgba(24, 32, 50, 0.95) 0%, rgba(10, 14, 26, 1) 100%);
  color: var(--brand-text-light);
  padding: 110px 0;
  text-align: center;
  border-bottom: 1px solid var(--brand-border-dark);
  position: relative;
}

.cta-card {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(17, 22, 37, 0.6);
  border: 1px solid var(--brand-border-dark);
  padding: 56px 40px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.cta-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--brand-text-light);
  letter-spacing: -0.015em;
}

.cta-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--brand-text-muted-light);
  margin: 0 auto 36px;
  max-width: 620px;
}

.cta-btn-main {
  padding: 18px 40px;
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--brand-accent-light);
  text-transform: uppercase;
}

.trust-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */

.site-footer {
  background-color: var(--brand-primary);
  color: var(--brand-text-light);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--brand-text-muted-light);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--brand-text-muted-light);
}

.footer-col a.contact-link {
  color: var(--brand-text-light);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.footer-col a.contact-link:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--brand-text-muted-light);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (CONVERSION PILLAR)
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.2; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE & MOBILE ADAPTATION
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .metodo-grid,
  .autoridad-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-media {
    order: -1;
  }

  .hero-image-frame {
    max-width: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--brand-border-dark);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .header-cta .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-section {
    padding: 48px 0 64px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: 1.12;
    margin-bottom: 18px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .pilares-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pilar-card {
    padding: 32px 24px;
  }

  .monograph-row {
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
  }

  .monograph-label {
    flex: 0 0 100%;
  }

  .monograph-value {
    flex: 0 0 100%;
    font-size: 0.9rem;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-btn-main {
    width: 100%;
    padding: 16px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}


/* ==========================================================================
   ANIMATIONS & PARALLAX (LUXURY EXECUTIVE MOTION)
   ========================================================================== */

/* Keyframe Definitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blueprintPulse {
  0%, 100% { stroke-opacity: 0.6; stroke-width: 1.5; }
  50% { stroke-opacity: 1; stroke-width: 2.2; stroke: #E4D3BD; }
}

/* Initial Load Animations (Hero) */
.hero-content {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-media {
  animation: fadeInScale 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

/* 3D Tilt & Parallax Card Frames */
.tilt-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-image-frame {
  perspective: 1000px;
  overflow: hidden;
}

.hero-image-frame img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.025);
  filter: contrast(1.07) brightness(1.02);
}

.book-frame {
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.book-frame:hover {
  transform: translateY(-8px) rotateY(-4deg) rotateX(3deg);
  box-shadow: 0 30px 60px rgba(10, 14, 26, 0.22);
}

/* Blueprint Line Pulse */
.blueprint-svg line[stroke="#C5A880"],
.blueprint-svg rect[stroke="#C5A880"],
.blueprint-svg path[stroke="#C5A880"] {
  animation: blueprintPulse 3.5s ease-in-out infinite;
}

/* Scroll Reveal Classes (IntersectionObserver Fallback + Progressive Enhancement) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger-1 { transition-delay: 0.1s; }
.reveal-stagger-2 { transition-delay: 0.22s; }
.reveal-stagger-3 { transition-delay: 0.34s; }

/* Native CSS Scroll-Driven Animation (Modern Chromium & Safari) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal-on-scroll {
      animation: fadeInUp linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
      opacity: 1;
      transform: none;
    }

    .reveal-stagger-1 {
      animation-range: entry 10% entry 45%;
    }
    .reveal-stagger-2 {
      animation-range: entry 15% entry 50%;
    }
    .reveal-stagger-3 {
      animation-range: entry 20% entry 55%;
    }

    /* Parallax Scroll on Hero Image */
    .hero-media {
      animation: parallaxDrift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    @keyframes parallaxDrift {
      from { transform: translateY(0px); }
      to { transform: translateY(40px); }
    }
  }
}

/* Disable all animations for users requesting reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==========================================================================
   ENHANCED SYSTEMIC GENOGRAM BLUEPRINT (LUXURY ARCHITECTURAL CONSOLE)
   ========================================================================== */

.blueprint-card {
  background: linear-gradient(150deg, #0C1220 0%, #070B14 100%);
  border: 1px solid rgba(197, 168, 128, 0.28);
  padding: 30px 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 35px rgba(197, 168, 128, 0.04);
  width: 100%;
  border-radius: 4px;
}

.blueprint-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.blueprint-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blueprint-live-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulseBeacon 1.8s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.blueprint-title-text {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
}

.blueprint-coords {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: #64748B;
  font-weight: 500;
}

.blueprint-svg-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.03) 0%, transparent 70%);
}

.blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Traveling Animated Lasers / Signal Flows */
.laser-flow {
  animation: flowHorizontal 2.2s infinite linear;
}

.laser-flow-down {
  animation: flowVertical 1.8s infinite linear;
}

.laser-flow-bus {
  animation: flowHorizontalReverse 3s infinite linear;
}

.tension-arc-flow {
  animation: flowTension 1.4s infinite linear;
}

@keyframes flowHorizontal {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}

@keyframes flowHorizontalReverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 60; }
}

@keyframes flowVertical {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}

@keyframes flowTension {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -24; }
}

/* Pulsing Aura for G2-DIR */
.focal-pulse-aura {
  animation: auraPulse 2.8s infinite ease-in-out;
  transform-origin: 280px 184px;
}

@keyframes auraPulse {
  0%, 100% {
    transform: scale(0.97);
    stroke-opacity: 0.3;
    stroke-width: 1.5;
  }
  50% {
    transform: scale(1.05);
    stroke-opacity: 0.9;
    stroke-width: 2.5;
    stroke: #F5E8D8;
  }
}

.node-beacon {
  animation: pulseBeacon 1.2s infinite;
}

/* Interactive SVG Nodes */
.interactive-node {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.interactive-node:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px rgba(197, 168, 128, 0.7));
}

.interactive-node.active-selected {
  filter: drop-shadow(0 0 12px rgba(197, 168, 128, 0.9));
}

/* Interactive Inspector Console */
.blueprint-inspector {
  background: rgba(14, 20, 34, 0.92);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-left: 3px solid var(--brand-accent);
  padding: 18px 20px;
  margin: 18px 0 16px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.inspector-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.inspector-label {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 800;
}

.inspector-node-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.inspector-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 8px;
}

.inspector-hint {
  font-size: 0.68rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}

.inspector-hint::before {
  content: 'ⓘ';
  color: var(--brand-accent);
  font-style: normal;
  font-size: 0.8rem;
}

/* Legend Indicators */
.blueprint-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(197, 168, 128, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: #94A3B8;
}

.blueprint-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot-amber {
  width: 7px;
  height: 7px;
  background: #F6AD55;
  box-shadow: 0 0 6px rgba(246, 173, 85, 0.6);
  display: inline-block;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .blueprint-card {
    padding: 20px 14px;
  }
  .blueprint-tag {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .blueprint-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
