/* ================================================================
 datewheel.css — selector de fecha tipo "rodillo" (día/mes/año)
 ================================================================ */

.dp-overlay {
 position: fixed; inset: 0; background: rgba(20,20,25,0.45);
 display: flex; align-items: flex-end; justify-content: center;
 z-index: 900; /* por encima de .tab-bar-wrap (500), igual que .modal-overlay */
 padding: 0 0 calc(var(--wrap-h, 81px) + 20px + env(safe-area-inset-bottom, 0px));
 animation: overlayIn .22s ease; /* mismo fundido que .modal-overlay */
}
.dp-overlay.dp-closing { animation: dpOverlayOut .18s ease forwards; }

.dp-sheet {
 background: var(--bg); width: 100%; max-width: 420px;
 border-radius: 24px 24px 0 0; padding: 18px 16px 22px;
 box-shadow: var(--neu-out);
 animation: sheetUp .32s cubic-bezier(0.34,1.3,0.64,1); /* mismo deslizamiento que .modal-glass */
}
.dp-overlay.dp-closing .dp-sheet { animation: dpSheetDown .2s cubic-bezier(0.4,0,1,1) forwards; }

@keyframes dpOverlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dpSheetDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

@media (min-width: 768px) {
 .dp-overlay { align-items: center; padding: 0; }
 .dp-sheet { border-radius: var(--r2); }
 /* Centrado en desktop: cierre en fundido + escala, no deslizamiento hacia abajo */
 @keyframes dpSheetDown { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(0.94) translateY(10px); } }
}

.dp-titulo {
 font-family: var(--f-serif); font-size: 1rem; font-weight: 700;
 color: var(--t1); text-align: center; margin-bottom: 12px;
}

.dp-wheels {
 position: relative; display: flex; justify-content: center; gap: 6px;
 height: 200px; /* 5 filas x 40px */
 -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%);
 mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%);
}
.dp-col {
 width: 88px; height: 200px; overflow-y: scroll;
 scroll-snap-type: y mandatory; scrollbar-width: none;
}
.dp-col::-webkit-scrollbar { display: none; }
.dp-item {
 height: 40px; display: flex; align-items: center; justify-content: center;
 scroll-snap-align: center; font-family: var(--f); font-size: 1.05rem;
 font-weight: 600; color: var(--t3);
}
.dp-centro-linea {
 position: absolute; left: 0; right: 0; top: 80px; height: 40px;
 border-top: 1px solid rgba(0,0,0,0.13); border-bottom: 1px solid rgba(0,0,0,0.13);
 pointer-events: none;
}

.dp-actions { display: flex; gap: 10px; margin-top: 16px; }
.dp-btn {
 flex: 1; padding: 12px; border-radius: 14px; border: none;
 font-family: var(--f); font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.dp-cancel { background: var(--bg-card); color: var(--t3); box-shadow: var(--neu-out-sm); }
.dp-ok { background: var(--blue); color: #fff; }

/* Botón que dispara el selector, dentro de la card en Modo Edición */
.card .fecha-valor-btn {
 width: 100%; text-align: left;
 background: var(--bg); border: 1px solid rgba(0,0,0,0.08); color: var(--t1);
 box-shadow: var(--neu-btn); border-radius: 10px; padding: 8px 10px;
 font-family: var(--f); font-size: 0.8rem; cursor: pointer;
 transition:transform .15s;
}
.card .fecha-valor-btn:hover { box-shadow: 3px 3px 6px rgba(0,0,0,0.17), -2px -2px 5px rgba(255,255,255,0.85); }
.card .fecha-valor-btn:active { box-shadow: var(--neu-btn-press); transform: scale(.98); }
.card .fecha-valor-btn.vacio { color: var(--t4); }
