/* aindez.si: a Tinder-style deck of yes/no questions on top of sitio.css (copied from aindez.cl). */
/* the whole page follows aindez.ai's dark theme */
:root { --verde: #34e39b; --on-verde: #04160f; --no: #e92f63;
  --d-bg: #14161a; --d-card: #1b1e23; --d-bg-3: #0f1114; --d-ink: #e6e3dc; --d-ink-2: #9da1a8; --d-ink-3: #808690; --d-rule: #e6e3dc2b; --d-borde: #e6e3dc59; }
body { background: var(--d-bg); color: var(--d-ink); }
.nav .social { margin-left: auto; }
header.main { background: rgba(20, 22, 26, .92); border-bottom-color: var(--d-rule); }
header.main .social a { color: var(--d-ink-2); }
header.main .social a:hover { color: var(--verde); background: var(--d-rule); }

/* «aindez.sí» logo in place of the words (PNG 2436×508, so width follows height) */
.si-logo { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; align-self: flex-start; flex: none; }

.brand .si-logo-brand { height: 32px; }
@media (max-width: 640px) { .brand .si-logo-brand { height: 26px; } }

/* deck section: one laptop screen, intro on the left, cards on the right */
.sw { background: var(--d-bg); padding: 28px 0 36px; }
/* one centered column on every screen: headline on one line, the deck right under it */
.sw-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
.sw-intro { text-align: center; }
.sw-intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.1; color: var(--d-ink); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.sw-h1-con { display: flex; align-items: center; gap: .3em; }
.sw-logo-h1 { height: clamp(40px, 4vw, 58px); }
.sw-intro p { font-size: 17px; color: var(--d-ink-2); margin: 10px auto 0; }
.sw-progreso { font-size: 14px; font-weight: 600; color: var(--d-ink-3); margin: -8px 0 -4px; }
/* the headline is a start screen of its own; «Empezar» swaps it for the deck («Pregunta 1 de 12» on top), so nothing needs scrolling */
html.js .sw:not(.empezado) .sw-zona, html.js .sw.empezado .sw-intro { display: none; }
/* the deck page is exactly one screen tall, no vertical scroll (the privacy page scrolls as usual): header, the deck section filling the rest, a one-line footer */
html.js:has(#sw), html.js:has(#sw) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.js:has(#sw) body { display: flex; flex-direction: column; height: 100svh; }
html.js:has(#sw) header.main { position: relative; flex: none; }
html.js:has(#sw) main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html.js .sw { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
html.js footer.sw-footer { flex: none; padding: 10px 0; }
html.js footer.sw-footer .legal { border-top: 0; padding-top: 0; }
html.js .sw > .wrap { width: 100%; }
html.js .sw:not(.empezado) .sw-intro { display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; }
/* the countries only show once the deck is done, in the action bar; the separate strip is for visitors without JavaScript */
html.js .sw-contacto { display: none; }
.sw-paises-fin[hidden] { display: none; }
.sw-paises-fin { width: 100%; text-align: center; }
.sw-paises-fin p { color: var(--d-ink-2); margin: 0 0 12px; }
html.js .sw-acciones.fin { flex-direction: column; flex-wrap: wrap; gap: 14px; }
.btn-verde { background: var(--verde); color: var(--on-verde); border: 0; font: inherit; font-size: 16px; font-weight: 700; padding: 14px 26px; }
.btn-verde:hover { filter: brightness(1.06); }
.btn-verde:disabled { opacity: .6; cursor: default; }
.sw-acciones .btn[hidden] { display: none; }

/* lead form: it takes the deck's place, same width; the thank-you replaces it */
html.js .sw[data-modo="datos"] .sw-mazo, html.js .sw[data-modo="datos"] .sw-acciones, html.js .sw[data-modo="datos"] .sw-progreso,
html.js .sw[data-modo="gracias"] .sw-mazo, html.js .sw[data-modo="gracias"] .sw-acciones, html.js .sw[data-modo="gracias"] .sw-progreso { display: none; }
.sw-datos, .sw-gracias { width: min(100%, 400px); display: flex; flex-direction: column; gap: 8px; }
.sw-datos[hidden], .sw-gracias[hidden] { display: none; }
.sw-datos-t { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--d-ink); margin-bottom: 4px; text-align: center; }
.sw-datos label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--d-ink-2); }
.sw-datos label small { font-weight: 400; color: var(--d-ink-3); }
.sw-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }  /* the tabs take what their labels need, on one line */
.sw-fila label { min-width: 0; }
.sw-fila select { width: 100%; }
@media (max-height: 700px) { .sw-datos-t { font-size: 19px; margin-bottom: 0; } .sw-datos { gap: 6px; } }
.sw-datos input:not([type=checkbox]), .sw-datos select { font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--d-borde); background: var(--d-card); color: var(--d-ink); }
.sw-datos input:focus, .sw-datos select:focus { outline: 2px solid var(--verde); outline-offset: 1px; }
.sw-datos .sw-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.4; margin-top: 2px; }
.sw-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--verde); flex: none; }
/* «Hablar» / «Escribir»: a two-way switch next to the country; the voice panel shows what the agent took down */
.sw-tabs { display: flex; align-self: end; border: 1.5px solid var(--d-borde); border-radius: 12px; overflow: hidden; height: 42px; }
.sw-tabs button { flex: 1; white-space: nowrap; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--d-ink-2); cursor: pointer; }
.sw-tabs button.on { background: var(--d-ink); color: var(--d-bg); }
.sw-voz[hidden], .sw-texto[hidden] { display: none; }
.sw-texto { display: flex; flex-direction: column; gap: 8px; }
.sw-voz { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.sw-mic { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--verde); background: transparent; color: var(--d-ink); cursor: pointer; }
.sw-mic-i { font-size: 22px; }
.sw-mic.live { background: var(--verde); color: var(--on-verde); }
.sw-mic.speaking { box-shadow: 0 0 0 6px rgba(52, 227, 155, .25); }
.sw-voz-estado { font-size: 13.5px; color: var(--d-ink-3); text-align: center; min-height: 1.4em; }
.sw-ficha { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; background: var(--d-card); border: 1px solid var(--d-rule); border-radius: 12px; padding: 10px 14px; }
.sw-ficha[hidden] { display: none; }
.sw-ficha dt { color: var(--d-ink-3); }
.sw-ficha dd { margin: 0; color: var(--d-ink); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .sw-mic.speaking { box-shadow: none; } }
.sw-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sw-datos-error { color: #ff8fa9; font-size: 14px; }
.sw-datos .btn-verde { margin-top: 4px; }
.sw-datos .sw-reiniciar, .sw-gracias .sw-reiniciar { align-self: center; }
.sw-gracias { text-align: center; align-items: center; gap: 12px; padding: 40px 0; }
.sw-gracias-t { font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--d-ink); }
.sw-gracias p { color: var(--d-ink-2); }

/* «Empezar de nuevo» reads as a quiet text link, apart from the main call to action */
.sw-sig.sw-reiniciar { border: 0; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--d-ink-3); text-decoration: underline; text-underline-offset: 3px; }
.sw-sig.sw-reiniciar:hover { color: var(--d-ink); }
html.js .sw:not(.empezado) .sw-intro h1 { font-size: clamp(40px, 5vw, 72px); flex-direction: column; gap: 14px; }  /* question on one line, «con aindez.sí» under it */
html.js .sw:not(.empezado) .sw-logo-h1 { height: clamp(52px, 6vw, 88px); }
html.js .sw:not(.empezado) .sw-intro p { font-size: 19px; margin-top: 18px; }
html.js .sw-empezar { display: inline-block; }
.sw-empezar { display: none; font: inherit; font-size: 18px; font-weight: 700; margin-top: 28px; padding: 15px 34px; border-radius: 999px; border: 0; background: var(--verde); color: var(--on-verde); cursor: pointer; }
.sw-zona { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sw-mazo { position: relative; width: min(100%, 400px); display: grid; gap: 16px; }

.sw-card, .sw-fin { background: var(--d-card); color: var(--d-ink); border: 1.5px solid var(--d-borde); border-radius: 26px; padding: 28px; position: relative; overflow: hidden; }
.sw-frente { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; }
.sw-tema { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); }
.sw-q { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 2.2vw, 27px); line-height: 1.2; color: var(--d-ink); }
.sw-auto { color: var(--verde); }  /* the word each question turns on */
.sw-sello { position: absolute; top: 30px; padding: 4px 14px; border: 4px solid; border-radius: 10px; font-size: 34px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.sw-sello-no { left: 26px; color: var(--no); transform: rotate(-14deg); }
.sw-sello-si { right: 26px; color: var(--verde); transform: rotate(14deg); }

/* the answer: «Tu empresa no. aindez.sí» */
.sw-match { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
/* answer card: «con aindez.sí» on the left, a large emoji on the right of the same row */
.sw-match-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-emoji { font-size: 44px; line-height: 1; flex: none; }
.sw-con-logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--d-ink); }
.sw-con-logo .sw-logo { height: 46px; }
.sw-titulo { font-size: 20px; line-height: 1.3; font-weight: 700; }
.sw-con { font-size: 16.5px; line-height: 1.45; color: var(--d-ink-2); }
/* action bar under the deck, on navy: same place as ✕ / ✓ */
.sw-acciones { display: none; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; min-height: 70px; }
.sw-ver, .sw-sig { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 11px 18px; border: 1.5px solid var(--d-borde); background: transparent; color: var(--d-ink); }
.sw-ver:hover, .sw-sig:hover { border-color: var(--d-ink); }
.sw-ver[hidden] { display: none; }
.sw-acciones { flex-wrap: nowrap; }
.sw-sig { white-space: nowrap; }
.sw-ver { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sw-ver:disabled { cursor: default; color: var(--d-ink-2); border-color: var(--d-rule); }
.sw-pronto { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e6e3dc1f; color: var(--d-ink-2); }
.sw-pronto[hidden] { display: none; }
.sw-copiar { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 42px; height: 42px; display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer; border-radius: 50%; border: 1.5px solid var(--d-borde); background: var(--d-card); color: var(--d-ink); }
.sw-copiar:hover { border-color: var(--d-ink); }
.sw-copiar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-copiar .sw-i-ok, .sw-copiar.copiado .sw-i-link { display: none; }
.sw-copiar.copiado .sw-i-ok { display: block; }
.sw-copiar.copiado { color: var(--verde); border-color: var(--verde); }
html.js .sw-card.respondida:not(.viendo) .sw-copiar { display: inline-flex; }
html.js .sw-card.respondida .sw-match { padding-bottom: 34px; }  /* room for the copy button in the corner */

.sw-video { display: none; position: absolute; inset: 0; background: #000; z-index: 2; }
.sw-card.viendo .sw-video { display: block; }
.sw-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sw-cerrar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--d-ink); color: var(--d-bg); font-size: 24px; line-height: 1; cursor: pointer; }

/* the closing card */
.sw-fin { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; }
.sw-fin[hidden] { display: none; }
.sw-fin-t { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); }
.sw-score { font-family: var(--serif); font-weight: 600; font-size: 64px; line-height: 1; margin: -4px 0 0; }
.sw-opinion { font-size: 15px; line-height: 1.45; color: var(--d-ink-2); max-width: 320px; margin: 4px 0 0; }
.sw-score small { font-size: .45em; color: var(--d-ink-3); }
.sw-score-max { font-size: 34px; color: var(--verde); margin-left: 4px; }
.sw-fin .sw-con-logo { justify-content: center; }

/* country buttons in the contact strip (navy) */
.sw-paises { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sw-pais { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--d-borde); color: var(--d-ink); font-weight: 600; font-size: 15px; text-decoration: none; background: transparent; }
a.sw-pais:hover, .sw-pais.sugerido { background: var(--verde); border-color: var(--verde); color: var(--on-verde); }
.sw-pais-off { border-style: dashed; opacity: .7; }

/* ✕ / ✓ */
.sw-botones { display: none; gap: 16px; min-height: 70px; align-items: center; }
.sw-btn { min-width: 128px; height: 60px; padding: 0 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; transition: transform .15s; }
.sw-btn:hover { transform: scale(1.08); }
.sw-btn:active { transform: scale(.95); }
.sw-btn-no { background: var(--d-ink); color: var(--no); border: 2px solid var(--d-ink); }
.sw-btn-si { background: var(--verde); color: var(--on-verde); border: 2px solid var(--verde); }

/* with JavaScript: stacked deck, the top card swipes; the answer only shows after ✕ */
html.js .sw-mazo { display: block; height: 360px; }  /* fits the longest question and answer, no more */
html.js .sw-card, html.js .sw-fin { position: absolute; inset: 0; transition: transform .35s ease, opacity .35s ease; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
html.js .sw-card.arrastra { transition: none; cursor: grabbing; }
html.js .sw-card[data-pos="0"] { z-index: 3; cursor: grab; }
html.js .sw-card[data-pos="1"] { z-index: 2; transform: translateY(14px) scale(.95); }
html.js .sw-card[data-pos="2"] { z-index: 1; transform: translateY(28px) scale(.9); opacity: .55; }
html.js .sw-card[data-pos="oculta"] { opacity: 0; visibility: hidden; }
html.js .sw-card[data-pos="fuera"] { z-index: 4; opacity: 0; pointer-events: none; }
html.js .sw-match { display: none; }
html.js .sw-card.respondida .sw-frente { display: none; }
html.js .sw-card.respondida .sw-match { display: flex; justify-content: center; height: 100%; margin: 0; }
html.js .sw-card.respondida { cursor: default; }
html.js .sw-card.respondida .sw-match { animation: sw-pop .35s ease; }
@keyframes sw-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
html.js .sw-botones { display: flex; }
html.js .sw-botones[hidden] { display: none; }
html.js .sw-acciones:not([hidden]) { display: flex; }

/* contact strip and footer */
.sw-contacto { background: var(--d-bg); border-top: 1px solid var(--d-rule); padding: 44px 0; text-align: center; }
.sw-contacto p { color: var(--d-ink-2); font-size: 17px; margin: 0 0 20px; }
footer.sw-footer { background: var(--d-bg-3); color: var(--d-ink-3); border-top: 1px solid var(--d-rule); }

@media (max-width: 860px) {
  .sw { padding: 18px 0 28px; }
  .sw-grid { gap: 18px; }
  .sw-intro h1 { font-size: 26px; gap: 4px 10px; }
  .sw-h1-con { gap: 8px; }
  .sw-logo-h1 { height: 30px; }
  .sw-intro p { font-size: 15px; margin: 8px auto 0; }
  html.js .sw:not(.empezado) .sw-intro h1 { font-size: 34px; gap: 10px; }
  html.js .sw:not(.empezado) .sw-logo-h1 { height: 48px; }
  html.js .sw-mazo { height: 300px; }
  .sw-card, .sw-fin { padding: 22px; }
  .sw-con-logo { font-size: 25px; }
  .sw-con-logo .sw-logo { height: 38px; }
  .sw-emoji { font-size: 36px; }
  .sw-fin .sw-con-logo { font-size: 22px; gap: 8px; }
  .sw-fin .sw-con-logo .sw-logo { height: 32px; }
  .sw-score-max { font-size: 24px; }
  .sw-titulo { font-size: 18px; }
  .sw-con { font-size: 15.5px; }
  .sw-sello { font-size: 26px; top: 22px; }
  .sw-btn { min-width: 120px; height: 56px; font-size: 18px; }
  .sw-acciones { gap: 8px; }
  .sw-sig { padding: 10px 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html.js .sw-card, html.js .sw-fin, .sw-btn { transition: none; } html.js .sw-card.respondida .sw-match { animation: none; } }

/* privacy page */
.sw-doc { padding: 40px 0 56px; }
.sw-doc .wrap { max-width: 760px; }
.sw-doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 44px); color: var(--d-ink); margin-bottom: 6px; }
.sw-doc h2 { font-size: 20px; color: var(--d-ink); margin: 28px 0 8px; }
.sw-doc p, .sw-doc li { color: var(--d-ink-2); }
.sw-doc ul { padding-left: 20px; display: grid; gap: 6px; }
.sw-doc a, .sw-check a, footer.sw-footer a { color: var(--verde); }
.sw-doc-fecha { font-size: 14px; color: var(--d-ink-3) !important; }

/* 404: the big number in green, centered like the start screen */
body:has(.sw-404) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(.sw-404) main { flex: 1; display: flex; }
.sw-404 { flex: 1; display: flex; align-items: center; width: 100%; }
.sw-404 .sw-intro { display: flex; flex-direction: column; align-items: center; }
.sw-404-num { font-family: var(--serif); font-weight: 600; font-size: clamp(96px, 14vw, 168px); line-height: .9; letter-spacing: -.03em; color: var(--verde); }
.sw-404 h1 { margin-top: 12px; }
.sw-404-btn { margin-top: 26px; text-decoration: none; }
