/* MoreLab — landing estática, mobile-first */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #BE0A0A;          /* rojo del logo, 6.1:1 sobre blanco */
  --red-dark: #960808;
  --red-50: #FDF2F2;
  --red-100: #FBE3E3;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6575;        /* 5.6:1 sobre blanco */
  --line: #E5E8EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.modal-abierto { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid rgba(190, 10, 10, .45); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.accent { color: var(--red); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(190, 10, 10, .55); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #CBD2DC; color: var(--ink); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-50); color: var(--red-dark); }

/* Barra superior */
.topbar { background: var(--ink); color: #CBD5E1; font-size: .875rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .i { width: 16px; height: 16px; color: #94A3B8; }
.topbar .topbar-address { display: none; }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.nav { display: none; gap: 4px; }
.wide-only { display: none; }
.narrow-only { display: inline; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; padding: 10px 14px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }

/* Hero */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(60rem 30rem at 100% 0%, var(--red-50), transparent 60%),
    linear-gradient(var(--bg), var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 20px;
  border: 1px solid var(--red-100); border-radius: 999px; background: #fff;
  color: var(--red); font-size: .85rem; font-weight: 650;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-100); }
.lead { font-size: clamp(1.05rem, 3vw, 1.2rem); margin-top: 20px; max-width: 46ch; color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; color: var(--ink-2); font-size: .95rem; font-weight: 550; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { color: var(--red); }

.hero-visual { position: relative; max-width: 420px; width: 100%; margin: 0 auto 24px; }
.report { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.report-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.report-head img { height: 28px; width: auto; }
.pill { font-size: .78rem; font-weight: 700; color: #166534; background: #DCFCE7; padding: 4px 10px; border-radius: 999px; }
.report-title { color: var(--ink); font-weight: 700; margin: 16px 0 8px; }
.report-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.report-rows span { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.report-rows span .i { color: var(--muted); width: 18px; height: 18px; }
.report-rows .ok { color: #16A34A; }
.report-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 12px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 650; }
.report-tag {
  position: absolute; left: -12px; bottom: -28px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 650; color: var(--ink); font-size: .95rem; line-height: 1.3;
}
.report-tag .i { color: var(--red); width: 24px; height: 24px; }
.report-tag small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Secciones */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow { color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #D8DDE5; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red-50); color: var(--red); margin-bottom: 16px; }
.card-icon .i { width: 24px; height: 24px; }
.card p { color: var(--muted); margin-top: 8px; }
.card-feature { background: var(--ink); border-color: var(--ink); }
.card-feature:hover { border-color: var(--ink); }
.card-feature h3 { color: #fff; }
.card-feature p { color: #CBD5E1; }
.card-feature .card-icon { background: rgba(255, 255, 255, .1); color: #fff; }

.ticks { margin-top: 12px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--red-100); box-shadow: inset 0 0 0 2px var(--red); }

.promo .price { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.price s { color: var(--muted); }
.price strong { color: var(--ink); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
#promociones .center { margin-top: 32px; }

/* Banda de resultados */
.cta { background: var(--red); color: #FDE8E8; padding: 56px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none; }
.cta-row { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.cta p { margin-top: 10px; max-width: 52ch; }

/* Nosotros + ubicación */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.about-grid h2 { margin-bottom: 16px; }
.body { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.location { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.location h3 { font-size: 1.25rem; margin-bottom: 20px; }
.contact { display: grid; gap: 16px; }
.contact li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); overflow-wrap: anywhere; }
.contact .i { color: var(--red); margin-top: 3px; }
.contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact a:hover { color: var(--red); }
.location-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 28px; }

/* Pie */
.footer { background: var(--ink); color: #94A3B8; padding: 56px 0 0; font-size: .95rem; }
.footer a { color: #E2E8F0; text-decoration: none; display: inline-block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 40px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #1E293B; }
.footer-bottom p:first-child { color: #E2E8F0; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.footer-legal a { color: #94A3B8; }

/* Modal de consulta */
.modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); flex-direction: column; }
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(15, 23, 42, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.close:hover { background: var(--bg-soft); }
.modal-frame { flex: 1; width: 100%; border: 0; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); text-align: center; font-size: .875rem; }
.modal-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } }

/* ≥ 640 px */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ≥ 960 px */
@media (min-width: 960px) {
  .topbar .topbar-address { display: inline-flex; }
  .nav { display: flex; }
  .wide-only { display: inline; }
  .narrow-only { display: none; }
  .brand img { height: 40px; }
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-visual { margin: 0 0 0 auto; }
  .section { padding: 104px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cta-row { grid-template-columns: 1fr auto; gap: 48px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .modal { width: min(560px, 92vw); height: min(780px, 90vh); margin: auto; border-radius: 18px; }
}

/* En celulares muy angostos la tarjeta flotante se integra al flujo */
@media (max-width: 380px) {
  .report-tag { position: static; margin-top: 12px; }
  .hero-visual { margin-bottom: 0; }
}
