/* ═══════════════════════════════════════════════════════
   NOVITUM TECHNOLOGIES — novitum.io v2
   Sistema de diseño: navy + cian · Space Grotesk / Inter / JetBrains Mono
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── Brandbook Novitum — Ivory & Petróleo (31/07/2026) ── */
  --ivory:        #FBF9F4;
  --ivory-alt:    #EFEBE2;
  --nordovi-canvas: #ead8bd;
  --nordovi-warm:   #f2dfc3;
  --nordovi-soft:   #f8ecd9;
  --nordovi-line:   #d8c39f;
  --petrol:       #0F2E38;
  --petrol-deep:  #081C23;
  --petrol-card:  #163C48;
  --teal:         #17817F;
  --teal-bright:  #1FA3A0;
  --silver:       #B9BEC0;
  --ink:          #1C262A;

  /* ── Alias: los nombres antiguos siguen vivos, con el papel nuevo ── */
  --navy-deep:   var(--ivory);        /* fondo de página */
  --navy:        var(--ivory-alt);    /* banda alterna */
  --navy-card:   #ffffff;             /* tarjetas sobre claro */
  --navy-border: rgba(15, 46, 56, 0.12);
  --cyan:        var(--teal);
  --cyan-soft:   var(--teal-bright);
  --cyan-dim:    rgba(23, 129, 127, 0.08);
  --white:       var(--ink);          /* antes texto blanco, ahora tinta */
  --text:        var(--ink);
  --muted:       #67787E;
  --muted-2:     #8B999E;
  --green:       #17817F;
  --amber:       #B57A0A;

  /* micro-branding de producto */
  --pulse-orange: #ff7a1a;
  --nordovi-gold:   #D0B583;
  --nordovi-cream:  #fbf9f4;
  --city-violet:  #8b7cf6;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background:
    linear-gradient(180deg, var(--nordovi-canvas) 0%, var(--nordovi-warm) 44%, var(--nordovi-soft) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(15, 46, 56, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 56, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--white); font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--cyan); color: var(--navy-deep); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
section { padding: 7rem 0; position: relative; }

/* ── Canvas de fondo ── */
#canvas-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.16;
}

/* ── Navegación ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
nav.scrolled {
  background: rgba(234, 216, 189, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 46, 56, 0.14);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 44px; display: block; filter: brightness(1.9) saturate(1.3); }
.nav-word {
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--petrol);
}
.nav-word span { color: var(--cyan); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 400; color: var(--muted);
  position: relative; padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--petrol); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }

.lang-switcher {
  display: flex; gap: 2px;
  background: rgba(246, 239, 229, 0.55);
  border: 1px solid var(--navy-border);
  border-radius: 8px; padding: 3px;
}
.lang-btn {
  background: none; border: none; border-radius: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  padding: 4px 9px;
  transition: all 0.25s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--cyan); color: var(--navy-deep); }

.btn-nav {
  font-size: 0.85rem; font-weight: 500;
  color: #f6fbf9; background: var(--petrol);
  padding: 0.55rem 1.3rem; border-radius: 10px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.btn-nav:hover { box-shadow: 0 0 24px rgba(23, 129, 127, 0.45); transform: translateY(-1px); }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-mobile-toggle span {
  width: 22px; height: 2px; background: var(--petrol);
  border-radius: 2px; transition: all 0.3s var(--ease);
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Botones ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 500;
  padding: 0.95rem 2rem; border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  background: var(--petrol); color: #f6fbf9;
  box-shadow: 0 0 0 rgba(23, 129, 127, 0);
}
.btn-primary:hover { background: #123743; box-shadow: 0 8px 32px rgba(15, 46, 56, 0.28); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--navy-border); color: var(--white);
  background: rgba(15, 46, 56, 0.035);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.hero .btn-ghost {
  color: rgba(251, 249, 244, 0.92);
  border-color: rgba(251, 249, 244, 0.28);
  background: rgba(251, 249, 244, 0.04);
}
.hero .btn-ghost:hover {
  color: var(--ivory);
  border-color: rgba(208, 181, 131, 0.68);
  background: rgba(251, 249, 244, 0.08);
}

/* ── Hero ── */
.hero {
  min-height: 82svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 5.5rem) 2rem 6.5rem;
  position: relative; z-index: 1;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: calc(var(--nav-h) + 1.35rem);
  left: clamp(1rem, 5.2vw, 5.2rem);
  right: clamp(1rem, 5.2vw, 5.2rem);
  bottom: 3.6rem;
  background:
    linear-gradient(90deg, rgba(8, 28, 35, 0.94), rgba(10, 42, 50, 0.82) 44%, rgba(8, 28, 35, 0.92)),
    linear-gradient(180deg, rgba(15, 46, 56, 0.18), rgba(8, 28, 35, 0.82)),
    url('../assets/novitum-hero-bg.jpg') center right / cover no-repeat;
  filter: saturate(0.8) contrast(1.02);
  pointer-events: none; z-index: 0;
  box-shadow: 0 30px 90px rgba(15, 46, 56, 0.16);
}
.hero::after {
  display: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.32em;
  color: rgba(251, 249, 244, 0.94);
  text-transform: uppercase;
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 2.35rem;
}
.hero-badge-dot {
  width: 42px; height: 2px; border-radius: 0;
  background: var(--nordovi-gold);
  animation: none;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 129, 127, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(23, 129, 127, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.75rem);
  font-weight: 700; letter-spacing: 0;
  max-width: 1680px;
  color: var(--ivory);
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; color: var(--ivory);
}
.hero-sub {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(251, 249, 244, 0.76);
  margin: 1.8rem 0 2.6rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero .btn-primary {
  color: var(--ivory);
  background: rgba(8, 28, 35, 0.72);
  border: 1px solid rgba(251, 249, 244, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.hero .btn-primary:hover {
  background: rgba(8, 28, 35, 0.88);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.hero-stats {
  display: none; gap: clamp(2rem, 6vw, 5rem);
  margin-top: 5rem; flex-wrap: wrap; justify-content: center;
}
.hero-stat {
  text-align: center;
  min-width: 170px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 46, 56, 0.16);
  background: rgba(246, 239, 229, 0.62);
  backdrop-filter: blur(12px);
  border-radius: 8px;
}
.hero-stat-num {
  display: block;
  font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--cyan);
}
.hero-stat-label {
  font-size: 0.8rem; color: rgba(251, 249, 244, 0.7);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--muted-2); font-size: 1.3rem;
  animation: bob 2s infinite var(--ease);
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ── Secciones genéricas ── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--cyan); }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.01em;
  margin-bottom: 1.4rem; padding-bottom: 1.1rem;
  position: relative;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
}
.section-desc { max-width: 560px; color: var(--muted); font-size: 1.02rem; }
.section-head-center { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head-center .section-eyebrow { justify-content: center; }
.section-head-center .section-eyebrow::before { display: none; }
.section-head-center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-head-center .section-desc { margin: 0 auto; }

.section-alt { background: linear-gradient(180deg, transparent, rgba(239, 235, 226, 0.85) 18%, rgba(239, 235, 226, 0.85) 82%, transparent); }

/* ── Problema ── */
.problems-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: 3.5rem;
}
.problem-card {
  background: #ffffff;
  border: 1px solid var(--navy-border);
  border-radius: 18px; padding: 2.2rem 1.9rem;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.problem-card:hover { transform: translateY(-5px); border-color: rgba(23, 129, 127, 0.35); }
.p-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.3rem;
  background: rgba(23, 129, 127, 0.14);
  border: 1px solid rgba(23, 129, 127, 0.22);
  border-radius: 13px;
}
.problem-card h3 { font-size: 1.12rem; margin-bottom: 0.7rem; }
.problem-card p { font-size: 0.92rem; color: var(--muted); }

/* ── Servicios (4 pilares) ── */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem; margin-top: 3.5rem;
}
.service-card {
  position: relative; overflow: hidden;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px; padding: 2.6rem 2.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(23, 129, 127, 0.08), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(23, 129, 127, 0.4); box-shadow: 0 20px 50px rgba(15, 46, 56, 0.10); }
.s-num {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--cyan); letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.service-card > p { font-size: 0.94rem; color: var(--muted); margin-bottom: 1.2rem; }
.s-points { list-style: none; display: grid; gap: 0.45rem; }
.s-points li {
  font-size: 0.86rem; color: var(--text);
  display: flex; gap: 0.6rem; align-items: baseline;
}
.s-points li::before { content: '›'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.s-tag {
  position: absolute; top: 1.6rem; right: 1.6rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--green); border: 1px solid rgba(23, 129, 127, 0.35);
  padding: 0.25rem 0.7rem; border-radius: 100px;
}

/* ── Productos (prueba de capacidad) ── */
.products-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem; margin-top: 3.5rem;
}
.product-card {
  grid-column: span 2;
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px; padding: 2.3rem 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.product-card:nth-child(4), .product-card:nth-child(5) { grid-column: span 3; }
.product-card:hover { box-shadow: 0 24px 60px rgba(15, 46, 56, 0.13); }

.product-card[data-accent="orange"]:hover { border-color: rgba(255, 122, 26, 0.55); }
.product-card[data-accent="cyan"]:hover { border-color: rgba(23, 129, 127, 0.55); }
.product-card[data-accent="violet"]:hover { border-color: rgba(139, 124, 246, 0.55); }
.product-card[data-accent="gold"]:hover { border-color: rgba(208, 181, 131, 0.75); }

.product-card[data-accent="orange"] .product-name { color: var(--pulse-orange); }
.product-card[data-accent="cyan"] .product-name { color: var(--cyan); }
.product-card[data-accent="violet"] .product-name { color: var(--city-violet); }

/* Nordovi: única tarjeta oscura de la retícula — petróleo + oro (brandbook 31/07/2026).
   Sustituye al crema atenuado del 08/07/2026, que se diseñó para la web de fondo oscuro
   y sobre ivory quedaba invisible. El oro es el acento propio de Nordovi. */
.product-card.nordovi {
  background: linear-gradient(160deg, var(--petrol), var(--petrol-deep));
  border-color: rgba(208, 181, 131, 0.45);
  overflow: hidden;
}
.product-card.nordovi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 4%, #D0B583 30%, #E8D5A8 50%, #D0B583 70%, transparent 96%);
  pointer-events: none;
}
.product-card.nordovi .product-name {
  font-size: 1.5rem;
  background: linear-gradient(105deg, #B8955F 10%, #D0B583 42%, #E8D5A8 52%, #D0B583 62%, #B8955F 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.product-card.nordovi .product-desc { color: var(--silver); }
.product-card.nordovi .product-status.dev {
  color: #E8D5A8;
  background: rgba(208, 181, 131, 0.14);
  border-color: rgba(208, 181, 131, 0.45);
}

.product-status {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.12em;
  padding: 0.28rem 0.75rem; border-radius: 100px;
  margin-bottom: 1.3rem;
}
.product-status.live { color: var(--green); border: 1px solid rgba(23, 129, 127, 0.4); }
.product-status.dev { color: var(--amber); border: 1px solid rgba(181, 122, 10, 0.4); }

.product-name {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.25rem;
}
.product-type {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--muted-2); text-transform: uppercase;
  margin-bottom: 1rem;
}
.product-card.nordovi .product-type { color: var(--nordovi-gold); font-weight: 500; opacity: 0.85; }
.product-desc { font-size: 0.9rem; color: var(--muted); flex: 1; }
.product-link {
  margin-top: 1.4rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--cyan-soft);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.25s var(--ease);
}
.product-link:hover { gap: 0.8rem; }
.product-card.nordovi .product-link { color: var(--nordovi-gold); font-weight: 500; }

/* ── Por qué Novitum ── */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem; margin-top: 3.5rem;
}
.why-card {
  text-align: center;
  padding: 2.4rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--navy-border);
  border-radius: 18px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(23, 129, 127, 0.35); }
.why-num {
  font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700;
  color: var(--cyan); line-height: 1;
  margin-bottom: 0.8rem;
}
.why-card h3 { font-size: 1rem; margin-bottom: 0.55rem; }
.why-card p { font-size: 0.84rem; color: var(--muted); }

/* ── Proceso ── */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem; margin-top: 4rem;
  position: relative;
}
.process-line {
  position: absolute; top: 26px; left: 6%; right: 6%;
  height: 2px; background: var(--navy-border);
  z-index: 0;
}
.process-line-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  transition: width 1.6s var(--ease);
}
.process-line.animated .process-line-fill { width: 100%; }
.process-step { position: relative; z-index: 1; text-align: center; padding: 0 0.6rem; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 1.4rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--cyan);
  background: var(--navy);
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--navy-deep);
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.88rem; color: var(--muted); }

/* ── Equipo ── */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem; margin-top: 3.5rem;
}
.team-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px; padding: 2.6rem 2.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(23, 129, 127, 0.4); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--cyan), #1FA3A0);
  margin-bottom: 1.4rem;
}
.team-avatar svg { display: block; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.team-role {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--cyan); text-transform: uppercase;
  display: block; margin-bottom: 1.1rem;
}
.team-card p { font-size: 0.92rem; color: var(--muted); }
.team-note {
  margin-top: 2.5rem; text-align: center;
  font-size: 1.05rem; color: var(--text);
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.team-note strong { color: var(--cyan); font-weight: 500; }

/* ── FAQ ── */
.faq-list {
  max-width: 780px; margin: 3.5rem auto 0;
  display: grid; gap: 0.9rem;
}
.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(23, 129, 127, 0.3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 400;
  color: var(--cyan);
  border: 1px solid rgba(23, 129, 127, 0.3);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--navy-border);
  font-size: 0.94rem; color: var(--muted); line-height: 1.7;
}

/* ── CTA final ── */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(23, 129, 127, 0.08), rgba(15, 46, 56, 0.06) 55%);
  border: 1px solid rgba(23, 129, 127, 0.25);
  border-radius: 26px;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 480px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 129, 127, 0.18), transparent 65%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.cta-box > p { color: var(--muted); max-width: 520px; margin: 0 auto 2.4rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp, .btn-email {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 500;
  padding: 0.95rem 1.9rem; border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.btn-whatsapp { background: #25d366; color: #06240f; }
.btn-whatsapp:hover { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4); transform: translateY(-2px); }
.btn-email { border: 1px solid var(--navy-border); color: var(--white); background: rgba(15, 46, 56, 0.035); }
.btn-email:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ── Formulario de contacto ── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; margin-top: 3.5rem; align-items: start;
}
.contact-info h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.contact-info p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.6rem; }
.contact-channels { display: grid; gap: 0.9rem; }
.contact-channel {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 1rem 1.2rem;
  font-size: 0.9rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-channel:hover { border-color: rgba(23, 129, 127, 0.4); transform: translateX(4px); }
.contact-channel .cc-icon { color: var(--cyan); flex-shrink: 0; display: flex; }
.contact-channel .cc-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted-2); display: block; text-transform: uppercase; }

.contact-form {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px; padding: 2.4rem;
  display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 0.45rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 300;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(23, 129, 127, 0.15);
}
.form-note { font-size: 0.75rem; color: var(--muted-2); }
.form-note a { color: var(--cyan); }
.form-status { font-size: 0.88rem; min-height: 1.2em; }
.form-status-ok { color: var(--green); }
.form-status-error { color: var(--amber); }
#f-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--navy-border);
  background: rgba(255, 255, 255, 0.9);
  position: relative; z-index: 1;
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2.2rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 300px; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.88rem; color: var(--muted); transition: color 0.25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1180px; margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--navy-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.78rem; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--cyan); }

/* ── Reveal (scroll) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Páginas legales ── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 10rem 2rem 6rem; position: relative; z-index: 1; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.legal-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-2); margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; color: var(--cyan); }
.legal-content p, .legal-content li { font-size: 0.92rem; color: var(--muted); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--cyan); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card, .product-card:nth-child(4), .product-card:nth-child(5) { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.4rem; }
  .process-line { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 5rem 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(251, 249, 244, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--navy-border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { border-top: 1px solid var(--navy-border); }
  .nav-links a { display: block; padding: 1.1rem 2rem; }
  .nav-links a::after { display: none; }
  .nav-mobile-toggle { display: flex; }
  .btn-nav { display: none; }
  .problems-grid, .products-grid, .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #canvas-bg { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Añadidos 31/07/2026 — banda normativa, precios y diferencia
   ══════════════════════════════════════════════════════════ */

/* Banda del Reglamento Europeo de IA */
.notice-band {
  background: var(--petrol);
  padding: 1.6rem 2rem;
  position: relative; z-index: 1;
}
.notice-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
}
.notice-flag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--petrol); background: var(--teal-bright);
  padding: 0.3rem 0.75rem; border-radius: 100px; flex-shrink: 0;
}
.notice-text { color: var(--ivory); font-size: 0.92rem; line-height: 1.6; flex: 1; min-width: 260px; }
.notice-text strong { color: var(--teal-bright); font-weight: 500; }
.notice-link {
  font-family: var(--font-head); font-size: 0.86rem; font-weight: 500;
  color: var(--teal-bright); white-space: nowrap;
  border-bottom: 1px solid rgba(31, 163, 160, 0.4); padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.notice-link:hover { color: var(--ivory); border-color: var(--ivory); }

/* Precio en las tarjetas de servicio */
.s-price {
  margin: 1.2rem 0 0.4rem;
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
}
.s-price-num {
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 700;
  color: var(--petrol); letter-spacing: -0.02em;
}
.s-price-unit { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.s-price-note { font-size: 0.78rem; color: var(--teal); line-height: 1.55; margin-bottom: 1.1rem; }

/* Sección "Cómo lo hacemos distinto" */
.diff-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem; margin-top: 3.5rem;
}
.diff-card {
  background: var(--petrol-card);
  border: 1px solid rgba(185, 190, 192, 0.18);
  border-radius: 18px; padding: 2rem 1.7rem;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.diff-card:hover { transform: translateY(-5px); border-color: rgba(31, 163, 160, 0.5); }
.diff-num {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--teal-bright); margin-bottom: 1rem;
}
.diff-card h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--ivory); margin-bottom: 0.6rem; line-height: 1.25;
}
.diff-card p { font-size: 0.87rem; line-height: 1.7; color: var(--silver); }
.section-dark { background: var(--petrol); }
.section-dark .section-title, .section-dark .cta-box h2 { color: var(--ivory); }
.section-dark .section-desc { color: var(--silver); }
.section-dark .section-eyebrow { color: var(--teal-bright); }
.section-dark .section-eyebrow::before { background: var(--teal-bright); }

@media (max-width: 980px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .diff-grid { grid-template-columns: 1fr; } .notice-inner { gap: 0.9rem; } }

/* ── Páginas de producto: el sistema es de Novitum, el acento del producto ── */
:root { --canvas-node: 23, 129, 127; }
body.page-nordovi {
  --cyan: #B8955F; --cyan-soft: #D0B583;
  --teal: #B8955F; --teal-bright: #D0B583;
  --canvas-node: 208, 181, 131;
}
body.page-pulsecosta {
  --cyan: #C25A00; --cyan-soft: #FF7A1A;
  --teal: #C25A00; --teal-bright: #FF7A1A;
  --canvas-node: 255, 122, 26;
}

.prod-hero { padding: calc(var(--nav-h) + 5rem) 2rem 4.5rem; position: relative; z-index: 1; }
.prod-hero-inner { max-width: 1140px; margin: 0 auto; }
.prod-parent {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem;
}
.prod-parent a { color: var(--cyan); border-bottom: 1px solid rgba(0,0,0,0.12); }
.prod-hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.035em;
  color: var(--petrol); margin-bottom: 1.2rem; max-width: 16ch;
}
.prod-hero h1 .accent { color: var(--cyan); }
.prod-hero-sub { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.prod-hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.prod-state {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.prod-state.live { color: var(--teal); border: 1px solid rgba(23,129,127,0.4); background: rgba(23,129,127,0.07); }
.prod-state.dev { color: var(--amber); border: 1px solid rgba(181,122,10,0.4); background: rgba(181,122,10,0.07); }
.prod-state .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 3rem; }
.audience-card {
  background: #fff; border: 1px solid var(--navy-border); border-radius: 18px; padding: 2.2rem 1.9rem;
}
.audience-card .who {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.8rem;
}
.audience-card h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--petrol); margin-bottom: 0.7rem; }
.audience-card p { font-size: 0.92rem; line-height: 1.7; color: var(--muted); }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 3rem; }
.cap-card { background: var(--petrol-card); border: 1px solid rgba(185,190,192,0.18); border-radius: 18px; padding: 1.9rem 1.6rem; }
.cap-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--ivory); margin-bottom: 0.55rem; line-height: 1.3; }
.cap-card p { font-size: 0.85rem; line-height: 1.7; color: var(--silver); }
.cap-ic { font-size: 1.35rem; margin-bottom: 0.9rem; display: block; }

.city-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 2rem; }
.city-chip {
  background: #fff; border: 1px solid var(--navy-border); border-radius: 100px;
  padding: 0.6rem 1.2rem; font-size: 0.9rem; color: var(--petrol);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.city-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.city-chip.soon { background: transparent; border-style: dashed; color: var(--muted); }
.city-chip.soon .dot { background: var(--silver); }

.honest { background: var(--petrol); border-radius: 20px; padding: 2.6rem; margin-top: 3rem; }
.honest h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ivory); margin-bottom: 1rem; }
.honest p { font-size: 0.95rem; line-height: 1.75; color: var(--silver); max-width: 52rem; }
.honest .legal-fine { font-size: 0.76rem; color: var(--silver); opacity: 0.65; margin-top: 1.4rem; line-height: 1.65; }

@media (max-width: 980px) { .cap-grid { grid-template-columns: 1fr 1fr; } .audience-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } .prod-hero { padding-top: calc(var(--nav-h) + 3rem); } }


/* ── Submenú de productos en la navegación ── */
.nav-links li.has-sub { position: relative; }
.nav-links li.has-sub > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.caret { font-size: 0.6rem; opacity: 0.65; transition: transform 0.25s var(--ease); }
.has-sub:hover .caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 0.7rem); left: -0.9rem;
  min-width: 200px; list-style: none;
  background: #ffffff; border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 0.45rem;
  box-shadow: 0 14px 38px rgba(15, 46, 56, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 60;
}
/* puente invisible para que no se cierre al bajar el ratón */
.nav-sub::before { content: ''; position: absolute; top: -0.8rem; left: 0; right: 0; height: 0.8rem; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 9px;
  font-size: 0.86rem; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: rgba(23, 129, 127, 0.08); color: var(--petrol); }
.nav-sub .sub-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.55rem; vertical-align: 1px; }

@media (max-width: 880px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 28, 35, 0.86), rgba(8, 28, 35, 0.94)),
      linear-gradient(90deg, rgba(15, 46, 56, 0.88), rgba(15, 46, 56, 0.7)),
      url('../assets/novitum-hero-bg.jpg') center / cover no-repeat;
    filter: saturate(0.78) contrast(1.02);
  }
  .nav-links.open { max-height: 460px; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0; min-width: 0;
  }
  .nav-sub::before { display: none; }
  .nav-sub li { border-top: 1px solid var(--navy-border); }
  .nav-sub a { padding: 0.9rem 2rem 0.9rem 3.2rem; font-size: 0.84rem; }
  .caret { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Ajuste premium 20/08/2026 — menos "IA SaaS", más estudio tecnológico
   ══════════════════════════════════════════════════════════ */
.section-alt {
  background:
    linear-gradient(180deg, rgba(248, 236, 217, 0), rgba(248, 236, 217, 0.62) 22%, rgba(248, 236, 217, 0.62) 78%, rgba(248, 236, 217, 0));
}

.section-title {
  max-width: 720px;
}

.section-head-center {
  max-width: 760px;
}

.hero-stats {
  width: min(1040px, calc(100% - 2rem));
  gap: 0;
  border-top: 1px solid rgba(15, 46, 56, 0.16);
  border-bottom: 1px solid rgba(15, 46, 56, 0.16);
  padding: 1.2rem 0;
}

.hero-stat {
  min-width: 0;
  flex: 1 1 220px;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-right: 1px solid rgba(15, 46, 56, 0.14);
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat-num {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  color: var(--petrol);
}

.hero-stat-label {
  font-size: 0.68rem;
  color: #596a6c;
}

.problems-grid,
.why-grid {
  gap: 0;
  border-top: 1px solid rgba(15, 46, 56, 0.14);
  border-bottom: 1px solid rgba(15, 46, 56, 0.14);
}

.problem-card,
.why-card {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(15, 46, 56, 0.14);
  border-radius: 0;
  padding: 2.4rem 2rem;
  transform: none;
}

.problem-card:last-child,
.why-card:last-child {
  border-right: 0;
}

.problem-card:hover,
.why-card:hover {
  transform: none;
  border-color: rgba(15, 46, 56, 0.14);
}

.p-icon {
  width: auto;
  height: auto;
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 1.4rem;
}

.problem-card:nth-child(1) .p-icon::before { content: '01'; }
.problem-card:nth-child(2) .p-icon::before { content: '02'; }
.problem-card:nth-child(3) .p-icon::before { content: '03'; }
.p-icon { color: transparent; }
.p-icon::before { color: var(--teal); }

.services-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(15, 46, 56, 0.14);
  margin-top: 3.2rem;
}

.service-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(210px, 0.55fr);
  gap: 2rem;
  align-items: start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 46, 56, 0.14);
  border-radius: 0;
  padding: 2.1rem 0;
  overflow: visible;
}

.service-card::before,
.service-card:hover::before {
  display: none;
}

.service-card:hover {
  transform: none;
  border-color: rgba(15, 46, 56, 0.14);
  box-shadow: none;
}

.s-num {
  margin: 0;
  color: var(--teal);
}

.service-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-bottom: 0.55rem;
}

.service-card > p {
  grid-column: 2;
  grid-row: 2;
  max-width: 620px;
  margin-bottom: 1rem;
}

.s-price {
  grid-column: 3;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: start;
  display: block;
  min-width: 190px;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(15, 46, 56, 0.14);
}

.s-price-num {
  display: block;
  font-size: 1.35rem;
}

.s-price-unit {
  display: block;
  margin-top: 0.25rem;
}

.service-card > .s-price-note {
  grid-column: 3;
  grid-row: 2 / span 2;
  justify-self: end;
  align-self: start;
  max-width: 190px;
  margin: 3.2rem 0 0;
  font-size: 0.74rem;
  text-align: left;
}

.s-points {
  grid-column: 2;
  grid-row: 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.s-points li {
  color: #536365;
  font-size: 0.8rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(15, 46, 56, 0.14);
  margin-top: 3.4rem;
}

.product-card,
.product-card:nth-child(4),
.product-card:nth-child(5),
.product-card.nordovi {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr) auto;
  gap: 1.8rem;
  align-items: baseline;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 46, 56, 0.14);
  border-radius: 0;
  padding: 1.75rem 0;
  box-shadow: none;
  overflow: visible;
}

.product-card::before,
.product-card.nordovi::before {
  display: none;
}

.product-card:hover,
.product-card.nordovi:hover {
  box-shadow: none;
  border-color: rgba(15, 46, 56, 0.14);
}

.product-status {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  border: 0;
  padding: 0;
  margin: 0;
  color: #6a787a;
}

.product-name,
.product-card.nordovi .product-name {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--petrol);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.product-type,
.product-card.nordovi .product-type {
  grid-column: 1;
  grid-row: 2;
  color: #6a787a;
}

.product-desc,
.product-card.nordovi .product-desc {
  grid-column: 2;
  grid-row: 2;
  color: #536365;
  max-width: 660px;
}

.product-link,
.product-card.nordovi .product-link {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--teal);
  white-space: nowrap;
}

.team-grid {
  gap: 0;
  border-top: 1px solid rgba(15, 46, 56, 0.14);
  border-bottom: 1px solid rgba(15, 46, 56, 0.14);
}

.team-card {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(15, 46, 56, 0.14);
  border-radius: 0;
  padding: 2.4rem 2rem;
}

.team-card:last-child {
  border-right: 0;
}

.team-card:hover {
  transform: none;
  border-color: rgba(15, 46, 56, 0.14);
}

.team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--teal);
  background: transparent;
  border: 1px solid rgba(23, 129, 127, 0.26);
}

.faq-list {
  gap: 0;
  border-top: 1px solid rgba(15, 46, 56, 0.14);
  border-bottom: 1px solid rgba(15, 46, 56, 0.14);
}

.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 46, 56, 0.14);
  border-radius: 0;
  padding: 1.35rem 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item:hover {
  border-color: rgba(15, 46, 56, 0.14);
}

.faq-item summary::after {
  border: 0;
}

.cta-box {
  background:
    linear-gradient(135deg, rgba(15, 46, 56, 0.94), rgba(15, 46, 56, 0.86)),
    url('../assets/novitum-hero-bg.jpg') center / cover no-repeat;
  border: 0;
  border-radius: 0;
  padding: clamp(3.2rem, 6vw, 5.4rem) 2rem;
}

.cta-box::before {
  display: none;
}

.cta-box .section-eyebrow,
.cta-box h2 {
  color: var(--ivory);
}

.cta-box > p {
  color: rgba(251, 249, 244, 0.78);
}

.cta-box .btn-email {
  color: var(--ivory);
  border-color: rgba(251, 249, 244, 0.28);
  background: rgba(251, 249, 244, 0.04);
}

@media (max-width: 980px) {
  .service-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .s-price,
  .s-price-note {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    max-width: none;
    margin-top: 0.6rem;
    padding-left: 0;
    border-left: 0;
  }
  .s-points {
    grid-template-columns: 1fr;
  }
  .product-card,
  .product-card:nth-child(4),
  .product-card:nth-child(5),
  .product-card.nordovi {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .product-status,
  .product-type,
  .product-name,
  .product-card.nordovi .product-name,
  .product-desc,
  .product-link,
  .product-card.nordovi .product-link {
    grid-column: 1;
    grid-row: auto;
  }
  .product-link,
  .product-card.nordovi .product-link {
    margin-top: 0.7rem;
  }
}

/* Punto medio: mineral, no marrón; contrastado, no blanco quemado */
:root {
  --novitum-mineral: #dfe7e4;
  --novitum-mineral-2: #cfdcda;
  --novitum-surface: #edf1ee;
  --novitum-surface-2: #e4ebe8;
}

body {
  background:
    linear-gradient(180deg, var(--novitum-mineral) 0%, #d5e1df 42%, var(--novitum-surface) 100%);
}

body::before {
  background:
    linear-gradient(rgba(15, 46, 56, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 56, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
}

nav {
  background: linear-gradient(180deg, rgba(223, 231, 228, 0.88), rgba(223, 231, 228, 0.52));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav.scrolled {
  background: rgba(223, 231, 228, 0.94);
}

.hero {
  min-height: 86svh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
  padding: calc(var(--nav-h) + 3.2rem) clamp(1.5rem, 6vw, 7.5rem) 4.2rem;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(219, 228, 225, 0.98) 0%, rgba(219, 228, 225, 0.94) 48%, rgba(207, 220, 218, 0.9) 100%);
  filter: none;
}

.hero::after {
  content: '';
  display: block;
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: center;
  width: 100%;
  min-height: min(58vh, 590px);
  border: 1px solid rgba(15, 46, 56, 0.18);
  background:
    linear-gradient(135deg, rgba(8, 28, 35, 0.64), rgba(15, 46, 56, 0.28)),
    url('../assets/novitum-hero-bg.jpg') center / cover no-repeat;
  box-shadow: 0 26px 70px rgba(15, 46, 56, 0.16);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  grid-column: 1;
  max-width: 720px;
}

.hero-badge {
  margin-bottom: 1.45rem;
  color: #0f7774;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 4.5vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 600px;
  color: #465a5e;
  margin: 1.7rem 0 2.25rem;
}

.hero .btn-ghost {
  background: rgba(237, 241, 238, 0.7);
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(207, 220, 218, 0.95), rgba(223, 231, 228, 0.92));
}

section:not(.section-alt):not(.section-dark),
#servicios,
#equipo {
  background:
    linear-gradient(180deg, rgba(237, 241, 238, 0.94), rgba(228, 235, 232, 0.9));
}

#productos,
#faq {
  background:
    linear-gradient(180deg, rgba(213, 225, 222, 0.98), rgba(198, 214, 211, 0.9));
}

.notice-band {
  box-shadow: 0 16px 34px rgba(15, 46, 56, 0.12);
}

@media (min-width: 1080px) {
  .hero h1 {
    font-size: clamp(3.6rem, 4.45vw, 5.15rem);
  }
}

@media (max-width: 980px) {
  .hero {
    display: flex;
    min-height: auto;
    padding: calc(var(--nav-h) + 2.8rem) 1.35rem 3.5rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(213, 225, 222, 0.98), rgba(228, 235, 232, 0.98));
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 9.2vw, 3.7rem);
    max-width: 12ch;
  }
}

/* Override final: el hero no debe dibujar la línea vieja */
@media (min-width: 981px) {
  .hero::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: auto !important;
    top: calc(var(--nav-h) + 3.2rem) !important;
    right: clamp(1.5rem, 6vw, 7.5rem) !important;
    bottom: auto !important;
    width: min(42vw, 650px) !important;
    height: min(46vh, 470px) !important;
    min-height: 0 !important;
    border: 1px solid rgba(15, 46, 56, 0.16) !important;
    background:
      linear-gradient(135deg, rgba(8, 28, 35, 0.56), rgba(15, 46, 56, 0.14)),
      url('../assets/novitum-hero-bg.jpg') center / cover no-repeat !important;
    box-shadow: 0 24px 62px rgba(15, 46, 56, 0.15) !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 980px) {
  .hero::after {
    display: none !important;
  }
}

/* QA visual 20/08: menos aire muerto y estados legibles durante scroll */
@media (min-width: 981px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 76svh;
    padding-top: calc(var(--nav-h) + 2.3rem);
    padding-bottom: 3rem;
  }

  .hero::after {
    display: block;
    position: absolute;
    left: auto;
    top: calc(var(--nav-h) + 3.2rem);
    right: clamp(1.5rem, 6vw, 7.5rem);
    bottom: 3.2rem;
    width: min(42vw, 650px);
    height: auto;
    min-height: 0;
    border: 1px solid rgba(15, 46, 56, 0.16);
    background:
      linear-gradient(135deg, rgba(8, 28, 35, 0.56), rgba(15, 46, 56, 0.14)),
      url('../assets/novitum-hero-bg.jpg') center / cover no-repeat;
    box-shadow: 0 24px 62px rgba(15, 46, 56, 0.15);
    z-index: 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 4vw, 4.85rem);
    max-width: min(760px, 52vw);
  }

  .hero-sub {
    max-width: min(620px, 48vw);
  }
}

@media (max-width: 720px) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    transition-delay: 0s;
  }

  section {
    padding: 4.2rem 0;
  }

  .problem-card,
  .why-card,
  .team-card,
  .faq-item {
    color: var(--text);
  }

  .problem-card p,
  .why-card p,
  .team-card p,
  .faq-item p {
    color: #637579;
  }

  .section-title {
    font-size: clamp(1.95rem, 8vw, 2.55rem);
  }
}

@media (max-width: 720px) {
  .hero-stats,
  .problems-grid,
  .why-grid,
  .team-grid {
    border-bottom: 0;
  }
  .hero-stat,
  .problem-card,
  .why-card,
  .team-card {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 46, 56, 0.14);
  }
}

/* Hero editorial con lienzo beige y placa petróleo */
.hero {
  isolation: isolate;
}

.hero-stats {
  width: min(840px, calc(100% - 3rem));
  margin-top: 4.2rem;
  border-top: 1px solid rgba(251, 249, 244, 0.16);
  border-bottom: 1px solid rgba(251, 249, 244, 0.16);
}

.hero-stat {
  border-right: 1px solid rgba(251, 249, 244, 0.14);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat-num {
  color: var(--ivory);
}

.hero-stat-label {
  color: rgba(251, 249, 244, 0.66);
}

.hero-scroll {
  color: rgba(15, 46, 56, 0.44);
}

@media (min-width: 1080px) {
  .hero h1 {
    font-size: clamp(3.4rem, 4.1vw, 4.8rem);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: calc(var(--nav-h) + 3.2rem) 1.1rem 4.8rem;
  }

  .hero::before {
    top: calc(var(--nav-h) + 0.9rem);
    left: 0.85rem;
    right: 0.85rem;
    bottom: 2.2rem;
  }

  .hero-badge {
    max-width: 88%;
    gap: 0.45rem;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    justify-content: center;
  }

  .hero-badge-dot {
    width: 28px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.85rem);
    max-width: 13ch;
  }

  .hero-sub {
    max-width: 31rem;
    font-size: 1rem;
    margin-top: 1.4rem;
  }

  .hero-cta {
    width: min(100%, 23rem);
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: none;
  }
}

/* Rediseño Novitum corporativo — tecnología europea, claro y seguro */
:root {
  --novitum-paper: #f6f4ef;
  --novitum-paper-2: #ece9df;
  --novitum-line: rgba(15, 46, 56, 0.13);
  --novitum-teal: #17817F;
  --novitum-ink: #16252a;
}

body {
  background:
    linear-gradient(180deg, #f7f8f6 0%, #eef3f1 46%, #f7f8f6 100%);
}

body::before {
  background:
    linear-gradient(rgba(15, 46, 56, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 56, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
}

nav.scrolled {
  background: rgba(247, 248, 246, 0.92);
}

.hero {
  min-height: 100svh;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: calc(var(--nav-h) + 3.2rem) clamp(1.5rem, 7vw, 8.5rem) 4rem;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.9) 42%, rgba(238, 243, 241, 0.45) 68%, rgba(247, 248, 246, 0.84) 100%),
    linear-gradient(180deg, rgba(247, 248, 246, 0.7), rgba(238, 243, 241, 0.98)),
    url('../assets/novitum-hero-bg.jpg') center right / min(54vw, 820px) no-repeat;
  filter: saturate(0.88) contrast(0.96);
  box-shadow: none;
}

.hero::after {
  content: '';
  display: block;
  position: absolute;
  left: clamp(1.5rem, 7vw, 8.5rem);
  right: clamp(1.5rem, 7vw, 8.5rem);
  bottom: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 46, 56, 0.28), rgba(15, 46, 56, 0.08), transparent);
  pointer-events: none;
}

.hero > * {
  max-width: 760px;
}

.hero-badge {
  color: var(--novitum-teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 1.8rem;
}

.hero-badge-dot {
  width: 36px;
  height: 2px;
  background: var(--novitum-teal);
}

.hero h1 {
  max-width: 760px;
  color: var(--novitum-ink);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.98;
  text-shadow: none;
}

.hero h1 .accent {
  color: #314348;
}

.hero-sub {
  max-width: 650px;
  color: #526468;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.75;
  margin: 2rem 0 2.4rem;
}

.hero-cta {
  justify-content: flex-start;
}

.hero .btn-primary {
  color: #f8fbf9;
  background: var(--petrol);
  border-color: var(--petrol);
  box-shadow: 0 14px 34px rgba(15, 46, 56, 0.18);
}

.hero .btn-primary:hover {
  background: #123743;
  box-shadow: 0 18px 46px rgba(15, 46, 56, 0.24);
}

.hero .btn-ghost {
  color: var(--petrol);
  border-color: rgba(15, 46, 56, 0.22);
  background: rgba(255, 255, 255, 0.36);
}

.hero .btn-ghost:hover {
  color: var(--petrol);
  border-color: rgba(23, 129, 127, 0.58);
  background: rgba(23, 129, 127, 0.08);
}

.hero-stats {
  display: none;
  width: min(820px, 100%);
  margin-top: 4.5rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(15, 46, 56, 0.16);
  border-bottom: 0;
  gap: 0;
}

.hero-stat {
  flex: 1 1 0;
  padding: 0 1.4rem 0 0;
  border: 0;
  border-right: 1px solid rgba(15, 46, 56, 0.13);
  background: transparent;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat-num {
  color: var(--petrol);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.hero-stat-label {
  color: #66777a;
  font-size: 0.68rem;
}

.hero-scroll {
  display: none;
  left: clamp(1.5rem, 7vw, 8.5rem);
  transform: none;
  color: rgba(15, 46, 56, 0.42);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(8, 28, 35, 0.98), rgba(15, 46, 56, 0.94)),
    url('../assets/novitum-hero-bg.jpg') center right / cover no-repeat;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0), rgba(231, 239, 236, 0.72) 14%, rgba(231, 239, 236, 0.72) 86%, rgba(247, 248, 246, 0));
  border-top: 1px solid rgba(15, 46, 56, 0.1);
  border-bottom: 1px solid rgba(15, 46, 56, 0.1);
}

section:not(.section-alt):not(.section-dark) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
}

#servicios,
#equipo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 247, 0.84));
  border-top: 1px solid rgba(15, 46, 56, 0.09);
  border-bottom: 1px solid rgba(15, 46, 56, 0.09);
}

#productos,
#faq {
  background:
    linear-gradient(180deg, rgba(231, 239, 236, 0.82), rgba(241, 246, 244, 0.8));
  border-top: 1px solid rgba(15, 46, 56, 0.11);
  border-bottom: 1px solid rgba(15, 46, 56, 0.11);
}

#proceso {
  background:
    linear-gradient(135deg, rgba(15, 46, 56, 0.96), rgba(8, 28, 35, 0.94));
  color: var(--ivory);
}

#proceso .section-title,
#proceso h3 {
  color: var(--ivory);
}

#proceso .section-desc,
#proceso .process-step p {
  color: rgba(251, 249, 244, 0.72);
}

#proceso .step-num {
  background: rgba(251, 249, 244, 0.06);
  box-shadow: 0 0 0 6px rgba(8, 28, 35, 0.9);
}

#proceso .process-line {
  background: rgba(251, 249, 244, 0.2);
}

section > .container::before {
  content: '';
  position: absolute;
  top: -1.9rem;
  left: 2rem;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0.62;
}

.section-dark > .container::before,
#contacto-cta > .container::before {
  display: none;
}

.problem-card,
.why-card,
.team-card,
.service-card,
.product-card,
.faq-item {
  border-color: var(--novitum-line);
}

.cta-box {
  background:
    linear-gradient(135deg, rgba(8, 28, 35, 0.95), rgba(15, 46, 56, 0.88)),
    url('../assets/novitum-hero-bg.jpg') center right / cover no-repeat;
}

@media (min-width: 1080px) {
  .hero h1 {
    font-size: clamp(4.4rem, 6.2vw, 7rem);
  }
}

/* ══════════════════════════════════════════════════════════
   Ajuste testers 20/08/2026 — vuelven las cajas, con acabado premium
   ══════════════════════════════════════════════════════════ */
:root {
  --novitum-card: rgba(248, 250, 247, 0.82);
  --novitum-card-strong: rgba(255, 255, 255, 0.9);
  --novitum-card-border: rgba(15, 46, 56, 0.16);
  --novitum-card-shadow: 0 18px 46px rgba(15, 46, 56, 0.09);
}

.problems-grid,
.services-grid,
.why-grid,
.team-grid,
.products-grid {
  border: 0;
  gap: 1.15rem;
}

.problem-card,
.why-card,
.team-card,
.service-card,
.faq-item {
  background:
    linear-gradient(180deg, var(--novitum-card-strong), var(--novitum-card));
  border: 1px solid var(--novitum-card-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 46, 56, 0.055);
}

.problem-card,
.why-card,
.team-card {
  border-right: 1px solid var(--novitum-card-border);
}

.problem-card:hover,
.why-card:hover,
.team-card:hover,
.service-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 129, 127, 0.32);
  box-shadow: var(--novitum-card-shadow);
}

.service-card {
  grid-template-columns: 78px minmax(0, 1fr) minmax(190px, 0.46fr);
  padding: 1.8rem;
  overflow: hidden;
}

.service-card::before {
  display: block;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 129, 127, 0.11), transparent 36%);
  opacity: 0;
}

.service-card:hover::before { display: block; opacity: 1; }

.s-num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(23, 129, 127, 0.1);
  border: 1px solid rgba(23, 129, 127, 0.18);
}

.products-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 3.2rem;
}

.product-card,
.product-card:nth-child(4),
.product-card:nth-child(5),
.product-card.nordovi {
  grid-column: span 4;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.55rem;
  border: 1px solid var(--novitum-card-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 245, 0.84));
  box-shadow: 0 14px 34px rgba(15, 46, 56, 0.075);
  overflow: hidden;
}

.product-card:nth-child(4),
.product-card:nth-child(5) {
  grid-column: span 6;
}

.product-card::before,
.product-card.nordovi::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  pointer-events: none;
}

.product-card[data-accent="orange"]::before {
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.96), rgba(255, 122, 26, 0.2));
}

.product-card[data-accent="violet"]::before {
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.9), rgba(139, 124, 246, 0.18));
}

.product-card[data-accent="gold"]::before,
.product-card.nordovi::before {
  background: linear-gradient(90deg, rgba(208, 181, 131, 1), rgba(208, 181, 131, 0.2));
}

.product-card::after {
  content: '';
  position: absolute;
  right: -48px;
  top: -48px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(15, 46, 56, 0.045);
  pointer-events: none;
}

.product-card[data-accent="orange"]::after { background: rgba(255, 122, 26, 0.09); }
.product-card[data-accent="violet"]::after { background: rgba(139, 124, 246, 0.08); }
.product-card[data-accent="gold"]::after { background: rgba(208, 181, 131, 0.12); }

.product-card:hover,
.product-card.nordovi:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 46, 56, 0.13);
}

.product-card[data-accent="orange"]:hover { border-color: rgba(255, 122, 26, 0.5); }
.product-card[data-accent="violet"]:hover { border-color: rgba(139, 124, 246, 0.45); }
.product-card[data-accent="gold"]:hover,
.product-card.nordovi:hover { border-color: rgba(208, 181, 131, 0.62); }

.product-status {
  grid-column: auto;
  grid-row: auto;
  align-self: flex-start;
  display: inline-flex;
  margin: 0 0 1.05rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 46, 56, 0.055);
  border: 1px solid rgba(15, 46, 56, 0.1);
  color: #546467;
}

.product-status.live {
  color: #0f7774;
  background: rgba(23, 129, 127, 0.1);
  border-color: rgba(23, 129, 127, 0.2);
}

.product-status.dev {
  color: #8a620d;
  background: rgba(181, 122, 10, 0.1);
  border-color: rgba(181, 122, 10, 0.18);
}

.product-name,
.product-card.nordovi .product-name {
  grid-column: auto;
  grid-row: auto;
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--petrol);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.product-card[data-accent="orange"] .product-name { color: #c65c12; }
.product-card[data-accent="violet"] .product-name { color: #6254c8; }

.product-type,
.product-card.nordovi .product-type {
  grid-column: auto;
  grid-row: auto;
  margin-bottom: 1.05rem;
  color: #69787b;
}

.product-desc,
.product-card.nordovi .product-desc {
  grid-column: auto;
  grid-row: auto;
  max-width: none;
  color: #536365;
  flex: 1;
}

.product-link,
.product-card.nordovi .product-link {
  grid-column: auto;
  grid-row: auto;
  align-self: flex-start;
  margin-top: 1.4rem;
  color: var(--teal);
  white-space: normal;
}

.product-card.nordovi {
  background:
    linear-gradient(160deg, rgba(15, 46, 56, 0.98), rgba(8, 28, 35, 0.94)),
    url('../assets/novitum-hero-bg.jpg') center right / cover no-repeat;
  border-color: rgba(208, 181, 131, 0.45);
  box-shadow: 0 20px 52px rgba(15, 46, 56, 0.2);
}

.product-card.nordovi::after {
  background: rgba(208, 181, 131, 0.12);
}

.product-card.nordovi .product-name {
  color: #e7d2a5;
}

.product-card.nordovi .product-type,
.product-card.nordovi .product-link {
  color: #d9bf8a;
}

.product-card.nordovi .product-desc {
  color: rgba(251, 249, 244, 0.72);
}

.product-card.nordovi .product-status.dev {
  color: #e7d2a5;
  background: rgba(208, 181, 131, 0.14);
  border-color: rgba(208, 181, 131, 0.35);
}

@media (max-width: 1080px) {
  .product-card,
  .product-card:nth-child(4),
  .product-card:nth-child(5),
  .product-card.nordovi {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .products-grid,
  .problems-grid,
  .services-grid,
  .why-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card:nth-child(4),
  .product-card:nth-child(5),
  .product-card.nordovi {
    grid-column: 1;
    min-height: 0;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .s-num,
  .service-card h3,
  .service-card > p,
  .s-price,
  .service-card > .s-price-note,
  .s-points {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 3rem) 1.4rem 3.5rem;
  }

  .hero::before {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(246, 244, 239, 0.94), rgba(246, 244, 239, 0.88) 55%, rgba(236, 233, 223, 0.96)),
      url('../assets/novitum-hero-bg.jpg') center top / 120vw no-repeat;
  }

  .hero::after {
    left: 1.4rem;
    right: 1.4rem;
    bottom: 2.3rem;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: flex-start;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(2.75rem, 12vw, 4.8rem);
    line-height: 1;
  }

  .hero-sub {
    max-width: 36rem;
  }

  .hero-cta {
    width: min(100%, 25rem);
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: none;
    grid-template-columns: 1fr;
    width: min(100%, 25rem);
    margin-top: 2.6rem;
  }

  .hero-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 46, 56, 0.12);
    padding: 0.8rem 0;
    text-align: left;
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .hero-scroll {
    left: 1.4rem;
  }
}

/* Cierre móvil y punto medio definitivo: sin imagen lavada sobre texto */
@media (min-width: 1080px) {
  .hero h1 {
    font-size: clamp(3.6rem, 4.45vw, 5.15rem);
  }
}

@media (max-width: 980px) {
  .hero {
    display: flex;
    min-height: auto;
    padding: calc(var(--nav-h) + 2.8rem) 1.35rem 3.5rem;
    background: linear-gradient(180deg, #d5e1df, #e4ebe8);
  }

  .hero::before {
    inset: 0;
    background: linear-gradient(180deg, rgba(213, 225, 222, 0.98), rgba(228, 235, 232, 0.98));
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 9.2vw, 3.7rem);
    max-width: 12ch;
  }
}
