/* Web de Multianuncio: presentación y textos legales. Sin fuentes ni scripts
   externos (nada de terceros que reciba la IP de quien visita): la fuente
   Manrope va incluida (licencia OFL en fuentes/OFL.txt). */
@font-face {
  font-family: 'Manrope';
  src: url('fuentes/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #000;
  --surface: #111116;
  --raised: #1a1a21;
  --fg: #f4f4f6;
  --muted: #9a9aa6;
  --line: #26262f;
  --brand: #4338ca;
  --link: #a7a2ff;
  --pop: #ffe45c;
  --ok: #5fd39a;
  --ok-soft: #173326;
  --warn-soft: #3a2f12;
  /* La simulación del panel usa estos dos. */
  --accent: #8b85ff;
  --accent-soft: #24234a;
  --radius: 20px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 16px/1.6 'Manrope', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 2px solid var(--pop);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  background: var(--raised);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* ---------- Cabecera ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.top nav {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.top nav a:hover {
  color: var(--fg);
  background: var(--surface);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--pop);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.pill-button.light {
  background: var(--fg);
  padding: 9px 18px;
  font-size: 15px;
}
.pill-button[aria-disabled='true'] {
  cursor: default;
}
a.pill-button:hover {
  filter: brightness(0.92);
}

/* ---------- Portada: bloque de color con la simulación dentro ---------- */
.stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 20px 0;
  border-radius: 32px;
  background: var(--brand);
}
/* Líneas de contorno como las de una tarjeta de saldo. */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(ellipse 120% 90% at 85% 115%, transparent 0 18px, rgb(255 255 255 / 0.07) 18px 19px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.stage h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 76px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
}
.lead {
  max-width: 30em;
  margin: 20px 0 28px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgb(255 255 255 / 0.82);
}
.works {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.82);
}
.works li {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Logo de cada plataforma: el icono de aplicación que publica cada una. */
.logo {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 22%;
  background: #fff;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo.zoom img {
  transform: scale(1.45);
}

/* ---------- Cómo funciona: simulación del panel ---------- */
.demo {
  width: min(100%, 420px);
  margin-top: 48px;
  scroll-margin-top: 24px;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.demo-steps {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.28);
}
.demo-steps button,
.demo-toggle {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
}
.demo-steps button {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 7px;
  font-size: 14px;
  font-weight: 700;
  color: rgb(255 255 255 / 0.75);
  background: transparent;
}
.demo-steps button:hover {
  color: #fff;
}
.demo-steps button.is-active {
  background: #fff;
  color: #000;
}
.demo-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  background: rgb(255 255 255 / 0.16);
}
.is-active .demo-num {
  background: var(--brand);
  color: #fff;
}
/* Cuánto falta para el siguiente paso cuando se reproduce solo. */
.demo-steps button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--brand);
}
.demo-steps button.is-running::after {
  animation: grow var(--step-ms, 3000ms) linear both;
}
@keyframes grow {
  to {
    width: 100%;
  }
}
.demo-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgb(0 0 0 / 0.28);
}
.demo-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.demo-toggle .icon-play,
.demo-toggle.paused .icon-pause {
  display: none;
}
.demo-toggle.paused .icon-play {
  display: block;
  fill: currentColor;
}

/* El panel, como un móvil que asoma por el borde inferior del bloque. */
.panel {
  height: 430px;
  overflow: hidden;
  text-align: left;
  background: #0b0b10;
  border: 6px solid #1c1c24;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -12px 60px rgb(0 0 0 / 0.35);
  font-size: 13px;
  line-height: 1.4;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 4px;
  font-weight: 700;
}
.panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-brand img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.panel-account {
  color: var(--muted);
  font-weight: 600;
}
.panel-tabs {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 6px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.panel-tabs > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 7px;
  border-bottom: 2px solid transparent;
}
.panel-tabs .is-active {
  color: var(--fg);
  font-weight: 700;
  border-color: var(--accent);
}
.panel .logo {
  width: 16px;
  height: 16px;
}
.scene {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scene[hidden] {
  display: none;
}
.scene-title {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 14px;
}
.scene .row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 12px;
  font-weight: 600;
  overflow: hidden;
}
.swap {
  margin-left: auto;
  display: grid;
}
.swap > * {
  grid-area: 1 / 1;
  justify-self: end;
  transition: opacity 0.3s var(--swap, var(--d, 0s));
}
.swap > :last-child {
  opacity: 0;
}
.play .swap > :first-child {
  opacity: 0;
}
.play .swap > :last-child {
  opacity: 1;
}
.pill,
.status {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pill {
  background: var(--accent);
  color: #000;
}
.status {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill.ok,
.status.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.status.off {
  background: transparent;
  color: var(--muted);
  text-decoration: line-through;
}
.status.sold {
  margin-left: auto;
}
.row.progress {
  --swap: calc(var(--d) + var(--t));
}
.row .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--ok);
  transition: width var(--t) linear var(--d);
}
.play .row .bar {
  width: 100%;
}
.appear {
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.45s var(--d, 0s), translate 0.45s var(--d, 0s);
}
.play .appear {
  opacity: 1;
  translate: 0 0;
}
.note-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photos span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 32px;
  border-radius: 12px;
  background: linear-gradient(140deg, #2b2a36, #1b1a22);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px;
  background: var(--surface);
  border-radius: 12px;
  min-height: 48px;
}
.field span {
  font-size: 11px;
  color: var(--muted);
}
.field b {
  font-weight: 700;
  min-height: 1.4em;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.checks span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 700;
  font-size: 12px;
}
.press {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--pop);
  color: #000;
  text-align: center;
  font-weight: 700;
}
.press.small {
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
}
.play .press {
  animation: press 0.5s var(--d, 0s) both;
}
@keyframes press {
  40% {
    scale: 0.95;
    filter: brightness(0.85);
  }
}
.alert {
  padding: 12px;
  border-radius: 12px;
  background: var(--warn-soft);
}
.alert strong {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .scene *,
  .demo-steps button::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Secciones ---------- */
.block {
  padding-top: 96px;
}
.block h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
}
.sub {
  margin: 8px 0 28px;
  color: var(--muted);
}

/* Funciones: tarjetas cortas, como accesos de un panel. */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.tile h3 {
  margin: 20px 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--pop);
}
.tile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Capturas */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.shots figure {
  margin: 0;
  padding: 12px 12px 0;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 404 / 560;
  object-fit: cover;
  object-position: top;
  border-radius: 12px 12px 0 0;
}
.shots figcaption {
  padding: 14px 4px 16px;
  font-weight: 700;
  text-align: center;
}

/* Precios */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
}
.plan {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}
.plan.pro {
  background: var(--brand);
}
.plan h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--muted);
}
.plan.pro h3,
.plan.pro p {
  color: rgb(255 255 255 / 0.82);
}
.plan .amount {
  margin: 8px 0 12px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.plan.pro .amount {
  color: #fff;
}
.amount small {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.plan p {
  margin: 0;
  color: var(--muted);
}
.note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Preguntas */
.faq {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin-top: 28px;
}
details {
  border-radius: 16px;
  background: var(--surface);
}
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}
details[open] summary::after {
  content: '−';
}
details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Contacto */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px;
  border-radius: 32px;
  background: var(--surface);
}
.contact .sub {
  margin-bottom: 0;
}
.contact .pill-button {
  white-space: normal;
  overflow-wrap: anywhere;
}

footer.wrap {
  margin-top: 96px;
  padding-top: 28px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
footer nav a:hover {
  text-decoration: underline;
}
footer p {
  max-width: 60em;
  margin: 16px 0 0;
}

/* ---------- Textos legales ---------- */
.legal {
  max-width: 760px;
  padding: 32px 0 0;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 8px 0 8px;
}
.legal h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 40px 0 8px;
}
.legal p,
.legal li {
  color: #d4d4db;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 12px 0;
}
.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--surface);
}
.legal .updated {
  color: var(--muted);
  margin: 0 0 24px;
}
.form-model {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  background: var(--surface);
}

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(70%, 260px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shots figure {
    scroll-snap-align: start;
  }
}
@media (max-width: 720px) {
  .top nav {
    display: none;
  }
  .stage {
    padding-top: 48px;
    border-radius: 24px;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .block {
    padding-top: 72px;
  }
  .contact {
    padding: 24px;
    border-radius: 24px;
  }
}
@media (max-width: 480px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-steps button {
    padding-right: 7px;
    font-size: 0;
    gap: 0;
  }
  .demo-steps button.is-active {
    font-size: 13px;
    gap: 6px;
    padding-right: 11px;
  }
  .panel {
    height: 410px;
  }
}

/* ---------- Blog ---------- */
.guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guide {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
}
.guide:hover {
  background: var(--raised);
}
.guide h2,
.guide h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.guide p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.guide span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--link);
}
.legal .guides {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 8px;
}
.post h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 28px 0 4px;
}
.crumbs {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.crumbs a {
  text-decoration: none;
}
.cta-box {
  margin-top: 48px;
  padding: 28px;
  border-radius: 24px;
  background: var(--brand);
}
.legal .cta-box h2 {
  margin: 0 0 8px;
  color: #fff;
}
.legal .cta-box p {
  margin: 0 0 20px;
  color: rgb(255 255 255 / 0.85);
}
@media (max-width: 900px) {
  .guides {
    grid-template-columns: minmax(0, 1fr);
  }
}
