/* =========================================================
   Landing Google Ads – Alquiler y venta de maquinaria
   Optisystem S.A.S
   ========================================================= */

:root {
  --accent: #F5B700;          /* amarillo de seguridad (cámbialo aquí) */
  --ink: #14171A;
  --ink-2: #1E2226;
  --ink-3: #3A4046;
  --ground: #F2F3F1;
  --white: #FFFFFF;
  --muted: #3D444A;
  --muted-2: #4A5157;
  --muted-dark: #D3D8DC;
  --label: #8A5A00;
  --border: #9AA1A7;
  --link-blue: #1A47B8;
  --whatsapp: #25D366;

  --font-display: 'Archivo', 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
input, select, button { font: inherit; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: 96px; padding-bottom: 96px; }
.section--dark { background: var(--ink); color: var(--ground); }
.section--white { background: var(--white); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}
.section--dark .eyebrow { color: var(--accent); }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.text-accent { color: var(--accent); }
.lead { margin: 0; font-size: 1.15rem; color: var(--muted); }
.section--dark .lead { color: var(--muted-dark); }

.heading-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 18px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ground); border: 2px solid var(--ground); font-weight: 700; }
.btn--whatsapp { background: var(--whatsapp); color: var(--ink); min-height: 48px; padding: 14px 22px; }
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: var(--ground); }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ground);
}
.brand__mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
.topbar__tag { color: #B8BEC4; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--ground); border-bottom: 10px solid var(--accent); }
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}
.hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 900;
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__sub { margin: 0; font-size: 1.25rem; color: var(--muted-dark); max-width: 600px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; color: var(--muted-dark); }
.checks span { display: flex; align-items: center; gap: 8px; }
.checks svg { stroke: var(--accent); }

/* Simulación del anuncio */
.ad-mock {
  flex: 1 1 360px;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.ad-mock__search {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #D6DADD;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
}
.ad-mock__ad {
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.ad-mock__sponsored { font-size: 12px; font-weight: 700; }
.ad-mock__url { font-size: 13px; color: var(--muted-2); }
.ad-mock__title { font-size: 20px; font-weight: 700; color: var(--link-blue); line-height: 1.25; }
.ad-mock__desc { font-size: 14px; color: var(--muted-2); }
.ad-mock__chips {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  background: var(--ground);
  padding: 6px 12px;
  border-radius: 999px;
}
.ad-mock__caption { font-size: 14px; color: var(--muted-2); text-align: center; }
.ad-mock__caption strong { color: var(--ink); }

/* ---------- Agitación ---------- */
.stack { display: flex; flex-direction: column; gap: 44px; }
.pains { display: flex; flex-wrap: wrap; gap: 16px; }
.pain {
  flex: 1 1 340px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; gap: 16px; align-items: flex-start;
}
.pain__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--label);
  line-height: 1;
}
.pain p { margin: 0; font-size: 17px; }
.punch { margin: 0; font-size: 1.2rem; font-weight: 700; max-width: 760px; }

/* ---------- Calculadora ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.split--top { align-items: flex-start; }
.split__main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split__side { flex: 1 1 380px; min-width: 0; }

.calc__fields { display: flex; flex-direction: column; gap: 16px; }
.calc__row { display: flex; flex-wrap: wrap; gap: 16px; }
.calc__row .field { flex: 1 1 160px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input,
.field select {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 48px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

.field--dark input {
  border: 2px solid var(--ink-3);
  background: var(--ink-2);
  color: var(--ground);
  min-height: 52px;
  font-size: 18px;
  font-weight: 700;
}

.calc__result {
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.calc__label { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.calc__big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.calc__per { font-size: 17px; font-weight: 700; }
.calc__year {
  border-top: 2px solid rgba(20, 23, 26, .25);
  padding-top: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.calc__year span:first-child { font-size: 17px; }
.calc__year span:last-child { font-size: 15px; }

/* ---------- Comparativo ---------- */
.compare { display: flex; flex-direction: column; gap: 12px; }
.compare__row {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.compare__row span:first-child { font-weight: 700; }
.compare__row span:last-child { color: var(--muted-2); font-size: 15px; text-align: right; }
.compare__row--win { background: var(--ink); color: var(--ground); border: 3px solid var(--accent); }
.compare__row--win span:first-child { font-weight: 800; }
.compare__row--win span:last-child { color: var(--muted-dark); }

/* ---------- Método ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 14px; }
.step {
  flex: 1 1 200px;
  background: var(--ground);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.step__letter { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1; }
.step h3 { margin: 0; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Incluye ---------- */
.includes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; }
.includes svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Precio ---------- */
.price {
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.price .eyebrow { color: var(--accent); }
.price__anchor { margin: 0; font-size: 16px; color: var(--muted-dark); }
.price__anchor strong { color: var(--ground); }
.price__anchor .text-accent { color: var(--accent); }
.price__amount-wrap {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--ink-3);
  padding-top: 18px;
}
.price__plan { font-size: 15px; color: var(--muted-dark); }
.price__amount-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price__iva { font-weight: 700; color: var(--muted-dark); }
.price__rows { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.price__rows div { display: flex; justify-content: space-between; gap: 12px; }
.price__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted-dark);
  background: var(--ink-2);
  border-radius: 8px;
  padding: 14px 16px;
}

/* ---------- FAQ / Objeciones ---------- */
.faq { max-width: 880px; display: flex; flex-direction: column; gap: 32px; }
.faq .h2 { text-align: center; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--ground); border-radius: var(--radius); padding: 20px 24px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Autoridad ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 260px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted-2);
  font-size: 16px;
}

/* ---------- CTA final ---------- */
.final { border-top: 10px solid var(--accent); }
.final__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.final .btn--whatsapp { align-self: flex-start; }

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.form__row .field { flex: 1 1 160px; }
.form__note { font-size: 13px; color: var(--muted-2); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #0B0D0F; color: #B8BEC4; }
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 32px; padding-bottom: 32px;
  font-size: 14px;
}
.footer strong { color: var(--ground); }

/* ---------- Consentimiento ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--ink); }
.consent a { color: var(--ink); font-weight: 700; }
.footer a { color: #D3D8DC; }

/* ---------- Barra fija móvil ---------- */
.mobile-cta { display: none; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero__inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .topbar__tag { display: none; }
  .hero__ctas .btn { width: 100%; }
  .calc__result, .price, .form { padding: 24px; }
  .compare__row { flex-direction: column; align-items: flex-start; }
  .compare__row span:last-child { text-align: left; }

  body { padding-bottom: 84px; }
  .mobile-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
  }
  .mobile-cta .btn--primary { flex: 1; min-height: 52px; }
  .mobile-cta .btn--whatsapp { width: 60px; padding: 0; min-height: 52px; }
}