/* ==========================================================================
   ESTUDIO CREATIVO ID - ESTÉTICA EDITORIAL CYBER OBSIDIANA & NARANJA
   Archivo: css/style.css
   Optimización: Rendimiento, fluidez en móviles y fidelidad gráfica
   ========================================================================== */

:root {
  --bg-obsidian: #08090b;
  --bg-carbon: #101217;
  --bg-surface: #151821;
  --bg-white: #ffffff;
  --bg-light-gray: #f4f5f7;

  --orange-neon: #ff3e18;
  --orange-bright: #ff5500;
  --orange-glow: rgba(255, 62, 24, 0.4);
  --orange-subtle: rgba(255, 62, 24, 0.12);

  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --text-dim: #6b7280;
  --text-dark: #090a0d;
  --text-dark-muted: #4b5563;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 62, 24, 0.35);

  --font-headline: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset y Reglas Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #20242f;
  border-radius: 4px;
  border: 1px solid rgba(255, 62, 24, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-bright);
}

/* Barra de Progreso Superior */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-bright), var(--orange-neon));
  z-index: 2100;
  box-shadow: 0 0 10px var(--orange-neon);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Pincelada e Iluminación de Fondo */
.brush-splash {
  position: absolute;
  top: 0;
  right: 0;
  width: min(55vw, 650px);
  height: min(85vh, 750px);
  background: linear-gradient(135deg, rgba(255, 62, 24, 0.12) 0%, rgba(255, 85, 0, 0.03) 65%, transparent 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 70%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(255, 62, 24, 0.08), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* --------------------------------------------------------------------------
   Animaciones de Entrada [data-reveal]
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
  will-change: opacity, transform;
}

html.js-ready [data-reveal] { 
  opacity: 0; 
}
html.js-ready [data-reveal="fade-up"] { 
  transform: translateY(30px); 
}
html.js-ready [data-reveal="fade-down"] { 
  transform: translateY(-20px); 
}
html.js-ready [data-reveal="scale-up"] { 
  transform: scale(0.95); 
}

html.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Tipografías y Sliders Técnicos
   -------------------------------------------------------------------------- */
.category-slash {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
  letter-spacing: 0.1em;
  color: var(--orange-bright);
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  word-break: break-word;
}

.category-slash.dark-slash {
  color: var(--orange-neon);
}

.category-slash-light {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
  letter-spacing: 0.1em;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-dot,
.banner-dot {
  color: var(--orange-bright);
}

/* --------------------------------------------------------------------------
   Botones Táctiles & Micro-interacciones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary-orange {
  background-color: var(--orange-neon);
  color: #ffffff;
  border: 1px solid var(--orange-neon);
  box-shadow: 0 4px 18px var(--orange-glow);
}

.btn-primary-orange:hover {
  background-color: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 62, 24, 0.6);
}

.btn-outline-dark {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-dark:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange-bright);
  border: 1px solid var(--orange-bright);
  padding: 8px 18px;
  min-height: 40px;
  font-size: 0.86rem;
}

.btn-outline-orange:hover {
  background: var(--orange-bright);
  color: #ffffff;
}

.btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 9, 11, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-wrapper.scrolled {
  background: rgba(6, 7, 9, 0.98);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  height: 70px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  box-shadow: 0 0 12px rgba(255, 62, 24, 0.35);
  display: block;
  flex-shrink: 0;
}

.brand-accent {
  color: var(--orange-bright);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 6px 0;
}

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

.btn-nav-cta {
  background: var(--orange-neon);
  color: #ffffff;
  padding: 9px 18px;
  min-height: auto;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-nav-cta:hover {
  background: var(--orange-bright);
  box-shadow: 0 0 15px var(--orange-glow);
}

/* Botón Hamburguesa Móvil (Área de toque táctil: 44x44px) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-toggle:active {
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(105px, 16vw, 150px);
  padding-bottom: clamp(60px, 10vw, 90px);
  position: relative;
  z-index: 1;
}

.hero-main-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 4vw, 50px);
  align-items: center;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: clamp(16px, 3vw, 24px);
  overflow-wrap: break-word;
}

.headline-accent {
  color: var(--orange-bright);
}

.hero-description {
  color: var(--text-gray);
  font-size: clamp(0.96rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  margin-bottom: clamp(24px, 4vw, 35px);
  max-width: 600px;
}

.highlight-text {
  color: #ffffff;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 40px);
  flex-wrap: wrap;
}

.hero-channel-links {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.channel-beacon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  color: var(--orange-bright);
  font-weight: 600;
}

.beacon-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--orange-bright);
  box-shadow: 0 0 10px var(--orange-bright);
  animation: pulseBeacon 2s infinite;
  flex-shrink: 0;
}

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

/* Columna Gráfica Hero */
.hero-visual-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

/* Sello Circular Rotatorio */
.rotating-badge-wrap {
  width: 130px;
  height: 130px;
  position: relative;
  align-self: flex-end;
  flex-shrink: 0;
}

.rotating-badge {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  background: var(--bg-carbon);
  border: 1px solid rgba(255, 62, 24, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-svg {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: rotateBadge 18s linear infinite;
}

.badge-svg text {
  font-family: var(--font-mono);
  font-size: 6.8px;
  fill: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-arrow {
  position: absolute;
  color: var(--orange-bright);
  font-size: 1.4rem;
  font-weight: 800;
  pointer-events: none;
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Consola HUD */
.cyber-hud-box {
  width: 100%;
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hud-header {
  background: #0b0c10;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.hud-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.hud-filename {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.hud-code-body {
  padding: 16px clamp(12px, 3vw, 20px);
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 1.8vw, 0.85rem);
  line-height: 1.6;
  overflow-x: auto;
  white-space: nowrap;
}

.hud-row {
  display: block;
}

.c-orange { color: var(--orange-bright); font-weight: 700; }
.c-dim { color: var(--text-dim); }
.c-str { color: #34d399; }

.hud-live-stream {
  margin-top: 8px;
  color: #ffffff;
}

.cursor {
  color: var(--orange-bright);
  animation: blink 0.9s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Sección About / Filosofía (Corte Diagonal Adaptativo)
   -------------------------------------------------------------------------- */
.section-light-slice {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: calc(75px + 3vw) 0 calc(85px + 3vw);
  position: relative;
  clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
  margin-top: -3vw;
  margin-bottom: -3vw;
  z-index: 2;
}

.slice-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.slice-heading {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.accent-orange-text {
  color: var(--orange-neon);
}

.slice-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.slice-text {
  color: var(--text-dark-muted);
  font-size: clamp(0.88rem, 1.4vw, 0.94rem);
  line-height: 1.65;
  margin-bottom: 22px;
}

.signature-stamp {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--orange-neon);
  padding-left: 14px;
}

.stamp-id {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.stamp-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dark-muted);
  text-transform: uppercase;
}

.slice-features-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-light-gray);
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-bullet {
  color: var(--orange-neon);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-headline);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-item p {
  color: var(--text-dark-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Sección Servicios (Cards Oscuras con Números Fantasma)
   -------------------------------------------------------------------------- */
.section-dark-services {
  background-color: var(--bg-obsidian);
  padding: clamp(100px, 14vw, 140px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  z-index: 1;
}

.section-meta {
  max-width: 700px;
  margin-bottom: clamp(35px, 6vw, 55px);
}

.section-title-bold {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.service-box {
  position: relative;
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 36px) clamp(20px, 3vw, 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-expo), border-color 0.3s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 62, 24, 0.45);
}

.service-box.featured-box {
  border-color: rgba(255, 62, 24, 0.35);
  background: linear-gradient(160deg, #161821, #101217);
}

.ghost-number {
  position: absolute;
  bottom: -15px;
  right: 15px;
  font-family: var(--font-headline);
  font-size: clamp(4rem, 9vw, 5.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  line-height: 1;
  user-select: none;
  transition: color 0.3s ease;
}

.service-box:hover .ghost-number {
  color: rgba(255, 62, 24, 0.09);
}

.box-icon {
  color: var(--orange-bright);
  margin-bottom: 16px;
}

.box-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--orange-bright);
  background: rgba(255, 62, 24, 0.1);
  border: 1px solid rgba(255, 62, 24, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 12px;
  width: fit-content;
}

.box-title {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.box-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.box-points {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.box-points li {
  font-size: 0.84rem;
  color: var(--text-dim);
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.box-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange-bright);
}

/* --------------------------------------------------------------------------
   Tecnologías (Strip Limpio)
   -------------------------------------------------------------------------- */
.tech-strip-section {
  background-color: var(--bg-white);
  padding: clamp(35px, 6vw, 50px) 0;
  color: var(--text-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tech-strip-header {
  margin-bottom: 18px;
}

.tech-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag-item {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  background: var(--bg-light-gray);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--text-dark-muted);
}

.tech-tag-item strong {
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Capacidades: Videos en Alta Definición (#ingenieria)
   -------------------------------------------------------------------------- */
.section-dark-capabilities {
  background-color: var(--bg-obsidian);
  padding: clamp(60px, 10vw, 100px) 0;
}

.capabilities-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(30px, 5vw, 50px);
  flex-wrap: wrap;
  gap: 16px;
}

.capabilities-head-desc {
  color: var(--text-gray);
  max-width: 450px;
  font-size: 0.94rem;
}

.native-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(18px, 3vw, 26px);
}

.video-card {
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 62, 24, 0.45);
}

.video-card-top {
  margin-bottom: 14px;
}

.video-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange-bright);
  margin-bottom: 6px;
  display: inline-block;
  font-weight: 700;
}

.video-card-top h4 {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.video-card-top p {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  background: #040507;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.tech-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  filter: contrast(1.05) brightness(0.95);
  transition: filter 0.3s ease;
}

.video-card:hover .tech-video {
  filter: contrast(1.1) brightness(1.02);
}

.video-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 62, 24, 0.03) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  border: 1px solid rgba(255, 62, 24, 0.15);
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Contacto (Split Banner Naranja & Formulario)
   -------------------------------------------------------------------------- */
.section-contact {
  padding: clamp(50px, 8vw, 80px) 0 clamp(70px, 10vw, 110px);
}

.contact-split-box {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.contact-banner-side {
  background: linear-gradient(145deg, var(--orange-bright), #cf2b08);
  padding: clamp(30px, 5vw, 50px) clamp(24px, 4vw, 45px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-banner-title {
  font-family: var(--font-headline);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
}

.contact-banner-desc {
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 30px;
}

.contact-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 20px;
}

.banner-info-row {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.info-value {
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.contact-form-side {
  padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 45px);
  background: var(--bg-carbon);
}

.bold-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* 16px exactos en inputs previene el zoom forzado en iOS/Android */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #090b0e;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select option {
  background-color: #101217;
  color: #ffffff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange-bright);
  box-shadow: 0 0 10px rgba(255, 62, 24, 0.25);
}

.btn-submit-full {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  white-space: normal;
}

.form-feedback {
  margin-top: 8px;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  display: none;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060709;
  padding: clamp(45px, 8vw, 70px) 0 35px;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(25px, 4vw, 40px);
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-nav a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-col-nav a:hover {
  color: var(--orange-bright);
}

.footer-col-meta p {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.footer-copy {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* ==========================================================================
   Media Queries & Responsividad Fluida
   ========================================================================== */

/* Pantallas Medianas / Laptops (993px - 1100px) */
@media (max-width: 1100px) {
  .hero-main-layout {
    gap: 35px;
  }
  .slice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .slice-features-col {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets en Orientación Vertical (769px - 992px) */
@media (max-width: 992px) {
  .hero-main-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .rotating-badge-wrap {
    align-self: center;
    order: 1;
  }

  .cyber-hud-box {
    order: 2;
  }

  .contact-split-box {
    grid-template-columns: 1fr;
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dispositivos Móviles y Tablets Pequeñas (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    overflow-y: auto;
    background: rgba(8, 9, 11, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 30px 24px calc(30px + env(safe-area-inset-bottom, 0px));
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-expo), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
  }

  .btn-nav-cta {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
  }

  .section-light-slice {
    clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
    padding: 60px 0;
    margin-top: -20px;
    margin-bottom: -20px;
  }

  .slice-grid {
    grid-template-columns: 1fr;
  }

  .slice-features-col {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .hero-visual-col {
    flex-direction: column;
  }

  .rotating-badge-wrap {
    align-self: center;
    width: 105px;
    height: 105px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Móviles Estrechos (<= 480px) */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .rotating-badge-wrap {
    width: 95px;
    height: 95px;
  }

  .badge-svg text {
    font-size: 7.2px;
  }

  .badge-arrow {
    font-size: 1.2rem;
  }

  .section-light-slice {
    clip-path: polygon(0 15px, 100% 0, 100% calc(100% - 15px), 0 100%);
    padding: 50px 0;
    margin-top: -15px;
    margin-bottom: -15px;
  }

  .contact-banner-side,
  .contact-form-side {
    padding: 28px 18px;
  }
}
