/* ==========================================================================
   AR3D STUDIO — ESTÉTICA LIMPIA, MINIMALISTA Y VELOCIDAD A 60 FPS
   ========================================================================== */

/* --- RESET Y VARIABLES --- */
:root {
  --bg-body: #ffffff;
  --bg-card: #f9f9fb;
  --bg-alt: #f4f5f7;
  --text-dark: #111111;
  --text-body: #444444;
  --text-muted: #888888;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-focus: #111111;

  --accent-dev: #0066ff;
  --accent-dev-light: rgba(0, 102, 255, 0.08);

  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-main);

  --radius-img: 12px;
  --radius-btn: 6px;

  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- TIPOGRAFÍA INSTITUCIONAL AR3D (IDÉNTICA A SOBRE MÍ Y PROYECTOS) --- */
h1, h2, h3, h4, h5, h6,
.about-founder-name,
.apps-title,
.portfolio-title,
.modal-title,
.nav-pill-link,
.nav-about-btn,
.lang-btn,
.filter-pill,
.filter-label,
.about-badge,
.apps-section-title,
.section-kicker {
  font-family: var(--font-display) !important;
  letter-spacing: -0.015em;
}

p, li, .about-bio-text p, .apps-subtitle, .apps-section-subtitle {
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- HEADER PRINCIPAL --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-fast) ease;
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Selector Bilingüe */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-btn {
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-btn);
  transition: color var(--duration-fast);
}

.lang-btn:hover {
  color: var(--text-dark);
}

.lang-btn.active {
  color: var(--text-dark);
  font-weight: 700;
}

.lang-divider {
  color: var(--border-light);
}

/* Enlaces navegación rápida */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--duration-fast);
  position: relative;
  padding: 0.35rem 0;
  text-decoration: none;
  cursor: pointer;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--text-dark);
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link.active::after {
  width: 100%;
}

/* --- SECCIÓN PORTFOLIO Y FILTROS --- */
.portfolio-section {
  padding: 2rem 0 5rem 0;
}

.portfolio-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Barra de filtros FIJA ARRIBA TODO EL TIEMPO (Sticky) */
.filters-wrapper {
  position: sticky;
  top: 72px;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.filters-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filters-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filters-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  background-color: transparent;
  transition: all var(--duration-fast) ease;
}

.filter-btn:hover {
  color: var(--text-dark);
  background-color: var(--bg-alt);
}

.filter-btn.active {
  color: #ffffff;
  background-color: var(--text-dark);
  font-weight: 600;
}

.filter-count {
  font-size: 0.75rem;
  opacity: 0.65;
}

.filter-btn.active .filter-count {
  opacity: 0.9;
}

/* Categoría de desarrollo destacada */
.filter-btn-dev {
  border: 1px dashed var(--accent-dev);
  color: var(--accent-dev);
}

.filter-btn-dev:hover {
  background-color: var(--accent-dev-light);
  color: var(--accent-dev);
}

.filter-btn-dev.active {
  background-color: var(--accent-dev);
  color: #ffffff;
  border-style: solid;
}

.dev-badge-dot {
  font-size: 0.65rem;
  color: #00E5A3;
}

/* --- CUADRÍCULA VIVA MASONRY (DIFERENTES TAMAÑOS A 60 FPS) --- */
.projects-grid {
  column-count: 3;
  column-gap: 14px;
}

.project-item {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 14px;
  display: block;
  width: 100%;
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  background-color: #ededef;
  cursor: pointer;
  transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.project-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Imagen con su proporción natural y fade-in suave sin parpadeos a 60 FPS */
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.35s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.project-img.is-loaded {
  opacity: 1;
}

.project-item:hover .project-img {
  transform: scale(1.04);
}

/* Overlay de degradado y título */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 1.25rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity var(--duration-fast);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.project-cat-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

/* Distintivo para proyectos de desarrollo */
.project-item[data-cat="app-dev"] .project-cat-badge {
  color: #00E5A3;
  font-weight: 600;
}

/* --- SECCIÓN SOBRE MÍ (ABOUT) --- */
.about-section {
  background-color: var(--bg-card);
  padding: 6rem 0;
  border-top: 1px solid var(--border-light);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.about-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

/* --- SECCIÓN SOBRE MÍ (PÁGINA ABOUT) — ASPECTO IDÉNTICO A AR3D.ES/ABOUT/ --- */
.about-section,
.about-page-section {
  background-color: #ffffff;
  padding: 4.5rem 0 3rem 0;
}

.about-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Dos columnas: Foto a la izquierda estirada al mismo alto exacto que el texto */
.about-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 4.5rem;
  align-items: stretch;
}

.about-photo-col {
  display: flex;
  width: 100%;
  height: 100%;
}

.about-photo-card {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  background-color: #f0f0f2;
  display: flex;
  position: relative;
}

.about-img-square {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  border-radius: 15px;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888888;
  margin-bottom: 0.75rem;
}

.about-founder-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.about-role-sub {
  display: block;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 500;
  color: #666666;
  margin-top: 0.4rem;
  letter-spacing: 0;
}

.about-bio-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.about-cta-wrap {
  margin-top: 1.25rem;
}

.about-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2f4eff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all var(--duration-fast);
}

.about-cta-link:hover {
  color: #1a3ae0;
}

.about-cta-link .cta-arrow {
  transition: transform var(--duration-fast);
}

.about-cta-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   PIE DE CONTACTO MINIMALISTA (IDÉNTICO A IMG1)
   ========================================================================== */
.minimal-footer {
  padding: 5rem 1.5rem 4.5rem 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-contact-wrap {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Botón destacado de navegación (Sobre Mí / Volver a Proyectos) justo encima de los 3 iconos */
.about-page-btn-wrap {
  margin-bottom: 2.75rem;
  display: flex;
  justify-content: center;
}

.nav-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2.5rem;
  background-color: #111111;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  letter-spacing: 0.02em;
}

.nav-about-btn:hover {
  background-color: #2b2b2e;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

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

.nav-about-btn:hover .btn-arrow-right {
  transform: translateX(4px);
}

.nav-about-btn:hover .btn-arrow-left {
  transform: translateX(-4px);
}

/* Fila de los 3 Círculos (LinkedIn, Teléfono, Email) */
.contact-circles-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.contact-circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid #e0e0e3;
  background-color: #ffffff;
  color: #6a6a6e;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-circle-btn:hover {
  border-color: #111111;
  color: #111111;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.contact-circle-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.contact-circle-btn:hover .contact-circle-icon {
  transform: scale(1.08);
}

/* Copyright centrado debajo */
.minimal-copyright {
  font-size: 0.95rem;
  font-weight: 500;
  color: #767676;
  letter-spacing: 0.02em;
  margin: 0;
  font-family: var(--font-main);
}

/* ==========================================================================
   LIGHTBOX CONTINUO A 60 FPS // VISOR CONTINUO ULTRA FLUIDO
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s;
}

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

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  pointer-events: none;
}

.lightbox-container * {
  pointer-events: auto;
}

/* Barra Superior */
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lightbox-counter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.lightbox-category-tag {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-ctrl-btn,
.lb-close-btn {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color var(--duration-fast), transform var(--duration-fast);
}

.lb-ctrl-btn:hover,
.lb-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Área Central */
.lightbox-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  overflow: hidden;
  user-select: none;
}

/* Botones flotantes de navegación lateral (‹ y ›) */
.lb-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  transition: all var(--duration-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lb-nav-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lb-arrow-left {
  left: 1.5rem;
}

.lb-arrow-right {
  right: 1.5rem;
}

/* Escenario y transición a 60 FPS */
.lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  will-change: opacity, transform;
}

.lightbox-img.switching {
  opacity: 0.15;
  transform: scale(0.98);
}

/* Barra Inferior */
.lightbox-bottombar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #ffffff;
  gap: 2rem;
}

.lb-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.lb-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.lb-shortcuts-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .projects-grid {
    column-count: 2;
    column-gap: 14px;
  }
}

@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }

  .about-photo-card {
    margin: 0 auto;
    max-width: 420px;
    height: 440px;
  }

  /* En móvil: Sin botón menú, enlaces limpios en la cabecera */
  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    align-items: center;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 0.2rem 0;
  }

  .filters-wrapper {
    top: 62px;
  }

  .lb-shortcuts-hint {
    display: none;
  }

  .lb-nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .lb-arrow-left { left: 0.5rem; }
  .lb-arrow-right { right: 0.5rem; }
}

@media (max-width: 600px) {
  /* Cabecera optimizada para smartphone */
  .header-container {
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }

  .logo-img {
    height: 28px;
    width: auto;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .lang-switch {
    font-size: 0.8rem;
  }

  .nav-links {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.2rem 0;
  }

  /* Pie de página en móvil con los 3 mismos botones de LinkedIn, Teléfono y Email */
  .minimal-footer {
    padding: 4.5rem 1.25rem 4rem 1.25rem;
  }

  .about-page-btn-wrap {
    margin-bottom: 2.25rem;
  }

  .nav-about-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .contact-circles-row {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .contact-circle-btn {
    width: 62px;
    height: 62px;
  }

  .contact-circle-icon {
    width: 24px;
    height: 24px;
  }

  .minimal-copyright {
    font-size: 0.9rem;
  }

  .projects-grid {
    column-count: 1;
    column-gap: 16px;
  }

  .filters-wrapper {
    top: 52px;
  }

  .filters-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .lightbox-container {
    padding: 1rem;
  }

  .lb-title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   AR3D SPATIAL APPS & CONFIGURADOR 3D INTERACTIVO
   ========================================================================== */

/* --- NAVEGACIÓN DE ALTO NIVEL & BOTONES GEMELOS --- */
.header-nav-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  transition: all var(--duration-fast);
  text-decoration: none;
}

.nav-pill-link:hover {
  color: var(--text-dark);
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-pill-link.active {
  color: #ffffff;
  background-color: #111111;
}

.twin-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.twin-nav-wrap .nav-about-btn {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .twin-nav-wrap {
    gap: 0.85rem;
    margin-bottom: 2.25rem;
  }
  .twin-nav-wrap .nav-about-btn {
    padding: 0.75rem 1.6rem;
    font-size: 0.92rem;
  }
}

/* --- KICKERS Y TÍTULOS DE SECCIÓN AR3D (ARMONÍA CON SOBRE MÍ Y PROYECTOS) --- */
.section-kicker {
  display: inline-block;
  font-family: var(--font-display) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888888;
  margin-bottom: 0.75rem;
}

.apps-section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.apps-section-subtitle {
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 820px;
  margin: 0 auto;
}

/* --- HERO & VIEWPORT DEL CONFIGURADOR 3D --- */
.apps-body {
  background-color: #ffffff;
}

.apps-main {
  padding-bottom: 2rem;
}

.configurator-hero-section {
  padding: 2.5rem 2rem 4rem 2rem;
  max-width: 1480px;
  margin: 0 auto;
}

.apps-header-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem auto;
}

.apps-badge-wrap {
  margin-bottom: 1.15rem;
}

.apps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #111111;
  background: #f1f3f6;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.apps-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.apps-subtitle {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto;
}

.configurator-container {
  max-width: 1360px;
  margin: 0 auto;
}

.configurator-stage {
  position: relative;
  width: 100%;
  height: 740px;
  min-height: 740px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #edf1f6 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.configurator-stage:active {
  cursor: grabbing;
}

.webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- OVERLAY DE COTAS Y HOTSPOTS --- */
.cotas-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: none;
}

.cotas-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.dim-line {
  stroke: #111111;
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
}

.dim-guide {
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.dim-tick {
  stroke: #111111;
  stroke-width: 2;
}

.dim-text {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  fill: #111111;
  letter-spacing: 0.04em;
}

.hotspots-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot-marker {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, opacity 0.25s ease;
}

.hotspot-marker:hover {
  transform: scale(1.18);
  background: #0066ff;
}

.hotspot-marker.active {
  background: #0066ff;
  transform: scale(1.22);
}

.hotspot-marker.occluded {
  opacity: 0.35 !important;
  filter: grayscale(0.4);
}

.hotspot-dot {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hotspot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 255, 0.7);
  animation: hotspotRipples 2s infinite ease-out;
  pointer-events: none;
}

@keyframes hotspotRipples {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* --- TOOLTIP TÉCNICO FLOTANTE --- */
.spec-tooltip {
  position: absolute;
  width: 310px;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spec-tooltip.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.spec-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.spec-part-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0066ff;
  background: rgba(0, 102, 255, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.tooltip-close-btn {
  font-size: 0.85rem;
  color: #888888;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.tooltip-close-btn:hover {
  color: #111111;
}

.spec-part-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.45rem;
}

.spec-part-desc {
  font-size: 0.84rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.spec-part-specs {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.spec-lbl {
  color: #888888;
  font-weight: 500;
}

.spec-val {
  color: #111111;
  font-weight: 600;
}

/* --- HUD TOPBAR --- */
.hud-topbar {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hud-topbar * {
  pointer-events: auto;
}

.hud-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #222222;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.hud-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.hud-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hud-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: #444444;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.hud-icon-btn:hover {
  background: #ffffff;
  color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.hud-icon-btn.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* --- HUD FLOTANTE CON EFECTO GLASSMORFISM ULTRA ELEGANTE --- */
.hud-floating-island {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  max-width: calc(100% - 2.5rem);
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hud-group-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #777777;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hud-divider {
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
}

.hud-swatches-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.swatch-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
}

.swatch-btn:hover {
  transform: scale(1.08);
}

.swatch-btn.active {
  border-color: #111111;
  transform: scale(1.12);
}

.swatch-preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.swatch-brass {
  background: linear-gradient(135deg, #e3c485, #b38b4d);
}

.swatch-black {
  background: linear-gradient(135deg, #2b2b2e, #111112);
}

.swatch-chrome {
  background: linear-gradient(135deg, #ffffff, #b0b4bc);
}

.swatch-white {
  background: linear-gradient(135deg, #ffffff, #dedede);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.swatch-tooltip {
  display: none;
}

/* Control de Luz */
.hud-light-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #666666;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hud-toggle-pill:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #111111;
}

.hud-toggle-pill.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.toggle-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888888;
  transition: background-color 0.2s;
}

.hud-toggle-pill.active .toggle-pill-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.kelvin-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kelvin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: #555555;
  transition: all 0.2s;
}

.kelvin-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
}

.kelvin-btn.active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #111111;
  font-weight: 700;
}

.kelvin-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.kelvin-2200 { background: #ffaa4f; }
.kelvin-3000 { background: #ffdfb2; }
.kelvin-4000 { background: #f4f8ff; border: 1px solid rgba(0, 0, 0, 0.18); }

/* Modos de Inspección */
.hud-mode-buttons {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hud-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: #333333;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hud-action-pill:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #111111;
  transform: translateY(-1px);
}

.hud-action-pill.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Indicación de interacción táctil */
.configurator-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding: 0 1rem;
  font-size: 0.82rem;
  color: #777777;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.hint-icon {
  color: #d4af7a;
  font-size: 0.9rem;
}

/* --- SECCIÓN DE MÉTRICAS DE NEGOCIO --- */
.apps-metrics-section {
  padding: 6rem 2rem 5.5rem 2rem;
  background-color: #fafafc;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.apps-section-container {
  max-width: 1320px;
  margin: 0 auto;
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
}

.metrics-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem 1.85rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.metric-number-wrap {
  margin-bottom: 1.25rem;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.65rem;
}

.metric-description {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.55;
}

/* --- SECCIÓN DE SOLUCIONES A MEDIDA --- */
.apps-solutions-section {
  padding: 6.5rem 2rem;
  background-color: #ffffff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.solution-card {
  background: #f9f9fb;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.solution-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.solution-card.featured {
  border: 2px solid #111111;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.solution-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.solution-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #111111;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.solution-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.solution-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.95rem;
}

.solution-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.solution-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.solution-features-list li {
  font-size: 0.88rem;
  color: #444444;
  position: relative;
  padding-left: 1.35rem;
}

.solution-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #111111;
  font-weight: 700;
}

/* --- BANNER CTA DIRECTO --- */
.apps-cta-box {
  background: #111111;
  color: #ffffff;
  border-radius: 20px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

.apps-cta-content {
  max-width: 720px;
}

.apps-cta-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.apps-cta-text {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.apps-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  background: #ffffff;
  color: #111111;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.apps-cta-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.cta-btn-arrow {
  transition: transform 0.2s ease;
}

.apps-cta-btn:hover .cta-btn-arrow {
  transform: translateX(4px);
}

/* --- RESPONSIVE DESIGN PARA APPS.HTML Y CONFIGURADOR --- */
@media (max-width: 1200px) {
  .metrics-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .configurator-stage {
    height: 640px;
    min-height: 640px;
  }
}

@media (max-width: 992px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hud-floating-island {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
    padding: 0.85rem 1.25rem;
    gap: 0.85rem;
    bottom: 1.25rem;
  }

  .hud-divider {
    display: none;
  }

  .apps-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .apps-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .configurator-hero-section {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .apps-title {
    font-size: 1.85rem;
  }

  .apps-subtitle {
    font-size: 0.98rem;
  }

  .configurator-stage {
    height: 540px;
    min-height: 540px;
    border-radius: 14px;
  }

  .hud-topbar {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .hud-model-chip {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
  }

  .hud-icon-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .hud-btn-label {
    display: none;
  }

  .hud-floating-island {
    bottom: 1.75rem;
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
    border-radius: 20px;
  }

  .hud-group-label {
    display: none;
  }

  .metrics-cards-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    padding: 1.75rem 1.4rem;
  }

  .metric-number {
    font-size: 2.6rem;
  }

  .solution-card {
    padding: 2rem 1.5rem;
  }

  .apps-cta-box {
    padding: 2rem 1.25rem;
  }

  .apps-cta-title {
    font-size: 1.35rem;
  }

  .header-nav-inline {
    display: none;
  }

  .twin-nav-wrap {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .nav-about-btn {
    width: 100%;
    max-width: 320px;
  }

  .configurator-hints {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   CONMUTADOR DE DEMOS (LUMINARIA VS SUITE PARAMÉTRICA CPQ)
   ========================================================================== */
.demo-switcher-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.demo-switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background-color: #f1f3f7;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 40px;
  background: transparent;
  color: #555963;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.demo-tab-btn:hover {
  color: #111111;
  background-color: rgba(255, 255, 255, 0.6);
}

.demo-tab-btn.active {
  background-color: #111111;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.demo-tab-btn .tab-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #8e94a0;
  transition: background-color 0.25s ease;
}

.demo-tab-btn.active .tab-indicator-dot {
  background-color: #c8a268;
}

.demo-tab-btn .tab-title-text {
  letter-spacing: 0.01em;
}

.demo-tab-btn .tab-sub-text {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  opacity: 0.85;
}

.demo-tab-btn.active .tab-sub-text {
  background: rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
}

/* Paneles Conmutables */
.demo-panel {
  display: none;
  animation: fadeInPanel 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.demo-panel.active {
  display: block;
}

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

/* Panel de la Suite Paramétrica Embebida */
.suite-embed-container {
  max-width: 1540px;
  margin: 0 auto;
  border-radius: 20px;
  background-color: #0b0c10;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.suite-embed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #101217;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.suite-toolbar-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.suite-pill-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background-color: rgba(200, 162, 104, 0.15);
  color: #c8a268;
  border: 1px solid rgba(200, 162, 104, 0.3);
  letter-spacing: 0.04em;
}

.suite-toolbar-desc {
  font-size: 0.85rem;
  color: #8e94a0;
  font-weight: 500;
}

.suite-external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.suite-external-link-btn:hover {
  background-color: #ffffff;
  color: #0b0c10;
  border-color: #ffffff;
}

/* ==========================================================================
   SUITE PARAMÉTRICA NATIVA AR3D (PÉRGOLAS, SOFÁS, RÓTULOS, CRISTAL, TINYPOD)
   ========================================================================== */
.suite-native-layout {
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: 800px;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.07);
  position: relative;
}

.suite-viewport-col {
  flex: 1;
  height: 100%;
  position: relative;
  background-color: #f4f6f9;
  overflow: hidden;
}

.suite-viewport-col canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.suite-sidebar-col {
  width: 460px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 20;
  color: #111111;
}

/* Paneles y Elementos de la Suite */
.glass-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.glass-hud {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
}

.hud-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: #1e293b !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
  cursor: pointer !important;
  user-select: none !important;
}

.hud-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-1px) !important;
}

.hud-btn.active {
  background: rgba(200, 162, 104, 0.14) !important;
  color: #8a6526 !important;
  border-color: #c8a268 !important;
  box-shadow: 0 2px 10px rgba(200, 162, 104, 0.25) !important;
}

.hud-btn span {
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.hud-btn.active span {
  color: #8a6526 !important;
}

.hud-btn svg, .hud-btn i {
  stroke: #334155 !important;
  stroke-width: 2 !important;
}

.hud-btn.active svg, .hud-btn.active i {
  stroke: #c8a268 !important;
}

.glass-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.product-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: 10px;
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-display);
}

.product-tab:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.product-tab.active {
  background: #ffffff !important;
  color: #8a6526 !important;
  border: 1px solid #c8a268 !important;
  box-shadow: 0 4px 14px rgba(200, 162, 104, 0.2) !important;
}

.product-tab span {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  line-height: 1;
}

.product-tab.active span {
  color: #8a6526 !important;
}

.product-tab svg, .product-tab i {
  width: 18px;
  height: 18px;
  stroke: #64748b !important;
}

.product-tab.active svg, .product-tab.active i {
  stroke: #c8a268 !important;
}

/* Swatches de Materiales Suite */
.swatch-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  border: 2px solid rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.swatch-item:hover {
  transform: scale(1.12);
  border-color: rgba(0, 0, 0, 0.4);
}

.swatch-item.active {
  border-color: #c8a268;
  box-shadow: 0 0 12px rgba(200, 162, 104, 0.35);
  transform: scale(1.15);
}

.swatch-item.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* Sliders de Rango Suite */
.suite-sidebar-col input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
}

.suite-sidebar-col input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 2px solid #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.suite-sidebar-col input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #c8a268;
  border-color: #c8a268;
}

/* Toggle Switches */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e2e8f0;
  transition: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .toggle-slider {
  background-color: #c8a268;
  border-color: #c8a268;
}
input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background-color: #ffffff;
}

/* Modales */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  transform: scale(0.96) translateY(8px);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.18);
  color: #0f172a;
}
.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}
.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  padding: 10px 20px;
  border-radius: 9999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 1024px) {
  .suite-native-layout {
    flex-direction: column;
    height: auto;
  }
  .suite-viewport-col {
    height: 520px;
  }
  .suite-sidebar-col {
    width: 100%;
    height: 600px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}



