/* ==========================================================================
   TIPOGRAFÍA LOCAL ZERO-CDN: PLUS JAKARTA SANS (400-800)
   100% Autónoma, Offline, Cero Dependencias de Red
   ========================================================================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   GERMYCODE — SISTEMA DE DISEÑO NATIVO ZERO-DEPENDENCIES
   Conforme al Documento Maestro de Desarrollo Web (TownShop · GermyCode)
   ========================================================================== */

:root {
  /* Paleta Principal Dark Cyberpunk / Business */
  --bg-dark: #07090e;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-surface: #0e1526;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(6, 182, 212, 0.4);

  --accent-cyan: #06b6d4;
  --accent-cyan-light: rgba(6, 182, 212, 0.12);
  --accent-emerald: #10b981;
  --accent-violet: #8b5cf6;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;

  /* Dimensiones y Espaciados */
  --header-h: 64px;
  --bottom-nav-h: 60px;
  --max-w: 1260px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

@media (min-width: 768px) {
  :root {
    --header-h: 82px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Luces Ambientales de Fondo (Zero descarga) */
.glow-bg {
  position: absolute;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  max-width: 100%;
  overflow: hidden;
}
.glow-cyan { top: 5%; left: 0; background: var(--accent-cyan); }
.glow-violet { top: 35%; right: 0; background: var(--accent-violet); }
.glow-emerald { top: 75%; left: 0; background: var(--accent-emerald); }

/* Tipografía de Identidad Oficial: Plus Jakarta Sans */
h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

.text-gradient {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contenedor estándar */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.5);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--card-border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  background: #20ba5a;
}

/* Cabecera Fija Sticky (Sección 5.1) */
header.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.88);
  border-bottom: 1px solid var(--card-border);
  height: var(--header-h);
  width: 100%;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 12px;
}
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  max-width: 210px;
  transition: height 0.2s ease, max-width 0.2s ease;
}
@media (min-width: 768px) {
  .logo-img {
    height: 54px;
    max-width: 250px;
  }
}
@media (min-width: 1024px) {
  .logo-img {
    height: 60px;
    max-width: 280px;
  }
}

.desktop-nav {
  display: none;
  gap: clamp(6px, 1.1vw, 18px);
  align-items: center;
  margin: 0 4px;
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}
.desktop-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.76rem, 0.9vw, 0.88rem);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.desktop-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Selector de Idioma (Español, Inglés, Chino) */
.lang-selector-box {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--card-border-hover);
}
.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 210px;
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  padding: 8px 0;
  z-index: 999;
  display: none;
}
.lang-dropdown.show {
  display: block;
}
.lang-header {
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.lang-item.active {
  background: rgba(6, 182, 212, 0.18);
  color: var(--accent-cyan);
  font-weight: 700;
}
.lang-check {
  display: none;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 1rem;
  margin-left: auto;
}
.lang-item.active .lang-check {
  display: inline-block !important;
}
.flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* Botón Hamburguesa Móvil */
.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
@media (min-width: 768px) {
  .menu-toggle-btn { display: none; }
}
.menu-toggle-btn:hover {
  color: #fff;
}

/* Menú móvil desplegable */
.mobile-nav-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(7, 9, 14, 0.98);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 20px;
  backdrop-filter: blur(20px);
}
.mobile-nav-menu.show {
  display: block;
}
.mobile-nav-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Hero Section (Sección 5.2) */
.hero {
  position: relative;
  padding: 18px 0 24px;
  text-align: center;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero {
    padding: 50px 0 36px;
  }
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  background: var(--accent-cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.15rem, 5.8vw, 3.8rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.hero p.hero-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .hero p.hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }
}
.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Métricas Core */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
  .metrics-bar { grid-template-columns: repeat(4, 1fr); padding: 28px 32px; }
}
.metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.metric-num span {
  color: var(--accent-emerald);
}
.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Bento Grid (Sección 4 & 5) */
.section-wrap {
  padding: 60px 0 0;
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}
.section-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 8px auto 0;
}
@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.02rem;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 80px;
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
@media (min-width: 768px) {
  .bento-grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
  .col-span-8 { grid-column: span 8; }
  .col-span-4 { grid-column: span 4; }
  .col-span-6 { grid-column: span 6; }
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Demos por Rubro */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}
.demo-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(9, 12, 21, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.demo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.12);
}
.demo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-gradient);
}
.demo-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-cyan-light);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.demo-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.demo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Nota explicativa de Demos y enlace conceptual */
.demos-footnote {
  margin-top: 36px;
  text-align: center;
  padding: 18px 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(8px);
}
.demos-footnote p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.demo-footnote-link {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  display: inline-block;
}
.demo-footnote-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* Cotizador Interactivo en 3 Pasos (Sección 7) */
.estimator-box {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(10, 15, 25, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: 36px auto 80px;
  max-width: 900px;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: 10px;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.option-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.option-card.selected {
  background: var(--accent-cyan-light);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.option-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.option-price {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
}
.checkbox-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.calc-total-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.total-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.total-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.total-amount span {
  color: var(--accent-emerald);
}

/* Tabla Comparativa */
.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  backdrop-filter: blur(12px);
  margin-bottom: 80px;
  box-sizing: border-box;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 520px;
}
th, td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}
th {
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}
tr:last-child td {
  border-bottom: none;
}
.highlight-cell {
  background: rgba(6, 182, 212, 0.08);
  font-weight: 600;
  color: #fff;
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

/* Preguntas Frecuentes */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 80px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item.open {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(6, 182, 212, 0.35);
}
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-left: 14px;
}
.faq-content {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-content {
  display: block;
}

/* Contacto & Ubicación */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 768px) {
  .contact-card { grid-template-columns: 1.2fr 1fr; }
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.contact-detail strong {
  color: #fff;
}
.qr-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.qr-box img {
  width: 140px;
  height: 140px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  margin: 16px auto 10px;
}

/* Navegación Inferior Móvil Tipo App (Sección 5.3) */
.bottom-app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: rgba(7, 9, 14, 0.96);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  z-index: 90;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .bottom-app-nav { display: none !important; }
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  gap: 3px;
  padding: 4px 8px;
  transition: color 0.2s;
}
.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--accent-cyan);
}
.bottom-nav-item.wa-item {
  color: var(--whatsapp);
}

/* Botón Flotante de WhatsApp Sincronizado (Sección 5.4) */
.btn-whatsapp-floating {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: var(--whatsapp);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
@media (min-width: 768px) {
  .btn-whatsapp-floating { display: flex; }
}
.btn-whatsapp-floating:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 36px 0;
  background: #040609;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MODAL LIGHTBOX QR (Agrandar al hacer clic)
   ========================================================================== */
.qr-trigger-wrap {
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 8px;
  border-radius: 18px;
  outline: none;
  transition: transform 0.2s ease;
}
.qr-trigger-wrap:hover .qr-preview-img {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}
.qr-trigger-wrap:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-cyan);
}
.qr-preview-img {
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qr-zoom-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
}
.qr-trigger-wrap:hover .qr-zoom-hint {
  background: var(--accent-cyan);
  color: #040609;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.qr-modal.active {
  opacity: 1;
  visibility: visible;
}
.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 9, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.qr-modal-card {
  position: relative;
  z-index: 2;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(6, 182, 212, 0.2);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.qr-modal.active .qr-modal-card {
  transform: scale(1);
}
.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.qr-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}
.qr-modal-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 16px;
  font-weight: 700;
}
.qr-modal-img-wrap {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  display: inline-block;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.qr-modal-img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 250px;
}
.qr-modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.qr-modal-btn {
  width: 100%;
  padding: 11px;
  font-size: 0.95rem;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS MÓVILES (< 640px y < 380px)
   Previene desbordamientos y solapamientos en pantallas móviles compactas
   ========================================================================== */
@media (max-width: 640px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  header.site-header {
    height: 60px;
  }
  .header-inner {
    gap: 8px;
  }
  .logo-img {
    height: 38px;
    max-width: 150px;
  }
  .header-actions {
    gap: 6px;
  }
  .lang-btn {
    padding: 6px 9px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .menu-toggle-btn {
    padding: 6px;
  }
  .hero {
    padding: 12px 0 16px;
  }
  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.18;
    margin-bottom: 10px;
  }
  .hero p.hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .cta-group {
    gap: 10px;
    margin-bottom: 18px;
  }
  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .metrics-bar {
    margin-top: 22px;
    padding: 16px 14px;
    gap: 12px;
  }
  .metric-num {
    font-size: 1.6rem;
  }
  .metric-label {
    font-size: 0.74rem;
  }
  .section-wrap {
    padding: 32px 0 0;
  }
  .section-title-wrap {
    margin-bottom: 24px;
  }
  .table-container {
    padding: 8px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
  }
  table {
    min-width: 480px;
  }
  th, td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .logo-img {
    height: 34px;
    max-width: 126px;
  }
  .lang-btn {
    padding: 5px 7px;
    font-size: 0.76rem;
    gap: 4px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
}

/* Accesibilidad SEO: Oculto visualmente pero accesible para lectores y rastreadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
