/* ==========================================================================
   TELGIOTECH — diseño editorial cinematográfico
   Paleta oficial: oro #f8b04b · navy #0e5475 · hielo #E7EEF1 · oscuro #1F1609
   ========================================================================== */

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

:root {
  --font-primary: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --color-gold: #f8b04b;
  --color-navy: #0e5475;
  --color-navy-deep: #082433;
  --color-ice: #e7eef1;
  --color-white: #ffffff;
  --color-ink: #1f1609;
  --color-accent: #0a3044;
  --color-text-muted: #3d5a6a;
  --color-text-light: #5f7380;
  --color-line: rgba(14, 84, 117, 0.18);
  --color-scrim: rgba(231, 238, 241, 1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --fluid-margin: clamp(22px, 6vw, 96px);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 88px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
  background-color: var(--color-navy-deep);
  color: var(--color-accent);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-navy-deep);
  position: relative;
}

a, button {
  color: inherit;
  text-decoration: none;
  font-family: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ==========================================================================
   CANVAS FIJO FULL-BLEED
   ========================================================================== */
.viewport-canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--color-navy-deep);
}

#sequenceCanvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sequence-loader {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(231, 238, 241, 0.94);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sequence-loader.loaded {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

.sequence-loader__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vh, 28px) var(--fluid-margin);
  pointer-events: auto;
  background: linear-gradient(
    180deg,
    rgba(231, 238, 241, 0.82) 0%,
    rgba(231, 238, 241, 0.28) 62%,
    transparent 100%
  );
}

.site-brand {
  display: inline-flex;
  align-items: center;
  z-index: 60;
}

.site-brand img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(231, 238, 241, 0.5));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
}

.site-nav-link {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--color-accent);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s var(--transition-smooth);
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
  width: 100%;
}

.site-nav-link.is-active {
  font-weight: 600;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--color-gold);
  color: var(--color-navy-deep);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.site-nav-cta:hover {
  background-color: transparent;
  color: var(--color-navy);
  transform: translateY(-1px);
}

.site-nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--color-accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.depth-indicator {
  position: fixed;
  right: clamp(16px, 2.5vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.depth-indicator__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
}

.depth-indicator__track {
  width: 2px;
  height: 110px;
  background-color: rgba(14, 84, 117, 0.18);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.depth-indicator__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--color-gold);
  transition: height 0.08s linear;
}

/* ==========================================================================
   SCRIMS
   ========================================================================== */
.edge-fade-left,
.edge-fade-right,
.edge-fade-bottom {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.45s ease;
}

.edge-fade-left {
  background: linear-gradient(
    90deg,
    rgb(255, 255, 255) 0%,
    rgb(255, 255, 255) 38%,
    rgba(255, 255, 255, 0.88) 48%,
    rgba(255, 255, 255, 0.35) 58%,
    transparent 72%
  );
  opacity: 1;
}

.edge-fade-right {
  background: linear-gradient(
    270deg,
    rgb(255, 255, 255) 0%,
    rgb(255, 255, 255) 38%,
    rgba(255, 255, 255, 0.88) 48%,
    rgba(255, 255, 255, 0.35) 58%,
    transparent 72%
  );
  opacity: 0;
}

.edge-fade-bottom {
  background: linear-gradient(
    145deg,
    rgb(255, 255, 255) 0%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(255, 255, 255, 0.5) 74%,
    transparent 90%
  );
  opacity: 0;
}

/* ==========================================================================
   ETAPAS DE SCROLL
   ========================================================================== */
.scroll-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.stage-section {
  position: relative;
  width: 100%;
  min-height: 110vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}

#hero,
#innovacion,
#manifiesto {
  padding-left: clamp(20px, 3vw, 36px);
  padding-right: 50%;
}

#oferta,
#areas {
  padding-left: 50%;
  padding-right: clamp(20px, 3vw, 36px);
}

#hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__label,
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__label {
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

.hero__label-line {
  width: 24px;
  height: 1px;
  background-color: var(--color-line);
  display: inline-block;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(42px, 5vw, 80px);
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--color-accent);
  margin-bottom: clamp(24px, 3.5vh, 36px);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-italic,
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero__text {
  max-width: 460px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.hero__cta-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-pillars {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4px;
  margin-bottom: 18px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-pillars li {
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
}

.hero-pillars i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 84, 117, 0.08);
  color: var(--color-navy);
  display: grid;
  place-items: center;
}

.hero-pillars li:nth-child(2) i {
  background: rgba(248, 176, 75, 0.18);
  color: #c27d16;
}

.hero-pillars svg {
  width: 14px;
  height: 14px;
}

.hero-pillars span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background-color: var(--color-gold);
  color: var(--color-navy-deep);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.hero__cta:hover {
  background-color: transparent;
  color: var(--color-navy);
  transform: translateY(-1px);
}

.hero__cta--navy {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-ice);
}

.hero__cta--navy:hover {
  background-color: transparent;
  color: var(--color-navy);
}

.hero__cta-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--transition-smooth);
}

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

#oferta {
  min-height: 130vh;
}

.stage-content-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  margin-top: 10px;
}

.section-title--row {
  white-space: nowrap;
  font-size: clamp(28px, 3.1vw, 42px);
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.feature-item__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.feature-item__metric {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c27d16;
  white-space: nowrap;
}

.feature-item__desc {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

#innovacion,
#manifiesto {
  min-height: 130vh;
}

#manifiesto {
  min-height: 120vh;
  padding-bottom: 100px;
}

#areas {
  min-height: 130vh;
}

.specs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.spec-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-block__value {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  font-feature-settings: "tnum";
}

.spec-block__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.stage-note {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dash-preview {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 36, 51, 0.08);
}

.dash-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-navy);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-preview__bar em {
  margin-left: auto;
  font-style: normal;
  color: var(--color-gold);
}

.dash-preview__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.25);
}

.dash-preview__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.dash-preview__kpis div {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-preview__kpis small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.dash-preview__kpis strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  line-height: 1;
}

.dash-preview__kpis div:last-child strong { color: var(--color-gold); }

.dash-preview__body {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 10px;
  padding: 10px 12px 12px;
  background: #f6fafc;
}

.dash-preview__chart,
.dash-preview__map {
  width: 100%;
  height: 78px;
  display: block;
}

.dash-preview__map {
  background: #eef5f8;
  border-radius: 6px;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.area-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 112px;
  border: 1px solid var(--color-line);
}

.area-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  filter: saturate(0.92);
}

.card-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(8, 36, 51, 0.12);
}

.card-icon svg {
  width: 16px;
  height: 16px;
}

.card-icon--gold { color: var(--color-gold); }

.area-card span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ice);
  text-shadow: 0 1px 8px rgba(8, 36, 51, 0.7);
}

.area-card--mix {
  grid-column: 1 / -1;
  min-height: 132px;
}

.area-card--mix::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(8, 36, 51, 0.58), transparent);
  pointer-events: none;
}

.area-mix {
  position: absolute;
  inset: 0;
}

.area-mix img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.area-mix img:nth-child(1) {
  object-position: 30% center;
  clip-path: polygon(0 0, 40% 0, 26% 100%, 0 100%);
}

.area-mix img:nth-child(2) {
  object-position: 48% center;
  clip-path: polygon(38% 0, 72% 0, 58% 100%, 24% 100%);
}

.area-mix img:nth-child(3) {
  object-position: 70% center;
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 56% 100%);
}

.area-mix-labels {
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  pointer-events: none;
}

.area-mix-labels em {
  font-style: normal;
}

.area-mix-labels em:nth-child(2) { text-align: center; }
.area-mix-labels em:nth-child(3) { text-align: right; }

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-top: 8px;
}

.manifesto-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.manifesto-cta-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-accent);
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.manifesto-cta-link:hover {
  opacity: 0.75;
  gap: 12px;
}

/* ==========================================================================
   PÁGINAS INTERIORES
   ========================================================================== */
body.page-inner {
  background-color: var(--color-ice);
}

body.page-inner .viewport-canvas-wrapper {
  height: 72vh;
  height: 72svh;
}

body.page-inner .edge-fade-left {
  background: linear-gradient(
    180deg,
    rgba(231, 238, 241, 0.55) 0%,
    rgba(231, 238, 241, 0.2) 40%,
    rgba(231, 238, 241, 0.92) 78%,
    var(--color-ice) 100%
  );
  opacity: 1;
}

body.page-inner .edge-fade-right,
body.page-inner .edge-fade-bottom,
body.page-inner .depth-indicator {
  display: none;
}

.inner-hero {
  position: relative;
  z-index: 10;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 160px var(--fluid-margin) 48px;
}

.inner-hero__content {
  max-width: 720px;
}

.panel {
  position: relative;
  z-index: 12;
  background: var(--color-ice);
}

.panel--lift {
  margin-top: -1px;
}

.panel-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--fluid-margin) 88px;
}

.panel-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.panel-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 520;
  line-height: 1.02;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.panel-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.panel-lead {
  max-width: none;
  width: 100%;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
}

.service-card figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  background: #d5e0e6;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.service-card h3 small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  white-space: nowrap;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.quote-band {
  position: relative;
  z-index: 12;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px var(--fluid-margin);
  background:
    linear-gradient(180deg, rgba(8, 36, 51, 0.55), rgba(8, 36, 51, 0.62)),
    url("../assets/images/scenes/industry.jpg") center / cover no-repeat;
  color: var(--color-ice);
}

.quote-band blockquote {
  max-width: 720px;
  text-align: center;
}

.quote-band p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 400;
}

.quote-band cite {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Formulario */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-meta {
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.contact-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.contact-meta dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.contact-meta a:hover {
  color: var(--color-navy);
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  align-items: end;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
  line-height: 1.3;
}

.field label .req {
  color: var(--color-navy);
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: none;
  border-bottom: 1px solid var(--color-line);
  background: transparent;
  padding: 8px 0 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-accent);
  border-radius: 0;
  resize: vertical;
}

.field input {
  height: 42px;
}

.field textarea {
  min-height: 88px;
  height: 88px;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-navy);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-status {
  display: none;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.form-status:not(:empty) { display: flex; align-items: center; gap: 10px; }

.form-status.is-ok,
.form-status.is-error,
.form-status.is-info {
  width: 100%;
}

.form-status.is-ok {
  background: #e8f6ee;
  border: 1px solid #2f8f5b;
  color: #14532d;
}

.form-status.is-ok::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: #2f8f5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.form-status.is-error {
  background: #f8eaea;
  border: 1px solid #b54545;
  color: #8a2a2a;
}

.form-status.is-info {
  background: var(--color-ice);
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  font-weight: 500;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[disabled] {
  opacity: 0.65;
  pointer-events: none;
}

.contact-band {
  position: relative;
  z-index: 20;
  background-color: #ffffff;
  color: var(--color-navy);
  padding: 88px var(--fluid-margin) 96px;
}

.contact-band__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-band .panel-kicker {
  color: var(--color-gold);
}

.contact-band .panel-title,
.contact-band .contact-meta dd,
.contact-band .contact-meta a {
  color: var(--color-navy);
}

.contact-band .panel-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

.contact-band .panel-lead,
.contact-band .field label,
.contact-band .contact-meta dt,
.contact-band .form-status.is-info {
  color: var(--color-navy);
}

.contact-band .contact-meta {
  border-top-color: rgba(14, 84, 117, 0.18);
}

.contact-band .contact-meta a:hover {
  color: var(--color-gold);
}

.contact-band .field label .req {
  color: var(--color-gold);
}

.contact-band .field input,
.contact-band .field textarea {
  color: var(--color-navy);
  border-bottom-color: rgba(14, 84, 117, 0.22);
  caret-color: var(--color-gold);
}

.contact-band .field input:focus,
.contact-band .field textarea:focus {
  border-bottom-color: var(--color-gold);
}

.contact-band .form-status.is-error {
  color: #8a2a2a;
}

.contact-band .hero__cta:hover {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.float-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.float-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(8, 36, 51, 0.14);
  animation: floatBob 5.2s var(--d, 0s) ease-in-out infinite;
}

.float-icon--gold { color: var(--color-gold); }

.float-icon svg {
  width: 22px;
  height: 22px;
}

.float-icon__ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(14, 84, 117, 0.22);
  animation: floatRing 2.8s var(--d, 0s) ease-out infinite;
}

.float-icon__label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.88);
  padding: 3px 7px;
  border-radius: 99px;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes floatRing {
  0% { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 760px) {
  .float-icon:nth-child(n + 3) { display: none; }
  .float-icon {
    width: 40px;
    height: 40px;
  }
  .float-icon svg {
    width: 18px;
    height: 18px;
  }
  .float-icon__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .float-icon,
  .float-icon__ring { animation: none; }
}

.site-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px var(--fluid-margin) 44px;
  border-top: 1px solid var(--color-line);
  background: rgba(231, 238, 241, 0.96);
  backdrop-filter: blur(12px);
}

.site-footer__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.site-footer__meta--right { text-align: right; }

.site-footer a:hover { color: var(--color-navy); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .service-grid,
  .contact-layout,
  .contact-band__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 22px;
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(231, 238, 241, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav-link,
  .site-nav-cta {
    font-size: 22px;
  }

  .depth-indicator { display: none; }

  .stage-section,
  #hero,
  #oferta,
  #innovacion,
  #areas,
  #manifiesto {
    padding-left: 22px;
    padding-right: 22px;
    align-items: flex-start;
  }

  .stage-section { min-height: 100vh; }

  #hero { padding-top: 120px; }

  .edge-fade-left,
  .edge-fade-right,
  .edge-fade-bottom {
    background: linear-gradient(
      0deg,
      rgb(255, 255, 255) 0%,
      rgb(255, 255, 255) 56%,
      rgba(255, 255, 255, 0.7) 78%,
      transparent 94%
    );
  }

  .hero__title { font-size: clamp(40px, 12vw, 64px); }
  .section-title { font-size: clamp(32px, 9vw, 46px); }
  .section-title--row { font-size: clamp(22px, 6.4vw, 32px); }
  .manifesto-grid { grid-template-columns: 1fr 1fr; }
  .hero__cta, .hero__cta-group { width: 100%; }
  .inner-hero { padding: 110px 22px 40px; }
  .contact-band { padding: 56px 22px 72px; }
  .panel-inner { padding: 40px 22px 64px; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
