/* =========================================================
   DAP SOLUTION – styles.css
   Paleta extraída de las imágenes de referencia
   ========================================================= */

/* ---------- Variables globales ---------- */
:root {
  /* Fondos (Imagen 1: azul-negro; Imágenes 2-5: violeta muy oscuro) */
  --bg-hero: #05011a;
  --bg-main: #14001f;
  --bg-footer: #05011a;
  --bg-card: #200c24;
  --bg-card-hover: #28122d;

  /* Texto */
  --text: #ffffff;
  --text-muted: #9d96b8;

  /* Acentos */
  --blue: #2563eb;          /* botón "Equipo de laboratorio", badge, logo */
  --blue-light: #3b82f6;    /* iconos, checks, bordes activos */
  --blue-glow: rgba(37, 99, 235, .35);
  --purple: #6b4fc4;        /* degradado de "Explora" */
  --purple-soft: #8b6fe0;
  --particle: #c9c1ff;

  /* Bordes y sombras */
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .22);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);

  --font: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

h1, h2 { font-weight: 300; letter-spacing: -.01em; line-height: 1.12; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 8px;
  font: 600 .875rem var(--font); cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: #0b0b1a; }
.btn-light:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, .2); }
.btn-outline { background: rgba(255, 255, 255, .02); border-color: var(--border); color: #fff; }
.btn-outline:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .06); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 8px 28px var(--blue-glow); }
.btn-block { width: 100%; }

/* ---------- Cabecera (Imagen 1) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(90deg, #05011a 0%, #12021f 100%);
  border-bottom: 1px solid var(--border);
  transition: background .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(8, 2, 24, .82); backdrop-filter: blur(14px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 300; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid var(--blue-light);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--blue-light);
}

.main-nav { display: flex; gap: 32px; font-size: .875rem; }
.main-nav a:not(.btn) { color: #fff; opacity: .85; transition: opacity .2s, color .2s; }
.main-nav a:not(.btn):hover { opacity: 1; color: var(--purple-soft); }
.nav-signin-mobile { display: none; }
.nav-signin { padding: 10px 16px; background: rgba(255, 255, 255, .02); }

.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: #fff; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Imagen 1) ---------- */
.hero {
  min-height: 100vh; padding-top: var(--header-h);
  display: flex; align-items: center;
  background: radial-gradient(ellipse at 75% 50%, #0c0530 0%, var(--bg-hero) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding-block: 60px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); }
.grad {
  background: linear-gradient(90deg, #5d46b8, #8d78e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; max-width: 34ch; font-size: 1.15rem; color: var(--text-muted); }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual { display: grid; place-items: center; }
#particles { width: min(100%, 460px); aspect-ratio: 1; }

/* ---------- Estadísticas (Imagen 2) ---------- */
.stats { background: linear-gradient(180deg, var(--bg-hero), var(--bg-main)); padding: 48px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 24px; }
.stat strong { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; line-height: 1.1; }
.stat span { color: var(--text-muted); font-size: .95rem; }

/* ---------- Features (Imágenes 2 y 3) ---------- */
.features { padding: 100px 0 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 7vw, 96px);
  margin-bottom: 110px;
}
.feature.reverse .feature-text { order: 2; }
.feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.feature p { color: var(--text-muted); max-width: 44ch; }

.media {
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 190, 255, .25);
  box-shadow: 0 0 60px rgba(60, 40, 160, .35);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media svg { width: 72px; height: 72px; fill: none; stroke: rgba(160, 220, 255, .85); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(80, 180, 255, .8)); }
.media-1 { background: radial-gradient(circle at 50% 60%, #3d9fd4 0%, #1b3a6b 45%, #120a2e 100%); }
.media-2 { background: radial-gradient(circle at 60% 55%, #2a6fb0 0%, #14284f 50%, #0d0824 100%); }
.media-3 { background: radial-gradient(circle at 70% 40%, #7a4be0 0%, #1a2a6a 45%, #080a24 100%); }

/* ---------- Solutions (Imagen 4) ---------- */
.solutions { padding: 60px 0 100px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); background: var(--bg-card-hover); border-color: rgba(59, 130, 246, .6); box-shadow: 0 0 30px var(--blue-glow); }
.icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(37, 99, 235, .15); border: 1px solid rgba(59, 130, 246, .3);
}
.icon svg { width: 17px; height: 17px; fill: none; stroke: var(--blue-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .85rem; color: var(--text-muted); }

/* ---------- Pricing (Imagen 5) ---------- */
.pricing { padding: 40px 0 100px; background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-hero) 100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; max-width: 920px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .25s, box-shadow .25s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: var(--blue-light); background: #25182d; box-shadow: 0 20px 60px var(--blue-glow); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; font-weight: 600; }
.plan-desc { font-size: .8rem; color: var(--text-muted); margin: 6px 0 20px; }
.price { margin-bottom: 20px; }
.price strong { font-size: 2rem; font-weight: 700; }
.price span { font-size: .8rem; color: var(--text-muted); margin-left: 4px; }
.plan ul { flex: 1; display: grid; gap: 10px; align-content: start; margin-bottom: 24px; font-size: .8rem; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li::before {
  content: ""; flex: none; width: 14px; height: 14px;
  background: var(--blue-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Footer (Imagen 5) ---------- */
.site-footer { background: var(--bg-footer); text-align: center; padding: 40px 24px; font-size: .8rem; color: var(--text-muted); }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .plan { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  #particles { width: min(100%, 340px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-signin { display: none; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: rgba(8, 2, 24, .97); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-signin-mobile { display: inline-flex; margin-top: 16px; }

  .feature, .feature.reverse { grid-template-columns: 1fr; margin-bottom: 72px; text-align: center; }
  .feature.reverse .feature-text { order: 0; }
  .feature p { margin-inline: auto; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan.featured { order: -1; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .stats-grid { gap: 8px; }
  .stat span { font-size: .78rem; }
  .features { padding-top: 64px; }
}
