/* QuidelXpert · sitio web */
:root {
  --bg: #07131f;
  --bg-2: #0a1c2c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(110, 220, 230, 0.14);
  --line-strong: rgba(110, 220, 230, 0.32);
  --text: #e9f2f6;
  --muted: #9bb1bf;
  --teal: #2fd6c6;
  --cyan: #3cc4f5;
  --amber: #f4a83a;
  --navy: #0d2a44;
  --grad: linear-gradient(92deg, #34e0cf 0%, #3cc4f5 100%);
  --grad-warm: linear-gradient(92deg, #34e0cf 0%, #f4a83a 100%);
  --radius: 18px;
  --wrap: 1160px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(47, 214, 198, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(60, 196, 245, 0.10), transparent 60%),
    radial-gradient(600px 400px at 70% 110%, rgba(244, 168, 58, 0.07), transparent 60%),
    var(--bg);
}
img, video { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background-image: var(--grad-warm); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  background: var(--grad);
  color: #04202a; font: 700 16px/1 var(--font-body);
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 28px -10px rgba(47, 214, 198, 0.6);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(47, 214, 198, 0.75); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 19, 31, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 7px 16px; flex-shrink: 0; }
/* Logo con llama animada: base + capa de la llama */
.logo { position: relative; display: block; height: 30px; aspect-ratio: 900 / 323; }
.logo img { position: absolute; max-width: none; }
.logo-base { inset: 0; width: 100%; height: 100%; }
.logo-flame {
  left: 0; top: 0; width: 16%; height: 43.96%;
  transform-origin: 50% 100%;
  animation: flame 2.6s ease-in-out infinite, flicker 1.7s ease-in-out infinite;
  will-change: transform, filter;
}
@keyframes flame {
  0%   { transform: skewX(0deg)   scale(1, 1); }
  15%  { transform: skewX(-4deg)  scale(0.97, 1.05); }
  30%  { transform: skewX(3deg)   scale(1.02, 0.96); }
  45%  { transform: skewX(-2deg)  scale(0.98, 1.07); }
  60%  { transform: skewX(4deg)   scale(1.01, 0.98); }
  75%  { transform: skewX(-3deg)  scale(0.97, 1.04); }
  90%  { transform: skewX(1.5deg) scale(1.01, 0.99); }
  100% { transform: skewX(0deg)   scale(1, 1); }
}
@keyframes flicker {
  0%   { filter: brightness(1)    saturate(1); }
  20%  { filter: brightness(1.12) saturate(1.15); }
  35%  { filter: brightness(0.96) saturate(1); }
  55%  { filter: brightness(1.08) saturate(1.1); }
  80%  { filter: brightness(1.15) saturate(1.2); }
}
.brand-big { padding: 14px 28px; margin-bottom: 28px; box-shadow: 0 0 40px -6px rgba(47, 214, 198, 0.45); }
.brand-big .logo { height: 56px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Portada */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(47, 214, 198, 0.08); border: 1px solid var(--line-strong);
  color: var(--teal); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; margin: 22px 0 26px; }
.questions { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 10px; }
.questions li {
  position: relative; padding-left: 30px;
  color: var(--text); font-size: 18px; line-height: 1.45;
}
.questions li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(47, 214, 198, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fd6c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--line-strong);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-video { margin: 0; justify-self: center; text-align: center; }
.phone {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0b2133;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.03),
    0 30px 80px -20px rgba(47, 214, 198, 0.45),
    0 10px 60px -30px rgba(244, 168, 58, 0.5);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(7, 19, 31, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(47, 214, 198, 0.15);
  transition: transform .2s ease, background-color .2s ease;
}
.play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.play:hover { transform: scale(1.06); background: rgba(47, 214, 198, 0.4); }
.phone.playing .play { display: none; }
.hero-video figcaption { margin-top: 16px; font-size: 15px; color: var(--text); }

/* Secciones */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.lead { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47, 214, 198, 0.2), rgba(60, 196, 245, 0.08));
  border: 1px solid var(--line-strong);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; margin-bottom: 18px; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Remuneraciones */
.feature { display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 15.6L5.8 12l1.7-1.7 2.9 2.9 6.1-6.1 1.7 1.7z'/%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'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 15.6L5.8 12l1.7-1.7 2.9 2.9 6.1-6.1 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sim {
  background: linear-gradient(180deg, #0c2236, #081827);
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 28px;
  box-shadow: 0 30px 80px -30px rgba(47, 214, 198, 0.35);
  font-variant-numeric: tabular-nums;
}
.sim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--font-display); font-weight: 600; color: var(--teal); }
.tag { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(244, 168, 58, 0.4); padding: 3px 10px; border-radius: 999px; }
.sim-label { color: var(--muted); font-size: 14px; }
.sim-big { font-family: var(--font-display); font-weight: 700; font-size: 34px; margin: 4px 0 14px; }
.sim-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); margin-bottom: 22px; position: relative; }
.sim-track span { position: absolute; inset: 0 32% 0 0; border-radius: inherit; background: var(--grad); }
.sim-track span::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(47, 214, 198, 0.3); }
.sim-rows { margin: 0 0 20px; display: grid; gap: 12px; }
.sim-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.sim-rows dt { color: var(--text); }
.sim-rows dd { margin: 0; color: var(--amber); font-weight: 700; white-space: nowrap; }
.sim-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.sim-bar .b1 { flex: 81; background: var(--grad); }
.sim-bar .b2 { flex: 11; background: var(--amber); }
.sim-bar .b3 { flex: 8; background: #e3596b; }
.sim-result { color: var(--teal); font-size: 40px; margin-bottom: 6px; text-shadow: 0 0 24px rgba(47, 214, 198, 0.35); }
.sim-note { color: var(--muted); font-size: 12px; text-align: right; }

/* Por qué */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { padding: 26px 24px; border-left: 2px solid; border-image: var(--grad) 1; background: var(--surface); }
.why-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 16px; }

/* Contacto */
.contact-card {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 64px 40px; border-radius: 28px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(47, 214, 198, 0.18), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
}
.contact-card h2 { font-size: clamp(30px, 4vw, 46px); }
.contact-card .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-center { justify-content: center; margin-top: 32px; }
.email-line { margin-top: 20px; font-weight: 500; overflow-wrap: anywhere; }
.tags { margin-top: 28px; color: var(--muted); font-size: 14px; }
.btn-whatsapp { background: #25d366; color: #052e16; margin-top: 16px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-footer .logo { height: 26px; }
.site-footer p { color: var(--muted); font-size: 14px; }

/* Aviso */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #fff; color: #07131f; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .play { transition: none; }
  .logo-flame { animation: none; }
}

/* Responsivo */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand { padding: 6px 12px; }
  .site-header .logo { height: 24px; }
  .brand-big .logo { height: 44px; }
  .cards, .steps, .why { grid-template-columns: 1fr; }
  .questions li { font-size: 16.5px; }
  .kicker { font-size: 11.5px; letter-spacing: 0.05em; }
  .cta-row .btn { flex: 1 1 100%; }
  .contact-card { padding: 44px 20px; }
  .sim { padding: 22px; }
  .sim-big { font-size: 28px; }
  .sim-result { font-size: 34px; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* Página 404 */
.notfound { text-align: center; min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 24px; }
.notfound h1 { font-size: clamp(30px, 5vw, 48px); }
.notfound .lead { margin: 0; }
