/* ==========================================================================
   CYDAMDO — Modern Dual-Theme Design System (Light "Blanco" + Dark "Oscuro")
   Comercializadora y Distribuidora AMDO S.A. de C.V.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ---------- 1. THEME TOKENS: LIGHT (DEFAULT "EN BLANCO") ---------- */
:root, [data-theme="light"] {
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-subtle: #EDF2F7;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-card: rgba(255, 255, 255, 0.88);
  --bg-footer: #0A0E17;
  
  --text-pure: #0F172A;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-glass-hover: rgba(15, 23, 42, 0.18);
  --border-active: #E52534;
  
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  
  --hero-mesh-glow: radial-gradient(circle at 50% 0%, rgba(229, 37, 52, 0.06) 0%, transparent 60%);
  --stage-glow: rgba(229, 37, 52, 0.12);
  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;
}

/* ---------- 2. THEME TOKENS: DARK ("MODO OSCURO") ---------- */
[data-theme="dark"] {
  --bg-body: #080C14;
  --bg-surface: #0E1524;
  --bg-card: #131D31;
  --bg-card-hover: #1A2742;
  --bg-subtle: #111A2C;
  --bg-glass: rgba(8, 12, 20, 0.9);
  --bg-glass-card: rgba(19, 29, 49, 0.7);
  --bg-footer: #05080E;
  
  --text-pure: #FFFFFF;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(229, 37, 52, 0.5);
  
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);
  
  --hero-mesh-glow: radial-gradient(circle at 50% 0%, rgba(229, 37, 52, 0.14) 0%, transparent 60%);
  --stage-glow: rgba(229, 37, 52, 0.3);
  --input-bg: rgba(0, 0, 0, 0.3);
  --input-border: rgba(255, 255, 255, 0.08);
}

/* Brand & Functional Accents */
:root {
  --red-tech: #E52534;
  --red-light: #FF4757;
  --red-glow: rgba(229, 37, 52, 0.3);
  --blue-tech: #2563EB;
  --cyan-accent: #0EA5E9;
  --whatsapp: #25D366;
  --whatsapp-hover: #1DA851;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --max-width: 1260px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition), color var(--transition);
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

::selection {
  background-color: var(--red-tech);
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 36px);
}

/* ==========================================================================
   HEADER & NAVBAR (FIXED OVERLAP BUG & BULLETPROOF LAYOUT)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.topbar.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .topbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
  width: 100%;
}

.topbar.scrolled .topbar-inner {
  padding-block: 10px;
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Navigation Links (NO WRAP, NO OVERLAP) */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  flex-shrink: 1;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text-pure);
  background: rgba(229, 37, 52, 0.08);
}

.nav-link.active {
  color: var(--red-tech);
  background: rgba(229, 37, 52, 0.12);
}

/* Header Action Controls */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(125, 125, 125, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-pure);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: rgba(229, 37, 52, 0.12);
  border-color: var(--red-tech);
  color: var(--red-tech);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Phone Badge in Header (NO WRAP) */
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(125, 125, 125, 0.06);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.phone-badge:hover {
  border-color: var(--red-tech);
  color: var(--red-tech);
  background: rgba(229, 37, 52, 0.08);
}

.phone-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--red-tech);
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text-pure);
  flex-shrink: 0;
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-tech-primary {
  background: linear-gradient(135deg, var(--red-tech) 0%, #C31E2A 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--red-glow);
}

.btn-tech-primary:hover {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red-tech) 100%);
  box-shadow: 0 6px 24px rgba(229, 37, 52, 0.4);
  transform: translateY(-2px);
}

.btn-tech-outline {
  background: rgba(125, 125, 125, 0.05);
  border-color: var(--border-glass-hover);
  color: var(--text-pure);
}

.btn-tech-outline:hover {
  border-color: var(--red-tech);
  color: var(--red-tech);
  background: rgba(229, 37, 52, 0.06);
  transform: translateY(-2px);
}

.btn-tech-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #1DA851 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-tech-whatsapp:hover {
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-tech-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-tech {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 90px);
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 360px;
  background: var(--hero-mesh-glow);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 37, 52, 0.1);
  border: 1px solid rgba(229, 37, 52, 0.22);
  color: var(--red-tech);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red-tech);
  box-shadow: 0 0 8px var(--red-tech);
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-pure);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--text-pure) 20%, #FF5763 70%, var(--red-tech) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(135deg, #0F172A 20%, #E52534 80%, #991B1B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.16rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-lead strong {
  color: var(--text-pure);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* Hardware Interactive Showcase */
.hardware-stage-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.stage-tabs {
  display: flex;
  gap: 6px;
  background: rgba(125, 125, 125, 0.08);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.stage-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
}

.stage-tab-btn:hover {
  color: var(--text-pure);
}

.stage-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-pure);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stage-tab-btn.active[data-hw="ricoh"] {
  color: var(--red-tech);
  border-bottom: 2px solid var(--red-tech);
}

.stage-tab-btn.active[data-hw="lenovo"] {
  color: #E2232A;
  border-bottom: 2px solid #E2232A;
}

.stage-tab-btn.active[data-hw="dell"] {
  color: var(--blue-tech);
  border-bottom: 2px solid var(--blue-tech);
}

.stage-visual-container {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
}

.stage-ambient-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stage-glow) 0%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
  transition: background var(--transition);
}

.stage-visual-container img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: all 0.22s ease;
}

.stage-meta {
  background: rgba(125, 125, 125, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-glass);
}

.stage-meta-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.stage-meta-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stage-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.82rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.stage-spec-item {
  display: flex;
  flex-direction: column;
}

.stage-spec-item .label {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stage-spec-item .val {
  color: var(--text-main);
  font-weight: 600;
}

/* Metrics Ribbon */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-glass);
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-number .accent {
  color: var(--red-tech);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding-block: clamp(56px, 7vw, 90px);
  position: relative;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 50px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-tech);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   01 / NOSOTROS, MISIÓN & VISIÓN
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.about-narrative p {
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-narrative strong {
  color: var(--text-pure);
}

.about-quote-box {
  background: rgba(229, 37, 52, 0.05);
  border-left: 3px solid var(--red-tech);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: 22px;
  font-size: 1.02rem;
  color: var(--text-pure);
  font-weight: 600;
}

.pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(229, 37, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-tech);
  margin-bottom: 14px;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ==========================================================================
   02 / LOS 6 COMPROMISOS (MODERN 3x2 TECH CARDS)
   ========================================================================== */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.commitment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.commitment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-tech), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.commitment-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.commitment-card:hover::before {
  opacity: 1;
}

.commitment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.commitment-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.commitment-card:hover .commitment-num {
  color: var(--red-tech);
}

.commitment-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(125, 125, 125, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.commitment-card:hover .commitment-icon-wrap {
  background: rgba(229, 37, 52, 0.12);
  color: var(--red-tech);
}

.commitment-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.commitment-card p {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

/* ==========================================================================
   03 / SERVICIOS — MASTER INTERACTIVE DECK
   ========================================================================== */
.services-deck {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: flex-start;
}

.services-list-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-item-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  color: var(--text-muted);
  box-shadow: var(--card-shadow);
}

.service-item-btn:hover {
  color: var(--text-pure);
  border-color: var(--border-glass-hover);
}

.service-item-btn.active {
  color: var(--text-pure);
  border-color: var(--red-tech);
  box-shadow: 0 4px 16px rgba(229, 37, 52, 0.12);
}

.svc-idx {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.service-item-btn.active .svc-idx {
  color: var(--red-tech);
}

.svc-text-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 2px;
}

.svc-text-block span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-display-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 86px;
}

.svc-panel-badge {
  display: inline-block;
  background: rgba(229, 37, 52, 0.1);
  color: var(--red-tech);
  border: 1px solid rgba(229, 37, 52, 0.2);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.svc-panel-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 12px;
}

.svc-panel-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.svc-panel-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
}

.svc-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.svc-feat-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--red-tech);
  flex-shrink: 0;
  margin-top: 2px;
}

.svc-panel-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   04 / MARCAS & HARDWARE VAULTS
   ========================================================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.brand-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.brand-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(125, 125, 125, 0.04);
  height: 70px;
}

.brand-card-header img {
  max-height: 26px;
  width: auto;
  object-fit: contain;
}

.brand-type-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-card-window {
  background: rgba(125, 125, 125, 0.02);
  padding: 20px;
  height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-glass);
}

.brand-card-window img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.brand-card:hover .brand-card-window img {
  transform: scale(1.04);
}

.brand-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.brand-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.brand-card-body p {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

.supplies-bar {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--card-shadow);
}

.supplies-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-pure);
}

.supplies-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplies-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(125, 125, 125, 0.06);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   05 / DIFERENCIADORES
   ========================================================================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.diff-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.diff-badge-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-pure);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-tech);
}

.diff-card p {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* ==========================================================================
   06 / SECTORES & CLIENTES VERIFICADOS
   ========================================================================== */
.sectors-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.sector-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--card-shadow);
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.institution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border-left: 3px solid var(--red-tech);
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--card-shadow);
}

.institution-card strong {
  font-size: 1rem;
  color: var(--text-pure);
}

.institution-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.modern-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--card-shadow);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.modern-table th {
  background: rgba(125, 125, 125, 0.05);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.modern-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.92rem;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table td.col-client {
  font-weight: 700;
  color: var(--text-pure);
  width: 44%;
}

.modern-table td.col-scope {
  color: var(--text-muted);
}

.modern-table td.col-period {
  font-weight: 700;
  color: var(--red-tech);
  white-space: nowrap;
}

/* ==========================================================================
   07 / EQUIPO & SISTEMA DE TICKETS
   ========================================================================== */
.team-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.team-copy p {
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.tickets-process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.tickets-process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red-tech);
}

.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tickets-header span {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--red-tech);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tickets-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
  color: var(--text-main);
}

.tickets-step:last-child {
  border-bottom: none;
}

.tickets-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red-tech);
  font-size: 0.95rem;
}

/* ==========================================================================
   08 / CONTACTO & COTIZADOR
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: flex-start;
}

.channels-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--card-shadow);
}

.channel-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.channel-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.channel-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-tech);
}

.channel-val {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-pure);
}

.channel-val a:hover {
  color: var(--red-tech);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--card-shadow);
}

.contact-form-card h3 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.contact-form-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: all var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red-tech);
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 37, 52, 0.15);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-glass);
  padding-top: clamp(48px, 6vw, 70px);
  color: #94A3B8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}

.footer-brand h4 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand h4 img {
  height: 26px;
  width: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 42ch;
  color: #94A3B8;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #94A3B8;
  font-size: 0.88rem;
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

.footer-legal-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.footer-legal-entry strong {
  color: #FFFFFF;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748B;
}

/* Floating WhatsApp Badge */
.wa-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
}

.wa-float-btn:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

.wa-float-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-glass);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 18px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 1.6rem;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.drawer-link:hover, .drawer-link.active {
  color: var(--text-pure);
  background: rgba(229, 37, 52, 0.1);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & ADVANCED MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1200px) {
  .phone-badge {
    display: none; /* Hide phone button on medium screens to keep nav pristine */
  }
}

@media (max-width: 1024px) {
  /* Switch to clean mobile drawer under 1024px so nav links never crush */
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .commitments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-deck {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-display-panel {
    position: static;
  }
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --max-width: 100%;
  }

  /* Section Padding Optimization for Mobile */
  .section {
    padding-block: clamp(42px, 6vw, 64px);
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
    line-height: 1.22;
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Hero Mobile */
  .hero-tech {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-actions .btn-tech {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .hardware-stage-card {
    padding: 16px;
  }

  .stage-visual-container {
    height: 180px;
    margin-bottom: 14px;
  }

  .stage-visual-container img {
    max-height: 160px;
    max-width: 90%;
  }

  /* Grids Stacked */
  .commitments-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .institutions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .institution-card {
    padding: 16px;
  }

  .inst-logo-wrap {
    width: 68px;
    height: 68px;
    padding: 6px;
  }

  /* Interactive Services on Mobile */
  .service-item-btn {
    padding: 14px;
  }

  .service-display-panel {
    padding: 20px 18px;
  }

  .svc-panel-title {
    font-size: 1.4rem;
  }

  .svc-panel-desc {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .svc-panel-features {
    gap: 10px;
    padding-top: 14px;
    margin-bottom: 18px;
  }

  .svc-feat-item {
    font-size: 0.88rem;
  }

  .svc-panel-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .svc-panel-cta-row .btn-tech {
    width: 100%;
    justify-content: center;
  }

  /* Forms & Inputs (Prevents iOS Zoom Bug by enforcing 16px font) */
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }

  .contact-form-card .btn-tech {
    width: 100%;
    justify-content: center;
  }

  /* Tables */
  .modern-table-container {
    -webkit-overflow-scrolling: touch;
  }

  .modern-table th, .modern-table td {
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .modern-table td.col-client {
    min-width: 160px;
  }

  .modern-table td.col-scope {
    min-width: 180px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Floating WhatsApp Button on Mobile */
  .wa-float-btn {
    bottom: 20px;
    right: 20px;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }

  .wa-float-btn span {
    display: none;
  }

  .wa-float-btn svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    padding-inline: 14px;
  }

  /* Hide long brand subtitle on small phones to protect header layout */
  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stage-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.76rem;
  }

  .stage-tab-btn {
    padding: 7px 6px;
    font-size: 0.8rem;
  }

  .supplies-bar {
    padding: 16px;
  }

  .supplies-title {
    font-size: 0.9rem;
    width: 100%;
  }

  .supplies-tags {
    width: 100%;
  }

  .supplies-tag {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .tickets-process-card {
    padding: 20px 16px;
  }

  .tickets-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 350px) {
  .stage-specs-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   BRAND MEDIA SWITCHER & VIDEO PLAYERS (YOUTUBE EMBED)
   ========================================================================== */
.brand-media-container {
  padding: 16px;
  background: rgba(125, 125, 125, 0.03);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-media-tabs {
  display: flex;
  gap: 6px;
  background: rgba(125, 125, 125, 0.08);
  padding: 3px;
  border-radius: var(--radius-xs);
}

.media-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
}

.media-tab-btn:hover {
  color: var(--text-pure);
}

.media-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-pure);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brand-video-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #05070c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.brand-video-box video,
.brand-video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.brand-photo-box {
  height: 195px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(125, 125, 125, 0.02);
  border-radius: var(--radius-xs);
}

.brand-photo-box img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.brand-media-container.show-photo .brand-video-box {
  display: none;
}

.brand-media-container.show-photo .brand-photo-box {
  display: flex;
}

/* ==========================================================================
   INSTITUTION OFFICIAL LOGOS
   ========================================================================== */
.inst-logo-wrap {
  width: 84px;
  height: 84px;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.inst-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.inst-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inst-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-tech);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.inst-verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-tech);
}


