.cw-raiz {
    --cw-acento: #0f5f73;
    --cw-tinta-acento: #ffffff;
    --cw-acento-texto: var(--cw-acento);
    --cw-acento-suave: color-mix(in srgb, var(--cw-acento) 14%, #ffffff);
    --cw-acento-medio: color-mix(in srgb, var(--cw-acento) 26%, #ffffff);
    --cw-papel: #ffffff;
    --cw-fondo: color-mix(in srgb, var(--cw-acento) 5%, #f2f3f5);
    --cw-fondo-hondo: color-mix(in srgb, var(--cw-acento) 8%, #e7e9ec);
    --cw-tinta: #1b1e21;
    --cw-tinta-suave: #5b6168;
    --cw-borde-campo: #c4c9cf;
    --cw-ok: #1d7347;
    --cw-ok-fondo: #e6f3eb;
    --cw-aviso: #8f5300;
    --cw-aviso-fondo: #faefdc;
    --cw-error: #b3261e;
    --cw-t-nota: 12px;
    --cw-t-sec: 14px;
    --cw-t-texto: 16px;
    --cw-t-cifra: 20px;
    --cw-t-grande: 28px;
    font-family: inherit;
    font-size: var(--cw-t-texto);
    line-height: 1.5;
    color: var(--cw-tinta);
}

.cw-raiz *,
.cw-raiz *::before,
.cw-raiz *::after {
    box-sizing: border-box;
}

.cw-raiz [hidden] {
    display: none !important;
}

.cw-raiz button,
.cw-raiz input {
    font: inherit;
}

.cw-raiz button:focus-visible,
.cw-raiz input:focus-visible,
.cw-raiz a:focus-visible,
.cw-raiz [role="button"]:focus-visible {
    outline: 2px solid var(--cw-acento-texto);
    outline-offset: 2px;
}

.cw-lanzador {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cw-boton-abrir {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(20, 24, 28, .24);
    transition: transform .18s ease;
}

.cw-boton-abrir:hover {
    transform: scale(1.06);
}

.cw-boton-abrir:active {
    transform: scale(.96);
}

.cw-boton-abrir svg {
    width: 28px;
    height: 28px;
}

.cw-boton-abrir .cw-robot {
    width: 34px;
    height: 34px;
}

.cw-robot {
    overflow: visible;
}

.cw-robot-cara,
.cw-robot-antena {
    fill: currentColor;
}

.cw-robot-trazo {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.cw-robot-ojo {
    fill: var(--cw-acento);
    transform-box: fill-box;
    transform-origin: center;
    animation: cw-parpadeo 4.6s infinite;
}

.cw-robot-boca {
    fill: none;
    stroke: var(--cw-acento);
    stroke-width: 2;
    stroke-linecap: round;
    transform-box: fill-box;
    transform-origin: center top;
    animation: cw-sonrisa 7s infinite;
}

.cw-robot-antena {
    transform-box: fill-box;
    transform-origin: center;
    animation: cw-antena 2.4s ease-in-out infinite;
}

.cw-boton-abrir:hover .cw-robot-boca,
.cw-avatar:hover .cw-robot-boca {
    animation: none;
    transform: scaleY(1.3);
}

.cw-burbuja {
    position: relative;
    max-width: 250px;
    margin-right: 8px;
    padding: 14px 14px 14px 16px;
    background: var(--cw-papel);
    color: var(--cw-tinta);
    border-radius: 18px 18px 4px 18px;
    font-size: var(--cw-t-texto);
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 12px 32px rgba(20, 24, 28, .18);
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transform-origin: bottom right;
    animation: cw-bocadillo .32s cubic-bezier(.2, .9, .3, 1.2);
}

.cw-burbuja::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: var(--cw-papel);
    transform: rotate(45deg);
    border-radius: 0 0 4px 0;
}

.cw-burbuja button {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    flex: none;
    display: grid;
    place-items: center;
    margin: -4px -4px 0 0;
    border: 0;
    border-radius: 50%;
    background: var(--cw-fondo);
    color: var(--cw-tinta-suave);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.cw-ventana {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 99999;
    width: 392px;
    max-width: calc(100vw - 24px);
    height: 680px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: var(--cw-fondo);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(20, 24, 28, .28);
    transform-origin: bottom right;
    animation: cw-abrir .24s cubic-bezier(.2, .9, .3, 1);
}

.cw-raiz.cw-en-contenedor .cw-lanzador,
.cw-raiz.cw-en-contenedor .cw-ventana {
    position: absolute;
}

.cw-raiz.cw-en-contenedor .cw-ventana {
    max-height: calc(100% - 40px);
    max-width: calc(100% - 24px);
}

.cw-cabecera {
    position: relative;
    background: var(--cw-papel);
    color: var(--cw-tinta);
    padding: 14px 10px 14px 16px;
}

.cw-cabecera-fila {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cw-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    font-weight: 800;
    font-size: 18px;
}

.cw-avatar .cw-robot {
    width: 30px;
    height: 30px;
}

.cw-avatar-linea {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--cw-ok);
    box-shadow: 0 0 0 3px var(--cw-papel);
}

.cw-cabecera-texto {
    flex: 1;
    min-width: 0;
}

.cw-cabecera-titulo {
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-cabecera-sub {
    display: flex;
    gap: 6px;
    min-width: 0;
    margin-top: 2px;
    font-size: var(--cw-t-sec);
    color: var(--cw-tinta-suave);
    white-space: nowrap;
}

.cw-cabecera-sub > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-cabecera-paso {
    flex: none;
    font-variant-numeric: tabular-nums;
}

.cw-cabecera-sub:has(.cw-cabecera-paso:not(:empty)) > span:first-child {
    display: none;
}

.cw-cabecera-acciones {
    flex: none;
    display: flex;
}

.cw-icono-boton {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cw-tinta-suave);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.cw-icono-boton:hover {
    background: var(--cw-fondo);
    color: var(--cw-tinta);
}

.cw-progreso,
.cw-contador {
    display: none;
}

.cw-ficha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px -10px -14px -16px;
    padding: 10px 10px 10px 16px;
    background: var(--cw-fondo-hondo);
}

.cw-ficha[hidden] {
    display: none;
}

.cw-ficha-datos {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cw-ficha-datos::-webkit-scrollbar {
    display: none;
}

.cw-ficha-datos li {
    flex: none;
    font-size: var(--cw-t-sec);
    font-weight: 700;
    line-height: 1.25;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--cw-papel);
    color: var(--cw-tinta);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    animation: cw-aparecer .28s ease-out;
}

.cw-ficha-total {
    flex: none;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    font-size: var(--cw-t-sec);
    font-weight: 800;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cw-mensajes {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.cw-mensajes > * {
    flex-shrink: 0;
}

.cw-msg {
    max-width: 88%;
    overflow-wrap: anywhere;
    animation: cw-aparecer .2s ease-out;
}

.cw-msg-bot {
    align-self: flex-start;
    padding: 10px 14px;
    background: var(--cw-papel);
    border-radius: 20px 20px 20px 6px;
    color: var(--cw-tinta);
}

.cw-msg-bot + .cw-msg-bot {
    margin-top: -8px;
    border-top-left-radius: 6px;
}

.cw-msg-cliente {
    align-self: flex-end;
    padding: 10px 14px;
    background: var(--cw-acento);
    border-radius: 20px 20px 6px 20px;
    color: var(--cw-tinta-acento);
}

.cw-msg-cliente.cw-editable {
    cursor: pointer;
}

.cw-msg-cliente.cw-editable:hover {
    filter: brightness(.92);
}

.cw-editar {
    display: block;
    margin-top: 2px;
    font-size: var(--cw-t-nota);
    color: color-mix(in srgb, var(--cw-tinta-acento) 78%, transparent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: right;
}

.cw-etiqueta-ia {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--cw-acento-suave);
    color: var(--cw-acento-texto);
    font-size: var(--cw-t-nota);
    font-weight: 700;
    vertical-align: 2px;
}

.cw-msg-ia br {
    display: none;
}

.cw-escribiendo {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    background: var(--cw-papel);
    border-radius: 20px 20px 20px 6px;
}

.cw-escribiendo span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cw-tinta-suave);
    animation: cw-punto 1s infinite ease-in-out;
}

.cw-escribiendo span:nth-child(2) {
    animation-delay: .15s;
}

.cw-escribiendo span:nth-child(3) {
    animation-delay: .3s;
}

.cw-opciones {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cw-opcion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    font-size: var(--cw-t-sec);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease, transform .12s ease;
}

.cw-opcion:hover {
    filter: brightness(.92);
}

.cw-opcion:active {
    transform: scale(.97);
}

.cw-opcion small {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cw-tinta-acento) 16%, transparent);
    color: var(--cw-tinta-acento);
    font-size: var(--cw-t-nota);
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cw-opcion.cw-secundaria {
    filter: none;
    background: transparent;
    color: var(--cw-tinta-suave);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 8px;
    padding-right: 8px;
}

.cw-opcion.cw-secundaria:hover {
    background: transparent;
    color: var(--cw-tinta);
}

.cw-opcion.cw-marcada,
.cw-opcion.cw-principal {
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
}

.cw-formulario,
.cw-tarjeta-calculo,
.cw-resumen,
.cw-contexto {
    align-self: stretch;
    background: var(--cw-papel);
    border-radius: 16px;
}

.cw-formulario {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cw-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cw-campo label {
    font-size: var(--cw-t-sec);
    font-weight: 700;
    color: var(--cw-tinta);
}

.cw-campo input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--cw-borde-campo);
    border-radius: 10px;
    background: var(--cw-papel);
    color: var(--cw-tinta);
    font-size: var(--cw-t-texto);
}

.cw-campo input:focus {
    border-color: var(--cw-acento-texto);
    outline: 2px solid var(--cw-acento-suave);
    outline-offset: 0;
}

.cw-campo.cw-invalido input {
    border-color: var(--cw-error);
}

.cw-campo-error {
    font-size: var(--cw-t-sec);
    color: var(--cw-error);
}

.cw-campo-error:empty {
    display: none;
}

.cw-segmentado {
    display: flex;
    padding: 4px;
    gap: 4px;
    background: var(--cw-fondo-hondo);
    border-radius: 999px;
}

.cw-segmentado button {
    flex: 1;
    min-height: 36px;
    padding: 6px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cw-tinta-suave);
    font-size: var(--cw-t-sec);
    font-weight: 700;
    cursor: pointer;
}

.cw-segmentado button.cw-activo {
    background: var(--cw-papel);
    color: var(--cw-tinta);
}

.cw-equivalencia {
    font-size: var(--cw-t-sec);
    color: var(--cw-tinta-suave);
    font-variant-numeric: tabular-nums;
}

.cw-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--cw-t-sec);
    color: var(--cw-tinta-suave);
}

.cw-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: none;
    accent-color: var(--cw-acento-texto);
}

.cw-modal {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    background: rgba(20, 24, 28, .45);
    animation: cw-aparecer .2s ease-out;
}

.cw-modal-panel {
    width: 100%;
    max-height: 82%;
    display: flex;
    flex-direction: column;
    background: var(--cw-papel);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(20, 24, 28, .3);
}

.cw-modal-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 8px 8px 18px;
    font-size: var(--cw-t-texto);
    color: var(--cw-tinta);
}

.cw-modal-cuerpo {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 18px 16px;
    font-size: var(--cw-t-sec);
    line-height: 1.55;
    color: var(--cw-tinta);
    white-space: pre-line;
}

.cw-modal-cuerpo:focus {
    outline: none;
}

.cw-modal-completa {
    margin: 14px 0 0;
    white-space: normal;
}

.cw-modal-pie {
    padding: 12px 16px 16px;
    background: var(--cw-fondo);
}

.cw-modal-pie .cw-boton-principal {
    width: 100%;
}

.cw-modal-pie .cw-boton-principal:disabled {
    opacity: 1;
    background: var(--cw-fondo-hondo);
    color: var(--cw-tinta-suave);
    cursor: default;
    transform: none;
    filter: none;
}

.cw-enlace-privacidad {
    color: var(--cw-acento-texto);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cw-boton-principal {
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    font-weight: 800;
    font-size: var(--cw-t-texto);
    cursor: pointer;
    transition: transform .12s ease, filter .15s ease;
}

.cw-boton-principal:hover {
    filter: brightness(.94);
}

.cw-boton-principal:active {
    transform: scale(.98);
}

.cw-boton-principal:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.cw-formulario > .cw-opcion.cw-secundaria {
    align-self: center;
}

.cw-tarjeta-calculo {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cw-calculo-titulo {
    font-size: var(--cw-t-sec);
    font-weight: 700;
    color: var(--cw-tinta-suave);
}

.cw-calculo-cifra {
    font-size: var(--cw-t-grande);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.cw-calculo-filas {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    margin: 4px -18px 0;
    font-size: var(--cw-t-sec);
    font-variant-numeric: tabular-nums;
}

.cw-calculo-filas span {
    padding: 8px 18px;
}

.cw-calculo-filas span:nth-child(4n+1),
.cw-calculo-filas span:nth-child(4n+2) {
    background: var(--cw-fondo);
}

.cw-calculo-filas span:nth-child(odd) {
    color: var(--cw-tinta-suave);
}

.cw-calculo-filas span:nth-child(even) {
    text-align: right;
    font-weight: 800;
    color: var(--cw-tinta);
}

.cw-semaforo {
    font-size: var(--cw-t-sec);
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 12px;
}

.cw-semaforo.cw-ok {
    color: var(--cw-ok);
    background: var(--cw-ok-fondo);
}

.cw-semaforo.cw-aviso {
    color: var(--cw-aviso);
    background: var(--cw-aviso-fondo);
}

.cw-letra-pequena {
    font-size: var(--cw-t-nota);
    line-height: 1.45;
    color: var(--cw-tinta-suave);
}

.cw-resultados {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cw-carrusel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 2px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.cw-carrusel::-webkit-scrollbar {
    display: none;
}

.cw-carrusel:focus-visible {
    outline: 2px solid var(--cw-acento-texto);
    outline-offset: 2px;
    border-radius: 16px;
}

.cw-inmueble {
    flex: 0 0 86%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--cw-papel);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .15s ease;
}

.cw-inmueble:only-child {
    flex-basis: 100%;
}

.cw-inmueble.cw-elegida {
    box-shadow: inset 0 0 0 2px var(--cw-acento);
}

.cw-inmueble-foto {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    background-color: var(--cw-fondo-hondo);
    background-size: cover;
    background-position: center;
}

.cw-inmueble.cw-elegida .cw-inmueble-foto {
    margin: 2px 2px 0;
    border-radius: 14px 14px 0 0;
}

.cw-inmueble-ref {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 24, 28, .72);
    color: #ffffff;
    font-size: var(--cw-t-nota);
    font-weight: 700;
}

.cw-inmueble-pos {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 24, 28, .72);
    color: #ffffff;
    font-size: var(--cw-t-nota);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cw-inmueble-cuerpo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px 14px;
}

.cw-inmueble-precio {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--cw-tinta);
}

.cw-inmueble-titulo {
    font-size: var(--cw-t-texto);
    font-weight: 700;
    color: var(--cw-tinta);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-inmueble-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.cw-inmueble-datos li {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--cw-fondo);
    color: var(--cw-tinta);
    font-size: var(--cw-t-sec);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cw-inmueble-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.cw-interes {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--cw-acento-suave);
    color: var(--cw-tinta);
    font-size: var(--cw-t-sec);
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease, transform .12s ease;
}

.cw-interes:hover {
    background: var(--cw-acento-medio);
}

.cw-interes:active {
    transform: scale(.97);
}

.cw-interes[aria-pressed="true"] {
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
}

.cw-ver-ficha {
    flex: none;
    padding: 10px 4px;
    color: var(--cw-tinta);
    font-size: var(--cw-t-sec);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cw-carrusel-marco {
    position: relative;
}

.cw-carrusel-flecha {
    position: absolute;
    top: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--cw-papel);
    color: var(--cw-tinta);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 24, 28, .22);
    transition: opacity .15s ease, transform .12s ease;
}

.cw-carrusel-anterior {
    left: 6px;
}

.cw-carrusel-siguiente {
    right: 6px;
}

.cw-carrusel-flecha:active:not(:disabled) {
    transform: scale(.92);
}

.cw-carrusel-flecha:disabled {
    opacity: 0;
    pointer-events: none;
}

@media (hover: none) {
    .cw-carrusel-flecha {
        display: none;
    }
}

.cw-resultados-pie {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cw-resultados-pie .cw-boton-principal {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--cw-papel);
    color: var(--cw-tinta);
}

.cw-resultados-pie .cw-boton-principal.cw-con-marcados {
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
}

.cw-resultados-secundarias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 4px;
}

.cw-raiz .cw-resultados-secundarias > .cw-opcion {
    min-height: 36px;
    padding: 6px;
    font-size: var(--cw-t-sec);
    font-weight: 700;
}

.cw-contexto {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    font-size: var(--cw-t-sec);
}

.cw-contexto-foto {
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 10px;
    background-color: var(--cw-fondo-hondo);
    background-size: cover;
    background-position: center;
}

.cw-contexto div {
    font-variant-numeric: tabular-nums;
    color: var(--cw-tinta-suave);
}

.cw-contexto strong {
    display: block;
    color: var(--cw-tinta);
    font-size: var(--cw-t-texto);
}

.cw-resumen {
    margin: 0;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: var(--cw-t-sec);
}

.cw-resumen dt {
    color: var(--cw-tinta-suave);
}

.cw-resumen dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cw-cita {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--cw-papel);
    border-radius: 16px;
    border-top: 4px solid var(--cw-acento);
}

.cw-cita-cabecera {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cw-cita-etiqueta {
    font-size: var(--cw-t-sec);
    font-weight: 700;
    color: var(--cw-acento-texto);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cw-cita-dia {
    font-size: 1.15em;
    color: var(--cw-tinta);
}

.cw-cita-hora {
    color: var(--cw-tinta);
    font-variant-numeric: tabular-nums;
}

.cw-cita .cw-contexto {
    padding: 0;
    background: transparent;
}

.cw-cita-estado {
    font-size: var(--cw-t-sec);
    color: var(--cw-tinta-suave);
}

.cw-cita-calendario {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cw-visitas-bloque {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cw-opcion.cw-conmutable {
    background: var(--cw-papel);
    color: var(--cw-tinta);
    box-shadow: inset 0 0 0 1.5px var(--cw-acento-medio);
}

.cw-opcion.cw-conmutable:hover {
    filter: none;
    box-shadow: inset 0 0 0 1.5px var(--cw-acento);
}

.cw-opcion.cw-conmutable.cw-activa {
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    box-shadow: none;
}

.cw-opcion.cw-conmutable:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cw-conmutable-marca {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
    position: relative;
}

.cw-activa .cw-conmutable-marca {
    background: var(--cw-tinta-acento);
}

.cw-activa .cw-conmutable-marca::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid var(--cw-acento);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cw-visitas-aviso {
    font-size: var(--cw-t-nota);
    color: var(--cw-tinta-suave);
}

.cw-visitas-bloque > .cw-opcion.cw-secundaria {
    align-self: center;
}

.cw-calendario {
    align-self: stretch;
    padding: 14px;
    background: var(--cw-papel);
    border-radius: 16px;
}

.cw-cal-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cw-cal-titulo {
    font-size: var(--cw-t-texto);
    color: var(--cw-tinta);
}

.cw-cal-flecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--cw-acento-suave);
    color: var(--cw-acento-texto);
    cursor: pointer;
}

.cw-cal-flecha:disabled {
    opacity: .35;
    cursor: default;
}

.cw-cal-semana,
.cw-cal-rejilla {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
}

.cw-cal-semana {
    margin-bottom: 4px;
    font-size: var(--cw-t-nota);
    font-weight: 700;
    color: var(--cw-tinta-suave);
}

.cw-cal-dia {
    aspect-ratio: 1;
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cw-tinta-suave);
    font-size: var(--cw-t-sec);
    font-variant-numeric: tabular-nums;
    opacity: .45;
}

.cw-cal-dia.cw-cal-libre {
    background: var(--cw-acento-suave);
    color: var(--cw-acento-texto);
    font-weight: 700;
    opacity: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .12s ease;
}

.cw-cal-dia.cw-cal-libre:hover {
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
}

.cw-cal-dia.cw-cal-libre:active {
    transform: scale(.94);
}

.cw-cal-dia.cw-cal-hoy {
    box-shadow: inset 0 0 0 1.5px var(--cw-acento);
}

.cw-pie {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--cw-papel);
}

.cw-pie input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--cw-fondo);
    color: var(--cw-tinta);
    font-size: var(--cw-t-texto);
}

.cw-pie input:focus {
    outline: 2px solid var(--cw-acento-texto);
    outline-offset: 0;
    background: var(--cw-papel);
}

.cw-enviar {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--cw-acento);
    color: var(--cw-tinta-acento);
    cursor: pointer;
    transition: transform .12s ease;
}

.cw-enviar:active {
    transform: scale(.94);
}

.cw-aviso-legal {
    padding: 0 16px 10px;
    background: var(--cw-papel);
    font-size: var(--cw-t-nota);
    color: var(--cw-tinta-suave);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes cw-parpadeo {
    0%, 90%, 100% {
        transform: scaleY(1);
    }

    94% {
        transform: scaleY(.1);
    }
}

@keyframes cw-sonrisa {
    0%, 55%, 100% {
        transform: scaleY(.4);
    }

    63%, 88% {
        transform: scaleY(1.3);
    }
}

@keyframes cw-antena {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(.8);
    }
}

@keyframes cw-abrir {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cw-bocadillo {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.86);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cw-aparecer {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cw-punto {

    0%,
    80%,
    100% {
        opacity: .25;
    }

    40% {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .cw-raiz:not(.cw-en-contenedor) .cw-ventana {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    .cw-lanzador {
        right: 14px;
    }

    .cw-boton-abrir {
        width: 56px;
        height: 56px;
    }

    .cw-burbuja {
        max-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cw-raiz *,
    .cw-raiz *::before,
    .cw-raiz *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
