/* Hojas (modales) de El Tapete de la Ciudad: "Todos los datos", el formulario para estacionar su cochecito, el
   estacionamiento de la fiesta, el visor de fotos y el aviso del modo muestra. Cada hoja es una hoja de cuaderno
   arrancada (orilla recortada con ui/papel.js), con su clip de cinta y renglones. */
.tc .sheet { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.tc .sheet-scrim { position: absolute; inset: 0; background: rgba(59, 36, 16, .45); opacity: 0; transition: opacity .3s; }
.tc .sheet.is-in .sheet-scrim { opacity: 1; }
.tc .sheet-card { position: relative; width: calc(100% - 16px); max-height: calc(100% - var(--safe-t) - 28px); margin-bottom: calc(var(--safe-b) + 8px); display: flex; flex-direction: column; box-shadow: 0 -10px 30px rgba(59, 36, 16, .3);
  transform: translateY(105%) rotate(2deg); transition: transform .45s cubic-bezier(.2, 1.1, .4, 1); }
.tc .sheet.is-in .sheet-card { transform: translateY(0) rotate(-.4deg); }
.tc .sheet.is-out .sheet-card { transform: translateY(105%) rotate(-2deg); transition-duration: .26s; transition-timing-function: ease-in; }
.tc .sheet.is-out .sheet-scrim { opacity: 0; }
.tc .sheet.is-full .sheet-card { height: calc(100% - var(--safe-t) - 28px); }
.tc .sheet-head { display: flex; align-items: center; gap: 10px; padding: 24px 12px 6px 44px; }
.tc .sheet-head h2 { flex: 1; margin: 0; font: 400 clamp(22px, 6.6cqw, 27px)/1.1 var(--f-titulo); }
.tc .sheet-head.is-bare { justify-content: flex-end; }
.tc .sheet-x { flex: none; }
.tc .sheet-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 4px 16px 20px 44px; }

/* todos los datos */
.tc .dt-lead { margin: 0 0 10px; font: 700 20px/1.3 var(--f-mano); color: var(--tinta-2); }
.tc .dt-sec { margin: 0 0 22px; }
.tc .dt-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 400 21px/1.15 var(--f-titulo); }
.tc .dt-sec h3 .bi { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--c, var(--amarillo)); color: var(--tinta); align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 3px rgba(59, 36, 16, .3); }
.tc .dt-sec p { margin: 0 0 8px; font: 700 16px/1.45 var(--f-texto); }
.tc .dt-big { font: 800 20px/1.2 var(--f-texto) !important; }
.tc .regalos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc .regalos li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: #fff; border: 2px solid #E9D9B8; }
.tc .regalos li.is-oro { background: #FFF5CC; border-color: var(--amarillo-2); }
.tc .rg-txt { flex: 1; display: flex; flex-direction: column; }
.tc .rg-txt strong { font: 800 16px/1.25 var(--f-texto); }
.tc .rg-txt small { font: 700 15px/1.3 var(--f-mano); color: var(--tinta-2); }
.tc .fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tc .foto { position: relative; padding: 6px 6px 26px; border: 0; background: #fff; box-shadow: 0 4px 10px rgba(59, 36, 16, .25); cursor: pointer; transform: rotate(-1.5deg); min-height: 44px; }
.tc .foto:nth-child(2n) { transform: rotate(1.8deg); }
.tc .foto img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tc .foto span { position: absolute; left: 6px; right: 6px; bottom: 4px; font: 700 15px/1.2 var(--f-mano); color: var(--tinta); text-align: center; }
.tc .dt-faq { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; background: #fff; border: 2px solid #E9D9B8; }
.tc .dt-faq summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font: 800 16px/1.3 var(--f-texto); }
.tc .dt-cta { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.tc .cf-deadline { margin: 0; text-align: center; font: 700 17px/1.3 var(--f-mano); color: var(--tinta-2); }
.tc .dt-hosts { margin: 0; text-align: center; font: 700 20px/1.3 var(--f-mano); color: var(--tinta-2); }

/* formulario: estacionar su cochecito */
.tc .fm { display: flex; flex-direction: column; gap: 12px; }
.tc .fm-vista { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 14px 10px 10px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .22) 22px 24px), #6E7787; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .3); }
.tc .fm-vista::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 44px; width: 120px; transform: translateX(-50%); border: 3px dashed rgba(255, 255, 255, .85); border-bottom: 0; border-radius: 4px 4px 0 0; }
.tc .fm-vista-coche { position: relative; width: 74px; height: 120px; margin-top: 4px; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); animation: tc-estaciona-mini .6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes tc-estaciona-mini { from { transform: translateY(16px) scale(.92); } }
.tc .placa { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 5px; background: #FFFBF1; border: 2px solid var(--tinta); font: 400 15px/1.1 var(--f-mano); color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.tc .placa::before, .tc .placa::after { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: #9C8C7A; }
.tc .fm-vista .placa { margin-top: 6px; font-size: 18px; }
.tc .fm-l { margin: 0; font: 400 19px/1.2 var(--f-titulo); color: var(--tinta); }
.tc .fm input[type="text"], .tc .fm textarea { width: 100%; min-height: 48px; padding: 8px 4px; border: 0; border-bottom: 3px solid var(--tinta-2); border-radius: 0; background: transparent; font: 400 23px/1.25 var(--f-mano); color: var(--tinta); }
.tc .fm textarea { resize: vertical; min-height: 64px; }
.tc .fm-count { float: right; font: 700 14px var(--f-texto); color: var(--tinta-2); }
.tc .fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc .fm-seg .ficha[aria-checked="true"] { background: linear-gradient(180deg, #FFE27A, var(--amarillo)); box-shadow: inset 0 0 0 3px var(--tinta), 0 3px 0 #D9A21A, 0 6px 0 #A8770C; }
.tc .fm-personas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tc .fm-step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; background: #fff; border: 2px solid #E9D9B8; }
.tc .fm-step-l { font: 800 16px var(--f-texto); }
.tc .fm-step-c { display: flex; align-items: center; gap: 4px; }
.tc .fm-step output { min-width: 32px; text-align: center; font: 400 28px var(--f-titulo); }
.tc .fm-formas, .tc .fm-colores { display: flex; flex-wrap: wrap; gap: 10px; }
.tc .fm-forma { width: 64px; height: 76px; padding: 4px; border-radius: 10px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px #E9D9B8, 0 3px 0 #E9D9B8; cursor: pointer; display: grid; place-items: center; }
.tc .fm-forma svg { width: 36px; height: 60px; }
.tc .fm-forma[aria-checked="true"] { box-shadow: inset 0 0 0 4px var(--tinta), 0 3px 0 var(--tinta); background: #FFF5CC; }
.tc .fm-sw { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fff; background: var(--c); box-shadow: 0 0 0 2px #C9B48F, 0 3px 4px rgba(0, 0, 0, .2); cursor: pointer; }
.tc .fm-sw[aria-checked="true"] { box-shadow: 0 0 0 4px var(--tinta), 0 3px 4px rgba(0, 0, 0, .2); }
.tc .fm-err { margin: 0; min-height: 1px; font: 700 19px/1.25 var(--f-mano); color: var(--rojo); }

/* estacionamiento de la fiesta */
.tc .est-sub { margin: 0 0 10px; font: 700 19px/1.3 var(--f-mano); color: var(--tinta-2); }
.tc .est { position: relative; padding: 14px 10px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .05) 0 2px, transparent 3px) 0 0 / 14px 14px, #6E7787; box-shadow: inset 0 0 0 4px #2F5EA8, inset 0 0 0 6px #FFF3D2; }
.tc .est-casa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; padding: 8px; border-radius: 8px; background: #F7B7CF; font: 400 18px/1.1 var(--f-titulo); color: var(--tinta); box-shadow: 0 3px 0 #C77D9B; }
.tc .est-fila { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; }
.tc .est-cajon { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 140px; padding: 6px 2px 4px; border-left: 3px dashed rgba(255, 255, 255, .85); }
.tc .est-cajon:last-child { border-right: 3px dashed rgba(255, 255, 255, .85); }
.tc .est-cajon .coche-c { display: block; width: 46px; height: 76px; }
.tc .est-cajon .placa { max-width: 98%; padding: 2px 5px; font-size: 13px; line-height: 1.05; white-space: normal; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tc .est-cajon.is-vacio::after { content: "P"; position: absolute; top: 34px; font: 400 26px var(--f-titulo); color: rgba(255, 255, 255, .5); }
.tc .est-carril { height: 40px; margin: 4px 0; background: repeating-linear-gradient(90deg, var(--amarillo) 0 18px, transparent 18px 32px) center / 100% 4px no-repeat; }
.tc .est-cajon.is-mio .placa { background: var(--amarillo); }
.tc .est-entra { position: absolute; z-index: 3; left: 0; top: 0; width: 46px; height: 76px; offset-rotate: auto 90deg; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .4)); }
.tc .est-cuenta { display: flex; justify-content: center; margin: 14px 0 6px; }
.tc .est-calco { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 3px dashed var(--amarillo-2); font: 800 17px/1.2 var(--f-texto); transform: rotate(-2deg); box-shadow: 0 4px 8px rgba(59, 36, 16, .2); }
.tc .est-calco strong { font: 400 26px var(--f-titulo); color: var(--rojo); }
.tc .est-lista { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tc .est-lista li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 2px dashed #E9D9B8; font: 800 15px/1.25 var(--f-texto); }
.tc .est-lista .mini { width: 22px; height: 36px; flex: none; }
.tc .est-lista .meta { margin-left: auto; font: 700 15px var(--f-mano); color: var(--tinta-2); white-space: nowrap; }
.tc .est-h3 { margin: 18px 0 8px; font: 400 20px var(--f-titulo); }
.tc .recados { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tc .recados li { position: relative; padding: 16px 12px 10px; background: #FFF7CF; transform: rotate(-1deg); box-shadow: 0 6px 10px rgba(59, 36, 16, .15); font: 400 19px/1.3 var(--f-mano); }
.tc .recados li:nth-child(2n) { transform: rotate(1.2deg); }
.tc .recados li strong { display: block; font: 800 15px var(--f-texto); }
.tc .est-acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* visor de fotos y aviso */
.tc .viewer .sheet-card { background: #2B2340 !important; }
.tc .viewer-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tc .viewer-img { max-width: 100%; max-height: 64cqh; border: 8px solid #fff; border-bottom-width: 36px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transform: rotate(-1deg); }
.tc .viewer-cap { margin: -44px 0 0; position: relative; font: 700 19px var(--f-mano); color: var(--tinta); }
.tc .viewer-nav { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.tc .viewer-prev svg { transform: scaleX(-1); }
.tc .demo-note .sheet-body { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.tc .demo-note p { margin: 0; font: 700 18px/1.4 var(--f-texto); }
.tc .demo-ic { font-size: 40px; }
