/* ================================================================
   Calendario propio para <input type="date"> — ver fx-datepicker.js.
   Reusa las variables de color del tema oscuro del sitio (--vb, --vs2,
   --vbor, --vtx, --va, etc., definidas en vitrina.css) y las
   animaciones globales "asomarse"/"despedirse" (utilidades.css).
   ================================================================ */

.fx-dp-wrap { position: relative; display: inline-block; width: 100%; }
.fx-dp-original { display: none !important; }

.fx-dp-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--vs2);
  border: 1px solid var(--vbor);
  color: var(--vtx2);
  border-radius: var(--r);
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease-apple), box-shadow 0.2s var(--ease-apple);
}
.fx-dp-trigger:hover { border-color: var(--vbor2); }
.fx-dp-trigger:focus { border-color: var(--vbor2); box-shadow: var(--shadow-focus-soft); }
.fx-dp-trigger .fx-dp-texto { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-dp-trigger .fx-dp-texto.fx-dp-vacio { color: var(--vtx3); }
.fx-dp-trigger > i { font-size: 15px; color: var(--vtx3); flex: 0 0 auto; }

.fx-dp-panel {
  position: absolute; z-index: 200; top: calc(100% + 6px); left: 0;
  width: 264px;
  background: var(--vs2);
  border: 1px solid var(--vbor2);
  border-radius: var(--rl);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 12px;
}
.fx-dp-panel.oculto { display: none; }
.fx-dp-panel.fx-dp-abierto { animation: asomarse 0.18s var(--ease-apple) both; }
.fx-dp-panel.fx-dp-cerrando { animation: despedirse 0.14s var(--ease-apple) forwards; }

.fx-dp-cabecera { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fx-dp-mes { font-size: 13px; font-weight: 700; color: var(--vtx); text-transform: capitalize; }
.fx-dp-nav {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: transparent; border: none; color: var(--vtx2);
  cursor: pointer; font-size: 15px;
  transition: background 0.15s ease;
}
.fx-dp-nav:hover { background: var(--vag); color: var(--vtx); }

.fx-dp-semana {
  display: grid; grid-template-columns: repeat(7, minmax(0,1fr));
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--vtx3); text-align: center; margin-bottom: 4px;
}

.fx-dp-grilla { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 2px; }
.fx-dp-dia {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid transparent; border-radius: 8px;
  color: var(--vtx2); font-size: 12.5px; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.fx-dp-dia:hover:not(:disabled) { background: var(--vag); color: var(--vtx); }
.fx-dp-dia.fx-dp-hoy { border-color: var(--vbor2); font-weight: 700; }
.fx-dp-dia.fx-dp-sel { background: var(--va); color: #fff; font-weight: 700; }
.fx-dp-dia.fx-dp-sel:hover { background: var(--va); }
.fx-dp-dia.fx-dp-deshabilitado, .fx-dp-dia:disabled { color: var(--vtx3); opacity: 0.35; cursor: not-allowed; }

.fx-dp-acciones { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--vbor); }
.fx-dp-accion {
  background: transparent; border: none; color: var(--va); font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.fx-dp-accion:hover { background: var(--vag); }

@media (max-width: 480px) {
  .fx-dp-panel { width: 236px; }
}
