/* Laboratorio Diesel JVH — branding (uniforme: marino, royal, turquesa, rojo) */

:root {
  /* Colores del uniforme */
  --navy-deep: #030a14;
  --navy: #061528;
  --navy-mid: #0c2340;
  --royal: #1e56d9;
  --royal-dim: #153d9e;
  --cyan: #22d3ee;
  --cyan-dim: #06b6d4;
  --cyan-glow: rgba(34, 211, 238, 0.35);
  --red: #e11d2e;
  --red-bright: #f43f5e;
  --red-dim: #b91c1c;
  --red-glow: rgba(225, 29, 46, 0.38);
  --jvh-purple: #9333ea;

  --bg: var(--navy);
  --bg-elevated: #0a1f3a;
  --bg-card: #0d2444;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f0f4fc;
  --text-muted: #94a8c4;

  /* Cian: acentos técnicos, enlaces, brillos (como el resplandor del inyector) */
  --accent: var(--cyan);
  --accent-dim: var(--cyan-dim);
  --accent-glow: var(--cyan-glow);

  /* Rojo: CTAs (como el rojo del cuello / logo JVH) */
  --cta: var(--red);
  --cta-bright: var(--red-bright);
  --cta-dim: var(--red-dim);

  --service-num: var(--royal);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--navy-deep);
  min-height: 100vh;
}

/* Degradado marino → royal → turquesa (como el polo) + franjas diagonales sutiles encima */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 14px,
      rgba(255, 255, 255, 0.022) 14px,
      rgba(255, 255, 255, 0.022) 15px
    ),
    linear-gradient(
      168deg,
      var(--navy-deep) 0%,
      var(--navy) 22%,
      var(--navy-mid) 48%,
      #0a3a5c 72%,
      #0c4a6e 88%,
      #0e7490 100%
    );
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

img {
  max-width: 100%;
  height: auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(
    180deg,
    rgba(6, 21, 40, 0.96) 0%,
    rgba(6, 21, 40, 0.85) 70%,
    transparent 100%
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--red) 0%,
    var(--jvh-purple) 45%,
    var(--royal) 100%
  );
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 8px 28px var(--red-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.65rem 0;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--cta-bright) 0%,
    var(--cta) 42%,
    var(--cta-dim) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 12px 32px var(--red-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 16px 44px rgba(225, 29, 46, 0.5);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.07);
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 85%;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(34, 211, 238, 0.14) 0%,
    rgba(30, 86, 217, 0.06) 40%,
    transparent 58%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.hero-visual {
  min-height: 280px;
}

.hero-panel {
  position: relative;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    var(--navy-mid) 0%,
    var(--bg-card) 42%,
    #0a3555 100%
  );
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.06);
  overflow: hidden;
}

.hero-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.28);
  top: 50%;
  left: 50%;
  transform: translate(-45%, -55%);
  animation: spin 48s linear infinite;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(30, 86, 217, 0.2);
}

@keyframes spin {
  to {
    transform: translate(-45%, -55%) rotate(360deg);
  }
}

.hero-chip {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(4, 13, 26, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.25);
  backdrop-filter: blur(8px);
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.mono-label.subtle {
  margin-top: 0.35rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.hero-chip-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 0.25rem 0;
  color: var(--text);
}

.hero-slant {
  position: absolute;
  top: -20%;
  right: -30%;
  width: 70%;
  height: 140%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(34, 211, 238, 0.1) 35%,
    rgba(30, 86, 217, 0.06) 55%,
    transparent 75%
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section--dark {
  background: linear-gradient(
    180deg,
    var(--navy-deep) 0%,
    rgba(12, 35, 64, 0.65) 45%,
    var(--navy) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  transform: translateY(-3px);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--service-num);
  letter-spacing: 0.12em;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.5rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Split */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.split-copy p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--royal) 100%);
  box-shadow: 0 0 14px var(--accent-glow);
}

.split-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    rgba(34, 211, 238, 0.07) 0%,
    var(--bg-card) 45%,
    var(--bg-elevated) 100%
  );
  border: 1px solid var(--border);
  padding: 2rem;
}

.pullquote {
  margin: 0;
}

.pullquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 1rem;
}

.pullquote footer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* CTA / Contact */

.section--cta {
  background: radial-gradient(
    ellipse 80% 50% at 50% 100%,
    rgba(34, 211, 238, 0.1) 0%,
    rgba(30, 86, 217, 0.05) 35%,
    transparent 58%
  );
}

.contact-section {
  max-width: 640px;
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1.5rem;
}

.contact-list a {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--cyan);
}

/* Footer */

.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--navy-deep);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark--footer {
  width: 40px;
  height: 40px;
  font-size: 0.75rem;
}

.footer-tag {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reveal animation */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card[data-reveal] {
  transition-delay: calc(var(--i, 0) * 0.06s);
}
