/* Davar's only landing, the home page (index.html): a dark, large-type page for owners of companies billing
   USD 50k-100k a month. Self-contained on purpose: it does not load styles.css, so the site's
   other pages keep their look. The brief it sends to (/empresas/diagnostico) uses styles.css. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --bg: #1B1A1F;            /* Robust O-Zone Black */
  --accent: #EBFA5F;        /* the one accent: it leads the eye to the CTA */
  --ink: #F9F9F9;
  --dim: #B4B2AA;           /* 8:1 on the bg */
  --faint: #5c5c5c;
  --line: rgba(255, 255, 255, 0.12);
  --card: linear-gradient(160deg, #2c2b33 0%, #232229 45%, #1B1A1F 100%);
  --white: #F9F9F9;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Poppins", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); color: var(--bg); padding: 8px 14px; border-radius: 99px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.big {
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; margin: 0; color: var(--white);
  font-size: clamp(44px, 8.4vw, 112px);
}
.h2 { font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; margin: 0; color: var(--white); font-size: clamp(36px, 6vw, 76px); }
.h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; color: var(--white); font-size: clamp(34px, 5.4vw, 68px); }
.lede { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 40ch; margin: 24px 0 0; }
.dim { color: var(--dim); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.02em; color: var(--dim); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(235, 250, 95, 0.16); }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  border-radius: 99px; padding: 15px 26px; font: 600 15px/1 "Poppins", sans-serif; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent .arr { display: grid; place-items: center; width: 24px; height: 24px; margin-right: -10px; border-radius: 50%; background: var(--bg); color: var(--accent); font-size: 13px; }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { background: rgba(255, 255, 255, 0.06); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.guarantee .btn:focus-visible, .guarantee a:focus-visible { outline-color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, 0.03); }

/* Top bar: brand in the middle, the CTA at the end (like the reference) */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter); background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0));
}
.bar-step { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.bar-step b { color: var(--white); font-weight: 600; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); font-weight: 600; letter-spacing: 0.14em; font-size: 15px; text-transform: uppercase; }
.logo svg { width: 22px; height: 22px; }
.bar-cta { justify-self: end; white-space: nowrap; font-size: 13px; text-decoration: none; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 99px; padding: 8px 14px; font-weight: 600; }
.bar-cta:hover { background: rgba(235, 250, 95, 0.1); }
@media (max-width: 640px) { .bar { grid-template-columns: auto 1fr; } .bar-step { display: none; } .logo { justify-self: start; } }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 75% 30%, rgba(255, 255, 255, 0.09), transparent 70%),
              radial-gradient(40% 40% at 10% 90%, rgba(255, 255, 255, 0.05), transparent 70%);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--dim); }
.hero-note b { color: var(--white); font-weight: 600; }

/* Sections */
.sec { padding: clamp(80px, 12vw, 160px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vw, 72px); }
.sec-head p { max-width: 38ch; margin: 0; color: var(--dim); }

/* "¿Te pasa?": a grid of short pains */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.pains li { background: var(--bg); padding: clamp(26px, 3.4vw, 40px); }
.pains .q { color: var(--white); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 12px; }
.pains .a { color: var(--dim); font-size: 15px; margin: 0; }
.pains-close { margin: 36px 0 0; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; color: var(--white); max-width: 30ch; line-height: 1.3; }

/* Stacked cards: each one sticks and the next one slides over it */
.stack { position: relative; }
.card {
  position: sticky; top: 72px; min-height: min(78vh, 720px); margin: 0 0 6vh; border-radius: 36px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.55);
  display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px);
}
.card:nth-child(2) { top: 92px; }
.card:nth-child(3) { top: 112px; }
.card-body { position: relative; z-index: 1; max-width: 560px; }
.card .count { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 5px; font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.card .count b { background: var(--white); color: var(--bg); border-radius: 99px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; }
.card p { color: var(--dim); margin: 18px 0 0; max-width: 46ch; }
.card .num {
  position: absolute; right: clamp(16px, 6vw, 80px); bottom: clamp(10px, 4vw, 50px); z-index: 0;
  font-weight: 600; font-size: clamp(140px, 26vw, 340px); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
}
@media (max-width: 720px) { .card { top: 64px !important; } .card .num { top: 28px; bottom: auto; right: 20px; font-size: 120px; } }

/* How we work: three steps in a row */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps li { border: 1px solid var(--line); border-radius: 28px; padding: 30px; background: rgba(255, 255, 255, 0.02); }
.steps .when { font-size: 13px; color: var(--dim); margin: 0 0 40px; }
.steps h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 12px; color: var(--white); font-weight: 600; }
.steps p { margin: 0; color: var(--dim); font-size: 15px; }

/* The guarantee: a white block, the one bright thing on the page */
.guarantee { background: var(--white); color: var(--bg); border-radius: 40px; padding: clamp(36px, 7vw, 96px); }
.guarantee .eyebrow { color: #555; }
.guarantee .eyebrow::before { background: var(--bg); box-shadow: 0 0 0 4px rgba(27, 26, 31, 0.1); }
.guarantee .h2 { color: var(--bg); max-width: 15ch; }
.guarantee .fine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin: 48px 0 0; padding: 32px 0 0; border-top: 1px solid rgba(0, 0, 0, 0.12); list-style: none; }
.guarantee .fine b { display: block; font-size: 15px; margin-bottom: 6px; }
.guarantee .fine span { color: #444; font-size: 15px; }

/* Who's behind it, and who it is for */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, 0.02); }
.panel h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 16px; color: var(--white); font-weight: 600; }
.panel p { color: var(--dim); margin: 0 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--white); font-weight: 600; }
.ticks.no li { color: var(--dim); }
.ticks.no li::before { content: "×"; color: var(--faint); }

/* The VSL in the hero (shows once assets/vsl/vsl.mp4 exists) and the WhatsApp icon on buttons */
/* Video first: the qualifier line, then the video, then a small title, the promise and the button, all centered. */
.hero-vsl { min-height: 0; padding-top: 80px; }
.hero-vsl .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-vsl .eyebrow { margin-bottom: 18px; }
.hero-title { font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; margin: 56px 0 0; color: var(--white); font-size: clamp(28px, 3.6vw, 44px); max-width: 30ch; }
.hero-vsl .lede { margin: 26px auto 0; max-width: 58ch; font-size: clamp(16px, 1.4vw, 18px); }
.hero-vsl .hero-cta { justify-content: center; margin-top: 32px; }
.hero-vsl .hero-note { max-width: 60ch; }
/* A key phrase set in an italic serif over a dry-brush swipe. The swipe is a background, so it follows the text when the phrase wraps. */
.hl { font-family: "Libre Baskerville", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: .94em;
  padding-bottom: .06em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath fill='%23EBFA5F' d='M4 23.5C90 15 200 6 290 4.2C325 3.6 352 3.9 371 5.4C377 6 377.5 11.4 372 11.9C350 12.3 322 11.2 290 11.6C200 13.5 95 20 4 23.5Z'/%3E%3C/svg%3E") 0 calc(100% - .1em) / 100% .4em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.guarantee .hl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath fill='%231B1A1F' d='M4 23.5C90 15 200 6 290 4.2C325 3.6 352 3.9 371 5.4C377 6 377.5 11.4 372 11.9C350 12.3 322 11.2 290 11.6C200 13.5 95 20 4 23.5Z'/%3E%3C/svg%3E"); }
.vsl { margin: 0; width: 100%; max-width: min(1040px, calc((100svh - 340px) * 16 / 9)); min-width: min(100%, 560px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #111; }
@media (max-width: 640px) { .hero-vsl { padding-top: 76px; } .vsl { border-radius: 16px; } .hero-title { margin-top: 36px; } .hero-vsl .eyebrow::before { display: none; } }
.vsl video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vsl figcaption { padding: 14px 20px; font-size: 14px; color: var(--dim); }
.btn .wa { flex: none; }
.vsl:not([hidden]) ~ .vsl-wait { display: none; }

/* FAQ (the video shows once assets/vsl/preguntas.mp4 exists) */
.faq-video { margin: 0 0 40px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.faq-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.faq-video figcaption { padding: 14px 20px; font-size: 14px; color: var(--dim); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--dim); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); margin: 14px 0 0; max-width: 70ch; }

/* Closing CTA and the giant wordmark */
/* "Para leer": links to the articles */
.reads { padding-top: 0; }
.reads .sec-head a { color: var(--white); }
.reads-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reads-list li { border-bottom: 1px solid var(--line); }
.reads-list a { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; text-decoration: none; color: var(--white); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.reads-list a:hover { opacity: .8; }
.final { text-align: left; }
.final .hero-cta { margin-top: 40px; }
.foot { padding: 60px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(90px, 24vw, 330px); color: var(--white); margin: 0 0 32px; text-transform: uppercase; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 13px; color: var(--dim); }
.foot-row a { text-decoration: none; }
.foot-row a:hover, .foot-row button:hover { color: var(--white); }
.foot-row button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* Reveal on scroll (empresas.js adds .in); without JS everything shows */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* The consent bar track.js adds (EU/UK/BR/CA visitors) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; background: #232229; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.consent[hidden] { display: none; }
.consent-text { margin: 0; flex: 1 1 280px; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { padding: 10px 16px; font-size: 13px; }
.consent .btn-solid { background: var(--white); color: var(--bg); }
.consent .btn-line-dark { border-color: var(--line); color: var(--ink); background: transparent; }

/* Scrollbar: thin and dark, in the site colors */
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.34); }
