/* ==========================================================================
   ZEUS Agency Software — Base, Cabecera Icono + KERAUNOS & Hero Núcleo Orbital
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background-color: var(--zeus-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--zeus-text);
  background: radial-gradient(ellipse at 55% 10%, rgba(56, 62, 74, 0.16), transparent 55%), var(--zeus-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.mb-0 {
  margin-bottom: 0;
}

.container {
  width: min(var(--container-max), calc(100% - (var(--gutter-desktop) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--zeus-text);
  color: var(--zeus-bg);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  top: 14px;
}

:focus-visible {
  outline: 2px solid var(--zeus-focus);
  outline-offset: 4px;
}

/* ==========================================================================
   Cabecera Corporativa — Icono (B) + KERAUNOS (C)
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 60;
  height: 104px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 11, 14, 0.94);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.keraunos-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  min-width: 148px;
  z-index: 2;
}

.keraunos-mark {
  width: 54px;
  height: 45px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.12));
}

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

.keraunos-title {
  font-size: 20px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 6px;
  margin-left: 6px;
  color: #f3f3f2;
}

.keraunos-caption {
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 2.2px;
  color: #cfd2da;
  margin-top: 5px;
  white-space: nowrap;
}

.navigation {
  grid-column: 1 / 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  pointer-events: auto;
}

.nav-link,
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #dcdde2;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out);
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-link.is-active,
.nav-dropdown-trigger.is-active {
  color: #ffffff;
}

.nav-link.is-active::after,
.nav-dropdown-trigger.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #b8c9e0, #f3f3f2);
}

.nav-item-dropdown {
  position: relative;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast) var(--ease-out);
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  min-width: 312px;
  padding: 8px;
  border: 1px solid rgba(210, 216, 228, 0.24);
  border-radius: var(--radius-md);
  background: rgba(16, 18, 24, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-dropdown);
  z-index: 70;
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-out);
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-link strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zeus-text);
}

.nav-dropdown-link span {
  font-size: 0.75rem;
  color: var(--zeus-text-subtle);
}

.nav-dropdown-divider {
  height: 1px;
  margin: 6px 8px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(214, 220, 232, 0.28);
  border-radius: var(--radius-sm);
  background: #15171d;
}

.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--zeus-text);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Botones refinados (Plata / Obsidiana / Azul controlado)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border: 1px solid #f0f2f6;
  background: #e6e7ea;
  color: #121316;
  box-shadow: var(--shadow-btn-primary);
}

.btn-primary:hover {
  background: #ffffff;
  color: #0b0c0f;
}

.btn-header {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  background: transparent;
  color: #e4e6ec;
  border: 1px solid rgba(214, 220, 232, 0.3);
  box-shadow: none;
}

.btn-header:hover {
  background: #e6e7ea;
  color: #121316;
  border-color: #ffffff;
}

.btn-outline {
  border: 1px solid rgba(210, 216, 228, 0.3);
  background: rgba(21, 23, 29, 0.78);
  color: var(--zeus-text);
}

.btn-outline:hover {
  border-color: rgba(236, 240, 248, 0.65);
  background: rgba(34, 37, 46, 0.94);
}

/* ==========================================================================
   Hero — Icono (B) + Núcleo Orbital (B)
   ========================================================================== */

.icono-hero {
  position: relative;
  min-height: clamp(580px, 82vh, 800px);
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 41%, rgba(36, 46, 58, 0.2), transparent 62%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.orbital-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 43%, rgba(42, 50, 58, 0.18), transparent 56%);
}

.orbital-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.92;
  pointer-events: none;
}

.orbital-stage.is-canvas-active .orbital-fallback-img {
  opacity: 0;
  visibility: hidden;
}

.orbital-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.icono-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.34) 0%, transparent 20%, transparent 48%, rgba(10, 11, 14, 0.48) 72%, #0a0b0e 96%);
}

.hero-caption {
  position: absolute;
  left: clamp(18px, 4vw, 62px);
  top: 22px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #a6aab3;
  text-transform: uppercase;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 54px;
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 86px);
  letter-spacing: -0.04em;
  word-spacing: 0.03em;
  font-weight: 500;
  line-height: 1.04;
  margin: 8px auto 24px;
  max-width: 980px;
  color: #f4f5f7;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.92);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.hero-primary-cta {
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 650;
}

.hero-secondary-cta {
  padding: 13px 22px;
  font-size: 13px;
}

.hero-subtitle {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 22px 0 0;
  color: #b4b7bf;
}

.hero-controls {
  position: absolute;
  bottom: 18px;
  right: clamp(14px, 3vw, 44px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #a5aab5;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.hero-controls button {
  background: rgba(21, 22, 28, 0.9);
  color: #d7dce5;
  border: 1px solid #444750;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
}

.hero-controls button:hover:not(:disabled) {
  border-color: #cbd5e4;
  color: #ffffff;
}

.hero-controls button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.orbital-message {
  color: #b8c6dc;
  font-size: 10px;
}

.orbital-message:empty {
  display: none;
}
