/* Pixelhive - hoja de estilos principal.
   Requiere brand-colors.css (cargado antes en el HTML, sin @import para evitar cadenas de peticiones).
   Tipografías autoalojadas (sin Google Fonts): no se transfieren datos a terceros y mejora el rendimiento. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   RESET & ULTRA BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--ph-font-body);
  font-size: var(--ph-text-md);
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ph-font-body);
  background-color: var(--ph-color-obsidian-deep);
  color: var(--ph-color-text-crisp);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Film Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--ph-z-grain);
}

/* Background Canvas & Ambient Lighting */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-right {
  top: -150px;
  right: -100px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(var(--ph-color-electric-cyan-rgb), 0.16) 0%, rgba(var(--ph-color-vibrant-turquoise-rgb), 0.04) 60%, transparent 80%);
}

.glow-bottom-left {
  bottom: 10%;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--ph-color-deep-teal-rgb), 0.14) 0%, rgba(var(--ph-color-midnight-petrol-rgb), 0.05) 70%, transparent 80%);
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Typography Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--ph-font-display);
  font-weight: 700;
  color: var(--ph-color-text-crisp);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  color: var(--ph-color-text-muted);
  font-weight: 400;
}

a {
  color: var(--ph-color-vibrant-turquoise);
  text-decoration: none;
  transition: color 0.2s var(--ph-ease-out);
}

a:hover {
  color: var(--ph-color-electric-cyan);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ==========================================================================
   NAVIGATION BAR & HUD ACTIONS
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: var(--ph-z-sticky);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--ph-border-subtle);
  transition: background-color 0.3s var(--ph-ease-out), box-shadow 0.3s var(--ph-ease-out), border-color 0.3s var(--ph-ease-out);
}

.site-header.scrolled {
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.96);
  box-shadow: var(--ph-shadow-rest);
  border-bottom-color: var(--ph-border-medium);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-emblem-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(var(--ph-color-electric-cyan-rgb), 0.45));
  transition: transform 0.4s var(--ph-ease-out);
}

.brand-link:hover .brand-emblem-img {
  transform: rotate(30deg) scale(1.1);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--ph-font-display);
  font-size: var(--ph-text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ph-color-text-white);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-tagline-micro {
  font-size: var(--ph-text-xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ph-color-vibrant-turquoise);
  font-weight: 700;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: var(--ph-text-md);
  font-weight: 500;
  color: var(--ph-color-text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.25s var(--ph-ease-out);
}

.nav-link:hover, .nav-link.active {
  color: var(--ph-color-text-crisp);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ph-gradient-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ph-ease-out);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

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

/* HUD Utility Buttons */
.hud-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--ph-radius-md);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.65);
  border: 1px solid var(--ph-border-subtle);
  color: var(--ph-color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s var(--ph-ease-out), background-color 0.25s var(--ph-ease-out), border-color 0.25s var(--ph-ease-out), box-shadow 0.25s var(--ph-ease-out), transform 0.25s var(--ph-ease-out);
}

.hud-btn:hover {
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.95);
  border-color: var(--ph-color-electric-cyan);
  color: var(--ph-color-text-white);
  transform: translateY(-2px);
}

.card-status-badge .radar-dot { background-color: currentColor; }

.radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ph-color-electric-cyan);
  position: relative;
  display: inline-block;
}

.radar-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--ph-color-electric-cyan);
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--ph-text-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ph-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.3s var(--ph-ease-out), background-color 0.3s var(--ph-ease-out), border-color 0.3s var(--ph-ease-out), box-shadow 0.3s var(--ph-ease-out), transform 0.3s var(--ph-ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ph-gradient-primary);
  color: var(--ph-color-obsidian-deep);
  box-shadow: var(--ph-shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ph-shadow-accent-hover);
  color: var(--ph-color-black);
}

.btn-secondary {
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.65);
  color: var(--ph-color-text-crisp);
  border-color: var(--ph-border-medium);
}

.btn-secondary:hover {
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.95);
  border-color: var(--ph-color-electric-cyan);
  color: var(--ph-color-text-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION CON INTEGRACIÓN 3D
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4.5rem 0;
  position: relative;
}

.hero-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-left-content {
  text-align: left;
}

.hero-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--ph-radius-xl);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.65);
  border: 1px solid var(--ph-border-medium);
  box-shadow: var(--ph-glow);
  margin-bottom: 1.75rem;
}

.hero-tagline-text {
  font-size: var(--ph-text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ph-color-electric-cyan);
}

.hero-title {
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-emphasis {
  color: var(--ph-color-electric-cyan);
  display: inline;
}

.hero-description {
  font-size: var(--ph-text-lg);
  color: var(--ph-color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* 3D Canvas Box in Hero */
.hero-3d-box {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-canvas-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-3d-canvas-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 0 45px rgba(var(--ph-color-electric-cyan-rgb), 0.25));
}

.hero-3d-legend {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.75);
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-xl);
  padding: 0.25rem 1rem;
  font-size: var(--ph-text-xs);
  color: var(--ph-color-text-muted);
  white-space: nowrap;
}

/* Metrics Bar */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  background: rgba(var(--ph-color-midnight-petrol-rgb), 0.5);
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--ph-shadow-raised);
  margin-top: 2rem;
  align-items: end;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  border-right: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.1);
  padding-right: 1.5rem;
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-value {
  font-family: var(--ph-font-display);
  font-size: var(--ph-text-2xl);
  font-weight: 800;
  color: var(--ph-color-text-white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.metric-label {
  font-size: var(--ph-text-sm);
  color: var(--ph-color-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   BENTO GRID SHOWCASE (PROYECTOS TITULARES)
   ========================================================================== */
.section-padding {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.75rem auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--ph-text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ph-color-electric-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--ph-text-lg);
  color: var(--ph-color-text-muted);
  line-height: 1.6;
}

/* Controls */
.ecosystem-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.controls-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1 1 15rem;
  min-width: 15rem;
  max-width: 380px;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ph-color-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--ph-radius-md);
  background: rgba(var(--ph-color-midnight-petrol-rgb), 0.6);
  border: 1px solid var(--ph-border-subtle);
  color: var(--ph-color-text-crisp);
  font-family: var(--ph-font-body);
  font-size: var(--ph-text-sm);
  outline: none;
  transition: border-color 0.25s var(--ph-ease-out), box-shadow 0.25s var(--ph-ease-out), background-color 0.25s var(--ph-ease-out);
}

.search-input:focus {
  border-color: var(--ph-color-electric-cyan);
  box-shadow: var(--ph-glow);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.85);
}

.search-input::placeholder {
  color: var(--ph-color-text-subtle-aa);
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--ph-radius-xl);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.5);
  border: 1px solid var(--ph-border-subtle);
  color: var(--ph-color-text-muted);
  font-size: var(--ph-text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s var(--ph-ease-out), background-color 0.25s var(--ph-ease-out), border-color 0.25s var(--ph-ease-out), box-shadow 0.25s var(--ph-ease-out), transform 0.25s var(--ph-ease-out);
}

.filter-pill:hover {
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.9);
  color: var(--ph-color-text-crisp);
  border-color: var(--ph-border-medium);
}

.filter-pill.active {
  background: rgba(var(--ph-color-electric-cyan-rgb), 0.15);
  border-color: var(--ph-color-electric-cyan);
  color: var(--ph-color-electric-cyan);
  font-weight: 600;
}

/* BENTO GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  background: var(--ph-gradient-card);
  border-radius: var(--ph-radius-xl);
  border: 1px solid var(--ph-border-subtle);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s var(--ph-ease-out), border-color 0.3s var(--ph-ease-out);
}

/* Dynamic Spotlight Glow that tracks mouse */
.card-spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(var(--ph-color-electric-cyan-rgb), 0.12), transparent 80%);
  opacity: 0.8;
  transition: opacity 0.3s var(--ph-ease-out);
  z-index: 1;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--ph-gradient-primary));
  opacity: 0.85;
}

.project-card:hover {
  border-color: var(--ph-border-bright);
  box-shadow: var(--ph-shadow-raised), var(--ph-glow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.card-icon-hex {
  width: 58px;
  height: 58px;
  border-radius: var(--ph-radius-lg);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.9);
  border: 1px solid var(--ph-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent, var(--ph-color-electric-cyan));
  box-shadow: var(--ph-shadow-rest);
  transition: transform 0.3s var(--ph-ease-out);
}

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

.project-card:hover .card-icon-hex {
  transform: scale(1.1);
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--ph-radius-xl);
  font-size: var(--ph-text-xs);
  font-weight: 600;
  border: 1px solid currentColor;
}

.status-live {
  color: var(--ph-status-live);
  background: rgba(var(--ph-status-live-rgb), 0.12);
}

.status-upcoming {
  color: var(--ph-color-danger-soft);
  background: rgba(var(--ph-color-danger-rgb), 0.14);
}

.status-beta {
  color: var(--ph-status-beta);
  background: rgba(var(--ph-color-vibrant-turquoise-rgb), 0.12);
}

.status-development {
  color: var(--ph-status-dev);
  background: rgba(var(--ph-status-dev-rgb), 0.12);
}

.card-body {
  margin-bottom: 2rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-sector {
  font-size: var(--ph-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ph-color-deep-teal);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: var(--ph-text-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--ph-color-text-white);
}

.card-tagline {
  font-size: var(--ph-text-md);
  font-weight: 600;
  color: var(--ph-color-text-crisp);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.card-description {
  font-size: var(--ph-text-md);
  color: var(--ph-color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--ph-font-mono);
  font-size: var(--ph-text-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--ph-radius-sm);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.75);
  border: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.12);
  color: var(--ph-color-text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.1);
  position: relative;
  z-index: 2;
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--ph-text-sm);
  font-weight: 700;
  color: var(--ph-color-electric-cyan);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
}
.card-cta-btn svg { transition: transform 0.25s var(--ph-ease-out); }

.card-cta-btn:hover {
  color: var(--ph-color-text-white);
}
.card-cta-btn:hover svg { transform: translateX(6px); }

.card-stage-info {
  font-size: var(--ph-text-xs);
  color: var(--ph-color-text-subtle-aa);
  font-family: var(--ph-font-body);
}

/* Future Slot Card in Bento Grid */
.bento-future-item {
  grid-column: 1 / -1;
  border: 2px dashed rgba(var(--ph-color-electric-cyan-rgb), 0.25);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
}

.bento-future-item:hover {
  border-color: var(--ph-color-electric-cyan);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.5);
}

.future-plus-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.9);
  border: 1px solid var(--ph-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-color-electric-cyan);
  margin-bottom: 1.5rem;
  font-size: var(--ph-text-2xl);
  transition: transform 0.3s var(--ph-ease-out);
}

.bento-future-item:hover .future-plus-icon {
  transform: rotate(90deg) scale(1.1);
  background: var(--ph-color-electric-cyan);
  color: var(--ph-color-black);
}

.future-slot-title {
  font-size: var(--ph-text-xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--ph-color-text-white);
}

.future-slot-desc {
  font-size: var(--ph-text-md);
  color: var(--ph-color-text-muted);
  max-width: 480px;
  line-height: 1.6;
}

/* ==========================================================================
   SIMULATORS STYLING (INTERACTIVE PROTOTYPES)
   ========================================================================== */
.simulator-wrapper {
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.7);
  border: 1px solid var(--ph-border-medium);
  border-radius: var(--ph-radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.sim-header-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--ph-text-xs);
  font-family: var(--ph-font-body);
  color: var(--ph-color-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.1);
}

.sim-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ph-color-electric-cyan);
}

/* Galería de capturas reales (ficha de producto) */
.etq-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.etq-tab {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: var(--ph-radius-xl);
  border: 1px solid var(--ph-border, rgba(var(--ph-color-text-white-rgb), 0.18));
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--ph-text-sm);
  font-weight: 600;
  cursor: pointer;
}

.etq-tab[aria-pressed="true"] {
  background: var(--ph-color-danger);
  border-color: var(--ph-color-danger);
  color: var(--ph-color-danger-ink);
}

.etq-tab:focus-visible {
  outline: 3px solid var(--ph-color-text-white);
  outline-offset: 2px;
}

.etq-figure { margin: 0; }

.etq-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ph-radius-md);
  border: 1px solid rgba(var(--ph-color-text-white-rgb), 0.14);
  background: var(--ph-color-paper-cool);
}

.etq-caption {
  margin-top: 0.75rem;
  font-size: var(--ph-text-md);
  line-height: 1.5;
  opacity: 0.9;
}

.etq-extra { margin-top: 1rem; font-size: var(--ph-text-md); }
.etq-extra a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   COMMAND PALETTE HUD (CTRL+K)
   ========================================================================== */
.cmd-palette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--ph-color-abyss-rgb), 0.85);
  backdrop-filter: blur(20px);
  z-index: var(--ph-z-top);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ph-ease-out), visibility 0.25s var(--ph-ease-out);
}

.cmd-palette-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cmd-palette-box {
  background: var(--ph-color-dialog-surface);
  border: 1px solid var(--ph-border-bright);
  box-shadow: var(--ph-shadow-overlay);
  border-radius: var(--ph-radius-xl);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s var(--ph-ease-out), opacity 0.25s var(--ph-ease-out);
}

.cmd-palette-overlay.active .cmd-palette-box {
  transform: translateY(0) scale(1);
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ph-border-subtle);
  color: var(--ph-color-electric-cyan);
}

.cmd-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ph-color-text-white);
  font-family: var(--ph-font-body);
  font-size: var(--ph-text-md);
}

.cmd-input-row input::placeholder {
  color: var(--ph-color-text-subtle-aa);
}

.cmd-kbd-shortcut {
  font-family: var(--ph-font-mono);
  font-size: var(--ph-text-xs);
  background: rgba(var(--ph-color-abyss-deep-rgb), 0.8);
  border: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.2);
  border-radius: var(--ph-radius-sm);
  padding: 0.25rem 0.5rem;
  color: var(--ph-color-text-muted);
}

.cmd-results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--ph-radius-md);
  cursor: pointer;
  transition: background-color 0.15s var(--ph-ease-out), border-color 0.15s var(--ph-ease-out), box-shadow 0.15s var(--ph-ease-out);
}

.cmd-result-item.selected {
  background: rgba(var(--ph-color-electric-cyan-rgb), 0.15);
  box-shadow: inset 0 0 0 1px var(--ph-border-medium);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmd-item-cat {
  font-size: var(--ph-text-xs);
  text-transform: uppercase;
  color: var(--ph-color-deep-teal);
  font-weight: 700;
  width: 90px;
}

.cmd-item-title {
  font-size: var(--ph-text-sm);
  color: var(--ph-color-text-white);
  font-weight: 500;
}

.cmd-item-badge {
  font-family: var(--ph-font-body);
  font-size: var(--ph-text-xs);
  color: var(--ph-color-electric-cyan);
}

.cmd-empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--ph-color-text-muted);
  font-size: var(--ph-text-sm);
}

.cmd-footer-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--ph-color-abyss-soft);
  border-top: 1px solid var(--ph-border-subtle);
  font-size: var(--ph-text-xs);
  color: var(--ph-color-text-subtle-aa);
  font-family: var(--ph-font-body);
}

/* ==========================================================================
   PILLARS & BRAND HUB & FOOTER
   ========================================================================== */







/* Brand Hub */
/* Contact */
.contact-card-wrapper {
  background: var(--ph-gradient-card);
  border: 1px solid var(--ph-border-medium);
  border-radius: var(--ph-radius-xl);
  padding: 3.5rem;
  box-shadow: var(--ph-shadow-raised);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-info-col h3 {
  font-size: var(--ph-text-2xl);
  margin-bottom: 1rem;
}

.contact-info-col p {
  margin-bottom: 2rem;
  font-size: var(--ph-text-md);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--ph-radius-md);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.6);
  border: 1px solid var(--ph-border-subtle);
  text-decoration: none;
  transition: color 0.25s var(--ph-ease-out), background-color 0.25s var(--ph-ease-out), border-color 0.25s var(--ph-ease-out), box-shadow 0.25s var(--ph-ease-out), transform 0.25s var(--ph-ease-out);
}

.contact-method-item:hover {
  border-color: var(--ph-color-electric-cyan);
  transform: translateX(5px);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.8);
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ph-radius-md);
  background: rgba(var(--ph-color-electric-cyan-rgb), 0.1);
  color: var(--ph-color-electric-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-title {
  font-size: var(--ph-text-xs);
  color: var(--ph-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.method-value {
  font-size: var(--ph-text-md);
  font-weight: 600;
  color: var(--ph-color-text-white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: var(--ph-text-sm);
  font-weight: 600;
  color: var(--ph-color-text-crisp);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--ph-radius-md);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.7);
  border: 1px solid var(--ph-border-subtle);
  color: var(--ph-color-text-white);
  font-family: var(--ph-font-body);
  font-size: var(--ph-text-sm);
  outline: none;
  transition: border-color 0.25s var(--ph-ease-out), box-shadow 0.25s var(--ph-ease-out), background-color 0.25s var(--ph-ease-out);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--ph-color-electric-cyan);
  box-shadow: var(--ph-glow);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.85);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ph-border-subtle);
  background: var(--ph-color-abyss-deep);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  z-index: var(--ph-z-raised);
}



.footer-desc {
  font-size: var(--ph-text-md);
  line-height: 1.6;
}

.footer-col-title {
  font-size: var(--ph-text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ph-color-text-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: var(--ph-text-sm);
  color: var(--ph-color-text-muted);
  transition: color 0.2s var(--ph-ease-out);
}

.footer-links a:hover {
  color: var(--ph-color-electric-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--ph-text-sm);
  color: var(--ph-color-text-subtle-aa);
}

/* Modal Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--ph-color-abyss-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--ph-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ph-ease-out), visibility 0.3s var(--ph-ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--ph-color-dialog-surface);
  border: 1px solid var(--ph-border-medium);
  border-radius: var(--ph-radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--ph-shadow-overlay);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ph-ease-out), opacity 0.3s var(--ph-ease-out);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.8);
  border: 1px solid var(--ph-border-subtle);
  color: var(--ph-color-text-crisp);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s var(--ph-ease-out), background-color 0.2s var(--ph-ease-out), border-color 0.2s var(--ph-ease-out), transform 0.2s var(--ph-ease-out);
  z-index: var(--ph-z-raised);
}

.modal-close-btn:hover {
  background: var(--ph-color-electric-cyan);
  color: var(--ph-color-black);
  transform: rotate(90deg);
}

.modal-content-inner {
  padding: 3rem 2.75rem;
}

.modal-header-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.1);
  padding-bottom: 1.75rem;
}

.modal-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--ph-radius-xl);
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.9);
  border: 1px solid var(--ph-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-color-electric-cyan);
}

.modal-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.modal-title-group h2 {
  font-size: var(--ph-text-2xl);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: var(--ph-text-md);
  color: var(--ph-color-electric-cyan);
  font-weight: 600;
}

.modal-section-title {
  font-size: var(--ph-text-md);
  font-weight: 700;
  color: var(--ph-color-text-white);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-body-text {
  font-size: var(--ph-text-md);
  color: var(--ph-color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.modal-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--ph-text-md);
  color: var(--ph-color-text-crisp);
}

.highlight-check-icon {
  color: var(--ph-color-electric-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.1);
  flex-wrap: wrap;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ph-color-midnight-petrol);
  border: 1px solid var(--ph-color-electric-cyan);
  border-radius: var(--ph-radius-md);
  padding: 1rem 1.5rem;
  color: var(--ph-color-text-white);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--ph-shadow-rest), var(--ph-glow);
  z-index: var(--ph-z-toast);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s var(--ph-ease-out), opacity 0.3s var(--ph-ease-out);
  font-size: var(--ph-text-sm);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--ph-color-electric-cyan);
}


/* ==========================================================================
   v3 · ACCESIBILIDAD BASE
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  z-index: var(--ph-z-top);
  padding: 0.75rem 1.25rem;
  border-radius: var(--ph-radius-md);
  background: var(--ph-color-electric-cyan);
  color: var(--ph-color-obsidian-deep);
  font-weight: 700;
  transition: transform 0.2s var(--ph-ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--ph-color-obsidian-deep); }

:focus-visible {
  outline: 3px solid var(--ph-color-electric-cyan);
  outline-offset: 3px;
  border-radius: var(--ph-radius-sm);
}
.btn:focus-visible, .hud-btn:focus-visible, .filter-pill:focus-visible { outline-offset: 2px; }
.btn-primary:focus-visible { outline-color: var(--ph-color-text-white); box-shadow: 0 0 0 5px rgba(var(--ph-color-electric-cyan-rgb), 0.45); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--ph-color-electric-cyan); outline-offset: 2px; }

/* Sección con ancla: no queda tapada por la cabecera fija */
section[id], [id="main"] { scroll-margin-top: 96px; }

a { text-underline-offset: 3px; }
.faq-item a, .about-copy a, .legal-content a, .form-status a { text-decoration: underline; }

/* ==========================================================================
   v3 · CABECERA + MENÚ MÓVIL
   ========================================================================== */
.brand-link { color: inherit; }
.brand-name { display: block; line-height: 1.05; }
.brand-tagline-micro { display: block; }
.site-nav { display: flex; align-items: center; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.site-header.nav-open .menu-toggle .icon-open { display: none; }
.site-header.nav-open .menu-toggle .icon-close { display: block; }
.nav-link { padding: 0.5rem 0; }
.nav-link.active { color: var(--ph-color-text-crisp); }

/* ==========================================================================
   v3 · HERO: emblema real + nodos de producto
   ========================================================================== */
.hero-3d-canvas-wrapper { isolation: isolate; }

.hero-emblem-glow {
  position: absolute;
  inset: 4% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ph-color-electric-cyan-rgb), 0.22) 0%, rgba(var(--ph-color-vibrant-turquoise-rgb), 0.06) 45%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.hero-emblem-static {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: auto;
  max-width: 340px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 40px rgba(var(--ph-color-electric-cyan-rgb), 0.3));
  transition: opacity 0.6s var(--ph-ease-out);
  z-index: 1;
  animation: emblemFloat 7s ease-in-out infinite;
}

@keyframes emblemFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

.hero-3d-canvas-wrapper[data-state="3d"] .hero-emblem-static { opacity: 0; animation: none; }
.hero-3d-canvas-wrapper[data-state="3d"] .hero-emblem-glow { opacity: 0.55; }

.hero-3d-canvas-wrapper canvas.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(var(--ph-color-electric-cyan-rgb), 0.22));
  animation: fadeIn 0.8s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-nodes {
  list-style: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-node {
  pointer-events: auto;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--ph-radius-xl);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.82);
  border: 1px solid color-mix(in srgb, var(--node-color, var(--ph-color-electric-cyan)) 55%, transparent);
  color: var(--ph-color-text-crisp);
  font: 600 0.84rem/1 var(--ph-font-body);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(var(--ph-color-black-rgb), 0.45), 0 0 18px color-mix(in srgb, var(--node-color, var(--ph-color-electric-cyan)) 25%, transparent);
  transition: background 0.2s var(--ph-ease-out), box-shadow 0.2s var(--ph-ease-out), border-color 0.2s var(--ph-ease-out);
  white-space: nowrap;
  will-change: transform;
}
.hero-node:hover {
  background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.95);
  border-color: var(--node-color, var(--ph-color-electric-cyan));
  box-shadow: 0 8px 26px rgba(var(--ph-color-black-rgb), 0.5), 0 0 26px color-mix(in srgb, var(--node-color, var(--ph-color-electric-cyan)) 55%, transparent);
}
.hero-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--node-color, var(--ph-color-electric-cyan));
  box-shadow: 0 0 10px var(--node-color, var(--ph-color-electric-cyan));
}

/* Posiciones de reserva (sin WebGL / antes de cargar): cada nodo trae su posición en --hx/--hy (la pone main.js) */
.hero-3d-canvas-wrapper:not([data-state="3d"]) .hero-node { transform: translate(-50%, -50%); left: var(--hx, 50%); top: var(--hy, 50%); }
.hero-3d-canvas-wrapper[data-state="3d"] .hero-node { left: 0; top: 0; }

.hero-3d-legend { margin: 0; }
.hero-3d-legend .radar-dot { margin-right: 0.5rem; }

/* Indicadores */
.metric-value { line-height: 1.1; }

/* ==========================================================================
   v3 · PORTFOLIO (bento real)
   ========================================================================== */
.projects-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-card { grid-column: span 3; }
.projects-grid--bento .project-card { grid-column: span 2; }
.projects-grid--bento .project-card--featured { grid-column: 1 / -1; }
.projects-grid--bento .project-card { padding: 2.25rem; }
.projects-grid--bento .project-card--featured { padding: 2.75rem; }
.projects-grid--bento .project-card .card-description { font-size: var(--ph-text-md); }

.project-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "head head" "body foot";
  column-gap: 3rem;
  align-items: end;
}
.project-card--featured .card-header { grid-area: head; }
.project-card--featured .card-body { grid-area: body; }
.project-card--featured .card-footer {
  grid-area: foot;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-top: none;
  border-left: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.12);
  padding: 0 0 0 2.5rem;
  align-self: stretch;
  justify-content: center;
}
.project-card--featured .card-title { font-size: var(--ph-text-2xl); }
.project-card--featured .card-cta-btn { font-size: var(--ph-text-md); }

ul.card-tags { list-style: none; padding: 0; margin-top: 1rem; }
.card-sector { margin-bottom: 0.5rem; }
.projects-empty { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; }
.projects-empty p { font-size: var(--ph-text-lg); margin-bottom: 1rem; }

/* Tarjeta "próximo ecosistema": banner horizontal discreto */
.future-slot-card {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 1.5rem;
  padding: 1.75rem 2.25rem !important;
  cursor: default;
}
.future-slot-card .future-plus-icon { margin: 0; flex-shrink: 0; }
.future-slot-copy { flex: 1; }
.future-slot-copy .future-slot-title { margin-bottom: 0.25rem; }
.future-slot-card .future-slot-desc { margin: 0; max-width: 60ch; }
.future-slot-card .future-cta { margin: 0 !important; flex-shrink: 0; }

.noscript-note { color: var(--ph-color-text-muted); }

/* ==========================================================================
   v3 · SOBRE PIXELHIVE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: start;
}
.about-copy .section-title { margin-bottom: 1.5rem; }
.about-copy p { font-size: var(--ph-text-md); line-height: 1.7; margin-bottom: 1rem; }
.about-principles { list-style: none; display: grid; gap: 1rem; margin-top: 1.75rem; }
.about-principles { counter-reset: principle; }
.about-principles li {
  max-width: 62ch;
  counter-increment: principle;
  color: var(--ph-color-ink-muted);
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-top: 1px solid var(--ph-color-paper-line-strong);
  line-height: 1.55;
}
.about-principles li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ph-color-teal-on-paper);
}
.about-principles strong { color: var(--ph-color-text-crisp); }

.about-steps { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.about-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem;
  background: var(--ph-gradient-card);
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-lg);
}
.step-num {
  font-family: var(--ph-font-display);
  font-weight: 600;
  font-size: var(--ph-text-md);
  color: var(--ph-color-electric-cyan);
  background: rgba(var(--ph-color-electric-cyan-rgb), 0.1);
  border: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.25);
  border-radius: var(--ph-radius-md);
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
}
.about-steps h3 { font-size: var(--ph-text-lg); margin-bottom: 0.25rem; }
.about-steps p { font-size: var(--ph-text-md); line-height: 1.55; }

/* ==========================================================================
   v3 · FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: rgba(var(--ph-color-midnight-petrol-rgb), 0.45);
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-lg);
  transition: border-color 0.25s var(--ph-ease-out), background 0.25s var(--ph-ease-out);
}
.faq-item[open] { border-color: var(--ph-border-medium); background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.6); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  font-family: var(--ph-font-display);
  font-weight: 600;
  font-size: var(--ph-text-md);
  color: var(--ph-color-text-crisp);
  position: relative;
  border-radius: var(--ph-radius-lg);
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ph-color-electric-cyan);
  border-bottom: 2px solid var(--ph-color-electric-cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ph-ease-out);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; line-height: 1.7; max-width: 70ch; }

/* ==========================================================================
   v3 · CONTACTO / FORMULARIO
   ========================================================================== */
.contact-info-col h2.contact-title { font-size: var(--ph-text-2xl); margin-bottom: 1rem; }
.contact-method-item > span:last-child { display: block; }
.method-title, .method-value { display: block; }
.method-title { color: var(--ph-color-text-muted); }
.method-value { overflow-wrap: anywhere; }
.contact-method-static { cursor: default; }
.contact-method-static:hover { transform: none; border-color: var(--ph-border-subtle); background: rgba(var(--ph-color-obsidian-deep-rgb), 0.6); }
.req { color: var(--ph-color-electric-cyan); margin-left: 0.15rem; }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: var(--ph-color-error); }
.field-error { color: var(--ph-color-error-soft); font-size: var(--ph-text-sm); line-height: 1.4; }
.hp-field input { font: inherit; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { margin-top: 0.25rem; }
.consent-label { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--ph-text-sm); color: var(--ph-color-text-muted); cursor: pointer; line-height: 1.5; }
.consent-label input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ph-color-vibrant-turquoise); flex-shrink: 0; }
.consent-label a { text-decoration: underline; }
.form-legal { font-size: var(--ph-text-sm); line-height: 1.5; color: var(--ph-color-text-muted); margin: 0; }
.form-submit { margin-top: 0.5rem; min-height: 48px; }
.form-submit[disabled] { opacity: 0.7; cursor: progress; }
.form-status { font-size: var(--ph-text-sm); line-height: 1.5; border-radius: var(--ph-radius-md); padding: 0; min-height: 0; }
.form-status:empty { display: none; }
.form-status:not(:empty) { padding: 1rem 1rem; border: 1px solid var(--ph-border-medium); background: rgba(var(--ph-color-obsidian-deep-rgb), 0.6); color: var(--ph-color-text-crisp); }
.form-status.success { border-color: rgba(var(--ph-status-live-rgb), 0.6); background: rgba(var(--ph-status-live-rgb), 0.12); }
.form-status.error { border-color: rgba(var(--ph-color-error-rgb), 0.6); background: rgba(var(--ph-color-error-rgb), 0.1); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--ph-color-electric-cyan); }

/* ==========================================================================
   v3 · PIE Y MODAL
   ========================================================================== */
.footer-logo-link { display: inline-block; }
.footer-logo { width: 240px; height: auto; display: block; }
.footer-links a { display: inline-block; padding: 0.25rem 0; }

.modal-tech { margin-bottom: 2rem; }
.modal-sim-title { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.demo-chip {
  font-size: var(--ph-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--ph-radius-xl);
  border: 1px solid rgba(var(--ph-status-dev-rgb), 0.5);
  color: var(--ph-color-amber);
  background: rgba(var(--ph-status-dev-rgb), 0.1);
  font-weight: 700;
}
.modal-card { overscroll-behavior: contain; }
.card-stage-info { color: var(--ph-color-text-muted); }

.toast-notification { max-width: min(92vw, 460px); }

/* ==========================================================================
   v3 · PÁGINAS LEGALES / 404
   ========================================================================== */
.legal-page .site-header { position: sticky; }
.legal-main { padding: 4rem 0 6rem; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.legal-updated { font-size: var(--ph-text-sm); margin-bottom: 2rem; }
.legal-content h2 { font-size: var(--ph-text-xl); margin: 2.5rem 0 0.75rem; }
.legal-content p, .legal-content li { color: var(--ph-color-text-muted); line-height: 1.75; font-size: var(--ph-text-md); }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.25rem; display: grid; gap: 0.5rem; }
.legal-content strong { color: var(--ph-color-text-crisp); }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--ph-text-md); }
.legal-table th, .legal-table td { text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--ph-border-subtle); color: var(--ph-color-text-muted); vertical-align: top; }
.legal-table th { color: var(--ph-color-text-crisp); background: rgba(var(--ph-color-midnight-petrol-rgb), 0.6); width: 32%; }
.draft-banner {
  background: rgba(var(--ph-status-dev-rgb), 0.12);
  border: 1px solid rgba(var(--ph-status-dev-rgb), 0.55);
  color: var(--ph-color-amber-soft);
  border-radius: var(--ph-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: var(--ph-text-md);
  line-height: 1.55;
}
.draft-banner strong { color: var(--ph-color-amber-pale); }
mark.placeholder { background: rgba(var(--ph-status-dev-rgb), 0.22); color: var(--ph-color-amber-pale); padding: 0.25rem 0.25rem; border-radius: var(--ph-radius-sm); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .big { font-family: var(--ph-font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--ph-color-electric-cyan); }

/* ==========================================================================
   v3 · RESPONSIVE (escritorio → móvil pequeño)
   ========================================================================== */
@media (max-width: 1180px) {
  .project-card--featured { grid-template-columns: 1fr; grid-template-areas: "head" "body" "foot"; }
  .project-card--featured .card-footer { border-left: none; border-top: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.1); padding: 1.5rem 0 0; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
  .projects-grid--bento .project-card { grid-column: span 3; }
  .projects-grid--bento .project-card--featured { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .hero-grid-2col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-3d-box { height: 400px; max-width: 560px; margin: 0 auto; }
  .contact-card-wrapper { grid-template-columns: 1fr; padding: 2.5rem; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  
  
}

@media (max-width: 900px) {
  .nav-container { height: 72px; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.75rem 1.5rem;
    background: var(--ph-color-obsidian-deep);
    border-bottom: 1px solid var(--ph-border-medium);
    box-shadow: var(--ph-shadow-raised);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-center { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: block; padding: 1rem 0.25rem; font-size: var(--ph-text-md); border-bottom: 1px solid rgba(var(--ph-color-electric-cyan-rgb), 0.08); }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--ph-color-electric-cyan); }
  .hero-section { padding: 3.5rem 0 3rem; }
  .section-padding { padding: 4.5rem 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .hero-metrics-bar { grid-template-columns: 1fr 1fr; padding: 1.5rem; gap: 1.25rem; }
  .metric-item { border-right: none; padding-right: 0; }
  .metric-value { font-size: var(--ph-text-2xl); }
  .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-card, .projects-grid--bento .project-card, .projects-grid--bento .project-card--featured, .projects-grid--bento .project-card:nth-child(4) { grid-column: 1 / -1; padding: 1.75rem; }
  .project-card--featured .card-title { font-size: var(--ph-text-2xl); }
  .project-card--featured .card-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .future-slot-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem !important; }
  .controls-row-top { flex-direction: column; align-items: stretch; }
  .search-input-wrapper { max-width: none; }
  .filter-pills-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; scrollbar-width: none; }
  .filter-pills-group::-webkit-scrollbar { display: none; }
  .filter-pill { white-space: nowrap; flex-shrink: 0; min-height: 44px; }
  
  
  .contact-card-wrapper { padding: 1.5rem; border-radius: var(--ph-radius-xl); }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 94vh; border-radius: var(--ph-radius-xl) var(--ph-radius-xl) 0 0; max-width: none; }
  .modal-content-inner { padding: 2rem 1.25rem 2.25rem; }
  .modal-header-block { gap: 1rem; padding-right: 2.5rem; }
  .modal-icon-wrap { width: 56px; height: 56px; border-radius: var(--ph-radius-lg); flex-shrink: 0; }
  .modal-title-group h2 { font-size: var(--ph-text-xl); }
  .modal-close-btn { top: 1rem; right: 1rem; width: 44px; height: 44px; }
  .modal-actions-bar { flex-direction: column; align-items: stretch; }
  .modal-actions-bar .btn { width: 100%; }
  .simulator-wrapper { padding: 1.25rem; }
  
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toast-notification { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
  .cmd-palette-overlay { padding: 1rem; }
}

@media (max-width: 520px) {
  .brand-tagline-micro { display: none; }
  .nav-cta { display: none; }
  .hero-title { font-size: clamp(2rem, 9.5vw, 3rem); }
  .hero-description { font-size: var(--ph-text-md); }
  .hero-cta-group .btn { width: 100%; }
  .hero-3d-box { height: 340px; }
  .hero-node { font-size: var(--ph-text-xs); padding: 0.5rem 0.75rem 0.5rem 0.75rem; min-height: 36px; }
  .hero-3d-legend { white-space: normal; text-align: center; width: max-content; max-width: 92%; }
  .hero-tagline-pill { max-width: 100%; }
  .hero-tagline-text { letter-spacing: 0.12em; font-size: var(--ph-text-xs); }
  .section-title { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .about-steps li { grid-template-columns: 1fr; gap: 0.75rem; }
  .legal-table th, .legal-table td { display: block; width: 100%; }
}

@media (max-width: 360px) {
  .hero-metrics-bar { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v3 · MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .project-card { transform: none !important; }
  .radar-dot::after { display: none; }
}

@media (forced-colors: active) {
  .btn, .hero-node, .filter-pill, .faq-item, .project-card { border: 1px solid CanvasText; }
}

/* ---- ajustes tras revisión visual ---- */
.nav-item-mobile { display: none; }
.nav-center { gap: 1.75rem; }
.nav-container { gap: 1.25rem; }
.site-nav { margin: 0 auto; }
.brand-link { flex-shrink: 0; }
.projects-grid--bento .future-slot-card { grid-column: 1 / -1; }
.projects-grid--bento .project-card:not(.project-card--featured):not(.future-slot-card) .card-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .nav-item-mobile { display: block; }
  .site-nav { margin: 0; }
}
@media (max-width: 1180px) {
  .projects-grid--bento .future-slot-card { grid-column: 1 / -1; }
}

/* Diálogos: visibles al instante al abrir (permite mover el foco de inmediato) y se ocultan al terminar el fundido */
.modal-overlay, .cmd-palette-overlay {
  transition: opacity 0.25s var(--ph-ease-out), visibility 0s linear 0.25s;
}
.modal-overlay.active, .cmd-palette-overlay.active {
  transition: opacity 0.25s var(--ph-ease-out), visibility 0s linear 0s;
}

/* Evitar que "transition: all" anime la visibilidad heredada (retrasaba el foco inicial del diálogo) */
.cmd-palette-box { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.cmd-input-row input { transition: none; }
.cmd-result-item, .cmd-kbd-shortcut { transition: background-color 0.15s var(--ph-ease-out), border-color 0.15s var(--ph-ease-out); }
.modal-card { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-close-btn { transition: background-color 0.2s var(--ph-ease-out), color 0.2s var(--ph-ease-out), transform 0.2s var(--ph-ease-out); }

.cmd-item-cat { color: var(--ph-color-vibrant-turquoise); }

/* ==========================================================================
   v4 · COLOR Y LOGO POR PRODUCTO, CAPTURAS EN TARJETAS, BANDA CLARA, MÓVIL
   ========================================================================== */

.hud-btn--small { width: 34px; height: 34px; border-radius: var(--ph-radius-md); }
.footer-bottom-actions { display: flex; align-items: center; gap: 1rem; }
.metric-value--text { font-size: var(--ph-text-xl); }

/* Tarjetas: color propio del producto */
.project-card:hover {
  box-shadow: 0 25px 60px -15px rgba(var(--ph-color-black-rgb), 0.8), 0 0 35px color-mix(in srgb, var(--card-accent, var(--ph-color-electric-cyan)) 28%, transparent);
  border-color: color-mix(in srgb, var(--card-accent, var(--ph-color-electric-cyan)) 55%, transparent);
}
.card-logo { display: block; height: 34px; width: auto; max-width: 100%; }
.card-logo--chip { height: 44px; box-sizing: border-box; background: var(--ph-color-text-white); border-radius: var(--ph-radius-md); padding: 8px 12px; }
.project-card--featured .card-logo { height: 46px; }
.project-card--featured .card-logo--chip { height: 58px; }
.card-title:has(.card-logo) { margin-bottom: 0.75rem; }

.card-shot {
  position: relative;
  z-index: 2;
  margin: 0 0 1.5rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--ph-radius-md);
  overflow: hidden;
  border: 1px solid var(--ph-border-subtle);
  background: var(--ph-color-panel-dark);
}
.card-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-shot-tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  font-size: var(--ph-text-xs);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--ph-radius-xl);
  background: rgba(var(--ph-color-obsidian-deep-rgb), 0.88);
  color: var(--ph-color-text-crisp);
}
.card-shot--demo {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-size: var(--ph-text-sm);
  color: var(--ph-color-text-muted);
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent, var(--ph-color-electric-cyan)) 22%, var(--ph-color-dark-cyan-surface)), var(--ph-color-dark-cyan-surface));
  border: 1px dashed color-mix(in srgb, var(--card-accent, var(--ph-color-electric-cyan)) 55%, transparent);
}

.project-card--featured {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "head shot" "body shot" "body foot";
  align-items: start;
}
.project-card--featured .card-shot { grid-area: shot; margin: 0; aspect-ratio: 16 / 10; align-self: stretch; }
.project-card--featured .card-footer { border-left: none; padding: 1.25rem 0 0; align-self: end; }

/* Ficha del producto: acento propio */
.modal-card .modal-subtitle { color: var(--card-accent, var(--ph-color-electric-cyan)); }
.modal-card .highlight-check-icon { color: var(--card-accent, var(--ph-color-electric-cyan)); }
.modal-card #modal-cta-btn, .modal-card #modal-site-link { background: var(--card-accent, var(--ph-color-electric-cyan)); color: var(--ph-color-obsidian-deep); border-color: transparent; }
/* Con enlace a la web del producto, «consultar» pasa a ser la acción secundaria */
.modal-card #modal-site-link:not([hidden]) ~ #modal-cta-btn { background: rgba(var(--ph-color-dark-cyan-surface-rgb), 0.65); color: var(--ph-color-text-crisp); border-color: var(--ph-border-medium); }
.modal-card #modal-site-link:not([hidden]) ~ #modal-cta-btn:hover { border-color: var(--card-accent, var(--ph-color-electric-cyan)); color: var(--ph-color-text-white); }

/* Quiénes somos: banda clara */
.about-section--light {
  background: var(--ph-color-paper);
  color: var(--ph-color-ink-muted);
  border: 0;
  position: relative;
}

.about-section--light .section-eyebrow { color: var(--ph-color-teal-on-paper); }
.about-section--light .section-title,
.about-section--light h3,
.about-section--light .about-principles strong { color: var(--ph-color-ink); }
.about-section--light .about-copy p { color: var(--ph-color-ink-muted); }
.about-section--light .about-principles li {
  color: var(--ph-color-ink-muted);
  border-top-color: var(--ph-color-paper-line-strong);
}
.about-section--light .about-steps li {
  background: var(--ph-color-paper-raised);
  border-color: var(--ph-color-paper-line);
  box-shadow: 0 1px 2px rgba(var(--ph-color-ink-rgb), 0.06);
}
.about-section--light .about-steps p { color: var(--ph-color-ink-muted); max-width: 62ch; }
.about-section--light .step-num { color: var(--ph-color-teal-on-paper-deep); background: var(--ph-color-paper-tint); border-color: var(--ph-color-paper-line-strong); }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0; }
.about-facts > div { background: var(--ph-color-paper-raised); border: 1px solid var(--ph-color-paper-line); border-radius: var(--ph-radius-md); padding: 1rem 1rem; }
.about-facts dt { font-size: var(--ph-text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-color-ink-subtle); }
.about-facts dd { margin: 0.25rem 0 0; font-weight: 700; line-height: 1.35; color: var(--ph-color-ink); }

@media (max-width: 1080px) {
  .project-card--featured { grid-template-columns: 1fr; grid-template-areas: "head" "shot" "body" "foot"; }
  .project-card--featured .card-shot { margin-bottom: 1.5rem; aspect-ratio: 16 / 9; }
  .project-card--featured .card-footer { padding: 1.5rem 0 0; }
}
@media (max-width: 900px) {
  .hero-grid-2col { gap: 1.25rem; }
  .hero-3d-box { order: -1; height: 260px; max-width: 400px; }
  .hero-3d-legend { display: none; }
  .hero-section { padding: 1.5rem 0 3rem; }
  .about-facts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .filter-pills-group { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .filter-pill { flex-shrink: 1; }
}

@media (max-width: 520px) {
  .hero-desc-extra { display: none; }
  .hero-3d-box { height: 225px; }
  .hero-tagline-pill { margin-bottom: 1.25rem; }
  .hero-description { margin-bottom: 1.5rem; }
}

.modal-logo { display: block; height: 44px; width: auto; max-width: 100%; }
.modal-logo--chip { height: 54px; box-sizing: border-box; background: var(--ph-color-text-white); border-radius: var(--ph-radius-md); padding: 8px 16px; }
.modal-title-group h2:has(.modal-logo) { margin-bottom: 0.5rem; }
@media (max-width: 520px) { .modal-logo { height: 36px; } .modal-logo--chip { height: 46px; } }
.metric-item[hidden] { display: none; }
.modal-sim-title[hidden], #modal-simulator-container[hidden] { display: none; }

/* Capturas verticales de móvil dentro de la galería (por captura con portrait: true, o todas con layout: "portrait") */
.etq-figure--portrait { max-width: 320px; margin-inline: auto; }
.etq-figure--portrait .etq-caption { text-align: center; }

/* Logo de solo icono: se muestra junto al nombre del producto */
.brand-lockup { display: inline-flex; align-items: center; gap: 0.5rem; }
.card-logo--mark { height: 40px; width: 40px; border-radius: var(--ph-radius-md); }
.modal-logo--mark { height: 46px; width: 46px; border-radius: var(--ph-radius-md); }


/* ==========================================================================
   v4 · Auditoría: hueco de la rejilla, etiquetas, objetivos táctiles
   ========================================================================== */
.tech-tag--more { opacity: 0.8; }

/* La tarjeta «Próximo ecosistema» rellena el hueco de la última fila (se calcula en main.js según el número de productos) */
@media (min-width: 1181px) {
  .projects-grid--bento .future-slot-card.fsc--d1 { grid-column: span 2; }
  .projects-grid--bento .future-slot-card.fsc--d2 { grid-column: span 4; }
  .future-slot-card.fsc--d1, .future-slot-card.fsc--d2 { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
  .future-slot-card.fsc--d1 .future-slot-desc, .future-slot-card.fsc--d2 .future-slot-desc { max-width: 38ch; margin-inline: auto; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .projects-grid--bento .future-slot-card.fsc--t1 { grid-column: span 3; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
  .future-slot-card.fsc--t1 .future-slot-desc { max-width: 38ch; margin-inline: auto; }
}

/* Táctil: objetivos de al menos 44 px */
@media (pointer: coarse), (max-width: 768px) {
  .hero-node { min-height: 44px; }
  .filter-pill { min-height: 44px; padding-block: 0.5rem; }
  .card-cta-btn { min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .consent-label { min-height: 44px; align-items: center; }
  #contact-consent { width: 24px; height: 24px; }
}
.future-slot-card.fsc--d1 .future-slot-copy, .future-slot-card.fsc--d2 .future-slot-copy { flex: 0 0 auto; }
@media (min-width: 769px) and (max-width: 1180px) { .future-slot-card.fsc--t1 .future-slot-copy { flex: 0 0 auto; } }
@media (min-width: 1181px) { .future-slot-card.fsc--d1, .future-slot-card.fsc--d2 { gap: 1rem; } .future-slot-card.fsc--d1 .future-plus-icon, .future-slot-card.fsc--d2 .future-plus-icon { margin: 0; } }

/* Móvil: tarjetas más compactas (el detalle y la tecnología están en la ficha) */
@media (max-width: 768px) {
  .projects-grid--bento .project-card:not(.future-slot-card) { padding: 1.25rem; }
  .project-card .card-tags { display: none; }
  .project-card .card-description { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .project-card .card-shot { margin-bottom: 1rem; }
  .project-card .card-header { margin-bottom: 1rem; }
  .project-card .card-footer { padding-top: 1rem; }
}
@media (max-width: 768px) { .project-card .card-body { margin-bottom: 1rem; } }
/* Las capturas de tarjeta ya vienen encuadradas en 16:9: sin recorte adicional */
.card-shot img { object-position: center; }
.project-card--featured .card-shot { aspect-ratio: 16 / 9; align-self: center; }


/* ==========================================================================
   v5 · SISTEMA: tipografía de controles, números, medidas y estados :active
   ========================================================================== */
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { text-wrap: balance; }
.section-subtitle, .faq-item p, .about-copy p { max-width: 68ch; }
.metric-value, .card-status-badge, [data-metric], kbd { font-variant-numeric: tabular-nums; }
.form-input, .form-select { height: 48px; }
@media (min-width: 1181px) { .hero-section { padding-bottom: 7.25rem; } }

/* Estados :active (pulsación): respuesta inmediata y corta */
.btn:active, .hud-btn:active, .filter-pill:active, .modal-close-btn:active,
.card-cta-btn:active, .contact-method-item:active, .hero-node:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 80ms;
}
.project-card:active { transform: translateY(0) scale(0.995); transition-duration: 80ms; }
.nav-link:active, .footer-links a:active { opacity: 0.7; }

.section-subtitle, .hero-description { text-wrap: pretty; }
.faq-list { max-width: 760px; margin-inline: auto; }

/* v5 · Tipografía de titulares: Bricolage Grotesque, condensada en los títulos grandes */
h1, h2 { font-stretch: 90%; }
.hero-title { font-stretch: 86%; letter-spacing: -0.035em; }
.section-title { letter-spacing: -0.03em; }

/* ==========================================================================
   v6 · IDENTIDAD PROPIA: hexágono como motivo, índice de productos, tabla de
   estándar, preguntas dentro de contacto y pie como firma
   ========================================================================== */
.hex-dot {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 13px;
  background: var(--brand, var(--ph-color-electric-cyan));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Cabecera: enlaces junto a la marca, índice de productos a la derecha */
@media (min-width: 901px) {
  .site-nav { margin: 0 auto 0 0.5rem; padding-left: 1.75rem; border-left: 1px solid var(--ph-border-subtle); }
  .nav-products {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin-right: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.3s var(--ph-ease-out), transform 0.3s var(--ph-ease-out), visibility 0.3s var(--ph-ease-out);
  }
  .site-header.scrolled .nav-products { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 1180px) { .nav-products { display: none !important; } }
.nav-product {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--ph-radius-sm);
  cursor: pointer;
}
.nav-product .hex-dot { width: 14px; height: 15px; opacity: 0.85; transition: transform 0.25s var(--ph-ease-out), opacity 0.25s var(--ph-ease-out); }
.nav-product:hover .hex-dot, .nav-product:focus-visible .hex-dot { transform: scale(1.3); opacity: 1; }
.nav-product-name {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--ph-text-xs);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--ph-radius-sm);
  background: var(--ph-color-dialog-surface);
  border: 1px solid var(--ph-border-medium);
  color: var(--ph-color-text-crisp);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ph-ease-out);
}
.nav-product:hover .nav-product-name, .nav-product:focus-visible .nav-product-name { opacity: 1; }

/* Estándar común: tabla «igual en todos / cambia en cada producto» */
.standard-section { border-top: 1px solid var(--ph-border-subtle); }
.standard-head { max-width: 46rem; margin-bottom: 3rem; text-align: left; }
.standard-head .section-subtitle { margin: 0; }
.standard-table { width: 100%; border-collapse: collapse; text-align: left; }
.standard-table thead th {
  padding: 0 2rem 1rem 0;
  font-size: var(--ph-text-sm);
  font-weight: 600;
  color: var(--ph-color-text-crisp);
  border-bottom: 1px solid var(--ph-border-medium);
  vertical-align: bottom;
}
.standard-table thead th span { display: block; font-weight: 400; font-size: var(--ph-text-xs); color: var(--ph-color-text-subtle-aa); }
.standard-table tbody th, .standard-table tbody td {
  padding: 1.5rem 2rem 1.5rem 0;
  border-bottom: 1px solid var(--ph-border-subtle);
  vertical-align: top;
}
.standard-table tbody th {
  width: 28%;
  font-family: var(--ph-font-display);
  font-size: var(--ph-text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ph-color-text-white);
}
.standard-table tbody th::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 11px;
  margin-right: 0.75rem;
  background: var(--ph-color-electric-cyan);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.standard-table tbody td { width: 36%; color: var(--ph-color-text-muted); line-height: 1.6; }
.standard-table tbody td:nth-of-type(1) { color: var(--ph-color-text-crisp); }
@media (max-width: 768px) {
  .standard-table, .standard-table tbody, .standard-table tr, .standard-table th, .standard-table td { display: block; width: auto; }
  .standard-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .standard-table tr { padding: 1.5rem 0; border-bottom: 1px solid var(--ph-border-subtle); }
  .standard-table tbody th, .standard-table tbody td { padding: 0; border: 0; width: auto; }
  .standard-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-size: var(--ph-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ph-color-text-subtle-aa);
  }
}

/* Preguntas dentro de contacto */
.faq-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ph-border-subtle); }
.faq-block .section-eyebrow { margin-bottom: 0.5rem; }
.faq-block-title { font-size: var(--ph-text-xl); margin: 0 0 1.25rem; }
.faq-block .faq-list { max-width: none; margin-inline: 0; }
.faq-block .faq-item summary { padding: 1rem 3rem 1rem 1.25rem; font-size: var(--ph-text-sm); min-height: 52px; display: flex; align-items: center; }
.faq-block .faq-item summary::after { right: 1.25rem; }
.faq-block .faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; font-size: var(--ph-text-sm); }

/* Pie como firma */
.site-footer { padding: 5rem 0 2rem; }
.footer-signature { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 4rem; align-items: center; padding-bottom: 2.5rem; }
.footer-logo { width: min(320px, 100%); }
.footer-signature .footer-desc { max-width: 52ch; margin: 0; }
.footer-brands {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 3rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ph-border-subtle);
  border-bottom: 1px solid var(--ph-border-subtle);
}
.footer-brands .footer-col-title { margin: 0; max-width: 12rem; line-height: 1.4; }
.footer-links--brands { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 2rem; }
.footer-links--brands a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ph-font-display);
  font-weight: 600;
  font-size: var(--ph-text-lg);
  color: var(--ph-color-text-crisp);
}
.footer-links--brands a:hover { color: var(--brand, var(--ph-color-electric-cyan)); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem 2rem; align-items: center; border-top: 0; padding-top: 1.5rem; }
.footer-legal-line { margin: 0; max-width: 62ch; font-size: var(--ph-text-sm); color: var(--ph-color-text-subtle-aa); }
.footer-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-inline a { display: inline-block; padding: 0.25rem 0; font-size: var(--ph-text-sm); color: var(--ph-color-text-muted); }
.footer-inline a:hover { color: var(--ph-color-electric-cyan); }
@media (max-width: 1080px) {
  .footer-signature, .footer-brands { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 768px) {
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-links--brands { flex-direction: column; gap: 0; }
  .footer-inline a, .footer-links--brands a { min-height: 44px; display: inline-flex; align-items: center; }
}

.nav-link { white-space: nowrap; }
.hero-title { letter-spacing: -0.025em; }
.section-title { letter-spacing: -0.02em; }
@media (min-width: 1081px) {
  .about-steps { position: sticky; top: 7rem; align-self: start; }
  .contact-form { position: sticky; top: 7rem; align-self: start; }
}

/* Contacto: información + preguntas a la izquierda, formulario fijo a la derecha */
.contact-card-wrapper { grid-template-areas: "info form" "faq form"; grid-template-rows: auto 1fr; row-gap: 2.5rem; }
.contact-info-col { grid-area: info; }
.contact-form { grid-area: form; }
.faq-block { grid-area: faq; margin-top: 0; max-width: 62ch; }
@media (max-width: 1080px) {
  .contact-card-wrapper { grid-template-areas: "info" "form" "faq"; grid-template-rows: none; }
}

/* Objetivos de puntero: mínimo 40 px también en escritorio */
.filter-pill { min-height: 40px; }
.nav-link { min-height: 40px; display: inline-flex; align-items: center; }
.nav-product { width: 40px; height: 40px; }
.hero-node { min-height: 44px; }
.card-cta-btn { min-height: 40px; }
.modal-close-btn { width: 44px; height: 44px; }
.hud-btn--small { width: 40px; height: 40px; }
.footer-links--brands a, .footer-inline a { min-height: 40px; display: inline-flex; align-items: center; }

/* El índice de productos no ocupa espacio en el flujo (no empuja el botón de contacto) */
@media (min-width: 901px) {
  .nav-actions { position: relative; }
  .nav-products { position: absolute; right: 100%; top: 50%; margin: 0 0.75rem 0 0; translate: 0 -50%; }
}
@media (max-width: 1499px) { .nav-products { display: none !important; } }
.nav-product { width: 28px; height: 40px; }

@media (max-width: 900px) { .site-nav .nav-link { display: flex; width: 100%; } }
#faq { scroll-margin-top: 6rem; }

/* Auditoría 31-10: nodos del hero en posiciones fijas por debajo de 900 px (la órbita 3D los solapaba en tableta y móvil) */
@media (max-width: 900px) {
  .hero-3d-canvas-wrapper[data-state="3d"] .hero-node {
    left: var(--hx, 50%);
    top: var(--hy, 50%);
    transform: translate(-50%, -50%) !important;
    opacity: 1 !important;
    z-index: auto !important;
  }
}

/* Objetivos táctiles de 44 px y separación de 8 px en dispositivos táctiles o pantallas estrechas */
@media (pointer: coarse), (max-width: 768px) {
  .filter-pill, .hud-btn, .hud-btn--small, .menu-toggle, .search-input, .card-cta-btn, .future-cta { min-height: 44px; }
  .hud-btn, .hud-btn--small, .menu-toggle { min-width: 44px; width: 44px; height: 44px; }
  .filter-pills-group { gap: 0.5rem; }
  .footer-links--brands a, .footer-inline a, .footer-links a { min-height: 44px; }
  .consent-label { min-height: 44px; align-items: center; }
}

/* Botón a la web del producto en la ficha */
.modal-actions-bar [hidden] { display: none !important; }
.modal-actions-bar .btn { text-decoration: none; }
