/* ==========================================================================
   MEKTRA | ENGINEERING & MANUFACTURING
   ========================================================================== */

:root {
  /* Paleta Base */
  --bg-dark: #06070a;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Acentos (sutiles, sin brillo neon) */
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.6);

  /* Tipografia unica: Montserrat */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Texto */
  --text-white: #ffffff;
  --text-dim: #8b95a5;
  --text-light: #c8d0dc;

  /* Transicion fluida */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s var(--ease-spring);
}

/* ==========================================================================
   RESET & BASE GLOBAL
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  user-select: none;
  -webkit-user-select: none;
}

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

/* ==========================================================================
   1. BARRA DE NAVEGACION SUPERIOR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  background: rgba(6, 7, 10, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.navbar.navbar-solid {
  background: rgba(6, 7, 10, 0.95);
}

.nav-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-img {
  transform: scale(1.05);
}

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

.brand-name {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.15;
}

.brand-sub {
  font-family: var(--font-main);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item.active {
  color: #ffffff;
  font-weight: 600;
}

/* Boton Cotizar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-quote:hover {
  background: #ffffff;
  color: #06070a;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-quote .btn-arrow {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.btn-quote:hover .btn-arrow {
  transform: translateX(3px);
}

/* Toggle Movil */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   2. CANVAS VIEWER
   ========================================================================= */

.viewer-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  touch-action: none;
  z-index: 1;
}

#sequenceCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(6, 7, 10, 0.45) 0%, rgba(6, 7, 10, 0.08) 35%, rgba(6, 7, 10, 0) 60%),
              linear-gradient(to top, rgba(6, 7, 10, 0.5) 0%, rgba(6, 7, 10, 0) 30%);
  z-index: 2;
}

/* ==========================================================================
   3. TEXTOS FLOTANTES MINIMALISTAS (SOLO LETRAS, SIN RECUADROS)
   ========================================================================= */

.content-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 5rem 5rem;
}

/* Grupo de texto por servicio */
.service-text-group {
  position: absolute;
  left: 5rem;
  bottom: 5rem;
  max-width: 620px;
  width: calc(100% - 10rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring), visibility 0.5s;
  pointer-events: none;
}

.service-text-group.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tag de Categoria */
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.tag-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.6;
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}

.tag-label {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Titulos Minimalistas */
.hero-main-title {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0.5rem 0 0.8rem 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.service-heading {
  font-family: var(--font-main);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0.3rem 0 0.5rem 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  color: var(--text-light);
  display: inline;
}

.highlight-cyan {
  color: var(--text-light);
  font-weight: 300;
}

.highlight-amber {
  color: var(--text-light);
  font-weight: 300;
}

.highlight-orange {
  color: var(--text-light);
  font-weight: 300;
}

/* Subtitulos */
.service-subtitle {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.7rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* Parrafo */
.service-paragraph {
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-p {
  font-size: 1.05rem;
  max-width: 560px;
}

/* Especificaciones */
.service-specs-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.service-specs-line strong {
  color: #ffffff;
  font-weight: 600;
}

.spec-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

/* Indicador de scroll en el Hero */
.hero-scroll-prompt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  color: var(--text-dim);
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.mouse-wheel {
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: mouse-drop 2s infinite ease-in-out;
}

@keyframes mouse-drop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.prompt-text {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Botones Contacto */
.contact-actions-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.btn-quote-large {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.8rem;
  background: #ffffff;
  color: #06070a;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.btn-quote-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-quote-large svg {
  width: 14px;
  height: 14px;
}

.btn-back-start {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-back-start:hover {
  color: #ffffff;
}

.btn-back-start svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   4. MODALES
   ========================================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.modal-card {
  background: #0b0e15;
  color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.96) translateY(16px);
  transition: transform 0.35s var(--ease-spring);
}

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

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-tag {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.3rem 0 0.4rem 0;
}

.modal-subtitle {
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.about-modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

select.form-input {
  color-scheme: dark;
  background-color: #111827;
  color: #ffffff;
  cursor: pointer;
}

select.form-input option,
.modal-card select option {
  background-color: #111827;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
}

.form-input.textarea {
  resize: vertical;
}

.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .modal-backdrop {
    padding: 0.75rem;
  }
  .modal-card {
    padding: 1.5rem 1.15rem;
    max-height: 92vh;
    overflow-y: auto;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .modal-title {
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   5. PRELOADER
   ========================================================================= */

.loader-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.loader-title {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.loader-title .highlight {
  color: var(--text-dim);
  font-weight: 400;
}

.loader-subtitle {
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.loader-track {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.loader-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.loader-pct {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.loader-msg {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
  .navbar {
    padding: 0 1.5rem;
  }

  .content-overlay {
    padding: 0 2rem 3rem 2.5rem;
  }

  .service-text-group {
    left: 2.5rem;
    bottom: 3rem;
    width: calc(100% - 5rem);
  }

  .hero-main-title {
    font-size: 2.4rem;
  }

  .service-heading {
    font-size: 1.9rem;
  }
}

@media (max-width: 992px) {
  .navbar {
    height: 64px;
    padding: 0 1.25rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 7, 10, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    gap: 0.8rem;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .content-overlay {
    padding: 0 1.2rem 2.5rem 1.2rem;
  }

  .service-text-group {
    left: 1.2rem;
    bottom: 2.5rem;
    width: calc(100% - 2.4rem);
  }

  .hero-main-title {
    font-size: 2rem;
  }

  .service-heading {
    font-size: 1.6rem;
  }

  .service-subtitle {
    font-size: 0.95rem;
  }

  .service-paragraph {
    font-size: 0.85rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 0.9rem;
  }

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

@media (max-width: 480px) {
  .navbar {
    height: 58px;
    padding: 0 0.85rem;
  }

  .logo-img {
    height: 32px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .btn-quote {
    padding: 0.42rem 0.8rem;
    font-size: 0.74rem;
  }

  .btn-quote .btn-arrow {
    display: none;
  }

  .btn-cart-nav {
    width: 34px;
    height: 34px;
  }

  .hero-main-title {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .service-heading {
    font-size: 1.3rem;
    line-height: 1.22;
  }

  .service-subtitle {
    font-size: 0.82rem;
  }

  .service-paragraph {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .service-text-group {
    left: 0.85rem;
    bottom: 1.5rem;
    width: calc(100% - 1.7rem);
  }

  .service-specs-line {
    font-size: 0.74rem;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   8. SPACER & SECCION NOSOTROS (FONDO BLANCO-GRIS)
   ========================================================================= */

.scroll-spacer {
  height: 100vh;
  pointer-events: none;
}

.nosotros {
  position: relative;
  z-index: 30;
  background-color: #f8fafc;
  color: #0f172a;
  overflow: hidden;
  scroll-margin-top: 76px;
}

/* ==========================================================================
   FONDO ANIMADO TECNOLOGICO: ENGRANE Y ANILLOS HUD ROTATORIOS
   ========================================================================== */

.nosotros-gear-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Placa base con micro-reticula y circuitos (tono titanio luminoso y contrastado) */
.gear-bg-plate {
  position: absolute;
  inset: 0;
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.92) 55%, rgba(226, 232, 240, 0.98) 100%),
    url('./nosotros-tech-bg-base.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.96;
}

/* Escenario giratorio centrado detras de la seccion */
.gear-motion-stage {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  transition: transform 0.2s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Anillos HUD tecnologicos exteriores: rotacion continua antihoraria */
.gear-hud-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  object-fit: contain;
  pointer-events: none;
  animation: spinHudRings 40s linear infinite;
  will-change: transform;
}

/* Engrane mecanico central: rotacion continua horaria */
.gear-center-cog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.18));
  animation: spinGear 24s linear infinite;
  will-change: transform;
}

/* Nucleo de energia / pulso luminoso central */
.gear-core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  height: 44%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 250, 0.45) 55%, transparent 75%);
  pointer-events: none;
  animation: gearCorePulse 4s ease-in-out infinite;
}

/* Overlay de legibilidad suave */
.gear-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.35) 0%, 
    rgba(241, 245, 249, 0.2) 35%, 
    rgba(226, 232, 240, 0.45) 75%, 
    rgba(203, 213, 225, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Keyframes de animacion de la figura */
@keyframes spinGear {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinHudRings {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes gearCorePulse {
  0%, 100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.nosotros-inner {
  position: relative;
  z-index: 5;
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 3rem 3rem 3rem;
}

/* Encabezado */
.nosotros-header {
  margin-bottom: 3.5rem;
}

.nosotros-tag {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.nosotros-title {
  font-family: var(--font-main);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.nosotros-title span {
  font-weight: 400;
  color: #334155;
}

/* ==========================================================================
   SISTEMA DE EFECTO ZOOM AL BAJAR A LA SECCION (ZOOM-IN EN SCROLL)
   ========================================================================== */

.nosotros-zoom-card {
  opacity: 0;
  transform: scale(0.88) translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: opacity, transform;
}

/* Estado activo con zoom completo al entrar en la seccion */
.nosotros-zoom-card.zoom-in-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Efecto de zoom interactivo al pasar el cursor */
.nosotros-zoom-card.zoom-in-active:hover {
  transform: scale(1.025) translateY(-4px);
  background: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.05);
}

/* Delays escalonados para un zoom progresivo y fluido */
.nosotros-content .nosotros-text.nosotros-zoom-card {
  transition-delay: 0.08s;
}

.nosotros-mision-vision .mision-card.nosotros-zoom-card {
  transition-delay: 0.22s;
}

.nosotros-mision-vision .vision-card.nosotros-zoom-card {
  transition-delay: 0.36s;
}

.nosotros-stats.nosotros-zoom-card {
  transition-delay: 0.15s;
}

.razones-grid .razon:nth-child(1).nosotros-zoom-card { transition-delay: 0.1s; }
.razones-grid .razon:nth-child(2).nosotros-zoom-card { transition-delay: 0.2s; }
.razones-grid .razon:nth-child(3).nosotros-zoom-card { transition-delay: 0.3s; }
.razones-grid .razon:nth-child(4).nosotros-zoom-card { transition-delay: 0.4s; }

/* ==========================================================================
   RECUADROS SEMITRANSPARENTES: TEXTO, MISION Y VISION
   ========================================================================== */

.nosotros-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
}

/* Badge decorativo de ingenieria */
.nosotros-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 0.4rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #475569;
  box-shadow: 0 0 6px rgba(71, 85, 105, 0.35);
}

.nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
  padding: 2.2rem 2.4rem;
}

.nosotros-text p {
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 500;
  color: #1e293b;
}

.nosotros-text strong {
  color: #0f172a;
  font-weight: 750;
}

/* Columna Mision & Vision */
.nosotros-mision-vision {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  justify-content: space-between;
}

.mv-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
  padding: 1.8rem 2rem;
}

.mv-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mv-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  flex-shrink: 0;
}

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

.mv-title-block {
  display: flex;
  flex-direction: column;
}

.mv-tag {
  display: block;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.mv-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 800;
  color: #090e1a;
  line-height: 1.2;
}

.mv-desc {
  font-family: var(--font-main);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
}

/* Estadisticas con panel de alta definicion */
.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.2rem 2.6rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
  margin-bottom: 3.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 800;
  color: #090e1a;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Razones */
.nosotros-razones {
  margin-bottom: 2rem;
}

.razones-title {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  color: #090e1a;
  margin-bottom: 1.5rem;
}

.razones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.razon {
  padding: 1.8rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

.razon h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 750;
  color: #090e1a;
  margin-bottom: 0.4rem;
}

.razon p {
  font-family: var(--font-main);
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 500;
  color: #334155;
}

/* Footer */
.nosotros-footer {
  border-top: 1px solid #ddd;
  padding: 1.5rem 3rem;
  text-align: center;
}

.nosotros-footer p {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
}

/* Responsive Nosotros */
@media (max-width: 1024px) {
  .gear-motion-stage {
    width: 620px;
    height: 620px;
  }

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

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

@media (max-width: 768px) {
  .gear-motion-stage {
    width: 420px;
    height: 420px;
    top: 28%;
    opacity: 0.85;
  }

  .nosotros-inner {
    padding: 3rem 1.5rem 2rem 1.5rem;
  }

  .nosotros-title {
    font-size: 2rem;
  }

  .nosotros-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 1.5rem 1.2rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

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

  .razones-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .nosotros-inner {
    padding: 2.25rem 1rem 1.5rem 1rem;
  }
  .nosotros-title {
    font-size: 1.55rem;
  }
  .nosotros-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1.1rem 0.6rem;
  }
  .stat-num {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 0.74rem;
  }
}


/* ==========================================================================
   9. SECCION SERVICIOS -- PUZZLE ANIMADO & VISOR HOLOGRAFICO 3D (MODEL B-1)
   ========================================================================= */

.nosotros-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 240px;
  background: linear-gradient(to bottom, transparent 0%, rgba(34, 38, 50, 0.55) 55%, #222632 100%);
  pointer-events: none;
  z-index: 2;
}

.servicios-puzzle {
  position: relative;
  z-index: 30;
  background: #222632; /* Tono grafito/carbon */
  padding: 3.5rem 0 3.5rem 0;
  overflow: hidden;
  scroll-margin-top: 76px;
}

/* Visor holografico sticky de fondo */
.hologram-backdrop {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hologram-rig {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hologram-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  overflow: hidden;
  box-shadow: none;
  background:
    radial-gradient(1300px 800px at 50% 50%, rgba(47, 111, 237, 0.16), transparent 70%),
    radial-gradient(900px 600px at 80% 85%, rgba(95, 212, 255, 0.1), transparent 60%),
    transparent;
}

.hologram-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(34, 38, 50, 0.45) 75%, #222632 100%),
    linear-gradient(to bottom, #222632 0%, transparent 12%, transparent 88%, #222632 100%);
  z-index: 2;
}

#hologramCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.48; /* Mas transparente: efecto proyeccion holografica translucida */
  mix-blend-mode: screen; /* Elimina el fondo oscuro para fundirse suavemente */
}

.hologram-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: 2;
}

.hologram-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(95, 212, 255, 0.45);
  opacity: 0.45;
  pointer-events: none;
  z-index: 3;
}
.hologram-corner.tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.hologram-corner.tr { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.hologram-corner.bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.hologram-corner.br { bottom: 24px; right: 24px; border-left: none; border-top: none; }

.hologram-hud {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(5, 8, 12, 0.65);
  border: 1px solid rgba(95, 212, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #dce9f5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.85;
  z-index: 3;
}

.hud-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5fd4ff;
  box-shadow: 0 0 8px #5fd4ff;
  animation: pulse-hud 2s infinite ease-in-out;
}

@keyframes pulse-hud {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hud-tag {
  color: #5fd4ff;
  font-weight: 700;
}

.hud-counter {
  color: #8b95a5;
  font-weight: 500;
}

.servicios-puzzle-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.servicios-puzzle-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header-pre-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5fd4ff;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(95, 212, 255, 0.3);
}

.pre-bracket {
  color: #5fd4ff;
  font-weight: 700;
}

.pre-text {
  color: #8b95a5;
}

.servicios-puzzle-title {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.servicios-puzzle-title span {
  font-weight: 300;
  color: var(--text-dim);
}

.header-divider-line {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  margin: 1rem auto 0 auto;
}

/* ==========================================================================
   SLIDER 3D DESLIZANTE DE SERVICIOS (COVERFLOW INDUSTRIAL)
   ========================================================================== */

.servicios-slider-3d {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 1.25rem auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1350px;
  perspective-origin: 50% 50%;
  user-select: none;
}

.slider-3d-stage {
  position: relative;
  width: 100%;
  min-height: 535px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
}

.slider-3d-stage.is-dragging {
  cursor: grabbing;
}

.slider-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Cada tarjeta del slider 3D (recuadros mas anchos) */
.puzzle-piece {
  position: absolute;
  width: 520px;
  max-width: 90vw;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 23, 34, 0.95);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition: transform 0.75s cubic-bezier(0.2, 0.85, 0.32, 1.05),
              opacity 0.6s ease,
              filter 0.6s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Tarjeta Activa (Central) */
.puzzle-piece.is-active {
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  filter: brightness(1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.puzzle-piece.is-active:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.92),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Tarjetas Laterales (Prev / Next) */
.puzzle-piece.is-prev,
.puzzle-piece.is-next {
  z-index: 5;
  opacity: 0.68;
  filter: brightness(0.72) blur(0.4px);
  pointer-events: auto;
}

.puzzle-piece.is-prev:hover,
.puzzle-piece.is-next:hover {
  opacity: 0.85;
  filter: brightness(0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Tarjeta Oculta / Fondo */
.puzzle-piece.is-hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  filter: brightness(0.4) blur(2px);
}

/* Botones de Navegacion 3D (Prev / Next) */
.slider-3d-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(12, 16, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #cbd5e1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.slider-3d-btn.prev-btn {
  left: -24px;
}

.slider-3d-btn.next-btn {
  right: -24px;
}

.slider-3d-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.slider-3d-btn .btn-bracket {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.slider-3d-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75);
}

.slider-3d-btn:hover .btn-bracket {
  opacity: 1;
  color: #ffffff;
}

.slider-3d-btn.prev-btn:hover svg {
  transform: translateX(-2px);
}

.slider-3d-btn.next-btn:hover svg {
  transform: translateX(2px);
}

.slider-3d-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* ==========================================================================
   BARRA HUD INFERIOR DEL SLIDER 3D
   ========================================================================== */

.slider-3d-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 1.8rem auto 0 auto;
  padding: 0.75rem 1.8rem;
  background: rgba(10, 14, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.slider-hud-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hud-curr {
  color: #ffffff;
  font-size: 0.95rem;
  text-shadow: none;
}

.hud-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.hud-total {
  color: #64748b;
  font-size: 0.8rem;
}

/* Dots / Pildoras interactivas */
.slider-3d-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slider-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #8b95a5;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.slider-dot .dot-fill {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2eaf5;
}

.slider-dot.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slider-dot.active .dot-fill {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

/* Hint de arrastre */
.slider-hud-drag-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8b95a5;
  text-transform: uppercase;
}

.slider-hud-drag-hint svg {
  width: 14px;
  height: 14px;
  color: #5fd4ff;
  animation: pulse-hud 2s infinite ease-in-out;
}

/* Adaptacion responsive para el slider 3D */
@media (max-width: 1200px) {
  .puzzle-piece {
    width: 470px;
  }
}

@media (max-width: 1024px) {
  .servicios-slider-3d {
    perspective: 1100px;
  }
  .slider-3d-stage {
    min-height: 600px;
  }
  .puzzle-piece {
    width: 420px;
  }
  .slider-3d-btn.prev-btn { left: -10px; }
  .slider-3d-btn.next-btn { right: -10px; }
}

@media (max-width: 768px) {
  .servicios-slider-3d {
    perspective: 900px;
  }
  .slider-3d-stage {
    min-height: 560px;
  }
  .puzzle-piece {
    width: 360px;
    max-width: calc(100vw - 36px);
  }
  .slider-3d-btn {
    width: 44px;
    height: 44px;
  }
  .slider-3d-btn.prev-btn { left: -5px; }
  .slider-3d-btn.next-btn { right: -5px; }
  .slider-3d-hud {
    padding: 0.6rem 1rem;
  }
  .slider-dot .dot-label {
    display: none;
  }
  .slider-dot {
    padding: 6px;
  }
  .slider-hud-drag-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .slider-3d-stage {
    min-height: 520px;
  }
  .puzzle-piece {
    width: 290px;
    max-width: calc(100vw - 28px);
  }
  .piece-img {
    height: 185px;
  }
  .piece-info {
    padding: 1rem 1rem;
  }
  .piece-title {
    font-size: 1.05rem;
  }
  .piece-desc {
    font-size: 0.8rem;
  }
  .slider-3d-btn {
    width: 38px;
    height: 38px;
  }
  .slider-3d-btn .btn-bracket {
    display: none;
  }
  .slider-3d-btn.prev-btn { left: 2px; }
  .slider-3d-btn.next-btn { right: 2px; }
  .slider-3d-hud {
    padding: 0.45rem 0.65rem;
    gap: 6px;
  }
  .slider-dot {
    padding: 4px;
  }
}

/* Imagen de la pieza */
.piece-img {
  width: 100%;
  height: 255px;
  overflow: hidden;
}

.piece-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.puzzle-piece:hover .piece-img img {
  transform: scale(1.05);
}

/* Ajuste para que la imagen de filamento (pieza 3) se vea 100% completa */
.puzzle-piece[data-puzzle="3"] .piece-img {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-piece[data-puzzle="3"] .piece-img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
}

/* Info de la pieza */
.piece-info {
  padding: 1.3rem 1.5rem 1.5rem 1.5rem;
}

.piece-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.piece-num {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #cbd5e1;
  text-shadow: none;
}

.piece-badge {
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b95a5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.piece-title-mask {
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.piece-info h3 {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.piece-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.7rem 0 0.8rem 0;
  transform-origin: left;
  transition: background 0.3s ease;
}

.puzzle-piece:hover .piece-line {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.piece-info p {
  font-family: var(--font-main);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-dim);
}

.piece-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.chip {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #9bb0c9;
  background: rgba(12, 16, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3px 8px;
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.puzzle-piece:hover .chip {
  border-color: rgba(255, 255, 255, 0.22);
  color: #e2eaf5;
}

/* Boton interactivo de exploracion en piezas clickeables */
.puzzle-piece[data-puzzle="1"] {
  cursor: pointer;
}

.puzzle-piece[data-puzzle="1"]:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.piece-action-row {
  margin-top: 1.1rem;
  display: flex;
}

/* Efecto de Palpito (Heartbeat) para botones "Quiero ver mas informacion" */
@keyframes palpito-btn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.25);
  }
  16% {
    transform: scale(1.045);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.15);
  }
  32% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0);
  }
  48% {
    transform: scale(1.03);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.1);
  }
  64% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes palpito-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  }
}

.btn-pulse-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  display: inline-block;
  animation: palpito-dot 1.8s infinite ease-in-out;
}

.piece-btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: palpito-btn 2.2s infinite ease-in-out;
  cursor: pointer;
}

.piece-btn-explore svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.puzzle-piece {
  cursor: pointer;
}

.puzzle-piece:hover .piece-btn-explore {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.puzzle-piece:hover .piece-btn-explore svg {
  transform: translateX(4px);
}

/* ==========================================================================
   11. MODAL INTERACTIVO DE SERVICIO (MECANIZADO CNC & OTROS)
   ========================================================================= */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.service-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: #181c22;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.8), 0 0 50px rgba(95, 110, 130, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Video de Ensamblaje 3D en el Fondo del Recuadro: Recubre TODO el recuadro */
.modal-bg-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
}

.modal-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  filter: contrast(1.12) brightness(0.95);
  display: block;
}

.modal-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.42);
  pointer-events: none;
}

/* Contenedor Scrollable dentro del modal */
.service-modal-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.service-modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.service-modal-scroll::-webkit-scrollbar-track {
  background: rgba(18, 22, 28, 0.4);
}

.service-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.service-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

.service-modal.active .service-modal-dialog {
  transform: scale(1) translateY(0);
}

.service-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.service-modal-close svg {
  width: 20px;
  height: 20px;
}

.service-modal-close:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  transform: rotate(90deg);
}

.service-modal-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  padding: 2.8rem;
}

/* Columna Izquierda: Galeria */
.service-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-view {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: #12161d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-main-view img,
.gallery-main-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.gallery-main-view video {
  background: #000000;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(10, 14, 22, 0.95) 0%, rgba(10, 14, 22, 0.6) 60%, transparent 100%);
  font-family: var(--font-main);
  font-size: 0.78rem;
  color: #f1f5f9;
  letter-spacing: 0.04em;
  font-weight: 500;
  z-index: 3;
  pointer-events: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.thumb-btn {
  position: relative;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 20, 26, 0.5);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.72;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-btn:hover {
  opacity: 1;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.thumb-btn.active {
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.thumb-badge-play {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(2, 132, 199, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BOTON DE ACCESO A FICHA TECNICA EXTENDIDA (DENTRO DEL MODAL)
   ========================================================================== */

.modal-gallery-action {
  margin-top: 0.85rem;
  width: 100%;
}

@keyframes palpito-deep-dive {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.2);
  }
  16% {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.1);
  }
  32% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0);
  }
  48% {
    transform: scale(1.012);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48), 0 0 0 2px rgba(255, 255, 255, 0.08);
  }
  64% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.btn-service-deep-dive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.35rem;
  background: linear-gradient(135deg, rgba(14, 22, 34, 0.85) 0%, rgba(8, 14, 24, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: palpito-deep-dive 2.6s infinite ease-in-out;
}

.btn-service-deep-dive::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.15), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-service-deep-dive:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22), 0 0 18px rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, rgba(18, 30, 48, 0.9) 0%, rgba(12, 20, 34, 0.98) 100%);
}

.btn-service-deep-dive:hover::before {
  left: 100%;
}

.btn-deep-dive-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-deep-dive-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-deep-dive-icon svg {
  width: 22px;
  height: 22px;
}

.btn-service-deep-dive:hover .btn-deep-dive-icon {
  transform: scale(1.08);
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-deep-dive-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-deep-dive-tag {
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #38bdf8;
  text-transform: uppercase;
}

.btn-deep-dive-title {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.btn-deep-dive-sub {
  font-family: var(--font-main);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.btn-deep-dive-arrow {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  transition: all 0.3s ease;
}

.btn-deep-dive-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-service-deep-dive:hover .btn-deep-dive-arrow {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #06070a;
  transform: translateX(4px);
}

/* Columna Derecha: Informacion Tecnica */
.service-modal-info {
  display: flex;
  flex-direction: column;
}

.service-modal-dialog .modal-pre-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 0.6rem;
}

.service-modal-dialog .modal-pre-tag .tag-bracket {
  color: #38bdf8;
  font-weight: 800;
}

.service-modal-dialog .modal-pre-tag .tag-num {
  color: #ffffff;
  font-weight: 800;
}

.service-modal-dialog .modal-pre-tag .tag-text {
  color: #cbd5e1;
  font-weight: 700;
}

.service-modal-dialog .modal-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.service-modal-dialog .modal-lead {
  font-family: var(--font-main);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.4rem;
}

/* Grid de Tarjetas Tecnicas (2x2) */
.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.spec-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(18, 22, 28, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.spec-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.spec-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.spec-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #38bdf8 !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.35));
}

.spec-card-content {
  display: flex;
  flex-direction: column;
}

.spec-card-label {
  font-family: var(--font-main);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #94a3b8;
  font-weight: 700;
}

.spec-card-val {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.spec-card-desc {
  font-family: var(--font-main);
  font-size: 0.68rem;
  color: #cbd5e1;
}

/* Lista de Capacidades */
.modal-features {
  background: rgba(18, 22, 28, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #38bdf8;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.6rem;
}

.modal-features h4 {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-features li {
  font-family: var(--font-main);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.modal-features li::before {
  content: '?';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

.modal-actions-bar {
  margin-top: auto;
}

.btn-quote-service {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
  transition: all 0.3s ease;
}

.btn-quote-service svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-quote-service:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-quote-service:hover svg {
  transform: translateX(4px);
}

/* Responsive Modal */
@media (max-width: 900px) {
  .service-modal-body {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2rem 1.5rem;
  }

  .gallery-main-view {
    height: 250px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn-service-deep-dive {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .btn-deep-dive-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .btn-deep-dive-title {
    font-size: 0.84rem;
  }

  .btn-deep-dive-sub {
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   8.5 SECCION DE PRODUCTOS DESTACADOS EN STOCK (E-COMMERCE MINIMALISTA LIGHT)
   ========================================================================== */

.stock-showcase-section {
  position: relative;
  z-index: 25;
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.05) 0%, transparent 60%), #f8fafc;
  color: #0f172a;
  padding: 6rem 2rem 6.5rem;
  overflow: hidden;
  scroll-margin-top: 76px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stock-showcase-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.14) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.stock-showcase-section.stock-in-view::before {
  opacity: 1;
}

.stock-showcase-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

/* Encabezado */
.stock-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-showcase-section.stock-in-view .stock-header {
  opacity: 1;
  transform: translateY(0);
}

.stock-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.8px;
  margin-bottom: 1.1rem;
}

.stock-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: stockPulse 2s infinite ease-in-out;
}

@keyframes stockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.stock-main-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.stock-title-highlight {
  color: #0284c7;
  font-weight: 850;
}

.stock-subtitle {
  font-size: 1.02rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* Filtros Minimalistas Estilo Apple / Shopify */
.stock-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stock-tab {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.stock-tab.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

/* Barra de Selector Global de Moneda (COP / USD) */
.stock-currency-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.stock-currency-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stock-global-curr-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.global-curr-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  font-family: inherit;
}

.global-curr-btn:hover {
  color: #0f172a;
}

.global-curr-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.stock-trm-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

/* Grid de Productos con simetria rigurosa */
.stock-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 3.5rem;
  align-items: stretch;
}

/* Tarjeta de Producto E-commerce Estilo Bite Exacto - Misma proporcion y simetria */
.stock-card.bite-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Cascada de entrada (stagger) al hacer scroll a la seccion */
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(1) {
  transition-delay: 0.05s;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(2) {
  transition-delay: 0.13s;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(3) {
  transition-delay: 0.21s;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(4) {
  transition-delay: 0.29s;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(5) {
  transition-delay: 0.37s;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(6) {
  transition-delay: 0.45s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Rayo laser / Calibracion luminosa industrial que barre cada tarjeta */
.stock-card.bite-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(2, 132, 199, 0.08) 45%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(2, 132, 199, 0.12) 55%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 7;
}

.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(1)::after {
  animation: stockCardScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s 1;
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(2)::after {
  animation: stockCardScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.42s 1;
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(3)::after {
  animation: stockCardScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.52s 1;
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(4)::after {
  animation: stockCardScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.62s 1;
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(5)::after {
  animation: stockCardScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.72s 1;
}
.stock-showcase-section.stock-in-view .stock-card.bite-card:nth-child(6)::after {
  animation: stockCardScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.82s 1;
}

@keyframes stockCardScan {
  0% { left: -130%; }
  100% { left: 160%; }
}

.stock-showcase-section.stock-in-view .stock-card.bite-card:hover {
  border-color: #0284c7;
  transform: translateY(-8px) scale(1.006);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px #0284c7;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

/* Encabezado superior de la tarjeta: Altura exacta y simetrica */
.bite-card-header {
  padding: 1.15rem 1.25rem 0.85rem 1.25rem;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  background: #ffffff;
  box-sizing: border-box;
  border-bottom: 1px solid #f1f5f9;
}

.bite-card .stock-item-title {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: #111827;
  text-transform: uppercase;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.bite-card:hover .stock-item-title {
  color: #0284c7;
}

/* Area de Foto / Media: Misma altura y proporcion cuadrada */
.bite-card .stock-card-media {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  background: #ffffff;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.stock-card-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bite-card:hover .stock-card-real-img {
  transform: scale(1.05);
}

/* Badge Ficha Tecnica flotante e integrada sin alterar altura de la tarjeta */
.stock-card-pdf-float {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.stock-card-pdf-float svg {
  width: 13px;
  height: 13px;
  stroke: #dc2626;
  transition: transform 0.2s ease;
}

.stock-card-pdf-float:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.stock-card-pdf-float:hover svg {
  stroke: #38bdf8;
  transform: scale(1.15);
}

.bite-card .stock-card-img-placeholder {
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  border-radius: 0 !important;
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bite-card:hover .stock-card-img-placeholder {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.bite-card .stock-ph-icon {
  width: 48px;
  height: 48px;
  border-radius: 0 !important;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: transform 0.2s ease;
}

.bite-card:hover .stock-ph-icon {
  transform: scale(1.06);
}

.bite-card .stock-ph-icon svg {
  width: 24px;
  height: 24px;
}

.bite-card .stock-ph-label {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Fila de Informacion Secundaria / Precios con altura fija y perfecta alineacion */
.bite-card-subinfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 0 1rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  box-sizing: border-box;
}

.bite-price-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex-shrink: 0;
}

.bite-card-subinfo .bite-price-val {
  font-size: 0.90rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.1;
}

.card-curr-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 1px;
  width: fit-content;
}

.card-curr-btn {
  font-size: 0.60rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  font-family: inherit;
}

.card-curr-btn:hover {
  color: #0f172a;
}

.card-curr-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bite-card-subinfo .bite-stock-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: right;
  line-height: 1.2;
  margin-left: auto;
}

/* Boton Inferior Ancho Completo estilo Bite (ADD TO BAG) fijado rigurosamente al fondo */
.bite-btn-add-bag {
  width: 100%;
  height: 50px;
  min-height: 50px;
  margin-top: auto;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 0 !important;
  padding: 0 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  transition: background 0.25s ease, letter-spacing 0.2s ease;
}

.bite-btn-add-bag:hover {
  background: #0284c7;
  letter-spacing: 0.12em;
}

.bite-btn-add-bag:active {
  background: #0369a1;
}

.stock-btn-buy:hover svg {
  transform: translateX(3px);
}

/* Banner Inferior Minimalista con aparicion suave */
.stock-bottom-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.stock-showcase-section.stock-in-view .stock-bottom-banner {
  opacity: 1;
  transform: translateY(0);
}

.stock-bottom-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stock-bottom-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stock-bottom-title {
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 2px;
}

.stock-bottom-desc {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.stock-btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stock-btn-catalog:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.stock-btn-catalog svg {
  width: 14px;
  height: 14px;
}

/* Responsivo */
@media (max-width: 1024px) {
  .stock-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stock-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .stock-btn-catalog {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .stock-showcase-section {
    padding: 4rem 1.25rem 4.5rem;
  }
  .stock-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stock-filter-tabs {
    width: 100%;
    border-radius: 12px;
    justify-content: center;
  }
  .bite-card .stock-card-media,
  .stock-card-media {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
}

/* ==========================================================================
   8.6 MODAL DE DETALLE DE PRODUCTO EXPANDIDO (ESTILO SONOS E-COMMERCE)
   ========================================================================== */

.stock-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

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

.stock-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.stock-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  max-height: 94vh;
  background: #ffffff;
  border-radius: 0 !important;
  border: 1px solid #d1d5db;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.98) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

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

/* Boton de Cierre */
.stock-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stock-modal-close svg {
  width: 16px;
  height: 16px;
}

.stock-modal-close:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Layout Bi-columna Estilo Bite: Escaparate dominante a la izquierda */
.stock-modal-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: 640px;
}

/* Columna Izquierda: Galeria y Visualizador */
.stock-modal-gallery-col {
  background: #fafafa;
  padding: 2rem 2rem 2rem 2rem;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stock-modal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.stock-modal-breadcrumb .sep {
  color: #9ca3af;
}

.stock-modal-breadcrumb span:last-child {
  color: #111827;
}

.stock-modal-feature-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.stock-modal-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0 !important;
  padding: 0;
  overflow: hidden;
}

.stock-modal-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.stock-card-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}

.bite-card:hover .stock-card-real-img {
  transform: scale(1.05);
}

.spm-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d1d5db;
  border-radius: 0 !important;
  color: #111827;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.spm-zoom-hint svg {
  width: 14px;
  height: 14px;
  color: #111827;
}

.spm-zoom-viewer {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: crosshair;
  background: #ffffff;
}

.stock-modal-real-img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 0 !important;
  background: #ffffff;
  display: block;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.spm-zoom-viewer.is-zooming .stock-modal-real-img {
  transform: scale(2.3);
  transition: transform 0.05s ease-out;
}

.spm-zoom-viewer.is-zooming + .spm-zoom-hint,
.spm-zoom-viewer:hover .spm-zoom-hint {
  opacity: 0.35;
}

.stock-modal-real-video {
  width: 100%;
  height: 100%;
  max-height: 540px;
  border-radius: 0 !important;
  background: #000000;
  outline: none;
}

.stock-modal-ph {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: none;
  border-radius: 0 !important;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #6b7280;
  padding: 2rem;
  text-align: center;
}

.stock-modal-ph svg {
  width: 56px;
  height: 56px;
  stroke: #6b7280;
}

.stock-modal-ph span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #374151;
  max-width: 320px;
  line-height: 1.5;
}

/* Escaparate de Video */
.stock-modal-video-stage {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spm-video-ph {
  width: 100%;
  height: 100%;
  min-height: 540px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.spm-video-ph:hover {
  background: #1e293b;
}

.spm-video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.spm-video-ph:hover .spm-video-play-icon {
  transform: scale(1.1);
}

.spm-video-play-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: #ffffff;
}

.spm-video-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  max-width: 300px;
  line-height: 1.5;
}

/* Flechas de Navegacion Galeria */
.spm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 5;
}

.spm-arrow:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.spm-arrow svg {
  width: 14px;
  height: 14px;
}

.spm-prev { left: 8px; }
.spm-next { right: 8px; }

/* Contenedor Flex Estilo Bite: Tira Vertical Izquierda + Escaparate */
.bite-gallery-body {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex: 1;
}

/* Tira Vertical de Miniaturas (Estilo Bite) */
.stock-modal-media-nav.spm-vertical-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 74px;
  flex-shrink: 0;
  padding-top: 0;
}

.spm-vertical-nav .spm-thumb-btn {
  width: 74px;
  height: 74px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0 !important;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.spm-vertical-nav .spm-thumb-btn:hover {
  border-color: #111827;
}

.spm-vertical-nav .spm-thumb-btn.active {
  border: 2px solid #111827;
  background: #ffffff;
}

.spm-thumb-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.spm-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spm-thumb-box .thumb-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.04em;
}

.spm-vertical-nav .spm-thumb-btn.video-thumb {
  border-color: #d1d5db;
}

.spm-vertical-nav .spm-thumb-btn.video-thumb .spm-thumb-box {
  background: #0f172a;
  color: #ffffff;
}

.spm-vertical-nav .spm-thumb-btn.video-thumb .thumb-tag {
  color: #ffffff;
  font-size: 0.85rem;
}

.spm-vertical-nav .spm-thumb-btn.video-thumb.active {
  border: 2px solid #0284c7;
}

@media (max-width: 640px) {
  .bite-gallery-body {
    flex-direction: column-reverse;
  }
  .stock-modal-media-nav.spm-vertical-nav {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  .spm-vertical-nav .spm-thumb-btn {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
  }
}

/* Columna Derecha: Informacion de Producto */
.stock-modal-info-col {
  padding: 2.25rem 2.25rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.stock-modal-info-col button,
.stock-modal-info-col select,
.stock-modal-info-col input,
.stock-modal-info-col option {
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
}

.spm-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-category {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.22rem 0.6rem;
  border-radius: 0 !important;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-stock-status .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.spm-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem 0;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-price-rating-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-price-box {
  display: flex;
  flex-direction: column;
}

.spm-price-curr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spm-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-curr-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 2px;
}

.spm-curr-btn {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  font-family: inherit;
}

.spm-curr-btn:hover {
  color: #0f172a;
}

.spm-curr-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.spm-tax-note {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-rating-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.spm-rating-val {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-desc {
  font-size: 0.82rem;
  line-height: 1.58;
  color: #475569;
  margin: 0 0 1.15rem 0;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

/* Desplegable de Especificaciones Tecnicas */
.spm-expandable-specs {
  border: 1px solid #e5e7eb;
  border-radius: 0 !important;
  background: #fbfbfb;
  margin-bottom: 1.15rem;
  overflow: hidden;
  transition: all 0.2s ease;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-toggle-specs-btn {
  width: 100%;
  padding: 0.68rem 0.95rem;
  background: transparent;
  border: none;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  letter-spacing: 0.02em;
}

.spm-toggle-specs-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.spm-expandable-specs.open .spm-toggle-specs-btn svg {
  transform: rotate(180deg);
}

.spm-specs-panel {
  display: none;
  padding: 0 0.95rem 0.85rem;
  border-top: 1px solid #e5e7eb;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-expandable-specs.open .spm-specs-panel {
  display: block;
}

.spm-specs-list {
  list-style: none;
  padding: 0.65rem 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spm-specs-list li {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #4b5563;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-specs-list li strong {
  color: #111827;
  font-weight: 700;
}

/* Boton de Descarga de Ficha Tecnica en el Modal */
.spm-pdf-download-wrap {
  margin-bottom: 1.15rem;
}

.spm-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.72rem 1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0 !important;
  color: #0f172a;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.spm-pdf-btn svg {
  width: 16px;
  height: 16px;
  stroke: #dc2626;
  flex-shrink: 0;
}

.spm-pdf-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.spm-pdf-btn:hover svg {
  stroke: #ffffff;
}

/* Badge Ficha Tecnica en Tarjeta de Catalogo */
.bite-card-pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 0.22rem 0.55rem;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.18s ease;
  font-family: 'Montserrat', var(--font-main), sans-serif;
  letter-spacing: 0.02em;
}

.bite-card-pdf-badge svg {
  width: 12px;
  height: 12px;
  stroke: #dc2626;
}

.bite-card-pdf-badge:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.bite-card-pdf-badge:hover svg {
  stroke: #ffffff;
}

/* Selector Dropdown de Variante */
.spm-selector-block {
  margin-bottom: 1.15rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-select-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-select-wrap {
  position: relative;
  width: 100%;
}

.spm-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0 !important;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  transition: border-color 0.2s ease;
  letter-spacing: 0.01em;
}

.spm-select option {
  font-family: 'Montserrat', var(--font-main), sans-serif;
  font-size: 0.75rem;
}

.spm-select:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.spm-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  pointer-events: none;
  color: #6b7280;
}

/* Selector de Acabados / Swatches */
.spm-finish-selector {
  margin-bottom: 1.15rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-finish-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.70rem;
  margin-bottom: 0.45rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-finish-label {
  color: #6b7280;
  font-weight: 500;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-finish-val {
  color: #111827;
  font-weight: 700;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-finish-swatches {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.spm-swatch {
  width: 26px;
  height: 26px;
  border-radius: 0 !important;
  border: 1px solid #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.spm-swatch:hover {
  transform: scale(1.1);
}

.spm-swatch.active {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

/* Selector de Cantidad & Subtotal */
.spm-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fbfbfb;
  border: 1px solid #e5e7eb;
  border-radius: 0 !important;
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.15rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-qty-block {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-qty-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0 !important;
  overflow: hidden;
}

.spm-qty-btn {
  width: 28px;
  height: 28px;
  background: #f3f4f6;
  border: none;
  border-radius: 0 !important;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
}

.spm-qty-btn:hover {
  background: #e5e7eb;
}

.spm-qty-input {
  width: 38px;
  height: 28px;
  border: none;
  border-radius: 0 !important;
  background: #ffffff;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #111827;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  -moz-appearance: textfield;
}

.spm-qty-input::-webkit-outer-spin-button,
.spm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.spm-subtotal-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-subtotal-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-subtotal-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

/* Accion Principal Sonos & E-commerce */
.spm-action-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-action-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.spm-btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #111827;
  border: 1px solid #111827;
  padding: 0.78rem 1rem;
  border-radius: 0 !important;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.spm-btn-add-cart svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.spm-btn-add-cart:hover {
  background: #111827;
  color: #ffffff;
}

.spm-btn-buy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #111827;
  color: #ffffff;
  padding: 0.78rem 1rem;
  border-radius: 0 !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  transition: background 0.18s ease;
}

.spm-btn-buy:hover {
  background: #000000;
  color: #ffffff;
}

.spm-btn-pay-mp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #009ee3;
  color: #ffffff;
  border: none;
  padding: 0.78rem 1rem;
  border-radius: 0 !important;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Montserrat', var(--font-main), sans-serif !important;
  transition: background 0.18s ease;
}

.spm-btn-pay-mp:hover {
  background: #0082ba;
  color: #ffffff;
}

/* Opciones de Pago */
.spm-payment-options {
  background: #fbfbfb;
  border: 1px dashed #d1d5db;
  border-radius: 0 !important;
  padding: 0.65rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-pay-title {
  font-size: 0.64rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-pay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.spm-pay-pill {
  font-size: 0.65rem;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.22rem 0.5rem;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

.spm-guarantee-note {
  font-size: 0.66rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
  margin: 0;
  font-family: 'Montserrat', var(--font-main), sans-serif;
}

/* ==========================================================================
   8.7 BOTON Y CANASTA DE COMPRAS (CART DRAWER & BADGE)
   ========================================================================== */

/* Boton Carrito en Barra de Navegacion */
.btn-cart-nav {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cart-nav svg {
  width: 18px;
  height: 18px;
}

.btn-cart-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

.cart-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
  transition: transform 0.2s ease;
}

.cart-nav-badge.bounce {
  animation: badgeBounce 0.4s ease;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

/* Overlay de la Canasta */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10010;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

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

/* Drawer Lateral de Canasta */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 10020;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-drawer-icon {
  width: 22px;
  height: 22px;
  stroke: #0284c7;
}

.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-drawer-close svg {
  width: 16px;
  height: 16px;
}

.cart-drawer-close:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Cuerpo de la Canasta */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.cart-empty-msg {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.cart-empty-sub {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 260px;
}

/* Lista de Articulos en la Canasta */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  position: relative;
  transition: border-color 0.2s ease;
}

.cart-item:hover {
  border-color: #cbd5e1;
}

.cart-item-media {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-media svg {
  width: 28px;
  height: 28px;
  stroke: #64748b;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0284c7;
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.cart-item-qty-btn {
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.cart-item-qty-val {
  width: 28px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.cart-item-remove:hover {
  color: #ef4444;
}

.cart-item-remove svg {
  width: 14px;
  height: 14px;
}

/* Pie de la Canasta */
.cart-drawer-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.cart-summary-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-summary-row.shipping-row {
  margin-top: -0.25rem;
}

.cart-shipping-note {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 600;
  text-align: right;
  max-width: 200px;
}

.cart-payment-methods {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}

.cpm-title {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.cpm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cpm-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #1e293b;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
}

.cart-btn-checkout svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.cart-btn-checkout:hover {
  background: #1eb857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.cart-btn-clear {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  align-self: center;
  font-family: inherit;
  transition: color 0.15s ease;
}

.cart-btn-clear:hover {
  color: #ef4444;
}

.cart-secure-text {
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
  margin: 0;
}

/* Responsivo para el Modal y Cart */
@media (max-width: 900px) {
  .stock-modal-card {
    max-height: 94vh;
  }
  .stock-modal-layout {
    grid-template-columns: 1fr;
  }
  .stock-modal-gallery-col {
    padding: 2.25rem 1.5rem 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
  .stock-modal-stage {
    min-height: 240px;
  }
  .stock-modal-ph {
    height: 220px;
  }
  .stock-modal-info-col {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
  }
  .spm-title {
    font-size: 1.5rem;
  }
  .spm-action-buttons-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .stock-detail-modal {
    padding: 0.5rem;
  }
  .stock-modal-card {
    border-radius: 12px !important;
    max-height: 96vh;
  }
  .stock-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
  }
  .stock-modal-gallery-col {
    padding: 1.25rem 0.85rem 1rem 0.85rem;
  }
  .stock-modal-info-col {
    padding: 1.1rem 0.85rem 1.6rem 0.85rem;
  }
  .spm-title {
    font-size: 1.22rem;
  }
  .spm-price-curr-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .spm-currency-toggle {
    margin-left: 0;
  }
  .spm-action-buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .spm-qty-subtotal-row {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ==========================================================================
   9. SECCION CONTACTO (FONDO BLANCO & VIDEO LOGO 3D EN EL FONDO)
   ========================================================================== */

.contacto-section {
  position: relative;
  z-index: 30;
  background-color: #ffffff;
  color: #0f172a;
  padding: 6.5rem 2rem 7.5rem;
  overflow: hidden;
  scroll-margin-top: 76px;
}

.contacto-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.contacto-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: contrast(1.12) saturate(1.15);
}

.contacto-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.48) 60%, rgba(255, 255, 255, 0.82) 100%);
}

.contacto-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

.contacto-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.contacto-pre-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.09);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.contacto-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1rem;
}

.contacto-title span {
  color: #334155;
  font-weight: 500;
}

.contacto-subtitle {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #475569;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* Tarjetas de contacto izquierda */
.contacto-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacto-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contacto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
}

.contacto-card-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.wa-icon-wrap {
  background: rgba(37, 211, 102, 0.12);
  color: #16a34a;
}

.mail-icon-wrap {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.contacto-card-info {
  flex: 1;
}

.contacto-card-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.contacto-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.contacto-card-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 0.75rem;
}

.contacto-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  transition: color 0.2s ease, gap 0.2s ease;
}

.contacto-link-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.contacto-link-btn:hover {
  color: #2563eb;
  gap: 0.7rem;
}

.contacto-link-btn:hover svg {
  transform: translateX(2px);
}

.contacto-link-btn.wa-link:hover {
  color: #16a34a;
}

/* Tarjeta metricas */
.contacto-card.metrics-card {
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(15, 23, 42, 0.14);
}

.contacto-metrics-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  text-align: center;
}

.contacto-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.metric-lbl {
  font-size: 0.7rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Columna Formulario */
.contacto-form-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.form-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #64748b;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

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

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1e293b;
}

.contacto-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contacto-input:focus {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.contacto-select {
  cursor: pointer;
  appearance: auto;
}

.contacto-textarea {
  resize: vertical;
  min-height: 95px;
}

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

.btn-contacto-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-contacto-submit svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.btn-contacto-submit:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.btn-contacto-submit:hover svg {
  transform: translateX(3px);
}

.form-privacy-note {
  font-size: 0.72rem;
  color: #64748b;
  font-style: italic;
}

/* Responsivo para la seccion de contacto */
@media (max-width: 960px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .contacto-section {
    padding: 4rem 1.25rem 5rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .contacto-form-card {
    padding: 1.5rem 1.25rem;
  }
  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-contacto-submit {
    justify-content: center;
  }
}

/* Modulo Google Maps en Contacto */
.contacto-map-wrapper {
  margin-top: 2.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
}

.contacto-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}

.contacto-map-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contacto-map-pin-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-map-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.contacto-map-address {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.contacto-map-desc {
  font-size: 0.8rem;
  color: #475569;
  margin: 0.2rem 0 0 0;
}

.contacto-map-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.contacto-map-cta-btn:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.contacto-map-frame-box {
  width: 100%;
  height: 380px;
  position: relative;
  background: #e2e8f0;
}

.contacto-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-icon-wrap {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.footer-address {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.footer-map-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-map-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contacto-map-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .contacto-map-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .contacto-map-frame-box {
    height: 300px;
  }
}

/* ==========================================================================
   10. FOOTER GLOBAL
   ========================================================================= */

.site-footer {
  position: relative;
  z-index: 30;
  background: #1a1d27;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2.2rem 2rem 1.8rem;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  margin: 0;
}

/* Footer Social Media */
.footer-social-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-social-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.footer-social-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.social-btn svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.social-btn:hover svg {
  transform: scale(1.12);
}

.social-btn.social-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: rgba(220, 39, 67, 0.6);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
}

.social-btn.social-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
}

.social-btn.social-li:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.35);
}

.social-btn.social-tt:hover {
  background: #010101;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: -2px -2px 10px rgba(0, 242, 234, 0.5), 2px 2px 10px rgba(255, 0, 80, 0.5);
}

/* Responsive Puzzle */
@media (max-width: 768px) {
  .servicios-puzzle {
    padding: 3.5rem 0 2.5rem 0;
  }

  .servicios-puzzle-inner {
    padding: 0 1.5rem;
  }

  .servicios-puzzle-title {
    font-size: 1.8rem;
  }

  .puzzle-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .piece-img {
    height: 200px;
  }

  /* Reducir distancia de vuelo en movil */
  .piece-tl { transform: translate(-60px, -40px) rotate(-5deg) scale(0.9); }
  .piece-tr { transform: translate(60px, -40px) rotate(5deg) scale(0.9); }
  .piece-bl { transform: translate(-60px, 40px) rotate(5deg) scale(0.9); }
  .piece-br { transform: translate(60px, 40px) rotate(-5deg) scale(0.9); }

  .hologram-viewer {
    aspect-ratio: auto;
    max-height: 100vh;
  }

  .hologram-corner {
    width: 20px;
    height: 20px;
  }
  .hologram-corner.tl { top: 14px; left: 14px; }
  .hologram-corner.tr { top: 14px; right: 14px; }
  .hologram-corner.bl { bottom: 14px; left: 14px; }
  .hologram-corner.br { bottom: 14px; right: 14px; }

  .hologram-hud {
    font-size: 0.62rem;
    padding: 5px 12px;
    gap: 6px;
    bottom: 14px;
  }

  .nosotros-slider-indicator {
    bottom: 14px;
    right: 18px;
    opacity: 0.45;
  }

  .slider-progress-bar {
    width: 50px;
  }
}

/* ==========================================================================
   BOTON FLOTANTE DE WHATSAPP (ESTILO INDUSTRIAL & ACCION RAPIDA)
   ========================================================================== */

.wa-floating-btn-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9980;
  display: flex;
  align-items: center;
  user-select: none;
}

.wa-floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(18, 140, 126, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: wa-pulse 2.8s infinite ease-out;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65), 0 10px 25px rgba(18, 140, 126, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 25px rgba(18, 140, 126, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(18, 140, 126, 0.45);
  }
}

.wa-floating-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 35px rgba(18, 140, 126, 0.6), 0 0 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.wa-floating-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.wa-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wa-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.wa-floating-btn:hover .wa-svg {
  transform: rotate(8deg) scale(1.06);
}

/* Tooltip informativo flotante */
.wa-tooltip {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 14, 22, 0.90);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(37, 211, 102, 0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(10, 14, 22, 0.90);
  border-right: 1px solid rgba(37, 211, 102, 0.4);
  border-top: 1px solid rgba(37, 211, 102, 0.4);
}

.wa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
  animation: wa-dot-pulse 1.8s infinite ease-in-out;
}

@keyframes wa-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.wa-tooltip-text {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  color: #e2eaf5;
  letter-spacing: 0.02em;
}

.wa-tooltip-text strong {
  color: #25D366;
  font-weight: 700;
}

/* Mostrar tooltip al pasar el cursor */
.wa-floating-btn-wrap:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Adaptacion responsive en moviles */
@media (max-width: 768px) {
  .wa-floating-btn-wrap {
    bottom: 20px;
    right: 18px;
  }
  .wa-floating-btn {
    width: 54px;
    height: 54px;
  }
  .wa-svg {
    width: 29px;
    height: 29px;
  }
  .wa-tooltip {
    display: none;
  }
}

/* ==========================================================================
   BOTON FLOTANTE VOLVER ARRIBA (SCROLL TO TOP)
   ========================================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 98px;
  right: 34px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9975;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.btn-scroll-top:hover {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #38bdf8;
}

.btn-scroll-top:hover svg {
  transform: translateY(-2px);
}

.btn-scroll-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 84px;
    right: 23px;
    width: 44px;
    height: 44px;
  }
  .btn-scroll-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .wa-floating-btn-wrap {
    bottom: 16px;
    right: 14px;
  }
  .wa-floating-btn {
    width: 46px;
    height: 46px;
  }
  .wa-svg {
    width: 25px;
    height: 25px;
  }
  .btn-scroll-top {
    bottom: 70px;
    right: 17px;

/* ==========================================================================
   8.8 BOTONES MERCADO PAGO Y MODAL DE METODOS DE PAGO (HOSTINGER)
   ========================================================================== */

/* Boton de Pago Mercado Pago en Canasta */
.cart-btn-pay-mp {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #009ee3;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 158, 227, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.cart-btn-pay-mp:hover {
  background: #0082ba;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 158, 227, 0.45);
}

.cart-btn-pay-mp .mp-methods-hint {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
  text-transform: uppercase;
}

/* Modal de Pasarela de Pagos */
.mpm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mpm-backdrop.active {
  display: flex;
}

.mpm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mpm-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: mpmFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', var(--font-main), sans-serif;
  color: #0f172a;
}

@keyframes mpmFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mpm-header {
  background: #0f172a;
  color: #ffffff;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mpm-header-title-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mpm-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 158, 227, 0.18);
  border: 1px solid rgba(0, 158, 227, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mpm-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.mpm-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.mpm-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.mpm-close-btn:hover {
  color: #ffffff;
}

.mpm-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Resumen del Pedido */
.mpm-order-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.mpm-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #cbd5e1;
}

.mpm-total-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.mpm-summary-items {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 120px;
  overflow-y: auto;
}

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

.mpm-order-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mpm-order-name {
  font-weight: 700;
  color: #1e293b;
}

.mpm-order-sub {
  font-size: 0.7rem;
  color: #64748b;
}

.mpm-order-qty {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.mpm-order-price {
  font-weight: 700;
  color: #0f172a;
}

/* Pestanas */
.mpm-tabs {
  display: flex;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
}

.mpm-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.mpm-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mpm-tab-content {
  display: none;
}

.mpm-tab-content.active {
  display: block;
}

/* Mercado Pago Tab */
.mpm-mp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mpm-mp-badge-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mpm-badge-rec {
  background: #009ee3;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.mpm-badge-inst {
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
}

.mpm-mp-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.mpm-gateways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mpm-gw-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.74rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mpm-btn-mercadopago {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #009ee3;
  color: #ffffff;
  padding: 0.95rem;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 158, 227, 0.3);
}

.mpm-btn-mercadopago:hover {
  background: #0082ba;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 158, 227, 0.4);
}

.mpm-btn-mercadopago:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mpm-footnote {
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  margin: 0;
}

.mpm-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: mpmSpin 0.7s linear infinite;
}

@keyframes mpmSpin {
  to { transform: rotate(360deg); }
}

/* Banco Tab */
.mpm-bank-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mpm-bank-notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  color: #065f46;
}

.mpm-bank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mpm-bank-k {
  color: #64748b;
  font-weight: 600;
}

.mpm-bank-v {
  font-weight: 700;
  color: #0f172a;
}

.mpm-bank-v.mpm-highlight {
  font-family: monospace;
  font-size: 0.95rem;
  color: #0284c7;
}

.mpm-copy-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mpm-copy-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mpm-copy-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.mpm-copy-btn.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.mpm-btn-whatsapp-proof {
  margin-top: 0.4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 10px;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mpm-btn-whatsapp-proof:hover {
  background: #1eb857;
  transform: translateY(-1px);
}

/* WhatsApp Direct Tab */
.mpm-wa-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.mpm-wa-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.mpm-btn-wa-direct {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.95rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mpm-btn-wa-direct:hover {
  background: #1eb857;
}

@media (max-width: 640px) {
  .mpm-card {
    max-height: 95vh;
    border-radius: 12px;
  }
  .mpm-gateways-grid {
    grid-template-columns: 1fr;
  }
  .mpm-tabs {
    flex-direction: column;
  }
  .mpm-tab-btn {
    padding: 0.5rem;
  }
}




