/* ==========================================================================
   ÁTOMO CONSULTORES — Design System
   ========================================================================== */

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

/* --- Tokens ---------------------------------------------------------------- */
:root {
  /* Brand */
  --red:         #8D2424;
  --red-dark:    #6B1A1A;
  --red-light:   #B83030;
  --red-pale:    #FAF0F0;
  --red-border:  #F0D8D8;

  /* Neutral */
  --black:       #1A0202;
  --text-strong: #1E1E1E;
  --text-body:   #444444;
  --text-muted:  #777777;
  --border:      #E5E5E5;
  --bg-subtle:   #F8F8F8;
  --white:       #FFFFFF;

  /* Type */
  --font-head:   'Raleway', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Spacing */
  --container:   1160px;
  --section-v:   96px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* Animation */
  --ease:        cubic-bezier(.22, 1, .36, 1);
  --dur:         .35s;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Utilities ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-v); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Fade-in animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(141, 36, 36, .25);
}
.btn-primary:hover {
  background: var(--red-light);
  box-shadow: 0 6px 28px rgba(141, 36, 36, .38);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--red);
  color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-body);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 900;
  padding-block: 18px;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .03em;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.navbar.scrolled .nav-logo {
  color: var(--text-strong);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(230, 57, 57, 0.4);
}
.nav-logo span {
  color: #FF7B7B;
  transition: color var(--dur) var(--ease);
}
.navbar.scrolled .nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--dur);
  position: relative;
}
.navbar.scrolled .nav-links .nav-link {
  color: var(--text-body);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF5A5A;
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}
.navbar.scrolled .nav-link::after {
  background: var(--red);
}

.nav-link:hover { color: #FFFFFF; }
.navbar.scrolled .nav-links .nav-link:hover { color: var(--red); }
.nav-link:hover::after { width: 100%; }

.nav-cta { padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.navbar.scrolled .hamburger span {
  background: var(--text-strong);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(80px + 72px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
  background-color: #140202;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 45%, rgba(20, 2, 2, 0.45) 0%, rgba(20, 2, 2, 0.12) 55%, rgba(20, 2, 2, 0.35) 100%),
              linear-gradient(to bottom, rgba(20, 2, 2, 0.2) 0%, transparent 40%, rgba(20, 2, 2, 0.5) 85%, #140202 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(230, 57, 57, 0.14);
  border: 1px solid rgba(230, 57, 57, 0.35);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #FFA5A5;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF5A5A;
  box-shadow: 0 0 10px #FF5A5A;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero-title em {
  font-style: normal;
  color: #FF5A5A;
  background: linear-gradient(135deg, #FF7B7B 0%, #E63939 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: #E63939;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(230, 57, 57, 0.45);
}
.hero .btn-primary:hover {
  background: #FF5A5A;
  box-shadow: 0 6px 30px rgba(230, 57, 57, 0.6);
  transform: translateY(-2px);
}

.hero .btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.hero .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Atom SVG graphic */
.atom-graphic {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 0 35px rgba(230, 57, 57, 0.28));
  animation: floatAtom 6s ease-in-out infinite alternate;
}

@keyframes floatAtom {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-subtle); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.75;
  margin-top: 18px;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}
.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.pillar h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.pillar p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   PROCESS (Estilo Evontech Stepper con línea conectora)
   ============================================================ */
.process-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
}
.process-step {
  display: flex;
  flex-direction: column;
  position: relative;
}
.step-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.step-num {
  width: 52px;
  height: 52px;
  background: #140202;
  border: 2px solid #E63939;
  box-shadow: 0 0 16px rgba(230, 57, 57, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  flex-shrink: 0;
  z-index: 2;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.process-step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(230, 57, 57, 0.5);
  background: #2D0606;
}
.step-line {
  position: absolute;
  top: 50%;
  left: 52px;
  right: -20px;
  height: 2px;
  background: repeating-linear-gradient(to right, #E63939 0, #E63939 6px, transparent 6px, transparent 12px);
  transform: translateY(-50%);
  z-index: 1;
}
.process-step:last-child .step-line {
  display: none;
}
.step-content {
  display: flex;
  flex-direction: column;
}
.step-content h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   DEMOS (data-driven — cards injected by JS)
   ============================================================ */
.demos { background: var(--bg-subtle); }

.demos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.demos-header-left { flex: 1; }

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Each .demo-card is generated by JS */
.demo-card {
  position: relative;
  background: #140202;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(230, 57, 57, 0.28), 0 0 30px rgba(230, 57, 57, 0.12);
  border-color: rgba(230, 57, 57, 0.45);
}

/* Subtle vector contour lines on the top right (matching mockup) */
.demo-card-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 65%;
  background-image: url('assets/cta-backdrop.svg');
  background-position: top right;
  background-size: 150% auto;
  background-repeat: no-repeat;
  opacity: 0.65;
  pointer-events: none;
  mask-image: radial-gradient(circle at 95% 10%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 95% 10%, black 20%, transparent 75%);
}

.demo-card-content {
  position: relative;
  z-index: 1;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  background: rgba(230, 57, 57, 0.16);
  color: #FF7B7B;
  border: 1px solid rgba(230, 57, 57, 0.35);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.demo-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex: 1;
}

.demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.demo-bullet {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}

.demo-card-footer {
  margin-top: auto;
}

.demo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  background: #E63939;
  border: none;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(230, 57, 57, 0.45);
  transition: all var(--dur) var(--ease);
}

.demo-link:hover {
  background: #FF4A4A;
  box-shadow: 0 12px 32px rgba(230, 57, 57, 0.7);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.demo-link-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.demo-link:hover .demo-link-arrow {
  transform: translateX(4px);
}

/* Empty state shown when DEMOS = [] */
.demos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1C0303 0%, #2E0505 50%, #160202 100%);
  border: 1px solid rgba(230, 57, 57, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  color: var(--white);
  transition: box-shadow var(--dur), transform var(--dur);
}
.services-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/cta-backdrop.svg') center right / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.services-primary:hover {
  box-shadow: 0 20px 50px rgba(230, 57, 57, 0.18);
  transform: translateY(-2px);
}
.services-primary > * {
  position: relative;
  z-index: 1;
}
.service-main-icon {
  width: 64px;
  height: 64px;
  background: #E63939;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(230, 57, 57, 0.4);
}
.services-primary h3 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.services-primary p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.services-primary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.services-primary-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.services-primary-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #FF5A5A;
  box-shadow: 0 0 6px #FF5A5A;
  border-radius: 50%;
  flex-shrink: 0;
}

.services-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.service-secondary-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.service-secondary-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.service-secondary-card:hover {
  border-color: var(--red-border);
  box-shadow: 0 4px 20px rgba(141,36,36,.06);
}
.service-secondary-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 14px;
}
.service-secondary-card h4 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.service-secondary-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  background: var(--bg-subtle);
  overflow: hidden;
}

.clients-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

/* Scrolling marquee banner estilo Alluxi */
.clients-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: 16px 28px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollClientsMarquee 42s linear infinite;
}

.clients-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollClientsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-card {
  flex: 0 0 160px;
  height: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
  text-align: center;
  user-select: none;
}

.client-card:hover {
  border-color: rgba(230, 57, 57, 0.4);
  box-shadow: 0 8px 24px rgba(230, 57, 57, 0.12);
  transform: translateY(-3px);
}

.client-logo-wrap {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.72);
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.client-card:hover .client-logo {
  filter: grayscale(0) opacity(1);
  transform: scale(1.08);
}

.client-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 136px;
  transition: color var(--dur);
}

.client-card:hover .client-name {
  color: var(--text-strong);
}

/* ============================================================
   CTA BANNER (Estilo Intellectsoft v1-cta)
   ============================================================ */
.section-cta-banner {
  position: relative;
  overflow: hidden;
  background-color: #140202;
  color: var(--white);
  padding-block: 84px;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cta-banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 40%, rgba(20, 2, 2, 0.2) 0%, rgba(20, 2, 2, 0.65) 100%),
              linear-gradient(to right, rgba(20, 2, 2, 0.85) 0%, rgba(20, 2, 2, 0.45) 55%, rgba(20, 2, 2, 0.75) 100%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
}
.cta-banner-content {
  max-width: 740px;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(230, 57, 57, 0.15);
  border: 1px solid rgba(230, 57, 57, 0.35);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #FFA5A5;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-btn {
  background: #E63939;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(230, 57, 57, 0.45);
}
.cta-btn:hover {
  background: #FF5A5A;
  box-shadow: 0 6px 30px rgba(230, 57, 57, 0.6);
  transform: translateY(-2px);
}
.cta-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.cta-btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT (Estilo Intellectsoft n-contacts-section)
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  background-color: #140202;
  color: var(--white);
  padding-block: var(--section-v);
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.contact-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
}
.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(20, 2, 2, 0.45) 0%, rgba(20, 2, 2, 0.75) 100%),
              linear-gradient(to bottom, rgba(20, 2, 2, 0.3) 0%, rgba(20, 2, 2, 0.6) 80%, #140202 100%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
}
.contact-label {
  background: rgba(230, 57, 57, 0.15);
  border: 1px solid rgba(230, 57, 57, 0.35);
  color: #FFA5A5;
}
.contact-title {
  color: var(--white);
}
.contact-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-detail-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(230, 57, 57, 0.16);
  border: 1px solid rgba(230, 57, 57, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF7B7B;
  box-shadow: 0 0 15px rgba(230, 57, 57, 0.2);
}
.contact-detail h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #FFA5A5;
  margin-bottom: 3px;
}
.contact-detail p {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  margin: 0;
}
.contact-detail a {
  color: var(--white);
  transition: color var(--dur);
}
.contact-detail a:hover {
  color: #FF7B7B;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.form-label .opt {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-strong);
  background: var(--white);
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(141,36,36,.12);
}
.form-control::placeholder { color: var(--text-muted); }

.form-control-other {
  display: none;
  margin-top: 10px;
}
.form-control-other.show { display: block; }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; justify-content: center; padding: 15px; margin-top: 4px; }

/* Form feedback */
.form-message {
  display: none;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}
.form-message.success {
  display: block;
  background: #F0FBF0;
  color: #2D6E2D;
  border: 1px solid #B8E0B8;
}
.form-message.error {
  display: block;
  background: var(--red-pale);
  color: var(--red-dark);
  border: 1px solid var(--red-border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.6);
  padding-block: 48px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  transition: color var(--dur);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-bottom a { color: inherit; transition: color var(--dur); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-v: 72px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .services-primary { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 20px;
  }
  .process-step:nth-child(3) .step-line {
    display: none;
  }
}

@media (max-width: 768px) {
  :root { --section-v: 56px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .demos-grid { grid-template-columns: 1fr; }
  .services-secondary { grid-template-columns: 1fr; }
  .process-stepper {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .process-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
  }
  .step-badge-wrap {
    margin-bottom: 0;
    flex-direction: column;
  }
  .step-line {
    top: 52px;
    bottom: -28px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(to bottom, #E63939 0, #E63939 6px, transparent 6px, transparent 12px);
    transform: none;
    display: block !important;
  }
  .process-step:last-child .step-line {
    display: none !important;
  }
  .step-content {
    padding-top: 4px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .demos-header { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { justify-content: center; }
}
