/* Amoblá — tokens tomados de DESIGN-airbnb.md (Refero). Plus Jakarta Sans reemplaza a Cereal. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/pjs-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/pjs-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("assets/fonts/pjs-800.woff2") format("woff2"); }

:root {
  --rausch: #ff385c;        /* acento: logo y marcas chicas */
  --rausch-600: #e00b41;    /* botón principal: contraste AA con texto blanco */
  --hof: #222222;
  --foggy: #6a6a6a;
  --grey-500: #c1c1c1;
  --bebe: #ebebeb;
  --deco: #dddddd;
  --faint: #f7f7f7;
  --white: #ffffff;
  --radius-card: 12px;
  --radius-input: 8px;
  --sombra-flotante: 0 0 0 1px rgba(0,0,0,.02), 0 2px 6px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.10);
  --sombra-modal: 0 8px 28px rgba(0,0,0,.28);
  --margen: 40px;
  --ancho: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--hof); font: 500 16px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.contenedor { width: min(var(--ancho), calc(100% - 2 * var(--margen))); margin: 0 auto; }

/* Botones: pill. Uno solo coral por pantalla; el resto, inverso o fantasma */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 9999px; font: 700 17px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn-primario { background: var(--rausch-600); color: #fff; }
.btn-primario:hover { background: #c70a3a; }
.btn-inverso { background: var(--hof); color: #fff; }
.btn-inverso:hover { background: #000; }
.btn-fantasma { background: transparent; color: var(--hof); box-shadow: inset 0 0 0 1px var(--hof); }
.btn-fantasma:hover { background: var(--faint); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--hof); outline-offset: 3px; }
.micro { font-size: 14px; color: var(--foggy); }

/* Encabezado */
.cabecera { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--bebe); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--rausch); text-decoration: none; }
.cabecera nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.cabecera nav a:not(.btn) { text-decoration: none; }
.cabecera .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Formularios */
.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo label { font-size: 14px; font-weight: 700; }
.campo input { min-height: 52px; padding: 0 16px; border: 1px solid var(--grey-500); border-radius: var(--radius-input); font: 500 16px "Plus Jakarta Sans", sans-serif; color: var(--hof); background: #fff; }
.campo input:focus { border-color: var(--hof); outline: none; box-shadow: 0 0 0 1px var(--hof); }

/* Comparador antes/después (amoblado a la izquierda de la línea) */
.ba { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--deco); --p: 50%; touch-action: pan-y; user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba .antes { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
/* .inv: la original a la izquierda y el amoblado a la derecha, para fotos con los muebles de ese lado */
.ba.inv .antes { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba .linea { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba .tirador { position: absolute; top: 50%; left: var(--p); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; box-shadow: var(--sombra-flotante); display: grid; place-items: center; pointer-events: none; }
.ba .tirador::before { content: "‹ ›"; font: 700 18px/1 system-ui; letter-spacing: 4px; color: var(--hof); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.pill { position: absolute; bottom: 14px; padding: 7px 14px; border-radius: 9999px; background: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.pill.izq { left: 14px; } .pill.der { right: 14px; }
.pill.ia::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rausch); vertical-align: 1px; }

/* Aparición suave debajo del pliegue (solo si el usuario no pidió menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .revelar { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
  .revelar.visible { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  :root { --margen: 16px; }
  .cabecera nav a.ocultar-celu { display: none; }
}
