/* Paleta heredada de la landing original de MANVASA TPV */
:root {
  --bg: #F4F2EE;
  --surface: #FFFFFF;
  --ink: #0E1A24;
  --ink-soft: #55616D;
  --ink-muted: #6B7783;
  --ink-faint: #8A949E;
  --brand: #16456B;
  --brand-dark: #0E2C45;
  --green: #1F8A5F;
  --red: #B3261E;
  --line: rgba(14, 26, 36, 0.08);
  --line-strong: rgba(14, 26, 36, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ── Header / footer ───────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.brand__sub { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-muted); }

.powered {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.powered strong { color: var(--brand); font-weight: 600; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-faint); }
.site-footer a:hover { color: var(--brand); }
.site-footer nav { display: flex; gap: 18px; }

/* ── Tarjeta principal ─────────────────────────────────────────────────────── */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid rgba(14, 26, 36, 0.09);
  border-radius: 18px;
  padding: 44px 40px;
  box-shadow: 0 1px 2px rgba(14, 26, 36, 0.04), 0 18px 48px -24px rgba(14, 26, 36, 0.18);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 69, 107, 0.07);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 24px;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pill--test { background: rgba(179, 38, 30, 0.08); color: var(--red); }
.pill--test .pill__dot { background: var(--red); }

h1 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.lead {
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── Formulario ────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

.field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 69, 107, 0.12);
}
.field input::placeholder { color: var(--ink-faint); }

/* Importe: tipografía grande con el símbolo € fijo a la derecha */
.amount { position: relative; }
.amount input {
  min-height: 64px;
  padding-right: 46px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.amount__currency {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-faint);
  pointer-events: none;
}

.row { display: flex; gap: 12px; }
.row .field { flex: 1; min-width: 0; }

.fixed-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(22, 69, 107, 0.04);
}
.fixed-amount span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-faint); }
.fixed-amount strong { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }

/* ── Botón ─────────────────────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover:not(:disabled) { background: var(--brand-dark); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn__arrow { font-size: 18px; line-height: 1; }

.note {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

.alert {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(179, 38, 30, 0.07);
  color: var(--red);
  font-size: 13.5px;
  line-height: 1.5;
}
.alert--info { background: rgba(22, 69, 107, 0.07); color: var(--brand); }

.divider { height: 1px; background: var(--line); margin: 32px 0 24px; }

.methods { display: flex; flex-direction: column; gap: 4px; }
.methods span:first-child {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.methods span:last-child { font-size: 13.5px; color: var(--ink-soft); }

[hidden] { display: none !important; }

/* ── Pantalla de resultado ─────────────────────────────────────────────────── */
.result-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
  color: #fff;
  background: var(--green);
}

.receipt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.receipt dt, .receipt span:first-child { color: var(--ink-faint); }
.receipt span:last-child { font-weight: 600; text-align: right; word-break: break-word; }

@media (max-width: 480px) {
  .card { padding: 32px 22px; }
  h1 { font-size: 25px; }
  .site-header, .site-footer { padding: 18px 20px; }
  .row { flex-direction: column; gap: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Landing (/) — secciones añadidas en la revisión de septiembre 2026
   ═══════════════════════════════════════════════════════════════════════════ */

.page-landing { display: block; }
.page-landing .site-header { padding-left: 48px; padding-right: 48px; }

a.brand { color: inherit; }
a.brand:hover { color: inherit; }

.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 16px;
  padding-bottom: 16px;
  /* Fondo sólido a propósito: un backdrop-filter aquí obliga al compositor a
     rerasterizar toda la página bajo el header en cada scroll, y sobre un fondo
     plano como este no aporta nada visible. */
  background: var(--bg);
}

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Variantes del botón ------------------------------------------------------ */
.btn--sm {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 18px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn--inline {
  display: inline-flex;
  width: auto;
  margin-top: 0;
  padding: 0 28px;
}

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover:not(:disabled) { background: #E8EEF3; color: var(--brand-dark); }

a.btn { text-decoration: none; }
a.btn:hover { color: #fff; }
a.btn--light:hover { color: var(--brand-dark); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero --------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.hero__content .pill { align-self: flex-start; margin-bottom: 26px; }

.hero h1 {
  margin: 0 0 20px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero .lead { margin: 0 0 32px; font-size: 17px; max-width: 56ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__media {
  min-height: 420px;
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column; gap: 2px; }
.stats dt { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stats dd { margin: 0; font-size: 12px; color: var(--ink-muted); }

/* Estructura de secciones -------------------------------------------------- */
.section { padding: 64px 48px; border-bottom: 1px solid var(--line); }
.section[id] { scroll-margin-top: 80px; }
.section--white { background: var(--surface); }
.section:last-of-type { border-bottom: none; }

.wrap { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.eyebrow--light { color: #7FA8C6; }

.section h2 {
  margin: 12px 0 40px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 34ch;
  text-wrap: pretty;
}
.h2--tight { margin-bottom: 16px !important; font-size: 30px; }

/* Cómo funciona ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}

.step {
  padding: 26px;
  border: 1px solid rgba(14, 26, 36, 0.09);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step__num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(22, 69, 107, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* Servicios ---------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
}

.service {
  background: var(--surface);
  border: 1px solid rgba(14, 26, 36, 0.09);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service__media { height: 190px; background-size: cover; background-position: center; }
.service__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.service h3 { margin: 0; font-size: 18px; font-weight: 600; }
.service p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* Sobre MANVASA ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  background: var(--ink);
  color: #fff;
}

.about__media {
  min-height: 360px;
  background-image: url('/assets/img/fabrica.jpg');
  background-size: cover;
  background-position: center;
}

.about__body {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__body h2 {
  margin: 12px 0 18px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.about__body p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  text-wrap: pretty;
}
.about__body p:last-of-type { margin-bottom: 0; }

.link-underline {
  margin-top: 26px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
}
.link-underline:hover { color: #fff; border-color: #fff; }

/* Seguridad ---------------------------------------------------------------- */
.security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: start;
}
.security__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 50ch; text-wrap: pretty; }
.security__list { display: grid; gap: 14px; }
.security__item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(14, 26, 36, 0.09);
  border-radius: 14px;
}
.security__dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.security__item h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.security__item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* CTA final ---------------------------------------------------------------- */
.cta {
  background: var(--brand);
  border-radius: 22px;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta__text { max-width: 46ch; }
.cta h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: none;
  text-wrap: pretty;
}
.cta p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.cta .btn { width: auto; min-height: 56px; margin-top: 0; padding: 0 32px; font-size: 16.5px; }

.site-footer--wide { padding: 28px 48px; font-size: 12.5px; }
.site-footer--wide nav { flex-wrap: wrap; }

/* Responsive de la landing ------------------------------------------------- */
@media (max-width: 900px) {
  .page-landing .site-header { padding-left: 24px; padding-right: 24px; }
  .hero__content { padding: 52px 24px; }
  .section { padding: 52px 24px; }
  .about__body { padding: 52px 24px; }
  .site-footer--wide { padding: 24px; }
  .hero h1 { font-size: 36px; }
  .section h2, .about__body h2, .cta h2 { font-size: 27px; }
  .cta { padding: 36px 28px; }
}

@media (max-width: 620px) {
  .header-actions .powered { display: none; }
  .hero__media { min-height: 260px; }
  .about__media { min-height: 240px; }
  .hero__actions .btn--inline, .hero__actions .btn-ghost { width: 100%; }
  .cta .btn { width: 100%; }
}
