/* Abarca · páginas del cliente (móvil primero)
   Estilo del cuestionario de Abarca: foto nocturna de Barcelona, pizarra y taupe. */
:root {
  --crema: #F4F1EC; --gris: #C3C9CB; --gris-2: #98A2A5; --pizarra: #191D1E; --pizarra-boton: #3B4242;
  --taupe: #9D886C; --taupe-boton: #85725A; --taupe-claro: #C9B793; --borde: rgba(255,255,255,.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--crema); background-color: var(--pizarra);
  background-image: linear-gradient(180deg, rgba(20,24,25,.62) 0%, rgba(20,24,25,.50) 35%, rgba(20,24,25,.82) 72%, var(--pizarra) 100%), url(/static/fondo.jpg);
  background-position: center 40%; background-size: cover; background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
.pantalla { max-width: 480px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 24px 24px 28px; display: flex; flex-direction: column; }
@media (min-width: 720px) {
  body { background-attachment: fixed; }
  .pantalla { margin: 48px auto; min-height: calc(100vh - 96px); padding: 36px 36px 32px; border-radius: 28px; background: rgba(20,24,25,.55); border: 1px solid rgba(255,255,255,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
}

/* Logo */
.cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.cabeza svg.logo-horizontal { width: 112px; height: auto; color: #fff; display: block; }
.logo-centro { display: flex; justify-content: center; color: #fff; }
.logo-centro svg { width: 168px; height: auto; }
.marca-esquina { color: #fff; }
.marca-esquina svg.logo-apilado { width: 92px; height: auto; display: block; }

.progreso { height: 3px; background: rgba(255,255,255,.14); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.progreso div { height: 3px; background: var(--taupe-claro); border-radius: 2px; transition: width .3s ease; }
.empuje { flex: 1; min-height: 24px; }

/* Texto */
h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--gris); }
p b { color: var(--crema); font-weight: 600; }
.en { font-style: italic; font-size: 26px; font-weight: 500; margin: 0 0 18px; letter-spacing: -.01em; }
.centro { text-align: center; }
.pequeno { font-size: 13px; color: var(--gris-2); }
.antetitulo { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-claro); margin: 0 0 10px; }
.duracion { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--gris); margin-bottom: 14px; }
.duracion svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Preguntas */
.numero { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--taupe-claro); letter-spacing: .08em; margin-bottom: 12px; }
.numero span { background: #fff; color: var(--pizarra); border-radius: 6px; padding: 2px 8px; font-size: 13px; letter-spacing: 0; }
.ayuda { font-size: 15px; color: var(--gris); margin: 0 0 24px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); padding: 10px 0;
  font: 400 21px 'Inter', system-ui, sans-serif; color: var(--crema); outline: none; border-radius: 0; transition: border-color .2s;
}
input:focus, textarea:focus { border-bottom-color: var(--taupe-claro); }
input::placeholder, textarea::placeholder { color: rgba(244,241,236,.38); }
textarea { min-height: 110px; resize: vertical; font-size: 17px; line-height: 1.5; }
.opcion { display: flex; gap: 12px; align-items: center; border: 1px solid var(--borde); background: rgba(255,255,255,.05); border-radius: 12px; padding: 14px 16px; font-size: 17px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.opcion:hover { border-color: rgba(201,183,147,.7); }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion .letra { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--gris); flex: none; }
.opcion:has(input:checked) { border-color: var(--taupe-claro); background: rgba(157,136,108,.28); }
.opcion:has(input:checked) .letra { background: var(--taupe-claro); border-color: var(--taupe-claro); color: var(--pizarra); }
.opcion:has(input:focus-visible) { outline: 2px solid var(--taupe-claro); outline-offset: 2px; }
.error { color: #F2B8B0; font-size: 14px; margin-top: 8px; min-height: 1px; }
.aviso { background: rgba(142,43,34,.5); border: 1px solid rgba(242,184,176,.35); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }

/* Botones */
button, .boton {
  width: 100%; min-height: 54px; border: 0; border-radius: 27px; background: var(--pizarra-boton); color: #fff;
  font: 600 17px 'Inter', system-ui, sans-serif; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
}
button:hover, .boton:hover { background: #4A5353; }
button:active, .boton:active { transform: scale(.99); }
button.principal, .boton.principal { background: var(--taupe-boton); color: #fff; }
button.principal:hover, .boton.principal:hover { background: #75644E; }
button.borde, .boton.borde { background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--crema); }
button.borde:hover, .boton.borde:hover { background: rgba(255,255,255,.06); }
button:disabled { opacity: .5; cursor: progress; }
button:focus-visible, .boton:focus-visible, a:focus-visible { outline: 2px solid var(--taupe-claro); outline-offset: 3px; }
.botones { display: flex; flex-direction: column; gap: 10px; }
.pregunta { display: flex; flex-direction: column; flex: 1; }
.js .pregunta:not(.activa) { display: none; }
.sin-js-separador { height: 40px; }
.js .sin-js-separador { display: none; }

/* Tarjeta del inmueble */
.inmueble { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 10px; margin-bottom: 22px; }
.inmueble .foto { width: 76px; height: 76px; flex: none; border-radius: 11px; overflow: hidden; background: #2C3334; display: flex; align-items: center; justify-content: center; color: rgba(201,183,147,.6); }
.inmueble .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inmueble .foto svg { width: 40px; height: auto; }
.inmueble .titulo { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.inmueble .lugar { font-size: 13.5px; color: var(--gris); margin-top: 2px; }
.inmueble.grande { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.inmueble.grande .foto { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.inmueble.grande .foto svg { width: 70px; }
.inmueble.grande .texto { padding: 14px 16px 16px; }

/* Agenda */
.dias { display: flex; gap: 8px; margin: 0 -24px 22px; padding: 0 24px 6px; overflow-x: auto; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia { flex: 0 0 62px; min-height: 70px; border: 1px solid var(--borde); background: rgba(255,255,255,.05); color: var(--crema); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-weight: 600; transition: border-color .15s, background .15s; }
.dia span:first-child { font-size: 12px; font-weight: 500; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.dia span:last-child { font-size: 21px; }
.dia:hover { border-color: rgba(201,183,147,.7); }
.dia.elegido { border-color: var(--taupe-claro); background: rgba(157,136,108,.32); }
.dia.elegido span:first-child { color: var(--crema); }
.horas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hora { min-height: 50px; border: 1px solid var(--borde); background: rgba(255,255,255,.05); color: var(--crema); border-radius: 12px; font: 600 16px 'Inter', system-ui, sans-serif; display: flex; align-items: center; justify-content: center; text-decoration: none; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.hora:hover { border-color: var(--taupe-claro); background: rgba(157,136,108,.32); }
.etiqueta { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-2); margin-bottom: 10px; }
.fila { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.fila span:first-child { color: var(--gris); }
.fila span:last-child { text-align: right; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 15px; line-height: 1.45; color: #E6EAEC; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--taupe); }
.ok-circulo { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--taupe-claro); display: flex; align-items: center; justify-content: center; color: var(--taupe-claro); margin-bottom: 20px; }
.ok-circulo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.caja { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; color: #E6EAEC; }
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.escala.nps { grid-template-columns: repeat(6, 1fr); }
.escala .opcion { justify-content: center; padding: 14px 0; margin: 0; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.escala-extremos { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--gris-2); margin-top: 10px; }
.pie-marca { text-align: center; margin-top: 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,241,236,.35); }
form { display: contents; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
