/* ==========================================================================
   SOLMINERA IMPORTACIONES · Rediseño Inmersivo 3D (SimCodec)
   Paleta: Amarillo Maquinaria #FEBE00, Grafito #0F1318 / #161B22, Blanco #F0F6FC
   ========================================================================== */

/* --- Fuentes Locales (woff2) --- */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-tight-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-tight-800-normal.woff2') format('woff2');
}

/* --- Variables de Diseño --- */
:root {
  --bg-deep: #0D1117;
  --bg-surface: #161B22;
  --bg-card: #1B212A;
  --bg-card-hover: #222A35;
  --border-subtle: #2A3340;
  --border-active: #FEBE00;
  
  --brand-yellow: #FEBE00;
  --brand-yellow-hover: #E5AB00;
  --brand-yellow-soft: rgba(254, 190, 0, 0.12);
  --brand-blue: #003E8E;
  --brand-green: #00832B;
  
  --text-main: #F0F6FC;
  --text-muted: #8B949E;
  --text-subtle: #6E7681;
  --text-dark: #0D1117;
  
  --font-display: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --header-offset: 120px;
  --max-w: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- View Transitions API (Nativa) --- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.35s cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
}
::view-transition-new(root) {
  animation: 0.35s cubic-bezier(0.4, 0, 0.2, 1) both fade-in;
}
@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-deep);
}

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

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* --- Cursor Magnético (Escritorio) --- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--brand-yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
  }
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(254, 190, 0, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
  }
  body.cursor-active .custom-cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--brand-yellow);
    background: rgba(254, 190, 0, 0.08);
  }
}

/* --- Transición Nube de Polvo de Obra --- */
.dust-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dust-backdrop {
  position: absolute;
  inset: 0;
  background: #0F1318;
  opacity: 0;
}
.dust-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.dust-cloud--1 {
  width: 90vw;
  height: 90vw;
  background: radial-gradient(circle, rgba(254, 190, 0, 0.28) 0%, rgba(141, 83, 45, 0.35) 60%, transparent 80%);
  top: -10vw;
  left: -20vw;
}
.dust-cloud--2 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(141, 83, 45, 0.4) 0%, rgba(30, 36, 43, 0.6) 60%, transparent 80%);
  bottom: -20vw;
  right: -10vw;
}
.dust-cloud--3 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(254, 190, 0, 0.2) 0%, transparent 70%);
  top: 30vh;
  left: 20vw;
}
.dust-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161B22;
  border: 1px solid var(--brand-yellow);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  color: var(--brand-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* --- Lienzo WebGL 3D (Fondo en index.html) --- */
#webgl-canvas {
  background: radial-gradient(ellipse 75% 70% at 62% 48%, var(--sky-a, #34526B) 0%, var(--sky-b, #0E141B) 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Fallback si WebGL falla */
.hero-fallback-visual {
  display: none;
  position: absolute;
  inset: 0;
  background: url('assets/img/banner-campo.webp') center/cover no-repeat;
  filter: brightness(0.6);
  z-index: 1;
}
body.no-webgl .hero-fallback-visual {
  display: block;
}

/* --- Encabezado y Barra de Aviso --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Barra de aviso SimCodec y selector de modelos */
.demo-topbar {
  background: #090C10;
  border-bottom: 1px solid #1C222B;
  font-size: 0.76rem;
  padding: 6px 16px;
  color: var(--text-muted);
}
.demo-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-corto {
  display: none;
}
.demo-topbar-link {
  color: var(--brand-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.demo-topbar-link:hover {
  text-decoration: underline;
}
.demo-models {
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-models__label {
  color: var(--text-subtle);
}
.demo-model-link {
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: #141920;
  border: 1px solid #232B36;
  font-size: 0.72rem;
  transition: all var(--transition-fast);
}
.demo-model-link:hover {
  color: var(--text-main);
  border-color: var(--brand-yellow);
}
.demo-model-link.active {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border-color: var(--brand-yellow);
  font-weight: 700;
}

/* Cabecera principal */
.header-main {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-badge {
  font-size: 0.65rem;
  color: var(--brand-yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Navegación de escritorio */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link:hover {
  color: var(--text-main);
}
.nav-link.active {
  color: var(--brand-yellow);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-yellow);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Botones genéricos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-yellow);
  color: var(--text-dark);
}
.btn-primary:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(254, 190, 0, 0.35);
}
.btn-secondary {
  background: #1C232C;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: #252F3C;
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Botón hamburguesa móvil */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #141920;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Cajón de navegación móvil */
.mobile-drawer {
  position: fixed;
  top: 98px;
  left: 0;
  width: 100%;
  height: calc(100vh - 98px);
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 490;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-link.active {
  color: var(--brand-yellow);
}
.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Hotspots 3D Proyectados en index.html --- */
.hotspots-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.hotspot-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hotspot-marker.ring-only .hotspot-label {
  display: none;
}
.hotspot-marker.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
.hotspot-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(254, 190, 0, 0.25);
  border: 2px solid var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(254, 190, 0, 0.6);
  position: relative;
}
.hotspot-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-yellow);
  opacity: 0.8;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hotspot-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-yellow);
  border-radius: 50%;
}
.hotspot-label {
  background: rgba(16, 21, 28, 0.92);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-yellow);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
}
.hotspot-marker:hover .hotspot-label {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

/* --- Modal Flyout de Hotspots 3D --- */
.hotspot-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}
.hotspot-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.modal-card {
  background: #161B22;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-yellow);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}
.hotspot-modal.active .modal-card {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #21262D;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--brand-yellow);
  color: var(--text-dark);
}
.modal-category {
  font-size: 0.75rem;
  color: var(--brand-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 12px;
}
.modal-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.modal-models-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.modal-models-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.modelo-tag {
  background: #212833;
  color: #E2E8F0;
  border: 1px solid #2D3748;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Scrollytelling en index.html --- */
.scrolly-container {
  position: relative;
  z-index: 10;
  pointer-events: none;
}
.scrolly-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
}
.scrolly-card {
  pointer-events: auto;
  max-width: 440px;
  background: rgba(16, 21, 28, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(60, 72, 88, 0.7);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.scrolly-card--hero {
  max-width: 460px;
}
.scrolly-card--right {
  margin-left: auto;
}
.scrolly-card--center {
  margin: 0 auto;
  text-align: center;
}

.scrolly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-yellow-soft);
  color: var(--brand-yellow);
  border: 1px solid rgba(254, 190, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.scrolly-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}
.scrolly-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.scrolly-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Indicador de scroll */
.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 24px;
}
.scroll-indicator-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--text-subtle);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator-mouse::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 5px;
  background: var(--brand-yellow);
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s infinite;
}
@keyframes scroll-wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* Barra de control 3D fija */
.diorama-ctrl-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: auto;
  background: rgba(22, 27, 34, 0.92);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.diorama-ctrl-bar.is-hidden {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}
.diorama-ctrl-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Páginas Internas: Contenedor Principal --- */
.page-wrapper {
  position: relative;
  z-index: 10;
  padding-top: var(--header-offset);
  min-height: 100vh;
}
.page-hero {
  padding: 48px 24px 32px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-yellow-soft);
  color: var(--brand-yellow);
  border: 1px solid rgba(254, 190, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}
.page-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contenedor del estudio 3D en páginas internas */
.studio-3d-section {
  scroll-margin-top: 130px;
  max-width: var(--max-w);
  margin: 0 auto 64px;
  padding: 0 20px;
}
.studio-3d-box {
  background: #141920;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}
.studio-canvas-wrap {
  width: 100%;
  height: clamp(380px, 55vh, 520px);
  position: relative;
  background: radial-gradient(circle at center, #1E2733 0%, #0F1318 100%);
}
.studio-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.studio-canvas-wrap canvas:active {
  cursor: grabbing;
}
.studio-toolbar {
  padding: 14px 20px;
  background: #181E26;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.studio-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-toggle-btn {
  background: #222B36;
  color: var(--text-muted);
  border: 1px solid #303C4B;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.studio-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--brand-yellow);
}
.studio-toggle-btn.active {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border-color: var(--brand-yellow);
}
.studio-hint {
  font-size: 0.78rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grilla de productos / fichas de maquinaria */
.catalog-section {
  max-width: var(--max-w);
  margin: 0 auto 80px;
  padding: 0 20px;
}
.section-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-yellow);
}
.product-image-wrap {
  background: #141920;
  padding: 24px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.product-image-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}
.product-badge-brand {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-yellow);
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-model {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.product-type {
  font-size: 0.8rem;
  color: var(--brand-yellow);
  font-weight: 600;
  margin-bottom: 12px;
}
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  background: #141920;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}
.spec-item {
  display: flex;
  flex-direction: column;
}
.spec-label {
  color: var(--text-subtle);
}
.spec-val {
  color: var(--text-main);
  font-weight: 600;
}
.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grillas de repuestos y beneficios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-yellow-soft);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.benefit-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.repuestos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.repuesto-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.repuesto-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.repuesto-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
.repuesto-cat-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.repuesto-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.repuesto-pill {
  background: #141920;
  border: 1px solid #283340;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: #CAD5E2;
}

/* Sedes y contacto */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.sede-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sede-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.sede-badge {
  font-size: 0.72rem;
  color: var(--brand-yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.sede-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sede-info-line svg {
  flex-shrink: 0;
  color: var(--brand-yellow);
  margin-top: 2px;
}

/* Métricas numéricas */
.metrics-strip {
  background: #141920;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 20px;
  margin: 60px 0;
}
.metrics-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.metric-card {
  text-align: center;
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--brand-yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pie de página */
.site-footer {
  background: #090C10;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 20px 32px;
  position: relative;
  z-index: 10;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 340px;
  margin-top: 14px;
  line-height: 1.6;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-link {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-nav-link:hover {
  color: var(--brand-yellow);
}
.footer-contact-item {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-contact-item strong {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid #1C222B;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-subtle);
}
.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-models {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-models-title {
  color: var(--text-muted);
  font-weight: 600;
}
.footer-model-link {
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #141920;
  border: 1px solid #232B36;
  font-size: 0.74rem;
  transition: all var(--transition-fast);
}
.footer-model-link:hover {
  color: var(--text-main);
  border-color: var(--brand-yellow);
}
.footer-model-link.active {
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-weight: 700;
  border-color: var(--brand-yellow);
}

/* Botón flotante WhatsApp */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.floating-wa-btn:hover {
  transform: scale(1.08);
  background: #1EBE5D;
}

/* --- Media Queries y Adaptabilidad Responsive --- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .demo-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .scrolly-section {
    align-items: flex-end;
    padding: 130px 12px 84px;
  }
  .scrolly-card,
  .scrolly-card--hero {
    max-width: 100%;
    padding: 20px 18px;
    background: rgba(16, 21, 28, 0.86);
  }
  .scrolly-card .scrolly-badge {
    margin-bottom: 10px;
    font-size: 0.66rem;
  }
  .scrolly-card .scrolly-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .scrolly-card .scrolly-text {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .scrolly-card .scroll-indicator {
    display: none;
  }
  .scrolly-card .btn {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
  .diorama-ctrl-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .demo-largo {
    display: none;
  }
  .demo-corto {
    display: inline;
  }
  .hotspots-overlay {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 135px;
  }
  .brand-title {
    display: none;
  }
  .header-actions .btn-sm {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
