/* ==========================================================================
   TEMPO COMPANY STYLES (Estudio de Software & Productos Digitales)
   Aesthetic DNA: Deep Black #0B0B0D, Tempo Orange #FF551E, Electric Blue #2563EB
   Typography: Space Grotesk (Display / Headings) + Inter (Interface / Body)
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-tempo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(18px, 4.5vw, 56px);
  --section-spacing: clamp(80px, 9vw, 140px);

  --glow-orange: rgba(255, 85, 30, 0.28);
  --glow-blue: rgba(37, 99, 235, 0.24);

  --card-bg: #131317;
  --card-bg-subtle: #18181E;
  --card-border: #23232C;
  --card-border-hover: rgba(255, 85, 30, 0.45);
}

/* ----------------- BASE & TYPOGRAPHY ENHANCEMENTS ----------------- */
body {
  font-family: var(--font-body);
  background-color: var(--brand-black);
  color: var(--brand-white);
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 85, 30, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 40%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 55% at 15% 75%, rgba(255, 85, 30, 0.07), transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-company {
  position: relative;
  padding-block: var(--section-spacing);
}

.section-head-company {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.section-head-company.center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.eyebrow-pill--orange {
  background: rgba(255, 85, 30, 0.12);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 85, 30, 0.32);
}

.eyebrow-pill--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #7CA1F3;
  border: 1px solid rgba(37, 99, 235, 0.32);
}

.eyebrow-pill--green {
  background: rgba(22, 163, 74, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(22, 163, 74, 0.32);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  color: var(--brand-white);
}

.section-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--gray-400);
}

/* ----------------- BUTTONS & CALLS TO ACTION ----------------- */
.btn-tempo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-tempo);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-tempo svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-tempo-primary {
  background: var(--brand-orange);
  color: #0B0B0D;
  border: 1px solid var(--brand-orange);
  box-shadow: 0 4px 20px rgba(255, 85, 30, 0.28);
}

.btn-tempo-primary:hover {
  background: var(--orange-80);
  border-color: var(--orange-80);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 85, 30, 0.42);
}

.btn-tempo-secondary {
  background: rgba(26, 26, 31, 0.7);
  color: var(--brand-white);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}

.btn-tempo-secondary:hover {
  background: rgba(36, 36, 43, 0.9);
  border-color: var(--gray-600);
  transform: translateY(-2px);
  color: var(--brand-white);
}

.btn-tempo-ghost {
  background: transparent;
  color: var(--brand-orange);
  padding: 10px 16px;
  border: 1px solid transparent;
}

.btn-tempo-ghost:hover {
  background: rgba(255, 85, 30, 0.08);
  border-color: rgba(255, 85, 30, 0.2);
}

.btn-tempo-pill {
  border-radius: var(--radius-pill);
}

/* ----------------- HEADER & NAVBAR ----------------- */
.company-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  border-bottom: 1px solid transparent;
}

.company-nav.scrolled {
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.company-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.company-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.company-nav__logo {
  height: 22px;
  width: auto;
}

.company-nav__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: rgba(255, 85, 30, 0.12);
  border: 1px solid rgba(255, 85, 30, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
}

.company-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.company-nav__links a {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.company-nav__links a:hover,
.company-nav__links a.active {
  color: var(--brand-white);
}

.company-nav__links a.active {
  border-bottom: 2px solid var(--brand-orange);
  padding-bottom: 2px;
}

.company-nav__link-flagship {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-orange) !important;
  font-weight: 600 !important;
}

.company-nav__link-flagship::after {
  content: "FLAGSHIP";
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-orange);
  color: #0B0B0D;
}

.company-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--brand-white);
}

.company-nav__toggle .company-nav__icon-close {
  display: none;
}

@media (max-width: 991px) {
  .company-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Remove desktop CTA container completely on mobile so toggle stays on far right */
  .company-nav__actions {
    display: none !important;
  }

  /* Mobile hamburger button pinned to the far right */
  .company-nav__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--brand-white);
    cursor: pointer;
    z-index: 1002;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .company-nav__toggle:hover,
  .company-nav__toggle:active,
  .company-nav__toggle[aria-expanded="true"] {
    background: rgba(255, 85, 30, 0.12);
    border-color: rgba(255, 85, 30, 0.5);
    color: var(--brand-orange);
  }

  .company-nav__toggle svg {
    pointer-events: none;
  }

  .company-nav__toggle[aria-expanded="true"] .company-nav__icon-open {
    display: none;
  }

  .company-nav__toggle[aria-expanded="true"] .company-nav__icon-close {
    display: block;
  }

  .company-nav__links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    width: 100vw;
    box-sizing: border-box;
    background: #0B0B0D;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 0;
    transform: translateY(-160%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 1001;
  }

  .company-nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .company-nav__links a {
    font-size: 16px;
    font-weight: 600;
    color: #E5E7EB;
    padding: 14px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .company-nav__links a:hover,
  .company-nav__links a:active,
  .company-nav__links a.active {
    background: rgba(255, 85, 30, 0.08);
    color: var(--brand-orange);
    border-bottom-color: transparent;
  }

  .company-nav__links a.active {
    font-weight: 700;
  }

  .company-nav__drawer-cta {
    display: block !important;
    margin-top: 14px;
    padding-top: 6px;
  }
}

/* ----------------- HERO SECTION ----------------- */
.company-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(70% 60% at 75% 15%, rgba(255, 85, 30, 0.16) 0%, transparent 65%),
              radial-gradient(50% 50% at 20% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 65%),
              var(--brand-black);
}

.company-hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 98%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 98%);
}

.company-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.company-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.company-hero__title {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--brand-white);
}

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

.company-hero__lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--gray-300);
  max-width: 580px;
}

.company-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
}

.company-hero__tag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.company-hero__tag-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-400);
}

.company-hero__tag-item svg {
  color: var(--brand-orange);
}

/* Hero Interactive Studio Console */
.hero-console {
  position: relative;
  background: #111115;
  border: 1px solid #23232C;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-console__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #18181F;
  border-bottom: 1px solid #24242E;
}

.hero-console__dots {
  display: flex;
  gap: 6px;
}

.hero-console__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #32323C;
}

.hero-console__dots span:nth-child(1) { background: #FF5F56; }
.hero-console__dots span:nth-child(2) { background: #FFBD2E; }
.hero-console__dots span:nth-child(3) { background: #27C93F; }

.hero-console__tabs {
  display: flex;
  gap: 4px;
}

.hero-console__tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--gray-400);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-console__tab.active {
  background: #23232C;
  color: var(--brand-white);
}

.hero-console__tab:hover:not(.active) {
  color: var(--gray-200);
}

.hero-console__body {
  padding: 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-console__panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.hero-console__panel.active {
  display: block;
}

.hero-console__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #141419;
  border-top: 1px solid #23232C;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  gap: 12px;
}

.hero-console__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-300);
  font-weight: 500;
}

.hero-console__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  flex-shrink: 0;
  display: inline-block;
}

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

@media (max-width: 991px) {
  .company-hero__grid {
    grid-template-columns: 1fr;
  }
  .company-hero {
    padding-top: 110px;
  }
}

/* ----------------- ENGINEERING / VALUE STATS BAR ----------------- */
.stats-bar,
.company-stats-bar {
  position: relative;
  z-index: 5;
  padding-block: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.stats-grid,
.company-stats-grid,
.stats-island {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stat-item,
.company-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.stat-item:not(:last-child)::after,
.company-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-number,
.company-stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-orange);
  letter-spacing: -0.02em;
}

.stat-number .accent,
.company-stat-num .accent {
  color: var(--brand-orange);
}

.stat-label,
.company-stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-white);
  margin-top: 4px;
}

.stat-desc,
.company-stat-sub {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .stats-bar,
  .company-stats-bar {
    padding-block: 32px;
  }
  .stats-grid,
  .company-stats-grid,
  .stats-island {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .stat-item:not(:last-child)::after,
  .company-stat-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .company-stats-grid,
  .stats-island {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ----------------- ORGANIC CONTINUOUS FLOW STORY ----------------- */
.flow-story {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 104px);
  position: relative;
}

.flow-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  position: relative;
}

.flow-row--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.flow-row--reverse .flow-row__content {
  order: 2;
}

.flow-row--reverse .flow-row__media {
  order: 1;
}

.flow-row__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-row__tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
}

.flow-row__tag--blue {
  color: #7CA1F3;
}

.flow-row__tag--green {
  color: #4ADE80;
}

.flow-row__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  color: var(--brand-white);
  letter-spacing: -0.02em;
}

.flow-row__desc {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.6;
}

.flow-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.flow-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-300);
  font-weight: 500;
}

.flow-check-item svg {
  color: var(--brand-orange);
  flex-shrink: 0;
}

.flow-row__actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.flow-row__media {
  position: relative;
}

/* Consistent Glass Media Preview Cards */
.flow-media-card {
  background: rgba(18, 18, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.flow-media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 30, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 85, 30, 0.12);
}

.flow-media-card--blue:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(37, 99, 235, 0.14);
}

.flow-media-card--green:hover {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(74, 222, 128, 0.14);
}

.flow-media-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.flow-media-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.flow-media-card__badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.flow-media-card__badge--green {
  background: rgba(74, 222, 128, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.flow-media-card__badge--blue {
  background: rgba(37, 99, 235, 0.18);
  color: #93C5FD;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.flow-media-card__badge--orange {
  background: rgba(255, 85, 30, 0.15);
  color: #FF774B;
  border: 1px solid rgba(255, 85, 30, 0.25);
}

.flow-media-card__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.flow-media-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.flow-media-card__row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.flow-media-card__label {
  color: var(--gray-300);
  font-weight: 500;
}

.flow-media-card__val {
  font-weight: 700;
}

.flow-media-card__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.pulse-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

@media (max-width: 900px) {
  .flow-row,
  .flow-row--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-row--reverse .flow-row__content {
    order: 1;
  }
  .flow-row--reverse .flow-row__media {
    order: 2;
  }
}

/* ----------------- OPEN BORDERLESS PILLARS ----------------- */
.open-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.open-pillar-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.open-pillar-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-orange);
}

.open-pillar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-white);
}

.open-pillar-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .open-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 520px) {
  .open-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ----------------- SERVICES SECTION ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: rgba(18, 18, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s var(--ease-tempo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 30, 0.35);
  background: rgba(22, 22, 29, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.service-card__icon-box,
.service-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 85, 30, 0.12);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 85, 30, 0.25);
  flex-shrink: 0;
}

.service-card__icon-box--blue,
.service-card__icon--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #7CA1F3;
  border-color: rgba(37, 99, 235, 0.25);
}

.service-card__icon-box--green,
.service-card__icon--green {
  background: rgba(74, 222, 128, 0.12);
  color: #4ADE80;
  border-color: rgba(74, 222, 128, 0.25);
}

.service-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.service-tag--orange {
  background: rgba(255, 85, 30, 0.12);
  color: var(--brand-orange);
  border-color: rgba(255, 85, 30, 0.3);
}

.service-tag--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #7CA1F3;
  border-color: rgba(37, 99, 235, 0.3);
}

.service-tag--green {
  background: rgba(74, 222, 128, 0.12);
  color: #4ADE80;
  border-color: rgba(74, 222, 128, 0.3);
}

.service-card__title {
  font-size: 22px;
  line-height: 1.25;
  color: var(--brand-white);
}

.service-card__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
  margin-top: 6px;
  transition: gap 0.2s ease;
}

.service-card__link:hover {
  gap: 12px;
}

.service-card__text {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card__feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-300);
}

.service-card__feature-item svg {
  color: var(--brand-orange);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------- FLAGSHIP SHOWCASE: TEMPO RESTAURANTE ----------------- */
.flagship-box {
  position: relative;
  background: linear-gradient(145deg, #16161C 0%, #0D0D10 100%);
  border: 1px solid rgba(255, 85, 30, 0.25);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 64px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 85, 30, 0.08);
  overflow: hidden;
}

.flagship-box::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 85, 30, 0.18), transparent 70%);
  pointer-events: none;
}

.flagship-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.flagship-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.flagship-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  color: var(--brand-white);
}

.flagship-lead {
  font-size: 17px;
  color: var(--gray-300);
  line-height: 1.6;
}

.flagship-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-block: 8px;
}

.flagship-highlight-card {
  background: rgba(26, 26, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flagship-highlight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flagship-highlight-title svg {
  color: var(--brand-orange);
}

.flagship-highlight-desc {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.45;
}

.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* Device Preview Inside Flagship */
.flagship-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flagship-phone-wrapper {
  position: relative;
  width: min(100%, 310px);
}

/* Phone Mockup Frame */
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 46px;
  background: var(--brand-black);
  border: 2px solid var(--gray-700);
  box-shadow: 0 0 0 1px var(--gray-800), 0 32px 80px rgba(0, 0, 0, 0.7);
}

.phone__screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 36px;
  overflow: hidden;
  background: var(--brand-black);
}

.phone__bar {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 4px 24px 0;
  color: var(--brand-white);
  font: 600 13px/1 var(--font-primary);
}

.phone__bar::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 80px;
  height: 22px;
  margin-left: -40px;
  border-radius: var(--radius-pill);
  background: var(--brand-black);
  box-shadow: 0 0 0 1px var(--gray-800);
}

.phone__battery {
  position: relative;
  width: 22px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
}

.phone__battery::before {
  content: '';
  position: absolute;
  inset: 1.5px 4px 1.5px 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.phone__stack {
  position: relative;
  aspect-ratio: 390 / 844;
  background: var(--brand-black);
}

.phone__stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.phone__stack img:first-child {
  opacity: 1;
  transform: none;
}

.phone__stack img.is-on {
  opacity: 1;
  transform: none;
}

.flagship-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.flagship-dots button {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-700);
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.flagship-dots button.is-on {
  background: var(--brand-orange);
}

.flagship-badge-floating {
  position: absolute;
  background: #1C1C24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.flagship-badge-floating--top {
  top: -20px;
  right: -24px;
}

.flagship-badge-floating--bottom {
  bottom: 24px;
  left: -28px;
}

@media (max-width: 991px) {
  .flagship-grid {
    grid-template-columns: 1fr;
  }
  .flagship-badge-floating {
    display: none;
  }
}

/* ----------------- LABS / MICRO APPS IN DEVELOPMENT ----------------- */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lab-card {
  background: #141419;
  border: 1px solid #23232C;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.lab-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.lab-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  background: rgba(37, 99, 235, 0.15);
  color: #7CA1F3;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.lab-card h4 {
  font-size: 19px;
  color: var(--brand-white);
}

.lab-card p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .labs-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------- PHILOSOPHY / STANDARDS ----------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.philosophy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  gap: 20px;
}

.philosophy-card__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-orange);
  line-height: 1;
}

.philosophy-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.philosophy-card__title {
  font-size: 19px;
  color: var(--brand-white);
}

.philosophy-card__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.55;
}

@media (max-width: 767px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------- INTERACTIVE PROJECT ESTIMATOR ----------------- */
.estimator-card {
  background: #131317;
  border: 1px solid #282833;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.estimator-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.estimator-group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.estimator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.estimator-chip {
  padding: 10px 16px;
  border-radius: 12px;
  background: #1B1B22;
  border: 1px solid #2E2E3C;
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.estimator-chip:hover {
  border-color: var(--gray-500);
  color: var(--brand-white);
}

.estimator-chip.active {
  background: rgba(255, 85, 30, 0.14);
  border-color: var(--brand-orange);
  color: var(--brand-white);
  font-weight: 600;
}

.estimator-summary-card {
  background: #191921;
  border: 1px solid #2C2C39;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.estimator-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 12px;
}

.estimator-summary-label {
  font-size: 13px;
  color: var(--gray-400);
  flex: 1 1 auto;
}

.estimator-summary-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-white);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.estimator-summary-val.highlight {
  color: var(--brand-orange);
  font-size: 18px;
}

@media (max-width: 991px) {
  .estimator-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ----------------- CORPORATE FOOTER ----------------- */
.company-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090C;
  padding-top: 72px;
  padding-bottom: 40px;
}

.company-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.company-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-footer__logo {
  height: 24px;
  width: auto;
}

.company-footer__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 320px;
}

.company-footer__col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.company-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-footer__list a {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-footer__list a:hover {
  color: var(--brand-orange);
}

.company-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
}

@media (max-width: 767px) {
  .company-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .company-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ADVANCED INTEGRATION & BENCHMARK STYLES (TEMPO RESTAURANTE)
   ========================================================================== */

/* Reveal animations with fail-safe fallback */
.reveal {
  opacity: 1;
  transform: none;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-tempo), transform 0.55s var(--ease-tempo);
  transition-delay: var(--delay, 0s);
}
.js-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Screen Selector Tabs */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.screen-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #1A1A22;
  border: 1px solid #2B2B38;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screen-tab-btn:hover {
  background: #23232E;
  color: var(--brand-white);
  border-color: var(--gray-600);
}

.screen-tab-btn.active {
  background: rgba(255, 85, 30, 0.15);
  border-color: var(--brand-orange);
  color: var(--brand-white);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 85, 30, 0.25);
}

.screen-tab-btn svg {
  color: var(--brand-orange);
}

/* Screen Live Description Box */
.screen-detail-box {
  background: rgba(26, 26, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 18px;
  backdrop-filter: blur(8px);
}

.screen-detail-box h4 {
  font-size: 15px;
  color: var(--brand-orange);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-detail-box p {
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.5;
}

/* Restaurant ROI Calculator */
.restaurant-roi-card {
  background: linear-gradient(145deg, #16161E 0%, #101015 100%);
  border: 1px solid #282835;
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  margin-top: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.roi-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-300);
  font-weight: 600;
}

.roi-slider-label span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.roi-slider-label span:last-child {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brand-orange);
  font-weight: 700;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 6px;
  border-radius: 3px;
  background: #2B2B38;
  outline: none;
  accent-color: var(--brand-orange);
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-orange);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 85, 30, 0.6);
  border: 2px solid #fff;
}

.roi-result-card {
  background: #1A1A24;
  border: 1px solid rgba(255, 85, 30, 0.3);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.roi-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-stat-box:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.roi-stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  color: #4ADE80;
  line-height: 1;
}

.roi-stat-label {
  font-size: 13px;
  color: var(--gray-400);
}

@media (max-width: 991px) {
  .roi-grid {
    grid-template-columns: 1fr;
  }
}

/* Comparison Table (Traditional vs Tempo) */
.comparison-section {
  margin-top: 56px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #242430;
  background: #111116;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  background: #181820;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.comparison-table th.col-tempo {
  background: rgba(255, 85, 30, 0.12);
  color: var(--brand-orange);
  font-weight: 700;
}

.comparison-table td.col-tempo {
  background: rgba(255, 85, 30, 0.04);
  font-weight: 600;
  color: var(--brand-white);
}

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

.comparison-badge-bad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F87171;
  font-size: 13px;
}

.comparison-badge-good {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4ADE80;
  font-size: 13px;
  font-weight: 600;
}

/* Gallery of Physical Table Talkers */
.table-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.table-gallery figure {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #262633;
  background: #15151B;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.table-gallery figure:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 30, 0.4);
}

.table-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.table-gallery figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-400);
}

@media (max-width: 767px) {
  .table-gallery {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODULAR TABBED VIEW SYSTEM (Arquitectura por Pestañas)
   ========================================================================== */

/* Main Tab Navigation Bar */
.modular-tab-bar {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: rgba(11, 11, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 12px;
  transition: all 0.3s ease;
}

.modular-tab-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: 4px;
}

.modular-tab-container::-webkit-scrollbar {
  display: none;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  background: rgba(26, 26, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease-tempo);
}

.tab-pill:hover {
  background: rgba(36, 36, 45, 0.95);
  color: var(--brand-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-pill.active {
  background: rgba(255, 85, 30, 0.16);
  color: var(--brand-white);
  border-color: var(--brand-orange);
  font-weight: 600;
  box-shadow: 0 0 22px rgba(255, 85, 30, 0.32);
}

.tab-pill__flagship-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-orange);
  color: #0B0B0D;
}

/* Modular View Panels */
.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
}

.view-panel.active {
  display: block;
  animation: panelFadeIn 0.35s var(--ease-tempo) forwards;
}

@keyframes panelFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Next Module Link Bar */
.module-next-bar {
  margin-top: 64px;
  padding: 28px 32px;
  background: #14141A;
  border: 1px solid #242430;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.module-next-bar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.module-next-bar__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.module-next-bar__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-white);
}

@media (max-width: 767px) {
  .modular-tab-container {
    justify-content: flex-start;
  }
  .tab-pill {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   MOBILE & TOUCH ENHANCEMENTS (Responsive & Standalone Optimized)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .btn-tempo {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    word-break: normal;
  }

  .estimator-card {
    padding: 20px 16px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .estimator-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .estimator-options {
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .estimator-summary-card {
    padding: 18px 14px;
    border-radius: 16px;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .estimator-summary-row {
    gap: 10px;
    padding-bottom: 12px;
  }

  .estimator-summary-label {
    font-size: 13px;
    line-height: 1.35;
  }

  .estimator-summary-val {
    font-size: 15px;
    flex-shrink: 0;
  }

  .estimator-summary-val.highlight {
    font-size: 17px;
  }

  .estimator-summary-card .btn-tempo {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.35;
  }

  .roi-slider-group {
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .roi-slider-label {
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  .roi-slider-label span:first-child {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .roi-slider-label span:last-child {
    font-size: 16px;
  }

  .roi-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .company-hero {
    min-height: auto;
    padding-top: clamp(124px, 18vw, 150px);
    padding-bottom: 44px;
  }
  
  .company-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .company-hero__title {
    font-size: clamp(28px, 7.5vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    word-break: break-word;
  }
  
  .company-hero__lead {
    font-size: 15px;
    line-height: 1.55;
  }
  
  .company-hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .company-hero__actions .btn-tempo {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .company-hero__tag-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .stats-island {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  
  .company-stat-num {
    font-size: clamp(22px, 6vw, 30px);
  }
  
  .flow-row,
  .flow-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flow-row--reverse .flow-row__content {
    order: 1;
  }
  
  .flow-row--reverse .flow-row__media {
    order: 2;
  }
  
  .flow-row__title {
    font-size: clamp(22px, 5.5vw, 32px);
    line-height: 1.2;
  }
  
  .flow-row__desc {
    font-size: 14px;
    line-height: 1.55;
  }
  
  .flow-row__actions .btn-tempo {
    width: 100%;
  }
  
  .flow-media-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  
  .flow-media-card__header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .flow-media-card__title {
    font-size: 12px;
  }
  
  .flow-media-card__badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .flow-media-card__row {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  #ctaTitle {
    font-size: clamp(24px, 6vw, 36px) !important;
    line-height: 1.2 !important;
  }
  
  section[aria-labelledby="ctaTitle"] div[style*="display:flex"] {
    flex-direction: column;
    width: 100%;
  }
  
  section[aria-labelledby="ctaTitle"] .btn-tempo {
    width: 100%;
  }
  
  .company-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-console {
    border-radius: 16px;
  }
  
  .hero-console__dots {
    display: none;
  }
  
  .hero-console__tabs {
    width: 100%;
    gap: 4px;
  }
  
  .hero-console__tab {
    flex: 1;
    text-align: center;
    padding: 7px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .hero-console__body {
    padding: 14px;
  }
  
  .stats-island {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .hero-console__footer {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}

