/* FoundFactor — tokens de marca y piezas propias */
:root {
  --brand: #1fd17a;
  --brand-2: #00bfd0;
  --brand-grad: linear-gradient(125deg, #22d67c 0%, #00c2cf 100%);
  --brand-soft: rgba(31, 209, 122, .12);
  --on-brand: #03241a;
  --bg: #ffffff;
  --bg-alt: #f3f8f6;
  --ink: #0b1a16;
  --ink-2: #4b5a56;
  --ink-3: #82908c;
  --line: #e1e9e6;
  --font-display: "DM Serif Display", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.012em;
}

.hero h1 em, h2 em { font-style: italic; }
.hero__visual { position: relative; min-height: 520px; }

/* Maqueta: ficha del objeto */
.ff-app { position: relative; width: min(100%, 520px); margin-left: auto; }
.ff-app__body { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.ff-side { border-right: 1px solid var(--line); padding: 18px 14px; display: grid; gap: 6px; align-content: start; font-size: .78rem; color: var(--ink-2); background: var(--bg-alt); }
.ff-side b { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.ff-side b.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ff-side b i { width: 8px; height: 8px; border-radius: 3px; background: var(--line); }
.ff-side b.on i { background: var(--brand-grad); }
.ff-main { padding: 20px; }
.ff-item { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ff-thumb { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, #fff4df, #ffe1ec); }
.ff-item h4 { font-family: var(--font-body); font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 4px; }
.ff-item small { color: var(--ink-3); font-size: .78rem; }
.ff-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ff-meta div { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; font-size: .78rem; color: var(--ink-3); }
.ff-meta strong { display: block; color: var(--ink); font-size: .86rem; font-weight: 600; margin-top: 2px; }
.ff-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .82rem; }
.ff-track li { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.ff-track li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; background: var(--surface); }
.ff-track li.done { color: var(--ink); }
.ff-track li.done::before { border: 0; background: var(--brand-grad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303241a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ff-track li span { margin-left: auto; font-size: .72rem; color: var(--ink-3); }

.ff-mail {
  position: absolute; left: -8%; bottom: -2%; width: 270px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg); font-size: .82rem;
}
.ff-mail header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ff-mail header img { width: 28px; height: 28px; }
.ff-mail header small { display: block; color: var(--ink-3); font-size: .72rem; }
.ff-mail p { color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.ff-mail .btn { height: 34px; font-size: .78rem; padding: 0 14px; width: 100%; }
.ff-badge {
  position: absolute; right: -4%; top: -28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: .8rem; display: flex; gap: 10px; align-items: center;
}
.ff-badge b { font-size: 1.1rem; }
.ff-badge small { display: block; color: var(--ink-3); font-size: .7rem; }
@media (max-width: 960px) {
  .hero__visual { min-height: 0; padding: 0 0 80px; }
  .ff-app { margin: 0 auto; }
  .ff-mail { left: 0; bottom: 0; }
  .ff-badge { right: 0; top: -20px; }
}
@media (max-width: 560px) {
  .ff-app__body { grid-template-columns: 1fr; }
  .ff-side { display: none; }
  .ff-mail { position: relative; left: auto; bottom: auto; width: auto; margin: -24px 12px 0; }
  .hero__visual { padding-bottom: 0; }
}

/* Comparativa antes / después */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card:hover { transform: none; box-shadow: none; }
.compare__after { background: var(--ink); color: #fff; border-color: var(--ink); }
.compare__after h3 { color: #fff; }
.compare__after .checklist li { color: rgba(255,255,255,.74); }
.compare__after .checklist li strong { color: #fff; }
.compare__after .checklist li::before { background-color: rgba(31, 209, 122, .9); }
.compare .tag { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: block; }
.compare__after .tag { color: var(--brand); }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* Pilares */
.pillar { border-top: 2px solid var(--ink); padding-top: 28px; }
.pillar h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin-bottom: 18px; }
.pillar .checklist { margin-top: 0; }

/* Testimonios */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); position: relative; }
.quote blockquote { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--brand); margin-bottom: 12px; }
.quote cite { font-style: normal; font-size: .9rem; color: var(--ink-3); }

/* Por qué FoundFactor */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.why > div { padding: 32px 28px; }
.why > div + div { border-left: 1px solid var(--line); }
.why strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.why p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } .why > div:nth-child(3) { border-left: 0; } .why > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } .why > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Planes */
.billing { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 40px; }
.billing button { border: 0; background: transparent; height: 40px; padding: 0 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing .save { font-size: .72rem; color: var(--brand); margin-left: 6px; }
.billing button[aria-pressed="true"] .save { color: #7ff0b8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; text-align: left; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: 32px; position: relative; }
.plan--featured { border: 0; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.plan--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--brand-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__name { font-family: var(--font-display); font-size: 2rem; margin: 0 0 4px; }
.plan__tag { color: var(--ink-3); font-size: .92rem; margin-bottom: 24px; }
.plan--featured .plan__tag { color: rgba(255,255,255,.6); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; min-height: 64px; }
.plan__price b { font-family: var(--font-display); font-weight: 400; font-size: 3.4rem; line-height: 1; letter-spacing: -0.02em; }
.plan__price span { color: var(--ink-3); font-size: .95rem; }
.plan--featured .plan__price span { color: rgba(255,255,255,.6); }
.plan__price--text b { font-size: 2.2rem; }
.plan .btn { width: 100%; margin-bottom: 28px; }
.plan--featured .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .93rem; }
.plan li { display: flex; gap: 12px; color: var(--ink-2); }
.plan--featured li { color: rgba(255,255,255,.78); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: 0 0 auto; }
.plan li.plus { font-weight: 600; color: var(--ink); }
.plan--featured li.plus { color: #fff; }
.plan li.plus::before { content: "+"; }
.plan__flag { position: absolute; top: 20px; right: 20px; }
.plan--featured .chip { background: var(--brand-grad); color: var(--on-brand); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Ventana de Enterprise */
dialog.modal { border: 0; border-radius: calc(var(--radius) * 1.3); padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(6, 16, 13, .55); backdrop-filter: blur(4px); }
.modal__body { padding: clamp(24px, 4vw, 40px); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.3rem; line-height: 1; }

/* Menú: solo el logotipo, más grande */
.nav .nav__logo img { height: 44px; width: auto; }
@media (max-width: 640px) { .nav .nav__logo img { height: 38px; } }

/* Eslogan completo en el titular: las dos frases al mismo tamaño */
.hero h1.slogan { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.1; }
.hero h1.slogan .grad-text { display: block; margin-top: .15em; font-style: italic; }

/* Carrusel de logotipos de clientes */
.marquee__track { gap: 72px; align-items: center; }
.marquee__item { height: 56px; }
.marquee__item img { height: 40px; width: auto; max-width: 180px; object-fit: contain; mix-blend-mode: multiply; }

/* Vídeo del proceso */
.video { margin-top: 56px; border-radius: calc(var(--radius) * 1.3); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video__caption { margin-top: 16px; font-size: .92rem; color: var(--ink-2); text-align: center; }
.video__caption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Página /video: solo el vídeo */
.video-page { background: #000; margin: 0; min-height: 100vh; min-height: 100dvh; }
.video-page__stage { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 72px 16px 24px; }
.video-page__stage video { width: min(100%, calc((100dvh - 120px) * 16 / 9)); max-height: calc(100dvh - 96px); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.video-page__logo { position: fixed; top: 16px; left: 16px; z-index: 2; opacity: .85; transition: opacity .2s; }
.video-page__logo:hover { opacity: 1; }
/* Ajustes por logotipo para que todos tengan un peso visual parecido */
.marquee__item img[src*="vincci"] { height: 64px; width: 62px; object-fit: cover; }
.marquee__item img[src*="silken"] { height: 54px; }
.marquee__item img[src*="sercotel"] { height: 48px; }
.marquee__item img[src*="solaris"] { height: 26px; max-width: 220px; }
.marquee__item img[src*="melia"] { height: 30px; max-width: 220px; }
