/* Face swap anónimo — página pública /faceswap (gancho de captación)
   Mismo look dark + morado de MediaFree. Sin JS inline (CSP). */

:root {
  --bg: #0b0e14;
  --bg-elev: #131824;
  --bg-card: #171d2b;
  --text: #e8ecf3;
  --text-muted: #8b94a7;
  --accent: #6e5bff;
  --accent-hover: #8a7bff;
  --accent-soft: rgba(110, 91, 255, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.faceswap-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.fs-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 148, 167, 0.12);
}
.fs-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fs-logo-link { display: inline-flex; align-items: center; }
.fs-logo-img { height: 34px; width: auto; display: block; }
.fs-logo-img-sm { height: 24px; width: auto; display: block; }
.fs-back { font-size: 14px; color: var(--text-muted); }
.fs-back:hover { color: var(--text); }

/* Wrap */
.fs-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  flex: 1;
}

/* Hero */
.fs-hero { text-align: center; margin-bottom: 32px; }
.fs-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(110, 91, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.fs-hero h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fs-accent { color: #b9aeff; }
.fs-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 22px;
}
.fs-counter {
  display: inline-block;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid rgba(139, 148, 167, 0.18);
  padding: 10px 18px;
  border-radius: 12px;
}
.fs-counter strong { color: var(--accent-hover); font-weight: 700; }

/* Honeypot anti-bot: fuera de la vista pero presente en el DOM (no type=hidden).
   Un bot que rellene este campo sera descartado silenciosamente en el backend. */
.fs-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Teaser "próximamente HD" */
.fs-teaser {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.5;
  color: #b9aeff;
  background: linear-gradient(135deg, rgba(110, 91, 255, 0.16), rgba(192, 132, 252, 0.12));
  border: 1px solid rgba(110, 91, 255, 0.35);
  padding: 12px 16px;
  border-radius: 12px;
}

/* Linea HD en el modal de conversion */
.fs-modal-hd {
  color: #b9aeff !important;
  font-size: 13.5px !important;
  margin-top: -8px !important;
}

/* Dropzones */
.fs-droppers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.fs-dropzone {
  position: relative;
  min-height: 240px;
  border: 2px dashed rgba(139, 148, 167, 0.32);
  border-radius: 16px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.fs-dropzone:hover, .fs-dropzone:focus {
  border-color: var(--accent);
  outline: none;
}
.fs-dropzone.drag {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
}
.fs-dz-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}
.fs-dz-ico { font-size: 40px; }
.fs-dz-label strong { font-size: 17px; }
.fs-dz-hint { font-size: 13px; color: var(--text-muted); }
.fs-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Checkbox legal obligatorio */
.fs-legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid rgba(139, 148, 167, 0.2);
  border-radius: 12px;
}
.fs-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent);
}
.fs-checkbox-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.fs-checkbox-label strong { color: var(--text); }
.fs-checkbox-label a { color: var(--accent-hover); }
.fs-checkbox-label a:hover { text-decoration: underline; }

/* Acciones */
.fs-actions { text-align: center; margin-bottom: 20px; }
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(110, 91, 255, 0.45);
  transition: transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}
.fs-btn:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(110, 91, 255, 0.6); text-decoration: none; }
.fs-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.fs-btn-ghost {
  background: transparent;
  border: 1px solid rgba(139, 148, 167, 0.3);
  color: var(--text);
  box-shadow: none;
}

/* Estado */
.fs-status {
  text-align: center;
  font-size: 15px;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px;
  margin: 0 auto 20px;
  max-width: 560px;
}
.fs-status.err { color: #ff9b9b; background: rgba(255, 100, 100, 0.12); }
.fs-spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(139, 148, 167, 0.4);
  border-top-color: var(--accent-hover);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  animation: fsspin 0.8s linear infinite;
}
@keyframes fsspin { to { transform: rotate(360deg); } }

/* Resultado */
.fs-result { text-align: center; margin-top: 8px; }
.fs-result h2 { font-size: 22px; margin: 0 0 16px; }
.fs-result-img {
  max-width: 100%;
  max-height: 560px;
  border-radius: 16px;
  border: 1px solid rgba(139, 148, 167, 0.2);
  margin-bottom: 16px;
}
.fs-result-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cómo funciona */
.fs-help { margin-top: 48px; }
.fs-help h2 { text-align: center; font-size: 24px; margin-bottom: 22px; }
.fs-steps { list-style: none; margin: 0; padding: 0; max-width: 560px; margin: 0 auto; }
.fs-steps li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.fs-step-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.fs-steps strong { font-size: 16px; }
.fs-steps p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }

/* Paywall modal */
.fs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.fs-modal {
  background: var(--bg-card);
  border: 1px solid rgba(139, 148, 167, 0.22);
  border-radius: 18px;
  padding: 30px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.fs-modal h2 { font-size: 24px; margin: 0 0 14px; }
.fs-modal p { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0 0 22px; }
.fs-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.fs-footer {
  border-top: 1px solid rgba(139, 148, 167, 0.12);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.fs-brand-line { margin-bottom: 14px; }
.fs-brand-line img { margin: 0 auto; }
.fs-legal { margin: 0 0 12px; }
.fs-legal a { margin: 0 6px; }
.fs-disclaimer { margin: 0; font-size: 12px; }

/* Responsive */
@media (max-width: 720px) {
  .fs-hero h1 { font-size: 32px; }
  .fs-sub { font-size: 15px; }
  .fs-droppers { grid-template-columns: 1fr; }
  .fs-dropzone { min-height: 190px; }
  .fs-btn { width: 100%; max-width: 320px; }
  .fs-back { font-size: 13px; }
  .fs-eyebrow { letter-spacing: 0.08em; }
}

.fs-modal-backdrop[hidden] { display: none !important; }


/* --- Capa de privacidad (badge + borrado inmediato) --- */
.fs-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #7fd8a4;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 560px;
  text-align: center;
}

.fs-btn-danger {
  background: linear-gradient(135deg, #e5484d, #c0392b);
  box-shadow: 0 0 14px rgba(229, 72, 77, 0.35);
}
.fs-btn-danger:hover { box-shadow: 0 0 20px rgba(229, 72, 77, 0.5); }

.fs-deleted-note {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #7fd8a4;
}

/* Selector de idioma (ES | EN) — discreto, acorde al tema dark/morado */
.fs-nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 13px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; white-space: nowrap; }
.lang-switch-current { color: var(--text); font-weight: 600; }
.lang-switch-link { color: var(--accent-hover); text-decoration: none; }
.lang-switch-link:hover { color: var(--accent); }
.lang-switch-sep { opacity: 0.45; }
@media (max-width: 720px) {
  .fs-nav-right { gap: 10px; }
  .fs-back { display: none; }
}
