/* =========================================
   1. DESIGN TOKENS (SSOT VISUAL)
   ========================================= */
:root {
  /* ÃƒÆ’Ã‚Â°Ãƒâ€¦Ã‚Â¸Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ Core Palette - Dark Lab */
  --bg-deep: #030305;       /* Fondo casi negro absoluto */
  --bg-panel: #0a0a0f;      /* Fondo paneles */
  --bg-surface: #121217;    /* Elementos elevados */

  /* ÃƒÆ’Ã‚Â°Ãƒâ€¦Ã‚Â¸Ãƒâ€¦Ã‚Â¸Ãƒâ€šÃ‚Â£ Brand Colors - Tech Vibe */
  --primary: #7c3aed;       /* Violeta elÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â©ctrico */
  --primary-glow: rgba(124, 58, 237, 0.5);
  --brand-dark-1: #411765;
  --brand-dark-2: #643889;
  --brand-glow: rgba(167, 139, 250, 0.5);
  --cyan: #06b6d4;          /* Cian acentos */
  --cyan-glow: rgba(6, 182, 212, 0.5);
  --success: #10b981;       /* WhatsApp Green */

  /* ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã‚Â¡Ãƒâ€šÃ‚Âª Text & Ink */
  --ink-100: #ffffff;       /* TÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­tulos */
  --ink-200: #e2e8f0;       /* Cuerpo */
  --ink-400: #94a3b8;       /* Muted / Labels */

  /* ÃƒÆ’Ã‚Â°Ãƒâ€¦Ã‚Â¸ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢Ãƒâ€¦Ã‚Â½ Glass Engine */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shine: rgba(255, 255, 255, 0.05);
  --glass-blur: 12px;

  /* ÃƒÆ’Ã‚Â°Ãƒâ€¦Ã‚Â¸ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œÃƒâ€šÃ‚Â Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --nav-width: 88px;
  --nav-width-collapsed: 88px;
  --nav-width-expanded: 240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã‚Â¡Ãƒâ€šÃ‚Â¡ Motion */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --duration-fast: 0.3s;
  --duration-med: 0.6s;
}

/* =========================================
   2. RESET & BASE TYPOGRAPHY
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, var(--bg-deep) 100%);
  background-size: 100% 100%;
  color: var(--ink-200);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink-100);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1, h2 {
  text-shadow: 0 0 25px var(--brand-glow);
}

.hero-bold {
  font-weight: 700;
  color: inherit;
  -webkit-text-fill-color: transparent;
}

.hero-reg {
  font-weight: 400;
  color: inherit;
  -webkit-text-fill-color: transparent;
}

.text-flow {
  font-weight: 400;
  color: inherit;
  -webkit-text-fill-color: transparent;
}

.title-stack-row {
  display: block;
  line-height: 1;
}

.title-stack-row.color-1 {
  font-weight: 700;
  color: inherit;
  -webkit-text-fill-color: transparent;
}

.title-stack-row.color-2 {
  font-weight: 400;
  color: inherit;
  -webkit-text-fill-color: transparent;
}

#beneficios h2,
#nosotros h2,
#proceso h2,
#portafolio h2,
#faq h2,
#contacto h2 {
  background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
  background-size: 200% auto;
  animation: textShimmer 5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 15px var(--brand-glow));
}

.hero-bold,
.hero-reg,
.text-flow,
.title-stack-row.color-1,
.title-stack-row.color-2,
#nosotros h2,
#proceso h2,
#portafolio h2,
#faq h2,
#contacto h2 {
  text-shadow: 0 0 25px var(--brand-glow);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
p { margin-bottom: 1.5rem; max-width: 65ch; }
a { color: inherit; text-decoration: none; }

/* =========================================
   3. LAYOUT & SCROLL SNAP (Legacy M0 + Upgrade)
   ========================================= */
main {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

main::-webkit-scrollbar {
  display: none;
}

section {
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.02); /* GuÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­a visual sutil */
}

section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-deep) 120%);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

section.active-section .container {
  opacity: 1;
  transform: translateY(0);
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* =========================================
   3.5 HERO 2.0
   ========================================= */
#hero {
  position: relative;
  overflow: hidden;
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-left: calc(var(--nav-width-collapsed) * -1);
  padding-left: var(--nav-width-collapsed);
  transition: padding-left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   3.6 MANIFESTO (M12)
   ========================================= */
#nosotros {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#nosotros .container {
  max-width: 800px;
  opacity: 1;
  transform: none;
  transition: none;
}

#nosotros p {
  font-size: 1.25rem;
  color: var(--ink-200);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.manifesto-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.manifesto-features li {
  font-size: 1.1rem;
  color: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.manifesto-features li::before {
  content: "\2192";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.manifesto-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#nosotros.active-section .manifesto-item {
  opacity: 1;
  transform: translateY(0);
}

#nosotros.active-section .manifesto-item:nth-child(1) {
  transition-delay: 0.1s;
}

#nosotros.active-section .manifesto-item:nth-child(2) {
  transition-delay: 0.2s;
}

#nosotros.active-section .manifesto-item:nth-child(3) {
  transition-delay: 0.3s;
}

#nosotros.active-section .manifesto-item:nth-child(4) {
  transition-delay: 0.4s;
}

.hero-container {
  z-index: 2;
  position: relative;
  max-width: 1000px;
  padding-top: 4rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
  background-size: 200% auto;
  animation: textShimmer 5s linear infinite, float 7s ease-in-out infinite;
  will-change: transform;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--ink-200);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}

.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  margin-bottom: 2rem;
  font-family: monospace, ui-monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-label {
  color: var(--ink-400);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.status-value {
  color: var(--cyan);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.status-separator {
  color: var(--glass-border);
  font-weight: 300;
}

.glass-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-badge span {
  margin-left: 0;
}

.badge-label {
  color: var(--ink-400);
}

.badge-value {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink-400);
  color: var(--ink-200);
  padding: 0.875rem 2rem;
  border-radius: 100px;
  transition: 0.3s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--ink-100);
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   6. NAVIGATION (Sidebar Desktop / Mobile Overlay)
   ========================================= */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--nav-width-collapsed);
  background: var(--nav-glass-bg, rgba(10, 10, 15, 0.6));
  backdrop-filter: blur(var(--nav-glass-blur, 16px)) saturate(var(--nav-glass-saturate, 180%));
  -webkit-backdrop-filter: blur(var(--nav-glass-blur, 16px)) saturate(var(--nav-glass-saturate, 180%));
  border-right: 1px solid var(--nav-glass-border, rgba(255, 255, 255, 0.08));
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 100;
  padding: 1rem 0;
  overflow: visible !important;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s var(--ease-out);
}

#sidebar.nav--collapsed {
  width: var(--nav-width-collapsed);
}

#sidebar.nav--expanded {
  width: var(--nav-width-expanded);
}

.nav-header {
  position: relative;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-collapsed,
.logo-expanded {
  position: absolute;
  transition: opacity 0.3s ease;
  max-height: 40px;
}

.logo-expanded {
  max-height: 60px;
}

.nav--collapsed .logo-expanded {
  opacity: 0;
  pointer-events: none;
}

.nav--collapsed .logo-collapsed {
  opacity: 1;
}

.nav--expanded .logo-expanded {
  opacity: 1;
}

.nav--expanded .logo-collapsed {
  opacity: 0;
  pointer-events: none;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 1.5rem;
  color: var(--ink-400);
  transition: 0.3s;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 12px;
  border-left: 3px solid transparent;
  opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  border-left: 3px solid var(--primary);
}

.nav-icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  display: flex;
  justify-content: center;
}

.nav-label {
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
  overflow: hidden;
}

.nav--collapsed .nav-link {
  padding: 0;
  justify-content: center;
}

.nav--collapsed .nav-icon {
  margin-right: 0;
}

.nav--collapsed .nav-label {
  opacity: 0;
  width: 0;
}

.nav-toggle-mobile {
  display: none;
}

.nav-separator {
  width: 40%;
  height: 1px;
  border: 0;
  background: var(--glass-border);
  margin: auto 0 1rem 0;
}

.nav-cta {
  width: 100%;
  margin-bottom: 0.75rem;
}

.nav-whatsapp {
  background: transparent;
}

.nav-whatsapp .nav-icon {
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
  color: var(--success);
  transition: 0.3s;
}

.nav-whatsapp:hover .nav-icon {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8));
  transform: scale(1.1);
}

.nav-toggle-desktop {
  position: absolute;
  right: -20px;
  top: 75%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
  color: var(--ink-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;
}

.nav-toggle-desktop svg {
  transition: transform 0.3s ease;
}

.nav--expanded .nav-toggle-desktop svg {
  transform: rotate(180deg);
}

#nav-expand-toggle {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  margin: 0;
}

#nav-expand-toggle:hover {
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================
   4. GLASSMORPHISM & UTILITIES
   ========================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* =========================================
   5. UI COMPONENTS (Buttons & Badges)
   ========================================= */
/* Badge "Desde $80k" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--ink-400);
  margin-top: 1rem;
}
.badge span {
  color: var(--ink-100);
  font-weight: 600;
  margin-left: 0.4rem;
}

/* BotÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â³n Principal (WhatsApp) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink-100);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* =========================================
   5.5 BENEFITS (M5 Storytelling)
   ========================================= */
#beneficios {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 100dvh;
}

.benefits-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  perspective: 1000px;
  z-index: 2;
}

.benefits-intro-view,
.benefits-focus-view,
.benefits-summary-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.benefits-intro-view.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

#benefits-intro h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

#benefits-intro p {
  font-size: 1.2rem;
  color: var(--ink-200);
  max-width: 600px;
  text-align: center;
  line-height: 1.6;
  animation: float 8s ease-in-out infinite;
}

.benefits-summary-view.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.95);
}

.benefits-focus-view.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.1);
  filter: blur(10px);
}

.benefit-card {
  background: var(--benefits-glass-bg, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(var(--benefits-glass-blur, 12px)) saturate(var(--benefits-glass-saturate, 100%));
  -webkit-backdrop-filter: blur(var(--benefits-glass-blur, 12px)) saturate(var(--benefits-glass-saturate, 100%));
  border: 1px solid var(--benefits-glass-border, rgba(255, 255, 255, 0.08));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  gap: 1.5rem;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: blur(0px);
}

.benefit-card.card-hidden-up {
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.9);
  filter: blur(10px);
}

.benefit-card.card-hidden-down {
  opacity: 0;
  transform: translate(-50%, 50%) scale(0.9);
  filter: blur(10px);
}

.card-icon img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px var(--primary-glow));
  transition: transform 0.3s;
}

.card-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ink-100);
}

.card-content p {
  color: var(--ink-200);
  font-size: 1.1rem;
  line-height: 1.6;
}

#benefits-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  padding: 2rem 2rem 8rem 2rem;
  align-content: center;
  height: 100%;
  overflow: visible;
}

@media (max-width: 768px) {
  .benefit-card:not(.benefit-card--compact) {
    display: block;
    position: absolute;
    padding: 1.5rem;
    text-align: left;
    min-height: auto;
    width: 90%;
    gap: 0;
  }

  .benefit-card:not(.benefit-card--compact) .card-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .benefit-card:not(.benefit-card--compact) .card-icon img {
    width: 100%;
    height: 100%;
  }

  .benefit-card:not(.benefit-card--compact) .card-content h3 {
    margin: 0 0 1.25rem 4rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    line-height: 1.2;
    text-align: left;
  }

  .benefit-card:not(.benefit-card--compact) .card-content p,
  .benefit-card:not(.benefit-card--compact) .benefit-block {
    text-align: left;
    font-size: 0.95rem;
  }

  .benefit-card:not(.benefit-card--compact) .benefit-block {
    margin-top: 1rem;
  }

  #benefits-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    padding: 5rem 18% 7rem 18%;
    width: 100%;
    height: 100%;
    overflow-y: auto;
  }
}

.benefit-card--compact {
  position: relative !important;
  top: auto;
  left: auto;
  transform: none !important;
  opacity: 1 !important;
  padding: 2rem;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  height: auto;
  min-height: 180px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.benefit-card--compact .card-icon img {
  width: 48px;
  height: 48px;
}

.benefit-card--compact .card-content h3 {
  font-size: 1.25rem;
}

.benefit-card--compact .card-content p {
  font-size: 0.9rem;
}

.benefit-card--compact:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
  cursor: pointer;
}

.benefits-minis-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(to top, var(--bg-deep) 40%, transparent 100%);
  z-index: 50;
}

.benefit-mini {
  flex: 1;
  width: 100%;
  max-width: 120px;
  min-width: 80px;
  height: auto;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.8rem;
  color: var(--ink-400);
  font-weight: 500;
}

.benefit-mini span {
  display: block;
  font-size: 0.7rem;
  line-height: 1.1;
  max-width: 80px;
  white-space: normal;
}

.benefit-mini img {
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0.6;
}

.benefit-mini:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.benefit-mini.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  color: var(--ink-100);
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.benefit-mini.active img {
  opacity: 1;
}

/* =========================================
   5.6 PORTFOLIO (M6 Stacked Slider)
   ========================================= */
#portafolio {
  position: relative;
  overflow: hidden;
}

#portafolio .container {
  height: 100%;
  min-height: 100dvh;
  position: relative;
  justify-content: center;
}

.portfolio-intro-view,
.portfolio-deck-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}

.portfolio-intro-view.hidden,
.portfolio-deck-view.hidden {
  opacity: 0;
  pointer-events: none;
}

.portfolio-intro-content {
  max-width: 760px;
}

.portfolio-slide {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slide-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 2;
}

.slide-prev {
  transform: translateX(-100%) scale(0.9);
  opacity: 0;
  z-index: 1;
}

.slide-next {
  transform: translateX(100%) scale(0.9);
  opacity: 0;
  z-index: 1;
}

.portfolio-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.portfolio-badge {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
}

.portfolio-slide h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0;
  line-height: 1.1;
}

.portfolio-title {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
  background-size: 200% auto;
  animation: textShimmer 5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--brand-glow));
  font-weight: 700;
}

.title-word-1 {
  background: none;
  -webkit-text-fill-color: inherit;
  animation: none;
  filter: none;
}

.title-word-2 {
  background: none;
  -webkit-text-fill-color: inherit;
  animation: none;
  filter: none;
}

.portfolio-slide p {
  font-size: 1.1rem;
  color: var(--ink-200);
  max-width: 600px;
  margin: 0;
}

.portfolio-slide ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  list-style: none;
  padding: 0;
}

.portfolio-slide ul li {
  justify-self: center;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--ink-400);
  border: 1px solid var(--glass-border);
}

.portfolio-slide img {
  width: 100%;
  max-width: 800px;
  height: auto;
  max-height: 45vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin: 1rem 0;
}

.portfolio-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.glitch-nav-container {
  position: absolute;
  top: 50%;
  right: 0;
  padding-right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 20;
}

.glitch-nav-item {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 220px;
  height: 120px;
  border: 0;
  background: transparent;
  padding: 0;
}

.glitch-thumb {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 0, 0.3);
  background: #000;
  position: relative;
  color: rgba(0, 255, 0, 0.8);
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: signal-flicker 3s infinite;
}

.glitch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.glitch-thumb::before {
  content: "\2192";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 255, 0, 0.4);
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s;
}

.glitch-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 0, 0.1) 3px
  );
  background-size: 100% 8px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: scanline-scroll 2s linear infinite;
}

.glitch-nav-item.active {
  transform: scale(1.1);
}

.glitch-nav-item.active .glitch-thumb {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
  animation: none;
}

.glitch-nav-item.active .glitch-thumb img {
  filter: none;
  opacity: 1;
}

.glitch-nav-item.active .glitch-thumb::after {
  opacity: 0;
}

.glitch-nav-item.active .glitch-thumb::before {
  opacity: 0;
}

.glitch-label {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--cyan);
  padding: 4px 8px;
  font-size: 0.7rem;
  font-family: monospace;
  border: 1px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .glitch-nav-item:hover {
    transform: scale(1.15);
  }

  .glitch-nav-item:hover .glitch-thumb {
    border-color: rgba(6, 182, 212, 0.65);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
    animation: signal-flicker-color 3s infinite;
  }

  .glitch-nav-item:hover .glitch-thumb img {
    filter: none;
    opacity: 1;
  }

  .glitch-nav-item:hover .glitch-thumb::before,
  .glitch-nav-item:hover .glitch-thumb::after {
    opacity: 0.5;
  }

  .glitch-nav-item:hover .glitch-thumb::before {
    opacity: 0;
  }

.glitch-nav-item:hover .glitch-label {
    opacity: 1;
  }
}

/* =========================================
   7. RESPONSIVE NAVIGATION
   ========================================= */
@media (min-width: 769px) {
  main {
    padding-left: var(--nav-width-collapsed);
  }
}

@media (max-width: 768px) {
  #hero {
    width: 100%;
    margin-left: 0;
    padding-left: 2rem;
  }

  #sidebar {
    width: 100% !important;
    transform: translateX(-100%);
    background: rgba(3, 3, 5, 0.95);
    border-right: 0;
  }

  #sidebar.nav-open {
    transform: translateX(0);
  }

  .nav-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 101;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--ink-100);
    cursor: pointer;
    z-index: 110;
    transform: translateX(100vw);
    transition: transform 0.4s var(--ease-out);
  }

  #sidebar.nav-open .nav-toggle-mobile {
    transform: translateX(0);
  }

  .nav-toggle-mobile svg {
    width: 24px;
    height: 24px;
  }

  .nav-list {
    gap: 1.5rem;
  }

  .nav-header,
  .nav-toggle-desktop {
    display: none;
  }

  .nav-header {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    margin-bottom: 2rem;
  }

  .nav-header .logo-expanded {
    opacity: 1;
    position: relative;
    max-height: 50px;
    pointer-events: auto;
  }

  .nav-header .logo-collapsed {
    opacity: 0;
    pointer-events: none;
  }

  .nav-link {
    justify-content: flex-start !important;
    height: auto;
    padding: 1rem 2rem;
    width: 100%;
    border-left: 0 !important;
  }

  .nav-label {
    font-size: 1.1rem;
    opacity: 1 !important;
    width: auto !important;
    display: block !important;
    color: var(--ink-100);
  }

  .nav-icon {
    margin-right: 16px !important;
    width: 24px;
    height: 24px;
  }

  .nav-toggle-desktop {
    display: none !important;
  }

  .benefits-minis-dock {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-overflow-scrolling: touch;
  }

  .benefit-mini {
    min-width: 80px;
    flex: 0 0 auto;
  }

  .benefit-card--compact p {
    display: none;
  }

  .benefit-card--compact {
    padding: 1.5rem;
    min-height: auto;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
  }

  .benefit-card--compact .card-icon img {
    width: 32px;
    height: 32px;
  }

  .benefit-card--compact .card-content h3 {
    font-size: 1rem;
    margin: 0;
  }

  .portfolio-actions {
    justify-content: center;
  }

  .glitch-nav-container {
    position: absolute;
    bottom: 0;
    left: 0;
    top: auto;
    right: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    justify-content: flex-start;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    transform: none;
  }

  .glitch-nav-item {
    width: 80px;
    height: 50px;
  }

  .glitch-label {
    display: none;
  }

}

/* =========================================
   8. MOTION & ACCESSIBILITY
   ========================================= */
@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;
  }
}

.fade-in-up {
  animation: fadeInUp var(--duration-med) var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.status-bar.fade-in-up {
  animation: fadeInUp var(--duration-med) var(--ease-out) forwards, float 6s ease-in-out infinite;
  animation-delay: 0.1s, 0.1s;
}

.hero-title.fade-in-up {
  animation: fadeInUp var(--duration-med) var(--ease-out) forwards, textShimmer 5s linear infinite, float 7s ease-in-out infinite;
  animation-delay: 0.2s, 0.2s, 0.2s;
}

.hero-subtitle.fade-in-up {
  animation: fadeInUp var(--duration-med) var(--ease-out) forwards, float 8s ease-in-out infinite;
  animation-delay: 0.3s, 0.3s;
}

.hero-actions.fade-in-up {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scanline-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@keyframes signal-flicker {
  0% { opacity: 0.8; filter: grayscale(100%) sepia(100%) hue-rotate(100deg) brightness(0.8) contrast(1.2); transform: translateX(0); }
  5% { opacity: 0.3; filter: grayscale(100%) sepia(100%) hue-rotate(100deg) brightness(1.5) contrast(2); transform: translateX(-2px); }
  10% { opacity: 0.8; filter: grayscale(100%) sepia(100%) hue-rotate(100deg) brightness(0.8) contrast(1.2); transform: translateX(0); }
  15% { opacity: 0.4; filter: grayscale(100%) sepia(100%) hue-rotate(50deg) brightness(0.5) contrast(1.5); transform: translateX(2px); }
  20% { opacity: 0.8; filter: grayscale(100%) sepia(100%) hue-rotate(100deg) brightness(0.8) contrast(1.2); transform: translateX(0); }
  100% { opacity: 0.8; filter: grayscale(100%) sepia(100%) hue-rotate(100deg) brightness(0.8) contrast(1.2); }
}

@keyframes signal-flicker-color {
  0% { opacity: 1; filter: brightness(1.1) contrast(1.2); transform: translateX(0); }
  5% { opacity: 0.3; filter: brightness(1.5) contrast(2); transform: translateX(-2px); }
  10% { opacity: 1; filter: brightness(1.1) contrast(1.2); transform: translateX(0); }
  15% { opacity: 0.4; filter: brightness(0.5) contrast(1.5); transform: translateX(2px); }
  20% { opacity: 1; filter: brightness(1.1) contrast(1.2); transform: translateX(0); }
  100% { opacity: 1; filter: brightness(1.1) contrast(1.2); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes text-decode {
  0% { opacity: 0; transform: skewX(-20deg) scale(0.9); filter: blur(8px); }
  50% { opacity: 1; transform: skewX(10deg); filter: blur(2px); }
  100% { opacity: 1; transform: skewX(0) scale(1); filter: none; }
}

/* =========================================
   9. SYSTEM LOADER
   ========================================= */
.loader-container {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-container.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo {
  width: 64px;
  height: auto;
  animation: pulse 2s infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--primary);
  animation: loadingScan 1.5s infinite linear;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes btn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes ghost-click {
  0% {
    opacity: 0;
    transform: translate(30px, 30px);
  }
  20% {
    opacity: 1;
    transform: translate(0, 0);
  }
  50% {
    transform: scale(0.8);
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes loadingScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* =========================================
   10. PROCESS (M7.1 Translator Base)
   ========================================= */
#proceso {
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#proceso .process-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  height: 100%;
}

.process-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.process-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.process-header h2 {
  margin: 0;
}

.process-header p {
  margin: 0.65rem auto 0;
  color: var(--ink-400);
}

.process-progress {
  display: none;
  gap: 0.35rem;
}

.process-progress-segment {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.process-progress-segment.active {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.process-split-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  width: 100%;
  flex: 1;
  transition: gap 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-terminal {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  transform-origin: top left;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  text-align: left;
  font-family: "Fira Code", monospace;
  width: 100%;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-terminal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.process-mac-controls {
  display: inline-flex;
  gap: 8px;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-btn.red { background: #ff5f56; }
.mac-btn.yellow { background: #ffbd2e; }
.mac-btn.green { background: #27c93f; }

.process-terminal-title {
  color: var(--ink-400);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.process-terminal-body {
  white-space: pre-line;
  color: var(--ink-200);
  min-height: 240px;
  height: 100%;
  padding: 1.25rem 1rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.terminal-intro-content,
.terminal-step-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  height: 100%;
  padding-top: 4rem;
}

.terminal-step-content.hidden,
.terminal-intro-content.hidden {
  display: none;
}

.ascii-art {
  font-family: monospace;
  color: var(--primary);
  line-height: 1.05;
  margin: 0;
  margin-top: auto;
  font-size: 0.86rem;
}

.terminal-intro-text {
  white-space: pre-line;
  margin: 0;
  color: var(--ink-200);
}

.terminal-intro-text::after {
  content: "\2192";
  animation: blink 1s step-end infinite;
  color: var(--cyan);
  margin-left: 4px;
}

.btn-terminal-action {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: btn-pulse 2s infinite ease-in-out;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 1rem;
}

.btn-terminal-action:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 18px var(--cyan-glow);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.ghost-cursor {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  color: var(--ink-100);
  pointer-events: none;
  filter: drop-shadow(0 0 5px var(--cyan));
  animation: ghost-click 3s infinite ease-in-out;
}

.process-pipeline {
  display: block;
  flex: 1;
  opacity: 1;
  transform: translateX(0);
  overflow: visible;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-dynamic-card,
.process-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  opacity: 1;
}

.process-dynamic-card {
  min-height: 25vh;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  height: auto;
}

.process-card-content {
  transition: opacity 0.4s ease;
  opacity: 1;
}

.process-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.process-card-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.process-card-meta h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-100);
}

.process-step-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: "Fira Code", monospace;
}

.process-card-description {
  margin: 0 0 0.85rem 0;
  max-width: none;
  color: var(--ink-200);
}

.process-card-command {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.8);
  color: var(--cyan);
  font-family: "Fira Code", monospace;
  font-size: 0.82rem;
  word-break: break-word;
}

.process-container.process-mode-intro .process-split-layout {
  gap: 0;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
}

.process-container.process-mode-intro .process-terminal {
  width: 80%;
  max-width: 90vw;
  flex: 0 0 80%;
  min-height: 60vh;
  margin-left: 10%;
  margin-top: 20vh;
}

.process-container.process-mode-intro .process-pipeline {
  width: 0;
  flex: 0 0 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(50px);
  padding: 0;
}

.process-container:not(.process-mode-intro) .process-split-layout {
  gap: 2.5rem;
  align-items: stretch;
  flex: 0 1 auto;
}

.process-container:not(.process-mode-intro) .process-terminal {
  width: 35%;
  flex: 0 0 35%;
  max-width: none;
  margin: 0;
  margin-left: 10%;
  margin-top: 20vh;
  min-height: 0;
}

.process-container:not(.process-mode-intro) .process-terminal-body {
  min-height: 0;
}

.process-container:not(.process-mode-intro) .process-pipeline {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 20vh;
  opacity: 1;
  transform: translateX(0);
  overflow: visible;
}

.terminal-line {
  margin-bottom: 1rem;
}

.terminal-line:last-child {
  margin-bottom: 0;
}

.terminal-line-command {
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.terminal-line-output {
  color: var(--ink-200);
  white-space: pre-line;
}

@media (max-width: 768px) {
  #proceso {
    height: 100vh !important;
  }

  #proceso .process-container {
    height: 100%;
    padding-bottom: 2rem;
  }

  .process-progress {
    display: none !important;
  }

  .process-split-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
  }

  .process-container.process-mode-intro .process-terminal {
    display: flex !important;
    width: 90%;
    margin: 0 auto;
    margin-top: 15vh;
    margin-bottom: 15vh;
    flex: 1;
    min-height: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .process-container.process-mode-intro .process-pipeline {
    display: none !important;
  }

  .process-container:not(.process-mode-intro) .process-terminal {
    display: flex !important;
    width: 90%;
    margin: 0 auto;
    margin-top: 100px;
    flex: 0 0 auto;
    height: auto;
    min-height: 140px;
  }

  .process-container:not(.process-mode-intro) .process-pipeline {
    display: flex !important;
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
    flex: 1;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .process-dynamic-card {
    width: 100%;
    min-width: 0;
    flex: 1;
    height: auto;
  }

  .ascii-art {
    font-size: 0.68rem;
  }

}

@keyframes terminal-glitch {
  0% { opacity: 1; transform: translateX(0); }
  20% { opacity: 0.8; transform: translateX(-2px); filter: invert(1); }
  40% { opacity: 1; transform: translateX(2px); }
  60% { opacity: 0.8; transform: translateX(0); filter: invert(0); }
  80% { opacity: 1; transform: translateX(-1px); }
  100% { opacity: 1; transform: translateX(0); }
}

.terminal-glitch {
  animation: terminal-glitch 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* =========================================
   11. FAQ (M8.1 AI Chat Console)
   ========================================= */
#faq {
  min-height: 100vh;
}

#faq .faq-container {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.faq-header p {
  margin: 0.65rem auto 0;
  color: var(--ink-400);
}

.faq-console {
  width: min(100%, 1200px);
  height: 70vh;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.faq-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.console-header-left,
.console-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.console-header-right {
  justify-content: flex-end;
}

.console-header-center {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.console-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  text-decoration: none;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  line-height: 1;
  transition: all 0.25s ease;
}

.console-header-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.console-header-btn:hover {
  background: rgba(16, 185, 129, 0.24);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.28);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulse 1.4s infinite;
}

.console-title {
  color: var(--ink-100);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-family: "Fira Code", monospace;
}

.console-subtitle {
  color: var(--ink-400);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-family: "Fira Code", monospace;
}

.faq-chat-area {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-chat-area::-webkit-scrollbar {
  width: 6px;
}

.faq-chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.faq-chat-area::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.faq-chat-area::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
}

/* FAQ Input Area (Chips) - Hidden globally in favor of Dropdown */
.faq-input-area {
  display: none !important;
}

/* FAQ Universal Control (Dropdown) - Visible globally */
.faq-mobile-control {
  display: block;
  position: relative;
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
}

.faq-mobile-trigger {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--ink-400);
  text-align: left;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-mobile-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

.faq-mobile-sheet {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-panel);
  border-top: 1px solid var(--glass-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 50vh;
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 20;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.faq-mobile-sheet.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.faq-mobile-sheet .faq-chip {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  justify-content: flex-start;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.faq-mobile-sheet .faq-chip:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.faq-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-200);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  background: rgba(6, 182, 212, 0.08);
}

.chat-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.ai {
  justify-content: flex-start;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  flex: 0 0 32px;
  object-fit: contain;
}

.chat-message {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  border: 1px solid var(--glass-border);
  animation: fadeInUp 0.3s ease-out forwards;
}

.chat-message.ai {
  background: rgba(10, 10, 15, 0.75);
  color: var(--ink-100);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.chat-message.user {
  background: rgba(124, 58, 237, 0.25);
  color: var(--ink-100);
}

.chat-message.thinking {
  opacity: 0.75;
  padding: 0.65rem 0.9rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-200);
  opacity: 0.65;
  animation: bounce 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .faq-console {
    width: 100%;
  }

  .faq-console-header {
    gap: 0.45rem;
    padding: 0.7rem 0.8rem;
  }

  .console-header-btn {
    padding: 0.45rem;
  }

  .console-header-btn span {
    display: none;
  }

  .chat-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 3px;
  }

  .chat-row {
    gap: 0.75rem;
  }
}

/* =========================================
   12. CONTACT (M9.1 Static Base)
   ========================================= */
#contacto {
  min-height: 100vh;
}

#contacto .contact-container {
  width: 100%;
  align-items: center;
}

.contact-header p {
  margin: 0.65rem auto 0;
  color: var(--ink-400);
}

.contact-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.contact-primary {
  width: 100%;
}

.btn-whatsapp-giant {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}

.btn-whatsapp-giant img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.btn-whatsapp-giant:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.contact-divider {
  color: var(--ink-400);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#debug-effect-selector {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--cyan);
  border: 1px dashed var(--cyan);
  border-radius: 4px;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}

.contact-form-container {
  width: 100%;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform-origin: center center;
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-4px, -4px); }
  20%, 40%, 60%, 80% { transform: translate(4px, 4px); }
}

.screen-shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes chromatic-distortion {
  0% { filter: none; transform: scale(1); }
  20% {
    filter: drop-shadow(-3px 0 rgba(124, 58, 237, 0.6)) drop-shadow(3px 0 rgba(6, 182, 212, 0.6));
    transform: scale(0.98) skewX(2deg);
  }
  40% {
    filter: drop-shadow(3px 0 rgba(124, 58, 237, 0.6)) drop-shadow(-3px 0 rgba(6, 182, 212, 0.6));
    transform: scale(0.95) skewX(-2deg);
  }
  60% {
    filter: brightness(1.2) sepia(1) hue-rotate(240deg) saturate(4);
    transform: scale(0.9) rotate(1deg);
  }
  100% {
    filter: brightness(4) sepia(1) hue-rotate(250deg) saturate(6) drop-shadow(0 0 30px var(--primary));
    transform: scale(0);
  }
}

.contact-form-container.singularity {
  animation: chromatic-distortion 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
  opacity: 1;
}

.contact-form-container.hologram {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px var(--cyan-glow), inset 0 0 20px rgba(6, 182, 212, 0.2);
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.05);
  animation: hologram-stabilize 0.1s infinite;
}

.contact-form-container.hologram::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(6, 182, 212, 0.15) 3px,
    rgba(6, 182, 212, 0.15) 4px
  );
  background-size: 100% 8px;
  animation: hologram-scan 2s linear infinite;
  pointer-events: none;
  z-index: 10;
}

.contact-form-container.hologram-beam {
  animation: hologram-disengage 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.contact-form-container.hyperdrive {
  animation: hyperdrive-jump 1.0s cubic-bezier(0.7, 0, 0.3, 1) forwards;
  transform-origin: center center;
}

@keyframes hologram-stabilize {
  0%, 100% {
    opacity: 1;
    transform: skewX(0deg);
  }
  50% {
    opacity: 0.95;
    transform: skewX(0.5deg);
  }
}

@keyframes hologram-scan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

@keyframes hologram-disengage {
  0% {
    transform: scale(1);
    filter: brightness(1) blur(0);
    opacity: 1;
  }
  30% {
    transform: scale(1.1, 0.05);
    filter: brightness(3) blur(2px);
    opacity: 1;
  }
  40% {
    transform: scale(0.8, 0.02);
    filter: brightness(5);
    opacity: 1;
  }
  100% {
    transform: scale(0.1, 50) translateY(-150vh);
    filter: brightness(10);
    opacity: 0;
  }
}

@keyframes hyperdrive-jump {
  0%, 30% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
  30% {
    transform: scale(1.05);
    filter: blur(0px);
  }
  60% {
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8)) brightness(1.5) hue-rotate(20deg);
    transform: scale(1.1) skewX(2deg);
  }
  100% {
    transform: scale(0.1, 0.1);
    filter: blur(50px) brightness(5);
    opacity: 0;
  }
}

.contact-form-container.is-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

#contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--ink-100);
  font: inherit;
}

#contact-form textarea {
  resize: vertical;
  min-height: 44px;
}

.contact-legend {
  color: var(--ink-400);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
  display: block;
  font-style: italic;
}

/* --- M16.11: Mobile Reality Polish (392x873) --- */
@media (max-width: 480px) {
  .portfolio-slide img {
    max-height: 22vh;
  }

  .portfolio-stack {
    padding: 0 1rem 7rem 1rem;
  }

  .terminal-line-output {
    display: none !important;
  }

  .terminal-line {
    margin-bottom: 0 !important;
  }

  .process-container:not(.process-mode-intro) .process-terminal {
    margin-top: 2rem !important;
    min-height: auto !important;
    flex: 0 0 auto !important;
    margin-bottom: 0.5rem !important;
  }

  .process-terminal-body {
    padding: 0.5rem 0.75rem !important;
    min-height: auto !important;
  }

  .process-container:not(.process-mode-intro) .process-pipeline {
    margin-top: 0 !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.btn-submit-form {
  width: 100%;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.18);
  color: var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-submit-form.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.btn-submit-form:hover {
  background: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

#contact-form input.invalid,
#contact-form textarea.invalid {
  border-color: rgba(239, 68, 68, 0.65);
}

#contact-form input:-webkit-autofill,
#contact-form input:-webkit-autofill:hover,
#contact-form input:-webkit-autofill:focus,
#contact-form textarea:-webkit-autofill,
#contact-form textarea:-webkit-autofill:hover,
#contact-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink-100);
  -webkit-box-shadow: 0 0 0px 1000px rgba(10, 10, 15, 0.8) inset;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--ink-100);
}

.contact-success-message {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: var(--ink-100);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.18);
}

.contact-success-message.active {
  display: block;
  animation: fadeInUp 0.5s ease-out forwards;
}

.contact-success-message::before {
  content: "\2192";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.65);
  color: var(--success);
  font-weight: 700;
  vertical-align: middle;
}

.contact-error-message {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  color: #fca5a5;
  font-size: 0.88rem;
  text-align: center;
}

.contact-error-message.active {
  display: block;
}

.text-muted {
  font-size: 0.9em;
  color: var(--ink-400);
  display: block;
  margin-top: 0.5rem;
}

/* =========================================
   T&C Overlay (Legal Module)
   ========================================= */
body.legal-open {
  overflow: hidden;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 10, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeInUp 0.25s ease-out;
}

.legal-overlay[hidden] {
  display: none !important;
}

.legal-content {
  width: min(100%, 800px);
  height: 80vh;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.legal-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.legal-title-wrap h2 {
  margin: 0;
}

.legal-subtitle {
  margin: 0.25rem 0 0;
  color: var(--ink-400);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-family: "Fira Code", monospace;
}

.legal-intro {
  margin: 0;
  color: var(--ink-300);
  font-size: 0.9rem;
  line-height: 1.5;
}

.legal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.legal-body h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.legal-text {
  margin: 0;
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-200);
}

.legal-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.legal-page-info {
  margin-right: auto;
  color: var(--ink-400);
  font-size: 0.8rem;
  font-family: "Fira Code", monospace;
}

.legal-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-100);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.legal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.legal-btn-close {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(124, 58, 237, 0.2);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 1.2rem;
    max-height: 92vh;
  }

  .legal-header {
    align-items: flex-start;
  }

  .legal-subtitle {
    font-size: 0.72rem;
  }

  .legal-controls {
    flex-wrap: wrap;
  }

  .legal-page-info {
    width: 100%;
    order: -1;
    margin-bottom: 0.4rem;
  }
}

/* =========================================
   13. FOOTER (M11.2 UI)
   ========================================= */
#main-footer {
  width: 100%;
  background: rgba(3, 3, 5, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-snap-align: end;
  padding: 1.1rem 1.5rem 1rem;
}

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

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
}

.footer-top {
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom {
  justify-content: center;
  margin-top: 0.7rem;
}

.footer-system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
  animation: status-pulse 1.6s ease-in-out infinite;
}

.footer-status-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: "Fira Code", monospace;
}

.footer-status-label {
  color: var(--ink-400);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-status-value {
  color: var(--ink-100);
  font-size: 0.78rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links,
.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-link {
  color: var(--ink-300, #cbd5e1);
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--ink-100);
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.16);
  color: var(--ink-100);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-action:hover {
  border-color: rgba(124, 58, 237, 0.8);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.footer-action.is-disabled,
.footer-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink-400);
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.footer-copyright {
  color: var(--ink-400);
  font-size: 0.74rem;
  text-align: center;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  #nosotros .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #main-footer {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.25rem;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
  }

  .footer-top {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav {
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
  }

  .footer-links,
  .footer-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .footer-bottom {
    margin-top: 0;
  }
}

.lite-switch-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

#elevator-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.38);
}

.elevator-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.4);
  color: var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.elevator-btn svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.elevator-btn:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan, #22d3ee);
  background: rgba(14, 28, 45, 0.7);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.3);
}

.elevator-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.switch-label {
  color: var(--ink-200);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
}

.switch-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.switch-toggle.is-active {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.65);
}

.switch-toggle.is-active::after {
  transform: translateX(20px);
}

.lite-warning-text {
  display: none;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--ink-400);
  margin-top: 0.5rem;
  text-align: right;
  max-width: 150px;
}

@media (max-width: 768px) {
  #elevator-panel {
    right: 1rem;
    bottom: 9.2rem;
    padding: 0.42rem;
    gap: 0.42rem;
  }

  .elevator-btn {
    width: 2.1rem;
    height: 2.1rem;
  }

  .lite-switch-container {
    display: none;
  }
}

body.mode-lite {
  --glass-blur: 0px;
  --glass-bg: rgba(10, 10, 15, 0.95);
  --nav-glass-blur: 0px;
  --nav-glass-bg: rgba(3, 3, 5, 0.98);
  --benefits-glass-blur: 0px;
  --benefits-glass-bg: rgba(10, 10, 15, 0.95);
}

body.mode-lite .hero-title,
body.mode-lite .hero-subtitle,
body.mode-lite .hero-actions,
body.mode-lite .status-bar,
body.mode-lite .status-dot,
body.mode-lite #benefits-intro h2,
body.mode-lite #benefits-intro p,
body.mode-lite #nosotros .manifesto-item,
body.mode-lite .portfolio-title,
body.mode-lite #proceso h2,
body.mode-lite #faq h2,
body.mode-lite #contacto h2,
body.mode-lite .btn-terminal-action,
body.mode-lite .terminal-intro-text::after,
body.mode-lite .ghost-cursor,
body.mode-lite .chat-message,
body.mode-lite .contact-form-container,
body.mode-lite .contact-success-message,
body.mode-lite .glitch-thumb,
body.mode-lite .footer-status-dot {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.mode-lite .typing-dots {
  display: none !important;
}

body.mode-lite .lite-warning-text {
  display: block;
}

/* =========================================
   M13.5 LITE MODE HARDENING (PERFORMANCE)
   ========================================= */
/* 1. Global Scroll Entry: ApariciÃƒÆ’Ã‚Â³n instantÃƒÆ’Ã‚Â¡nea de secciones */
body.mode-lite .container {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 2. Benefits: Cambio de vista instantÃƒÆ’Ã‚Â¡neo y sin blur costoso */
body.mode-lite .benefits-intro-view,
body.mode-lite .benefits-focus-view,
body.mode-lite .benefits-summary-view,
body.mode-lite .benefit-card {
  transition: none !important;
  filter: none !important;
}

/* 3. Portfolio: Cambio de slide instantÃƒÆ’Ã‚Â¡neo y sin scanlines infinitas */
body.mode-lite .portfolio-slide {
  transition: none !important;
}
body.mode-lite .glitch-thumb::after {
  display: none !important;
}

/* 4. Process: AdaptaciÃƒÆ’Ã‚Â³n de layout instantÃƒÆ’Ã‚Â¡nea y sin glitch visual */
body.mode-lite .process-split-layout,
body.mode-lite .process-terminal,
body.mode-lite .process-pipeline {
  transition: none !important;
}
body.mode-lite .terminal-glitch {
  animation: none !important;
}

/* C2 Nosotros - Reading Panel */
#nosotros {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.manifesto-panel {
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 15, 0.75); /* MÃƒÆ’Ã‚Â¡s opaco para lectura */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.manifesto-title {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-line; /* Respeta los \n del JSON */
  margin-bottom: 2.5rem;
  text-align: left; /* Mejor lectura */
  font-weight: 400;
  letter-spacing: 0.01em;
}

.manifesto-cta {
  min-width: 180px;
}

@media (max-width: 768px) {
  .manifesto-panel {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    border-radius: 20px;
  }
  .manifesto-title {
    font-size: 2rem;
  }
  .manifesto-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }
}

/* C2.5 Nosotros - Glass Lab Interface */
.manifesto-glass-wrapper {
  background: rgba(255, 255, 255, 0.02); /* Casi transparente */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.manifesto-split {
  display: grid;
  grid-template-columns: 35% 1px 1fr;
  gap: 3rem;
  align-items: start;
}

.manifesto-divider {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

.manifesto-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center; /* Nuevo: centra las dos lÃƒÆ’Ã‚Â­neas */
}

.manifesto-hook-text {
  font-size: 1.25rem;
  color: var(--ink-100);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 500;
}

.manifesto-details {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-200);
  white-space: pre-line;
}

.manifesto-toggle {
  display: none; /* Oculto en desktop */
  background: none;
  border: none;
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.5rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .manifesto-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .manifesto-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .manifesto-glass-wrapper {
    padding: 2rem 1rem; /* Ajuste: menos padding lateral para ensanchar visualmente */
  }

  .manifesto-title {
    font-size: 2rem;
    text-align: center; /* Asegurar centrado en mobile */
  }

  .manifesto-hook-text {
    font-size: 1.1rem;
  }

  .manifesto-details.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 10; /* Ajuste: mostrar ~10 lÃƒÆ’Ã‚Â­neas en vez de 3 */
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    max-height: 320px; /* Ajuste: permitir mayor altura inicial */
  }

  .manifesto-details.expanded {
    display: block;
    mask-image: none;
    max-height: none;
    animation: fadeIn 0.5s ease;
  }

  .manifesto-toggle {
    display: inline-block;
  }

  .manifesto-cta {
    width: 100%;
  }
}

/* C3.2 Benefits Polish */
.benefits-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* C4.2 Portfolio Case Details */
.portfolio-details-container {
  width: 100%;
  max-width: 980px;
}

.portfolio-view-switch {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  margin: 0 auto 1rem;
}

.switch-icon {
  width: 20px;
  height: 20px;
  z-index: 2;
  color: var(--ink-400);
  padding: 6px;
  box-sizing: content-box;
  transition: color 0.3s;
}

.switch-track {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.portfolio-view-switch .icon-visual {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.portfolio-view-switch .icon-data {
  color: var(--ink-400);
  filter: none;
}

.portfolio-view-switch.active .switch-track {
  transform: translateX(32px);
  background: var(--cyan);
}

.portfolio-view-switch.active .icon-visual {
  color: var(--ink-400);
  filter: none;
}

.portfolio-view-switch.active .icon-data {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.portfolio-content-wrapper {
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  align-items: center;
  margin:0;
}

.portfolio-visual-layer,
.portfolio-data-layer {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-visual-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  visibility: visible;
}

.portfolio-data-layer {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  visibility: hidden;
}

.portfolio-content-wrapper.show-data .portfolio-visual-layer {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  visibility: hidden;
}

.portfolio-content-wrapper.show-data .portfolio-data-layer {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  visibility: visible;
}

.portfolio-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  width: 100%;
  align-items: stretch;
}

.detail-block {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: left;
}

.detail-block:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.6;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.detail-text {
  font-size: 0.9rem;
  color: var(--ink-200);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .portfolio-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .detail-block::after {
    display: none;
  }

  .portfolio-slide ul li {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
  }

.portfolio-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* C2 Overlay Paginado (No Scroll) */
.manifesto-col-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifesto-toggle {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-100);
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.manifesto-desktop-text {
  white-space: pre-line;
  color: var(--ink-200);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
  display: none;
}

.manifesto-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.manifesto-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.manifesto-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
}

.manifesto-split-top {
  height: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

.manifesto-split-top img {
  width: 60%;
  max-width: 240px;
  height: auto;
  opacity: 0.9;
}

.manifesto-split-bottom {
  height: 70%;
  padding: 5rem 2rem 2rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.manifesto-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-100);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
}

.manifesto-page {
  max-width: 700px;
  margin: 0 auto;
  color: var(--ink-100);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  white-space: pre-line;
}

.manifesto-page-animate {
  animation: manifestoPageFade 0.3s ease;
}

.manifesto-overlay-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to top, rgba(3, 3, 5, 0.95), transparent);
  z-index: 10002;
}

.manifesto-nav-btn {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-100);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.manifesto-page-indicator {
  color: var(--ink-400);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  min-width: 120px;
}

.manifesto-nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .manifesto-desktop-text {
    display: block;
  }

  .manifesto-overlay {
    display: none !important;
  }

  .manifesto-toggle {
    display: none;
  }
}

@media (min-width: 769px) {
  .portfolio-slide img {
    max-height: 55vh;
    margin: 1rem 0;
  }

  .portfolio-slide ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0.5rem auto 1.5rem;
  }

  .portfolio-slide ul li {
    width: auto;
    padding: 0.5rem 1rem;
  }

  .portfolio-slide ul li:last-child {
    grid-column: auto;
    justify-self: stretch;
  }
}

@media (max-width: 1024px) {
  .manifesto-desktop-text {
    display: none;
  }

  .manifesto-overlay {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.98);
    display: flex;
  }

  .manifesto-overlay-close {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
  }

  .manifesto-overlay-content {
    justify-content: center;
  }

  .manifesto-toggle {
    display: inline-block;
  }
}

@keyframes manifestoPageFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Portfolio Tooltips (Desktop Only) */
@media (min-width: 769px) {
  .has-tooltip {
    position: relative;
    cursor: help;
    overflow: visible !important;
  }

  .highlight-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--ink-400);
    border-radius: 50%;
    font-size: 10px;
    margin-left: 8px;
    color: var(--ink-400);
    transition: all 0.2s ease;
    font-family: monospace;
  }

  .has-tooltip:hover .highlight-info-icon {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 10px var(--cyan-glow);
  }

  .highlight-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--ink-200);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
  }

  .highlight-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(10, 10, 15, 0.95) transparent transparent transparent;
  }

  .has-tooltip:hover .highlight-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .highlight-info-icon,
  .highlight-tooltip {
    display: none;
  }
}

/* --- M16.1: Tablet & Netbook Hardening (769px - 1200px) --- */
@media (min-width: 769px) and (max-width: 1200px) {
  :root {
    --container-padding: 2rem;
  }

  .container {
    max-width: 95vw;
  }

  /* Force Sidebar Collapsed State (Visual Enforcement) */
  #sidebar {
    width: var(--nav-width-collapsed) !important;
  }

  #sidebar .nav-label {
    display: none !important;
    opacity: 0 !important;
  }

  #sidebar .logo-expanded {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #sidebar .logo-collapsed {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Hide expand toggle to prevent user frustration in this range */
  .nav-toggle-desktop {
    display: none !important;
  }
}

/* Portfolio Mobile Adjustments */
@media (max-width: 768px) {
  .portfolio-content-wrapper,
  .portfolio-actions {
    transform: translateY(-4rem);
    position: relative;
    z-index: 10;
  }

  .portfolio-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
  }

  .portfolio-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .has-tooltip {
    position: relative;
  }

  .highlight-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 50%;
    font-size: 9px;
    margin-left: 6px;
    color: var(--ink-400);
  }

  .highlight-tooltip {
    display: block;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    width: 200px;
    padding: 0.75rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--ink-200);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .highlight-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(10, 10, 15, 0.95) transparent transparent transparent;
  }

  .has-tooltip:hover .highlight-tooltip,
  .has-tooltip:active .highlight-tooltip {
    opacity: 1;
    visibility: visible;
  }

  .has-tooltip:hover .highlight-info-icon {
    border-color: var(--cyan);
    color: var(--cyan);
  }
}

/* --- M16.3: Laptop Low-Height Hardening (Height < 800px) --- */
@media (min-width: 1025px) and (max-height: 800px) {
  /* 1. Compact Stack & Header to pull content UP */
  #portafolio .portfolio-stack {
    gap: 0.5rem; /* Tight gap */
    padding-top: 2rem; /* Reduced top padding */
    max-width: 1000px;
  }

  #portafolio .portfolio-slide h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
  }

  #portafolio .portfolio-view-switch {
    margin-bottom: 0.5rem; /* Critical: Pull image up */
    transform: scale(0.9); /* Slightly smaller switch */
  }

  /* 2. Maximize Image within available space */
  #portafolio .portfolio-slide img {
    max-height: 38vh; /* Kept generous size */
    margin: 0.25rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }

  #portafolio .portfolio-slide p {
    font-size: 0.9rem;
    max-width: 90%;
    margin-bottom: 0.25rem;
    line-height: 1.4;
  }

  /* 3. Highlights: Flex Center instead of Grid */
  #portafolio .portfolio-slide ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem auto 0.75rem;
  }

  #portafolio .portfolio-slide ul li {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    width: auto; /* Auto width for flex */
  }

  /* 4. Actions & Nav */
  #portafolio .portfolio-actions {
    margin-top: 0.25rem;
  }

  #portafolio .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    min-height: 36px;
  }

  .glitch-nav-container {
    transform: translateY(-50%) scale(0.7);
    right: 0.5rem;
  }

  /* 5. Data Layer Safety Zone */
  .portfolio-data-layer {
    padding-right: 6rem; /* Prevent overlap with nav */
  }
}

/* --- M16.4: Contact Landscape Hardening (Height < 800px) --- */
.contact-info-card {
  display: none;
}

/* --- M16.4: Contact Landscape Hardening (Height < 800px) --- */
@media (min-width: 1025px) {
  /* Horizontal Layout for Contact Section */
  #contacto .contact-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    gap: 4rem;
    margin-top: 1rem;
  }

  #contacto .contact-primary {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #contacto .contact-header {
    margin-bottom: 1rem;
  }

  #contacto .contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  /* Hide divider to save vertical space and reduce noise */
  #contacto .contact-divider {
    display: none;
  }

  #contacto .contact-form-container {
    width: 60%;
    padding: 1.5rem;
    /* Ensure animations still work by keeping positioning context */
    transform-origin: center center;
  }

  /* Internal Grid for Form (2 Columns) to reduce height */
  #contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  #contact-form input[name="name"] { grid-column: 1; }
  #contact-form input[name="phone"] { grid-column: 2; }
  #contact-form input[name="email"] { grid-column: 1; }
  #contact-form input[name="rubro"] { grid-column: 2; }

  #contact-form textarea {
    grid-column: 1 / -1;
    min-height: 60px;
    height: 160px;
  }

  #contact-form .btn-submit-form {
    grid-column: 1 / -1;
    padding: 0.75rem;
  }

  /* Info Card Styles (Desktop Only) */
  .contact-info-card {
    display: block;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    text-align: left;
    width: 100%;
  }

  .contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink-200);
    font-size: 0.9rem;
  }

  .info-label {
    font-size: 1.2rem;
    opacity: 0.8;
  }

  .info-data {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .info-data small {
    color: var(--ink-400);
    font-size: 0.75rem;
    margin-top: 2px;
  }

  .contact-social-row {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--cyan);
  }

  .social-link img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
  }

  .info-link {
    color: var(--ink-200);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .info-link:hover {
    color: var(--cyan);
    text-decoration: underline;
  }
}

/* --- M16.5: Beneficios Grid & Focus Hardening --- */

/* Rango Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  #benefits-summary {
    gap: 1.5rem;
    padding: 4rem 2rem 8rem 2rem; /* Ajuste de padding para tablets */
    max-width: 90vw;
  }
  .benefit-card {
    padding: 2rem;
    width: 100%;
  }
  /* Asegurar que el texto no sea enorme en tablets */
  .card-content h3 {
    font-size: 1.75rem;
  }
}

/* Laptop Baja Altura (Height < 800px) */
@media (min-width: 1025px) and (max-height: 800px) {
  #benefits-summary {
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 6rem; /* Espacio para el dock de minis */
    align-content: center;
  }

  /* Tarjetas más compactas en altura */
  .benefit-card--compact {
    min-height: auto;
    padding: 1.5rem;
    gap: 0.5rem;
  }

  /* Ajuste de escala para que quepan los 4 */
  .benefit-card:not(.benefit-card--compact) {
    padding: 2rem;
    max-width: 600px;
  }

  .card-icon img {
    width: 50px; /* Icono reducido */
    height: 50px;
  }

  .card-content h3 {
    font-size: 1.3rem; /* Título reducido */
    margin-bottom: 0.25rem;
  }

  .card-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* --- M16.6: Process & FAQ Legibility Hardening --- */

/* FAQ Console Height Constraint for Low-Height Screens */
@media (max-height: 800px) {
  .faq-console {
    height: 60vh;
    min-height: 400px;
  }
  .faq-chat-area {
    padding: 1.5rem;
  }
}

/* Process Terminal Adaptation for Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .process-split-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .process-container:not(.process-mode-intro) .process-terminal {
    width: 100%;
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 6rem;
    min-height: 200px;
  }

  .process-container:not(.process-mode-intro) .process-pipeline {
    width: 100%;
    margin-top: 0;
  }

  .process-terminal-body {
    font-size: 0.85rem;
  }
}

/* --- M16.x: Laptop 1366x768 Polish (Nav, Hero, Manifesto) --- */
@media (min-width: 1025px) and (max-height: 800px) {

  /* 1. Navigation Compact Mode & Bottom Anchor */
  .nav-header {
    height: 60px;
    margin-bottom: 0.5rem;
  }
  .nav-link {
    height: 48px;
    font-size: 0.9rem;
  }
  .nav-icon {
    width: 20px;
    height: 20px;
  }
  .nav-separator {
    margin-top: auto; /* Critical: Push WhatsApp to bottom */
    margin-bottom: 0.5rem;
  }
  .nav-cta {
    margin-bottom: 0.5rem;
  }

  /* 2. Hero Compact Mode */
  .hero-container {
    padding-top: 1rem;
  }
  .hero-title {
    font-size: 3rem;
    margin-bottom: 0.75rem;
  }
  .status-bar {
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
  }
  .hero-subtitle {
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 650px;
  }
  .hero-actions {
    gap: 0.75rem;
  }

  /* 3. Manifesto: Force Mobile Overlay Mode */
  .manifesto-desktop-text {
    display: none !important;
  }
  .manifesto-toggle {
    display: inline-block !important;
    margin-top: 0;
  }
  .manifesto-overlay {
    display: flex !important; /* Restore flex layout capability */
  }
  .manifesto-overlay[hidden] {
    display: none !important; /* Respect hidden attribute */
  }

  /* Adjust container for the "Intro" view */
  .manifesto-glass-wrapper {
    max-width: 800px;
    padding: 3rem;
    text-align: center;
  }
  .manifesto-col-left {
    align-items: center;
    text-align: center;
  }
  .manifesto-split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .manifesto-divider {
    display: none;
  }
  .manifesto-col-right {
    width: 100%;
    justify-content: center;
  }
  .manifesto-hook-text {
    text-align: center;
    margin-bottom: 1rem;
  }
  .manifesto-cta {
    width: auto;
    min-width: 200px;
  }
}

/* --- M16.8: Mobile Vertical Compact (< 480px) --- */
@media (max-width: 480px) {
  /* Global Safety */
  section {
    padding-top: 5rem; /* Asegurar espacio superior */
  }

  /* Hero Compact */
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
  }
  .status-bar {
    margin-bottom: 1rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
  }
  .hero-actions {
    gap: 0.5rem;
  }
  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Beneficios: Lift Card to clear Dock */
  .benefit-card:not(.benefit-card--compact) {
    top: 42%; /* Subir centro de gravedad */
    padding: 1.25rem 1rem;
    width: 92%;
    gap: 0.75rem;
  }
  .benefit-card:not(.benefit-card--compact) .card-content h3 {
    font-size: 1.4rem;
    margin-left: 3.5rem; /* Espacio para icono */
    margin-bottom: 0.5rem;
  }
  .benefit-card:not(.benefit-card--compact) .card-icon {
    width: 40px;
    height: 40px;
    top: 1.25rem;
    left: 1rem;
  }
  .benefit-card:not(.benefit-card--compact) .benefit-block {
    margin-top: 0.5rem;
  }

  /* Portafolio Compact Stack */
  .portfolio-slide img {
    max-height: 28vh; /* Reducir imagen drásticamente */
    margin: 0.5rem 0;
  }
  .portfolio-slide h2 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
  }
  .portfolio-stack {
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .portfolio-slide ul {
    margin: 0.25rem auto 1rem;
    gap: 0.35rem;
  }
  .portfolio-slide ul li {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }
  .portfolio-actions {
    gap: 0.5rem;
    width: 100%;
  }
  .portfolio-actions .btn {
    width: 100%; /* Botones full width en mobile pequeño */
  }

  /* Proceso Compact Fix (360x800) */
  .process-split-layout {
    gap: 0.5rem; /* Reducir gap vertical */
  }

  .process-container:not(.process-mode-intro) .process-terminal {
    position: relative; /* Disable sticky to prevent overlap */
    margin-top: 60px; /* Ajuste fino para header */
    min-height: auto;
    margin-bottom: 0.25rem;
    z-index: 5;
    flex: 0 0 auto;
  }

  .process-terminal-body {
    padding: 0.75rem 1rem; /* Menos padding vertical */
    min-height: 100px;
  }

  .process-container:not(.process-mode-intro) .process-pipeline {
    margin-top: 0;
    z-index: 4;
    flex: 1;
    min-height: 0; /* Permitir shrink si es necesario */
  }

  .process-dynamic-card {
    padding: 0.85rem;
    min-height: auto;
  }

  .process-card-head {
    margin-bottom: 0.5rem;
  }

  .process-card-description {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .process-card-command {
    padding: 0.6rem;
    font-size: 0.75rem;
  }

  /* Contacto Compact */
  .contact-wrapper {
    gap: 1rem;
  }
  .contact-header h2 {
    font-size: 2rem;
  }
  .btn-whatsapp-giant {
    padding: 1rem;
    font-size: 1rem;
  }
  .contact-form-container {
    padding: 1.25rem;
  }
  #contact-form {
    gap: 0.6rem;
  }
  #contact-form input, #contact-form textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* --- M16.8: Fix Process 360x800 (Hide Output & Lift Console) --- */
@media (max-width: 374px) {
  /* 1. Hide Terminal Output (White text) to save space */
  .terminal-line-output {
    display: none !important;
  }

  /* 2. Compact Terminal Lines */
  .terminal-line {
    margin-bottom: 0 !important;
  }

  /* 3. Lift Console Up (approx 2rem from top) */
  .process-container:not(.process-mode-intro) .process-terminal {
    margin-top: 2rem !important; /* Subir drásticamente */
    min-height: auto !important;
    flex: 0 0 auto !important;
    margin-bottom: 0.5rem !important;
  }

  /* 4. Ultra Compact Body */
  .process-terminal-body {
    padding: 0.5rem 0.75rem !important;
    min-height: auto !important;
  }

  /* 5. Ensure Pipeline fits */
  .process-container:not(.process-mode-intro) .process-pipeline {
    margin-top: 0 !important;
    flex: 1 !important;
    overflow-y: auto !important; /* Permitir scroll interno si es necesario */
  }
}

/* --- M16.9: Tablet Landscape Compact (1024x768) --- */
@media (min-width: 769px) and (max-width: 1024px) and (max-height: 800px) {

  /* Global Safety */
  section {
    padding-top: 4rem;
  }

  /* Beneficios: Lift for Dock */
  #benefits-summary {
    padding-bottom: 7rem; /* Espacio extra para dock */
    gap: 1rem;
    align-content: center;
  }
  .benefit-card {
    padding: 2rem;
    max-width: 85%;
  }

  /* Portafolio: Ultra Compact & Horizontal Nav */
  #portafolio .portfolio-stack {
    gap: 0.25rem; /* Mínimo gap */
    padding-top: 1rem; /* Subir todo el contenido */
    max-width: 900px;
  }
  #portafolio .portfolio-slide h2 {
    font-size: 2rem;
    margin-bottom: 0;
  }
  #portafolio .portfolio-view-switch {
    margin-bottom: 0.25rem;
    transform: scale(0.85);
  }
  #portafolio .portfolio-slide ul {
    margin: 0.25rem auto 0.5rem;
    gap: 0.5rem;
  }
  #portafolio .portfolio-slide img {
    max-height: 32vh; /* Imagen contenida */
    margin: 0.25rem 0;
  }
  #portafolio .portfolio-actions {
    margin-top: 0.25rem;
  }
  
  /* Force Horizontal Nav at Bottom (Like Mobile) */
  .glitch-nav-container {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    transform: none;
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    gap: 1rem;
  }
  .glitch-nav-item {
    width: 100px;
    height: 60px;
  }
  .glitch-label {
    display: none; /* Ocultar etiquetas flotantes */
  }

  /* Contacto: Desktop Split Layout Force (Balanced) */
  #contacto .contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1000px;
    margin-top: 1rem;
  }

  /* Hide divider in this layout */
  #contacto .contact-divider {
    display: none;
  }

  #contacto .contact-primary {
    width: 35%;
    display: flex;
    flex-direction: column;
  }

  #contacto .contact-form-container {
    width: 60%;
    padding: 1.5rem;
  }

  /* Ensure Info Card is VISIBLE */
  .contact-info-card {
    display: block !important;
    margin-top: 1.5rem;
  }

  /* Balance height with left column */
  #contact-form textarea {
    height: 140px; /* Aumentado para igualar altura visual */
    min-height: 140px;
  }
}

.contact-legend {
  color: var(--ink-400);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
  display: block;
  font-style: italic;
}

